Skip to content

Commit 33c348b

Browse files
authored
Merge pull request #710 from ceache/feat/docs
chore(core): Fix documentation build
2 parents 5225b3e + e24e120 commit 33c348b

File tree

4 files changed

+34
-6
lines changed

4 files changed

+34
-6
lines changed

.readthedocs.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# .readthedocs.yaml
2+
# Read the Docs configuration file
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
# Required
6+
version: 2
7+
8+
# Set the version of Python and other tools you might need
9+
build:
10+
os: ubuntu-22.04
11+
tools:
12+
python: "3.7"
13+
# You can also specify other tool versions:
14+
# nodejs: "19"
15+
# rust: "1.64"
16+
# golang: "1.19"
17+
18+
# Build documentation in the docs/ directory with Sphinx
19+
sphinx:
20+
configuration: docs/conf.py
21+
22+
# If using Sphinx, optionally build your docs in additional formats such as PDF
23+
formats: []
24+
# - pdf
25+
26+
# Optionally declare the Python requirements required to build your docs
27+
python:
28+
install:
29+
- method: pip
30+
path: .
31+
extra_requirements:
32+
- docs

constraints.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,3 @@ flake8==5.0.2
55
objgraph==3.5.0
66
pytest==6.2.5
77
pytest-cov==3.0.0
8-
9-
# Documentation building.
10-
Jinja2==2.7.3
11-
Pygments==1.6
12-
Sphinx==1.2.2
13-
docutils==0.12

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def __getattr__(self, name):
4242
"sphinx.ext.autodoc",
4343
"sphinx.ext.doctest",
4444
"sphinx.ext.viewcode",
45+
"sphinx_autodoc_typehints",
4546
]
4647

4748
# Add any paths that contain templates here, relative to this directory.

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ sasl =
7171

7272
docs =
7373
Sphinx>=1.2.2
74+
sphinx-autodoc-typehints>=1
7475

7576
typing =
7677
mypy>=0.991

0 commit comments

Comments
 (0)