Skip to content

Commit

Permalink
Fix docs builds
Browse files Browse the repository at this point in the history
  • Loading branch information
sloria committed Feb 15, 2019
1 parent 9220a58 commit 81402e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0, os.path.abspath('..'))
sys.path.insert(0, os.path.abspath(os.path.join('..', 'src')))
import marshmallow # noqa
from marshmallow.compat import OrderedDict
from marshmallow.compat import OrderedDict # noqa

# -- General configuration -----------------------------------------------------

Expand Down
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ commands = pytest --ignore=tests/test_py3/ {posargs}
[testenv:docs]
deps = -rdocs/requirements.txt
extras =
skip_install = true
commands = sphinx-build docs/ docs/_build {posargs}

; Below tasks are for development only (not run in CI)
Expand All @@ -27,7 +28,8 @@ deps =
-rdocs/requirements.txt
sphinx-autobuild
extras =
commands = sphinx-autobuild --open-browser docs/ docs/_build {posargs} -z marshmallow
skip_install = true
commands = sphinx-autobuild --open-browser docs/ docs/_build {posargs} -z src/marshmallow

[testenv:watch-readme]
deps = restview
Expand Down

0 comments on commit 81402e3

Please sign in to comment.