-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpixi.toml
More file actions
31 lines (25 loc) · 1.19 KB
/
pixi.toml
File metadata and controls
31 lines (25 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
[workspace]
name = "sphinx-rustdoc-postprocess"
channels = ["conda-forge"]
platforms = ["linux-64", "osx-64", "osx-arm64", "win-64"]
[dependencies]
pandoc = ">=3"
python = ">=3.10"
uv = ">=0.7"
[tasks]
sync = "uv sync --all-groups"
test = { cmd = "uv run pytest", depends-on = ["sync"] }
lint = { cmd = "uv run ruff check src tests", depends-on = ["sync"] }
format = { cmd = "uv run ruff format src tests", depends-on = ["sync"] }
[feature.docs]
platforms = ["linux-64"]
[feature.docs.dependencies]
emacs = ">=30.2,<31"
[feature.docs.tasks]
gen-readme = { cmd = "emacs --batch readme_src.org --eval '(require (quote ox-md))' --eval '(org-md-export-to-markdown)' && mv readme_src.md README.md", description = "Export readme_src.org to README.md" }
mkrst = { cmd = "cd docs && emacs --batch --load export.el", description = "Export org-mode docs to RST" }
sphinxbld = { cmd = "uv run --group docs sphinx-build -b html docs/source docs/build/html", depends-on = ["sync"], description = "Build Sphinx HTML docs" }
docbld = { depends-on = ["mkrst", "sphinxbld"], description = "Full documentation build" }
docs = { depends-on = ["docbld"], description = "Alias for docbld" }
[environments]
docs = { features = ["docs"]}