Skip to content

Commit e366c77

Browse files
committed
Add documentation task
1 parent 6fc7230 commit e366c77

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

pixi.toml

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,22 @@ The preset can be used to test an older micro architecture on a machine (e.g. \
122122
testing SSE4.2 on a AVX2 machine).\
123123
"""
124124

125+
# A feature and environment to build documentation
126+
[feature.doc.dependencies]
127+
doxygen = "*"
128+
sphinx = "*"
129+
breathe = "*"
130+
sphinx_rtd_theme = "*"
131+
make = "*"
132+
133+
[feature.doc.tasks.doc]
134+
cmd = "make html"
135+
cwd = "docs/"
136+
description = "Build the HTML documentation"
137+
138+
[environments.doc]
139+
features = ["lib", "doc"]
140+
125141
# A dev feature and environment that contains LSP, formatters etc.
126142
[feature.dev.dependencies]
127143
taplo = "*"
@@ -161,11 +177,6 @@ description = "Format the TOML files."
161177
[feature.dev.tasks]
162178
fmt = { depends-on = ["fmt-clang", "fmt-taplo"] }
163179

164-
[environments]
165-
dev = { features = [
166-
"build-tools",
167-
"lib",
168-
"clang-base",
169-
"dev",
170-
"cmd",
171-
], solve-group = "default" }
180+
[environments.dev]
181+
features = ["build-tools", "lib", "clang-base", "dev", "cmd"]
182+
solve-group = "default"

0 commit comments

Comments
 (0)