Skip to content

Commit

Permalink
Tweak doc output path.
Browse files Browse the repository at this point in the history
  • Loading branch information
jtv committed Mar 30, 2024
1 parent b7cdeb9 commit a8772e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ build:

# Build documentation in the docs/ directory with Sphinx
sphinx:
# builder: html
builder: dirhtml
builder: html
configuration: doc/conf.py
fail_on_warning: true

Expand Down
4 changes: 3 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ def read_version():
# has readthedocs copy the full generated HTML tree to the output directory.
#
# Problem is, that doesn't seem to be working now. This needs debugging.
html_extra_path = [str(Path(__file__).parent.absolute() / "html")]
html_extra_path = [
str(Path(os.environ.get("READTHEDOCS_OUTPUT", '.')) / "html")
]

# -- Options for HTMLHelp output ------------------------------------------

Expand Down

0 comments on commit a8772e0

Please sign in to comment.