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" +}