Skip to content

Commit 1648af4

Browse files
committed
build: rtd: use build.jobs instead of build.commands
The build.command does not support apt_package which makes the whole build process complex. RTD also recommends to use build.jobs instead. Signed-off-by: Daniel Wagner <[email protected]>
1 parent 1979bce commit 1648af4

2 files changed

Lines changed: 27 additions & 16 deletions

File tree

.readthedocs.yaml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,21 @@
22
version: 2
33

44
build:
5-
os: ubuntu-lts-latest
6-
image: ghcr.io/linux-nvme/debian:latest
5+
os: ubuntu-24.04
76
tools:
8-
python: "3.11"
7+
python: "3.14"
8+
apt_packages:
9+
- meson
10+
- python3-lxml
11+
- docbook-xsl
12+
- xsltproc
13+
- pandoc
14+
jobs:
15+
build:
16+
html:
17+
- scripts/build.sh docs
18+
- mkdir -p $READTHEDOCS_OUTPUT/html/
19+
- cp .build-ci/*.html $READTHEDOCS_OUTPUT/html/
20+
- mv $READTHEDOCS_OUTPUT/html/nvme.html $READTHEDOCS_OUTPUT/html/index.html
921

10-
commands:
11-
- scripts/build.sh docs
12-
- mkdir -p $READTHEDOCS_OUTPUT/html/
13-
- cp .build-ci/*.html > $READTHEDOCS_OUTPUT/html/
14-
- mv $READTHEDOCS_OUTPUT/html/nvme.html $READTHEDOCS_OUTPUT/html/index.html
15-
16-
formats: []
22+
formats: [html]

libnvme/.readthedocs.yaml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,18 @@
22
version: 2
33

44
build:
5-
os: ubuntu-lts-latest
6-
image: ghcr.io/linux-nvme/debian:latest
5+
os: ubuntu-24.04
76
tools:
8-
python: "3.11"
9-
10-
commands:
11-
- scripts/build.sh rst_docs
7+
python: "3.14"
8+
apt_packages:
9+
- meson
10+
- python3-lxml
11+
- docbook-xsl
12+
- xsltproc
13+
- pandoc
14+
jobs:
15+
pre_build:
16+
- scripts/build.sh rst_docs
1217

1318
sphinx:
1419
configuration: .build-ci/libnvme/doc/conf.py

0 commit comments

Comments
 (0)