Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/_extensions/jsdoc_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

Configuration in ``conf.py``::

jsdoc_html_dir = "../../public/docs" # relative to conf.py
jsdoc_html_dir = "../../public/docs" # relative to the Sphinx source dir
"""

import posixpath
Expand Down Expand Up @@ -57,7 +57,7 @@
def _resolve_jsdoc_dir(config, env):
"""Return the resolved Path to the JSDoc HTML output directory."""
rel = config.jsdoc_html_dir or "../../public/docs"
return Path(env.app.confdir, rel).resolve()
return Path(env.srcdir, rel).resolve()
Comment thread
dgarcia360 marked this conversation as resolved.


def _parse_nav_index(jsdoc_dir):
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

# -- Options for jsdoc_content extension ----------------------------

# Path to JSDoc HTML output (relative to this conf.py)
# Path to JSDoc HTML output (relative to the Sphinx source dir)
jsdoc_html_dir = "../../public/docs"

# GitHub repository for source links (e.g. "Source: client.js, line 44")
Expand Down
Loading