Skip to content

Commit 80c76fb

Browse files
committed
fixup! feat: add .readthedocs.yaml (#80)
1 parent 60cbc14 commit 80c76fb

File tree

6 files changed

+28
-7
lines changed

6 files changed

+28
-7
lines changed

.readthedocs.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ version: 2
88
build:
99
os: ubuntu-24.04
1010
tools:
11-
python: "3.13"
11+
python: "3.12"
1212

1313
# Build documentation in the "docs/" directory with Sphinx
1414
sphinx:
@@ -17,6 +17,6 @@ sphinx:
1717
# Optionally, but recommended,
1818
# declare the Python requirements required to build your documentation
1919
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
20-
# python:
21-
# install:
22-
# - requirements: docs/requirements.txt
20+
python:
21+
install:
22+
- requirements: docs/requirements.txt

docs/AUTHOR.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Author
2+
13
Author can be reached by sending e-mail to <[email protected]>.
24

35
Include "gitstats" in the subject or prepare to battle the spam filters.

docs/TODO.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# TODO
2+
13
[]
24
- cleanup: use defaultdict(int) for counting dicts instead of foo[x] = foo.get(x, 0) + 1
35
- not supported in python 2.4 - do any users use python 2.4?

docs/conf.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,12 @@
77
author = "Xianpeng Shen"
88
copyright = "2024, Xianpeng Shen"
99
extensions = [
10-
"sphinx.ext.autodoc",
11-
"sphinx.ext.napoleon",
12-
"sphinx.ext.viewcode",
10+
"myst_parser",
1311
]
12+
13+
source_suffix = {
14+
".rst": "restructuredtext",
15+
".md": "markdown",
16+
}
17+
1418
html_theme = "sphinx_rtd_theme"

docs/index.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Welcome to GitStats documentation!
2+
==================================
3+
4+
5+
.. include:: ../README.md
6+
:parser: myst_parser.sphinx_
7+
8+
.. toctree::
9+
:hidden:
10+
11+
AUTHOR.md
12+
TODO.md

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
myst-parser
12
# Defining the exact version will make sure things don't break
23
sphinx==5.3.0
34
sphinx_rtd_theme==1.1.1

0 commit comments

Comments
 (0)