From aafadc57f1a132acdedbd41a5dbe187e015f07c7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 12 Mar 2026 06:15:38 +0000 Subject: [PATCH 1/3] Initial plan From fce2dc060dcbe1e410e561582be35c46284b95d7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 12 Mar 2026 06:18:32 +0000 Subject: [PATCH 2/3] Add experimental build with rinohtype as PDF builder alternative Co-authored-by: m-aciek <9288014+m-aciek@users.noreply.github.com> --- .github/workflows/build.yaml | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 273936f..3fd2243 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -154,8 +154,31 @@ jobs: name: docs-pdf-a4.tar.bz2 path: ./Doc/dist/python-${{ github.event.inputs.dist_version }}-docs-pdf-a4.tar.bz2 if-no-files-found: ignore + build-pdf-rinoh: + runs-on: ubuntu-latest + continue-on-error: true + steps: + - uses: actions/setup-python@master + with: + python-version: 3 + - uses: actions/checkout@master + with: + repository: ${{ github.event.inputs.repository }} + ref: ${{ github.event.inputs.reference }} + - run: make venv + working-directory: ./Doc + - run: ./venv/bin/pip install rinohtype + working-directory: ./Doc + - run: ./venv/bin/sphinx-build -b rinoh . build/rinoh + working-directory: ./Doc + - uses: actions/upload-artifact@master + if: always() + with: + name: docs-pdf-rinoh + path: ./Doc/build/rinoh/ + if-no-files-found: ignore publish: - needs: [build-html, build-text, build-texinfo, build-epub, build-pdf] + needs: [build-html, build-text, build-texinfo, build-epub, build-pdf, build-pdf-rinoh] if: ${{ !cancelled() && github.event.inputs.publish == 'true' }} runs-on: ubuntu-latest steps: @@ -185,13 +208,15 @@ jobs: cp artifacts/docs-texinfo.tar.bz2/python-${{ github.event.inputs.dist_version }}-docs-texinfo.tar.bz2 gh-pages/3/ 2>/dev/null || true # EPUB cp artifacts/docs.epub/python-${{ github.event.inputs.dist_version }}-docs.epub gh-pages/3/ 2>/dev/null || true + # PDF (rinohtype, experimental) + cp artifacts/docs-pdf-rinoh/*.pdf gh-pages/3/ 2>/dev/null || true - name: Commit generated archives id: commit run: | cd gh-pages git config user.name github-actions git config user.email github-actions@github.com - git add 3/python-${{ github.event.inputs.dist_version }}-docs-* || true + git add 3/python-${{ github.event.inputs.dist_version }}-docs-* 3/*.pdf || true if git diff --cached --quiet; then echo "No documentation archives to commit" echo "has_changes=false" >> $GITHUB_OUTPUT From 648def091ec765bda6ed2f671ef57f9f29f9c75a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 12 Mar 2026 06:33:58 +0000 Subject: [PATCH 3/3] Install rinohtype from GitHub URL instead of PyPI Co-authored-by: m-aciek <9288014+m-aciek@users.noreply.github.com> --- .github/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 3fd2243..a29cde6 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -167,7 +167,7 @@ jobs: ref: ${{ github.event.inputs.reference }} - run: make venv working-directory: ./Doc - - run: ./venv/bin/pip install rinohtype + - run: ./venv/bin/pip install git+https://github.com/brechtm/rinohtype working-directory: ./Doc - run: ./venv/bin/sphinx-build -b rinoh . build/rinoh working-directory: ./Doc