Skip to content

Commit

Permalink
Build docs within uv for full access to python classes and methods
Browse files Browse the repository at this point in the history
Also fix an issue with mermaid + sphinx: mermaid-js/mermaid#5954
  • Loading branch information
mangelajo committed Oct 11, 2024
1 parent ee6a9bf commit 0f14697
Show file tree
Hide file tree
Showing 3 changed files with 334 additions and 238 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ EXAMPLE_TARGETS = $(subst examples/,example-,$(wildcard examples/*))

default: build

docs:
cd docs && make html
docs: sync
cd docs && uv run make html

watch-docs:
sphinx-autobuild docs/source docs/build/html
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dependencies = [

[project.optional-dependencies]
docs = [
"sphinx>=8.0.2",
"sphinx<8.1.0",
"myst-parser>=4.0.0",
"sphinxcontrib-mermaid>=0.9.2",
"furo>=2024.8.6",
Expand Down
Loading

0 comments on commit 0f14697

Please sign in to comment.