From 68540c074362ca39601804e77151c0f9c93ea8fd Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 13 Oct 2026 12:26:01 -0400 Subject: [PATCH] docs: host docs on Vercel at rne.appandflow.com Serve the Docusaurus site from the root of rne.appandflow.com instead of appandflow.github.io/react-native-ease, and replace the GitHub Pages publish workflow with a Vercel build configured in vercel.json. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/docs-deploy.yml | 30 ------------------------------ docs/README.md | 2 +- docs/docusaurus.config.ts | 4 ++-- docs/static/.nojekyll | 1 - vercel.json | 8 ++++++++ 5 files changed, 11 insertions(+), 34 deletions(-) delete mode 100644 .github/workflows/docs-deploy.yml delete mode 100644 docs/static/.nojekyll create mode 100644 vercel.json diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.yml deleted file mode 100644 index f24fe43..0000000 --- a/.github/workflows/docs-deploy.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Docs publish -on: - push: - branches: - - main - paths: - - docs/** - -jobs: - publish: - if: github.repository == 'AppAndFlow/react-native-ease' - runs-on: ubuntu-latest - steps: - - name: Check out - uses: actions/checkout@v4 - - - name: Build docs - run: >- - git config --local user.email "action@github.com" - && git config --local user.name "GitHub Action" - && cd docs - && yarn - && yarn build - - - name: Publish generated content to GitHub Pages - uses: JamesIves/github-pages-deploy-action@releases/v3 - with: - FOLDER: docs/build - BRANCH: gh-pages - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/docs/README.md b/docs/README.md index 44c920f..e9c4592 100644 --- a/docs/README.md +++ b/docs/README.md @@ -2,7 +2,7 @@ Docusaurus website for `react-native-ease`. -This site is published with GitHub Pages from the `gh-pages` branch. +This site is deployed to [rne.appandflow.com](https://rne.appandflow.com) by Vercel on every push to `main`. Pull requests get a preview deployment. ## Local development diff --git a/docs/docusaurus.config.ts b/docs/docusaurus.config.ts index eb72e0f..dd96fa2 100644 --- a/docs/docusaurus.config.ts +++ b/docs/docusaurus.config.ts @@ -6,8 +6,8 @@ const config: Config = { title: 'React Native Ease', tagline: 'Lightweight declarative animations powered by platform APIs', favicon: 'img/app-icon.png', - url: 'https://appandflow.github.io', - baseUrl: '/react-native-ease/', + url: 'https://rne.appandflow.com', + baseUrl: '/', organizationName: 'AppAndFlow', projectName: 'react-native-ease', onBrokenLinks: 'throw', diff --git a/docs/static/.nojekyll b/docs/static/.nojekyll deleted file mode 100644 index 86d4c2d..0000000 --- a/docs/static/.nojekyll +++ /dev/null @@ -1 +0,0 @@ -generated diff --git a/vercel.json b/vercel.json new file mode 100644 index 0000000..f7264ab --- /dev/null +++ b/vercel.json @@ -0,0 +1,8 @@ +{ + "$schema": "https://openapi.vercel.sh/vercel.json", + "framework": null, + "installCommand": "yarn workspaces focus docs", + "buildCommand": "yarn workspace docs build", + "outputDirectory": "docs/build", + "ignoreCommand": "git diff --quiet HEAD^ HEAD -- docs vercel.json" +}