Enable sphinx parallelism also when building markdown release notes

We get a warning about sphinx_markdown_builder not being
parallelizable. Fix that.

Ref: https://github.com/liran-funaro/sphinx-markdown-builder/pull/38
This commit is contained in:
Johannes Altmanninger
2025-09-25 11:54:51 +02:00
parent 7b495497d7
commit e6541c5c93
2 changed files with 4 additions and 4 deletions

View File

@@ -6,5 +6,6 @@ permissions:
runs:
using: "composite"
steps:
- run: pip install sphinx-markdown-builder==0.6.8
- run: |
pip install git+https://github.com/krobelus/sphinx-markdown-builder@ae8cf577bfb263dcda509ad449a331b9b74664fa
shell: bash

View File

@@ -33,10 +33,9 @@ changelog_for_this_version=$(awk <"$workspace_root/CHANGELOG.rst" '
printf %s "$changelog_for_this_version" |
sed -e '$s/^----*$//' >"$relnotes_tmp/fake-workspace"/CHANGELOG.rst
# Use "-j 1" because sphinx-markdown-builder is not marked concurrency-safe.
sphinx-build >&2 -j 1 \
sphinx-build >&2 -j auto \
-W -E -b markdown -c "$workspace_root/doc_src" \
-d "$relnotes_tmp/doctree" "$relnotes_tmp/fake-workspace/doc_src" $relnotes_tmp/out \
-d "$relnotes_tmp/doctree" "$relnotes_tmp/fake-workspace/doc_src" "$relnotes_tmp/out" \
-D markdown_http_base="https://fishshell.com/docs/$minor_version" \
-D markdown_uri_doc_suffix=".html" \
"$@"