Production site workspace for react-on-django.com, built with Docusaurus.
- Canonical markdown source belongs in
react-on-django/docs/ - This repo syncs docs into
content/upstream/docs - A prepare step stages those docs into
prototypes/docusaurus/docs - Site-owned pages stay here, such as the landing page, examples page, and licensing page
react-on-djangodispatches this repo after docs pushes tomain
- Treat
/Users/justin/codex/react-on-django/docsas the local source of truth when it exists. - CI and non-local builds should sync from
https://github.com/shakacode/react-on-django. - Keep this repo focused on site presentation, navigation, redirects, and docs build transforms.
- Do not commit generated docs trees. They are intentionally gitignored.
- Install the site dependencies:
npm run install:site
- Sync upstream docs and stage the Docusaurus docs tree:
npm run prepare
- Run the site locally:
npm run dev
- Build from an already prepared docs tree:
npm run build
- Full build from a fresh sync:
npm run build:full
scripts/sync-docs.mjs resolves upstream docs in this order:
REACT_ON_DJANGO_DOCS/Users/justin/codex/react-on-django/docs- Shallow clone of
https://github.com/shakacode/react-on-django.git
When the site repo is triggered from GitHub Actions, the source payload can also include an exact commit SHA. In that case the sync step clones the requested ref, then checks out the specific commit before preparing the site.
If no upstream docs/ directory exists yet, the sync step fails with a clear error so the missing source content is explicit.
- Pages project:
react-on-django-com - Build output:
prototypes/docusaurus/build - Cloudflare account:
fed541b7e7055a428a1b045aa3cd2c89 - Optional repository variable:
CLOUDFLARE_PAGES_PROJECT
The production deploy path is npm run build:full && npm run deploy, which
lets wrangler pages deploy publish the static site from
prototypes/docusaurus/build.
If production deploys fail with Cloudflare API error 10000, the repository
secrets do not describe a token/account pair that can manage this Pages project.