Skip to content

Commit 60cbc14

Browse files
authored
feat: add .readthedocs.yaml (#80)
* feat: add .readthedocs.yaml * feat: add requirements.txt * feat: update .readthedocs.yaml
1 parent 7e2f86d commit 60cbc14

File tree

11 files changed

+43
-3
lines changed

11 files changed

+43
-3
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
- 'pyproject.toml'
88
- 'gitstats.conf'
99
- '.github/workflows/test.yml'
10+
- '!docs/**'
1011
push:
1112
branches:
1213
- "main"

.readthedocs.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Read the Docs configuration file
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
4+
# Required
5+
version: 2
6+
7+
# Set the OS, Python version, and other tools you might need
8+
build:
9+
os: ubuntu-24.04
10+
tools:
11+
python: "3.13"
12+
13+
# Build documentation in the "docs/" directory with Sphinx
14+
sphinx:
15+
configuration: docs/conf.py
16+
17+
# Optionally, but recommended,
18+
# declare the Python requirements required to build your documentation
19+
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
20+
# python:
21+
# install:
22+
# - requirements: docs/requirements.txt
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

docs/conf.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Read the Docs configuration file
2+
#
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
# Required
6+
project = "GitStats"
7+
author = "Xianpeng Shen"
8+
copyright = "2024, Xianpeng Shen"
9+
extensions = [
10+
"sphinx.ext.autodoc",
11+
"sphinx.ext.napoleon",
12+
"sphinx.ext.viewcode",
13+
]
14+
html_theme = "sphinx_rtd_theme"

docs/requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Defining the exact version will make sure things don't break
2+
sphinx==5.3.0
3+
sphinx_rtd_theme==1.1.1

gitstats/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2007-2014 Heikki Hokkanen <[email protected]> & others (see doc/AUTHOR)
1+
# Copyright (c) 2007-2014 Heikki Hokkanen <[email protected]> & others (see docs/AUTHOR.md)
22
# GPLv2 / GPLv3
33
# Copyright (c) 2024-present Xianpeng Shen <[email protected]>.
44
# GPLv2 / GPLv3

gitstats/report_creator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2007-2014 Heikki Hokkanen <[email protected]> & others (see doc/AUTHOR)
1+
# Copyright (c) 2007-2014 Heikki Hokkanen <[email protected]> & others (see docs/AUTHOR.md)
22
# GPLv2 / GPLv3
33
# Copyright (c) 2024-present Xianpeng Shen <[email protected]>.
44
# GPLv2 / GPLv3

0 commit comments

Comments
 (0)