Skip to content

Commit f24fc8c

Browse files
authored
Merge pull request #562 from PythonCharmers/docs-build
Add docs building to tox.ini
2 parents f8c4c7d + e55f915 commit f24fc8c

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

Diff for: .github/CONTRIBUTING.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Contributing
2+
3+
## Build documentation locally
4+
5+
Using tox:
6+
```shell
7+
$ tox -e docs
8+
```

Diff for: docs/conf.py

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
from __future__ import absolute_import, print_function
1515
import sys, os
16-
from future import __version__
1716
import sphinx_bootstrap_theme
1817

1918
# If extensions (or modules to document with autodoc) are in another directory,

Diff for: tox.ini

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
[tox]
2-
envlist = py26,py27,py33,py34,py35,py36,py37
2+
envlist =
3+
py{26,27,33,34,35,36,37},
4+
docs
35

46
[testenv]
57
deps =
68
pytest
79
unittest2
810
py26: importlib
911
commands = pytest {posargs}
12+
13+
[testenv:docs]
14+
deps =
15+
sphinx
16+
sphinx_bootstrap_theme
17+
commands = sphinx-build docs build

0 commit comments

Comments
 (0)