Production site workspace for reactonrails.com, built with Docusaurus.
- Canonical markdown source stays in
react_on_rails/docs/ - This repo syncs docs at build time into
prototypes/docusaurus/docs - Site-owned pages live here (landing page, examples, Pro page)
- Pro docs are public under
docs/pro/
- Install site dependencies:
npm run install:site
- Sync docs from monorepo and prepare local docs tree:
npm run prepare
- Run the site:
npm run dev
- Build from prepared docs:
npm run build
- Full build from fresh docs sync:
npm run build:full
scripts/sync-docs.mjs resolves the monorepo in this order:
REACT_ON_RAILS_REPOenv var- sibling directory
../react_on_rails - shallow clone from
REACT_ON_RAILS_REPO_URL(default: upstream GitHub repo)
- Project:
reactonrails-com - Build output directory:
prototypes/docusaurus/build - One-off deploy from local machine:
npm run cloudflare:deploy
For GitHub Actions deploy, configure these repository secrets:
CLOUDFLARE_API_TOKENCLOUDFLARE_ACCOUNT_ID
Optional repository variable:
CLOUDFLARE_PAGES_PROJECT(defaults toreactonrails-com)