Skip to content

Commit

Permalink
add tox env for docs
Browse files Browse the repository at this point in the history
also, try to fix autodoc generation on readthedocs
  • Loading branch information
jugmac00 committed Apr 4, 2021
1 parent b23d9ec commit e704e35
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ htmlcov/
venv-wheel/
venv-sdist/
build/
_build/
dist/

# ide
Expand Down
3 changes: 2 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ include *.toml
include tox.ini
recursive-include tests *.py

recursive-include docs *.txt
include docs/Makefile
include docs/conf.py
include docs/index.rst
include docs/make.bat

recursive-include src *.yaml
2 changes: 2 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Sphinx==3.5.3
sphinx-rtd-theme==0.5.1
11 changes: 11 additions & 0 deletions src/.readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# File: .readthedocs.yaml

version: 2

sphinx:
configuration: docs/conf.py

python:
version: 3.8
install:
- requirements: docs/requirements.txt
8 changes: 8 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ envlist =
pre-commit,
mypy,
coverage,
docs,

[testenv]
extras = test
Expand Down Expand Up @@ -52,3 +53,10 @@ python =
3.7: py37
3.8: py38
3.9: py39, pre-commit, mypy, coverage


[testenv:docs]
deps =
sphinx
sphinx_rtd_theme
commands = sphinx-build -b html docs _build/html

0 comments on commit e704e35

Please sign in to comment.