Skip to content

Commit 3d0fac2

Browse files
committed
pixi : add doc feature and task
workflows: use pixi doc task
1 parent 427555f commit 3d0fac2

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/gh-pages.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ jobs:
3636
- name: Build documentation
3737
shell: bash -l {0}
3838
run: |
39-
pixi run configure
40-
cmake --build build --config Release --target doc
39+
pixi run doc
4140
4241
- name: Upload to GitHub pages
4342
uses: actions/upload-pages-artifact@v3

pixi.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ configure = { cmd = [
5454
] }
5555
build = { cmd = "cmake --build build --target all", depends-on = ["configure"] }
5656
clean = { cmd = "rm -rf build" }
57+
doc = { cmd = "cmake --build build --target doc", depends-on = ["configure"]}
5758
test = { cmd = "ctest --test-dir build --output-on-failure", depends-on = [
5859
"build",
5960
] }
@@ -102,6 +103,10 @@ platforms = ["linux-64"]
102103
activation = { scripts = ["development/pixi/activation_clang.sh"] }
103104
dependencies = { clangxx = "*" }
104105

106+
[feature.doc.dependencies]
107+
doxygen = ">=1.13"
108+
graphviz = ">=12"
109+
105110
[environments]
106111
default = { features = ["py312"], solve-group = "py312" }
107112
clang = { features = ["clang", "py312"] }
@@ -112,12 +117,14 @@ openmp = { features = ["openmp", "py312"], solve-group = "py312" }
112117
tracy = { features = ["tracy", "py312"], solve-group = "py312" }
113118
py310 = { features = ["py310"], solve-group = "py310" }
114119
all = { features = [
120+
"doc",
115121
"pinocchio",
116122
"crocoddyl",
117123
"openmp",
118124
"py312",
119125
], solve-group = "py312" }
120126
all-py310 = { features = [
127+
"doc",
121128
"pinocchio",
122129
"crocoddyl",
123130
"openmp",

0 commit comments

Comments
 (0)