Skip to content

Commit

Permalink
Merge pull request #161 from lsst-sqre/tickets/DM-39580
Browse files Browse the repository at this point in the history
DM-39580: Add sphinxcontrib-jquery
  • Loading branch information
jonathansick authored Jun 7, 2023
2 parents 62de299 + f8f77ed commit d99802c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- Drop support for Python 3.7.
- Drop support for Sphinx versions earlier than 5.
- Temporarily pin pydata-sphinx-theme < 0.13 on account of a change in logo path checking (affects user guide projects).
- Use [sphinxcontrib-jquery](https://github.com/sphinx-contrib/jquery/) to ensure jQuery is available for user guide and Pipelines documentation builds.
- Add a new `sphinx.exclude` field to `documenteer.toml` to list files for exclusion from a documentation project.
More files and directories like `.venv` and `requirements.txt` are now excluded, as well.
- New support for embedding OpenAPI documentation in a Redoc-generated subsite. The `documenteer.ext.openapi` extension can call a user-specified function to generate and install the OpenAPI specification the Sphinx source. For user guide projects, the `[project.openapi]` table in `documenteer.toml` can be used to configure both the `documenteer.ext.openapi` and `sphinxcontrib-redoc` extensions. [sphinxcontrib-redoc](https://sphinxcontrib-redoc.readthedocs.io/en/stable/) is installed and configured by default for all Rubin user guide projects (projects that use `documenteer.conf.guide`).
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ guide = [
"sphinxcontrib-mermaid",
"sphinxext-opengraph",
"sphinxcontrib-redoc",
"sphinxcontrib-jquery",
]
technote = [
# Theme and extensions for technotes
Expand All @@ -87,6 +88,7 @@ pipelines = [
"sphinx-prompt",
"sphinxcontrib-doxylink",
"sphinx-click",
"sphinxcontrib-jquery",
]

[project.urls]
Expand Down
1 change: 1 addition & 0 deletions src/documenteer/conf/guide.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@
# ============================================================================

extensions = [
"sphinxcontrib.jquery",
"myst_parser",
"sphinx_copybutton",
"sphinx_design",
Expand Down
1 change: 1 addition & 0 deletions src/documenteer/conf/pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@
print(f"Error getting sphinx-jinja version: {str(e)}")

extensions = [
"sphinxcontrib.jquery",
"sphinx.ext.autodoc",
"sphinx.ext.doctest",
"sphinx.ext.intersphinx",
Expand Down

0 comments on commit d99802c

Please sign in to comment.