Skip to content
Merged
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
5 changes: 5 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"sphinx_design",
"autoapi.extension",
"notfound.extension",
"sphinxext.rediraffe",
]

# Add any paths that contain templates here, relative to this directory.
Expand Down Expand Up @@ -86,6 +87,10 @@
# Define the canonical URL using custom domain on Read the Docs
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")

# Redirects for moved/deleted pages, handled by sphinxext-rediraffe. Paths are relative to
# the docs folder, e.g. "user_guide/examples/tutorial_old.ipynb": "user_guide/examples/tutorial_new.ipynb"
rediraffe_redirects = {}

# Tell Jinja2 templates the build is running on Read the Docs
if os.environ.get("READTHEDOCS", "") == "True":
if "html_context" not in globals():
Expand Down
2 changes: 2 additions & 0 deletions docs/development/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ See below for more Pixi commands relevant to development.
- `pixi run docs-watch` - Build and auto-rebuild documentation when files change (useful for live editing)
- `pixi run docs-linkcheck` - Check for broken links in the documentation

If you move or delete a documentation page, add an entry to `rediraffe_redirects` in `docs/conf.py` so that existing links to the page keep working.

**Code quality**

- `pixi run lint` - Run pre-commit hooks on all files (includes formatting, linting, and other code quality checks)
Expand Down
1 change: 1 addition & 0 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ sphinxcontrib-mermaid = "*"
sphinx-design = "*"
sphinx-autoapi = "*"
sphinx-notfound-page = "*"
sphinxext-rediraffe = "*"
vale = "*"

[feature.docs.tasks]
Expand Down
Loading