Skip to content

Commit

Permalink
Merge pull request #223 from Gallaecio/fix-readthedocs-build
Browse files Browse the repository at this point in the history
Fix the ReadTheDocs build and reproduce with Tox
  • Loading branch information
wRAR committed Jul 16, 2021
2 parents e8a448c + 22a1fa4 commit 56bec18
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'

suppress_warnings = ['epub.unknown_project_files']


# -- Options for HTML output -------------------------------------------

Expand Down
4 changes: 4 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,9 @@ deps = -rdocs/requirements.txt
[testenv:docs]
changedir = {[docs]changedir}
deps = {[docs]deps}
# No -W in LaTeX, because ReadTheDocs does not use it either, and there are
# image conversion warnings that cannot be addressed in ReadTheDocs
commands =
sphinx-build -W -b html . {envtmpdir}/html
sphinx-build -b latex . {envtmpdir}/latex
sphinx-build -W -b epub . {envtmpdir}/epub

0 comments on commit 56bec18

Please sign in to comment.