File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# SPDX-License-Identifier: Apache-2.0
2-
32version : 2
43
54build :
65 os : ubuntu-24.04
76 tools :
8- python : " 3"
7+ python : " 3.11"
8+
99 apt_packages :
1010 - meson
1111 - python3-lxml
1212 - docbook-xsl
1313 - xsltproc
1414 - pandoc
15- jobs :
16- post_install :
17- - pip3 install lxml
18- pre_build :
19- - meson setup .build -Ddocs=rst -Ddocs-build=true -Dnvme=disabled -Dlibnvme=disabled -Dpython=disabled || cat .build/meson-logs/meson-log.txt
20- - meson compile -C .build
2115
22- sphinx :
23- configuration : .build/libnvme/doc/conf.py
16+ commands :
17+ - pip install lxml
18+ - scripts/build.sh docs
19+ - cp .build-ci/Documentation/nvme.html .build-ci/Documentation/index.html
20+
21+ output : .build-ci/Documentation
22+
23+ formats : []
Original file line number Diff line number Diff line change 1+ # SPDX-License-Identifier: Apache-2.0
2+
3+ version : 2
4+
5+ build :
6+ os : ubuntu-24.04
7+ tools :
8+ python : " 3.11"
9+
10+ apt_packages :
11+ - meson
12+ - python3-lxml
13+ - docbook-xsl
14+ - xsltproc
15+ - pandoc
16+
17+ commands :
18+ - pip install lxml
19+ - scripts/build.sh rst_docs
20+
21+ sphinx :
22+ configuration : .build-ci/libnvme/doc/conf.py
Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ usage() {
2323 echo " cross use cross toolchain to build"
2424 echo " coverage build coverage report"
2525 echo " distro build libnvme and nvme-cli separately"
26- echo " docs build documentation"
26+ echo " docs build all documentation"
27+ echo " rst_docs build rst documentation only"
2728 echo " static build a static binary"
2829 echo " libnvme build only libnvme"
2930 echo " "
@@ -129,6 +130,14 @@ config_meson_docs() {
129130 " ${BUILDDIR} "
130131}
131132
133+ config_meson_rst_docs () {
134+ CC=" ${CC} " " ${MESON} " setup \
135+ -Ddocs=rst \
136+ -Ddocs-build=true \
137+ --prefix=/tmp/usr \
138+ " ${BUILDDIR} "
139+ }
140+
132141config_meson_static () {
133142 CC=" ${CC} " " ${MESON} " setup \
134143 --werror \
@@ -146,8 +155,8 @@ config_meson_libnvme() {
146155 CC=" ${CC} " " ${MESON} " setup \
147156 --werror \
148157 --buildtype=" ${BUILDTYPE} " \
149- -Dnvme=disabled \
150- -Dlibnvme=enabled \
158+ -Dnvme=disabled \
159+ -Dlibnvme=enabled \
151160 " ${BUILDDIR} "
152161}
153162
You can’t perform that action at this time.
0 commit comments