From 9496b14f723858d7134e90bf27d921791045dacf Mon Sep 17 00:00:00 2001 From: SaelixCode Date: Sun, 22 Mar 2026 21:08:16 -0400 Subject: [PATCH 1/2] feat: add automated docs pipeline and scaffold /docs folder - Add sync-docs CI job: runs on push to main, copies /docs into sencho-docs repo via DOCS_REPO_TOKEN - Scaffold /docs with mint.json, getting-started/introduction.mdx, getting-started/quickstart.mdx, features/overview.mdx - Update CHANGELOG --- .github/workflows/ci.yml | 28 +++++++++++++++++++++++ CHANGELOG.md | 3 +++ docs/features/overview.mdx | 32 ++++++++++++++++++++++++++ docs/getting-started/introduction.mdx | 16 +++++++++++++ docs/getting-started/quickstart.mdx | 33 +++++++++++++++++++++++++++ docs/mint.json | 29 +++++++++++++++++++++++ 6 files changed, 141 insertions(+) create mode 100644 docs/features/overview.mdx create mode 100644 docs/getting-started/introduction.mdx create mode 100644 docs/getting-started/quickstart.mdx create mode 100644 docs/mint.json diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bf294710..14b1db2c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -160,3 +160,31 @@ jobs: e2e/report/ test-results/ retention-days: 7 + + sync-docs: + runs-on: ubuntu-latest + if: github.event_name == 'push' && github.ref == 'refs/heads/main' + steps: + - name: Checkout Sencho repo + uses: actions/checkout@v4 + with: + path: sencho + + - name: Checkout sencho-docs repo + uses: actions/checkout@v4 + with: + repository: AnsoCode/sencho-docs + token: ${{ secrets.DOCS_REPO_TOKEN }} + path: sencho-docs + + - name: Copy /docs into sencho-docs root + run: rsync -av --delete sencho/docs/ sencho-docs/ + + - name: Commit and push to sencho-docs + working-directory: sencho-docs + run: | + git config user.email "docs-bot@sencho.io" + git config user.name "Sencho Docs Bot" + git add -A + git commit -m "docs: sync from main@${{ github.sha }}" || echo "No changes to commit" + git push diff --git a/CHANGELOG.md b/CHANGELOG.md index 20a0870a..604d4447 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added +- feat: automated documentation pipeline with Mintlify sync + ### Fixed - **COOP header console warning on HTTP deployments:** Helmet sends `Cross-Origin-Opener-Policy: same-origin` by default, which browsers silently ignore over HTTP but log as a console error. Disabled via `crossOriginOpenerPolicy: false` — same rationale as the existing HSTS and COEP disables. - **Inline script CSP violation from Vite module-preload polyfill:** Vite's production build injects a small inline `