Skip to content

Commit

Permalink
Fix python-semver#126: Provide tox.ini for documentation
Browse files Browse the repository at this point in the history
* Add "docs" target to run sphinx and output HTML
* Provide docs/requirements.txt file
* Fix typo in docs/conf.py
  • Loading branch information
tomschr committed Mar 24, 2019
1 parent 344ea89 commit d5a7fa1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,6 @@
]


interpshinx_mapping = {
intersphinx_mapping = {
"matplotlib": ('http://matplotlib.org', None),
}
3 changes: 3 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# requirements file for documentation
sphinx
sphinx_rtd_theme
6 changes: 6 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,9 @@ setenv =
basepython = python3
deps = flake8
commands = flake8

[testenv:docs]
basepython = python3
deps = -r{toxinidir}/docs/requirements.txt
skip_install = true
commands = sphinx-build {posargs:-E} -b html docs dist/docs

0 comments on commit d5a7fa1

Please sign in to comment.