From 75050f25ae46a62d32c2f0a3530ccb94bfc10c17 Mon Sep 17 00:00:00 2001 From: M2Night Date: Fri, 19 Jun 2026 11:51:58 +0800 Subject: [PATCH] fix(tts): stop CI crash by dropping cleanup/PR steps, convert contributing to page= form The "Cleanup Orphaned Audio" step crashed with "Unexpected closing slash" because speak-mintlify's injector un-nests out of its wrapper, leaving a dangling . The crash skipped the PR step, so no audio PR was ever opened. Pages now use the runtime page= form (): - the cleanup command cannot see those references and would delete live audio - there is no MDX rewrite, so there is nothing to open a PR for Drop both steps; `generate` still uploads audio to R2, which is all the page= form needs. Also convert contributing.mdx from the legacy voices={...} form to the page= form so it follows the current E-girl voice. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/tts.yaml | 26 ++++++-------------------- contributing.mdx | 36 +++--------------------------------- 2 files changed, 9 insertions(+), 53 deletions(-) diff --git a/.github/workflows/tts.yaml b/.github/workflows/tts.yaml index 3148852..3c35842 100644 --- a/.github/workflows/tts.yaml +++ b/.github/workflows/tts.yaml @@ -27,23 +27,9 @@ jobs: S3_PUBLIC_URL: ${{ vars.S3_PUBLIC_URL }} S3_ENDPOINT: ${{ secrets.S3_ENDPOINT }} - - name: Cleanup Orphaned Audio - run: npx speak-mintlify@latest cleanup . - env: - S3_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY_ID }} - S3_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_ACCESS_KEY }} - S3_BUCKET: ${{ secrets.S3_BUCKET }} - S3_PUBLIC_URL: ${{ vars.S3_PUBLIC_URL }} - S3_ENDPOINT: ${{ secrets.S3_ENDPOINT }} - - - name: Create Pull Request - uses: peter-evans/create-pull-request@v7 - with: - commit-message: 'chore: update TTS audio' - title: 'chore: update TTS Audio' - body: 'Auto-generated TTS audio for updated documentation' - branch: chore/tts-updates - delete-branch: true - token: ${{ secrets.BOT_TOKEN }} - author: ${{ vars.BOT_NAME }} <${{ vars.BOT_EMAIL }}> - committer: ${{ vars.BOT_NAME }} <${{ vars.BOT_EMAIL }}> + # NOTE: the former "Cleanup Orphaned Audio" and "Create Pull Request" + # steps were removed. Pages now use the runtime page= form + # (): the cleanup command cannot see those + # references and would delete live audio, and there is no MDX change to + # open a PR for. `generate` still uploads the audio to R2, which is all + # the page= form needs. diff --git a/contributing.mdx b/contributing.mdx index d48f625..1a1c88b 100644 --- a/contributing.mdx +++ b/contributing.mdx @@ -5,39 +5,9 @@ icon: "code-pull-request" --- import { AudioTranscript } from '/snippets/audio-transcript.jsx'; -{/* speak-mintlify-hash: cdb589f221b74134788267368baaa9b7d15416a5af87eebf7141010c7ed8320f */} - + + + # Contributing to Fish Audio