From 1b5d7dbb202095ddfdffbdda8441f3484fc8b910 Mon Sep 17 00:00:00 2001 From: Leo Galambos Date: Mon, 10 Aug 2026 23:25:37 +0200 Subject: [PATCH] fix(docs): preserve Python pages alongside package index --- .github/workflows/pages.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 9c39517..d3a6aea 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -327,7 +327,10 @@ jobs: run: | set -euo pipefail mkdocs build --strict --config-file build/mkdocs/mkdocs.yml - rsync -a --delete --exclude '.git' --exclude '.git/' --exclude 'builds/' --exclude 'python/' build/mkdocs-site/ .gh-pages/ + rsync -a --delete \ + --exclude '.git' --exclude '.git/' \ + --exclude 'builds/' --exclude 'python/simple/' \ + build/mkdocs-site/ .gh-pages/ mkdir -p .gh-pages/builds cp build/mkdocs-site/builds/index.html .gh-pages/builds/index.html cat > .gh-pages/.nojekyll <&2 @@ -391,7 +394,7 @@ jobs: shell: bash run: | set -euo pipefail - test ! -e candidate/python + test ! -e candidate/python/simple test ! -e candidate/.git if find candidate -type l -print -quit | grep -q .; then echo 'Publication candidate contains a symbolic link.' >&2 @@ -399,7 +402,8 @@ jobs: fi rsync -a --delete \ --exclude '.git' --exclude '.git/' \ - --exclude 'python' --exclude 'python/' candidate/ pages/ + --exclude 'python/simple' --exclude 'python/simple/' \ + candidate/ pages/ cd pages git config user.name "github-actions[bot]" git config user.email "41898282+github-actions[bot]@users.noreply.github.com"