From 484dfc4911fd64f1a33d15b903b3a437e67cc8a6 Mon Sep 17 00:00:00 2001 From: Void Date: Mon, 9 Nov 2026 22:53:19 +0000 Subject: [PATCH 1/5] quartz-pages: Pages steps and deploy job run only on the GitHub mirror Co-Authored-By: Claude Sonnet 5.5 --- .github/workflows/quartz-pages.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/quartz-pages.yml b/.github/workflows/quartz-pages.yml index 4baf812..c15cbdc 100644 --- a/.github/workflows/quartz-pages.yml +++ b/.github/workflows/quartz-pages.yml @@ -33,7 +33,11 @@ jobs: repository: GameCult/GameCult-Quartz path: GameCult-Quartz + # Pages actions exist only on GitHub: the forge runner resolves actions + # from data.forgejo.org, which has no actions/configure-pages, so the job + # failed there. Build always; touch Pages only on the GitHub mirror. - name: Configure Pages + if: github.server_url == 'https://github.com' uses: actions/configure-pages@v5 - name: Setup Node @@ -56,11 +60,13 @@ jobs: --outputDir "${{ inputs.output-dir }}" - name: Upload Pages artifact + if: github.server_url == 'https://github.com' uses: actions/upload-pages-artifact@v3 with: path: ${{ inputs.output-dir }} deploy: + if: github.server_url == 'https://github.com' environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} From a7a4ff3aef7d1a18400338a566434c2270216e9a Mon Sep 17 00:00:00 2001 From: Void Date: Mon, 9 Nov 2026 22:54:10 +0000 Subject: [PATCH 2/5] TEMP: throwaway caller to exercise quartz-pages guards (removed next commit) Co-Authored-By: Claude Sonnet 5.5 --- .github/workflows/zz-throwaway-gate-test.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .github/workflows/zz-throwaway-gate-test.yml diff --git a/.github/workflows/zz-throwaway-gate-test.yml b/.github/workflows/zz-throwaway-gate-test.yml new file mode 100644 index 0000000..0e32d3e --- /dev/null +++ b/.github/workflows/zz-throwaway-gate-test.yml @@ -0,0 +1,10 @@ +name: throwaway gate test +on: + pull_request: + push: + branches: [void/pages-gate] +jobs: + test: + uses: ./.github/workflows/quartz-pages.yml + with: + content-dir: quartz/components From 02bc0e04190149907bf6647690fa96fc6576b7c6 Mon Sep 17 00:00:00 2001 From: Void Date: Tue, 10 Nov 2026 06:17:06 +0000 Subject: [PATCH 3/5] Latex: let the site choose KaTeX's output mode katexOptions omitted `output`, though the option spread already honours it. A site can now ask for "htmlAndMathml" so screen readers get MathML; the default stays "html". Co-Authored-By: Claude Sonnet 5.5 --- quartz/plugins/transformers/latex.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/quartz/plugins/transformers/latex.ts b/quartz/plugins/transformers/latex.ts index a9f54f3..c33869e 100644 --- a/quartz/plugins/transformers/latex.ts +++ b/quartz/plugins/transformers/latex.ts @@ -12,7 +12,8 @@ import { Options as TypstOptions } from "@myriaddreamin/rehype-typst" interface Options { renderEngine: "katex" | "mathjax" | "typst" customMacros: MacroType - katexOptions: Omit + // `output` defaults to "html"; "htmlAndMathml" adds MathML for screen readers (KaTeX hides it visually). + katexOptions: Omit mathJaxOptions: Omit typstOptions: TypstOptions } From 2e9b3bf8f01bb5c9bb876e55e359523551325c0d Mon Sep 17 00:00:00 2001 From: Void Date: Tue, 10 Nov 2026 17:19:51 +0000 Subject: [PATCH 4/5] Remove the throwaway gate-test caller (it was meant to go in the commit after the TEMP one) Co-Authored-By: Claude Sonnet 5.5 --- .github/workflows/zz-throwaway-gate-test.yml | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 .github/workflows/zz-throwaway-gate-test.yml diff --git a/.github/workflows/zz-throwaway-gate-test.yml b/.github/workflows/zz-throwaway-gate-test.yml deleted file mode 100644 index 0e32d3e..0000000 --- a/.github/workflows/zz-throwaway-gate-test.yml +++ /dev/null @@ -1,10 +0,0 @@ -name: throwaway gate test -on: - pull_request: - push: - branches: [void/pages-gate] -jobs: - test: - uses: ./.github/workflows/quartz-pages.yml - with: - content-dir: quartz/components From f6bed01377a98e46acabeec1edcee3efc2b292bb Mon Sep 17 00:00:00 2001 From: Void Date: Thu, 12 Nov 2026 09:43:38 +0000 Subject: [PATCH 5/5] Guard Pages workflow on github.server_url (#6) --- .github/workflows/quartz-pages.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/quartz-pages.yml b/.github/workflows/quartz-pages.yml index 4baf812..c15cbdc 100644 --- a/.github/workflows/quartz-pages.yml +++ b/.github/workflows/quartz-pages.yml @@ -33,7 +33,11 @@ jobs: repository: GameCult/GameCult-Quartz path: GameCult-Quartz + # Pages actions exist only on GitHub: the forge runner resolves actions + # from data.forgejo.org, which has no actions/configure-pages, so the job + # failed there. Build always; touch Pages only on the GitHub mirror. - name: Configure Pages + if: github.server_url == 'https://github.com' uses: actions/configure-pages@v5 - name: Setup Node @@ -56,11 +60,13 @@ jobs: --outputDir "${{ inputs.output-dir }}" - name: Upload Pages artifact + if: github.server_url == 'https://github.com' uses: actions/upload-pages-artifact@v3 with: path: ${{ inputs.output-dir }} deploy: + if: github.server_url == 'https://github.com' environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }}