Skip to content

Commit 361eaca

Browse files
committed
gh-75459: Doc: Tell sphinx to run graphviz
1 parent bc32398 commit 361eaca

File tree

6 files changed

+130
-339
lines changed

6 files changed

+130
-339
lines changed

.github/workflows/reusable-docs.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ jobs:
8080
runs-on: ubuntu-latest
8181
timeout-minutes: 60
8282
steps:
83+
- name: 'Install Dependencies'
84+
run: |
85+
sudo apt-get update &&
86+
sudo env DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
87+
graphviz \
88+
;
8389
- uses: actions/checkout@v4
8490
- name: 'Set up Python'
8591
uses: actions/setup-python@v5

.readthedocs.yml

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,26 @@ build:
1111
os: ubuntu-24.04
1212
tools:
1313
python: "3"
14+
apt_packages:
15+
- graphviz
16+
jobs:
17+
post_checkout:
18+
# https://docs.readthedocs.io/en/stable/build-customization.html#cancel-build-based-on-a-condition
19+
#
20+
# Cancel building pull requests when there aren't changes in the Doc directory.
21+
#
22+
# If there are no changes (git diff exits with 0) we force the command to return with 183.
23+
# This is a special exit code on Read the Docs that will cancel the build immediately.
24+
- |
25+
if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && [ "$(git diff --quiet origin/main -- Doc/ .readthedocs.yml; echo $?)" -eq 0 ];
26+
then
27+
echo "No changes to Doc/ - exiting the build.";
28+
exit 183;
29+
fi
1430
15-
commands:
16-
# https://docs.readthedocs.io/en/stable/build-customization.html#cancel-build-based-on-a-condition
17-
#
18-
# Cancel building pull requests when there aren't changes in the Doc directory.
19-
#
20-
# If there are no changes (git diff exits with 0) we force the command to return with 183.
21-
# This is a special exit code on Read the Docs that will cancel the build immediately.
22-
- |
23-
if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && [ "$(git diff --quiet origin/main -- Doc/ .readthedocs.yml; echo $?)" -eq 0 ];
24-
then
25-
echo "No changes to Doc/ - exiting the build.";
26-
exit 183;
27-
fi
28-
29-
- asdf plugin add uv
30-
- asdf install uv latest
31-
- asdf global uv latest
32-
- make -C Doc venv html
33-
- mkdir _readthedocs
34-
- mv Doc/build/html _readthedocs/html
35-
31+
- asdf plugin add uv
32+
- asdf install uv latest
33+
- asdf global uv latest
34+
- make -C Doc venv html
35+
- mkdir _readthedocs
36+
- mv Doc/build/html _readthedocs/html

Doc/c-api/lifecycle.dot

Lines changed: 0 additions & 96 deletions
This file was deleted.

Doc/c-api/lifecycle.dot.svg

Lines changed: 0 additions & 220 deletions
This file was deleted.

0 commit comments

Comments
 (0)