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
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ build:
build:
html:
- pixi run -e docs python ci/scripts/download-all-tutorial-datasets.py
- pixi run -e docs sphinx-build -T -b html docs $READTHEDOCS_OUTPUT/html
- SPHINXOPTS='-T' BUILDDIR=$READTHEDOCS_OUTPUT/html pixi run docs-clean
sphinx:
configuration: docs/conf.py
7 changes: 7 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SPHINXATUOBUILD = sphinx-autobuild
PAPER =
BUILDDIR = _build

Expand All @@ -24,6 +25,7 @@ I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " html to make standalone HTML files"
@echo " livehtml to make HTML files and serve with rebuilding on a server"
@echo " dirhtml to make HTML files named index.html in directories"
@echo " singlehtml to make a single large HTML file"
@echo " pickle to make pickle files"
Expand Down Expand Up @@ -51,6 +53,7 @@ help:
clean:
rm -rf $(BUILDDIR)/*
rm -rf .jupyter_cache
find . -name "*.parquet" -delete

html:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
Expand Down Expand Up @@ -191,3 +194,7 @@ pseudoxml:
$(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
@echo
@echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."

livehtml:
@echo "$(SPHINXATUOBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html"
$(SPHINXATUOBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
11 changes: 8 additions & 3 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,14 @@ sphinx-design = "*"
sphinx-autoapi = "*"

[feature.docs.tasks]
docs = { cmd = "sphinx-build docs docs/_build", description = "Build the documentation." }
docs-watch = { cmd = "sphinx-autobuild docs docs/_build", description = "Build and auto-rebuild the documentation on changes." }
docs-linkcheck = { cmd = "sphinx-build -b linkcheck docs/ docs/_build/linkcheck", description = "Verify all links in documentation don't 404." }
docs-only-clean = { cmd = "make clean", cwd = "docs", description = "Cleans the documentation folder of build artifacts." }
docs = { cmd = "make html", cwd = "docs", description = "Build the documentation." }
docs-clean = { depends-on = [
{ task = "docs-only-clean" },
{ task = "docs" },
], description = "Build the documentation from a clean docs folder." }
docs-watch = { cmd = "make livehtml", cwd = "docs", description = "Build and auto-rebuild the documentation on changes." }
docs-linkcheck = { cmd = "make linkcheck", cwd = "docs", description = "Verify all links in documentation don't 404." }

[feature.pre-commit.dependencies]
pre_commit = "*"
Expand Down
Loading