spec_prefix: DOC project_type: static-api-docs
Docusaurus v3 documentation site for the Zooza platform.
- Docusaurus v3 (React/Node.js)
docusaurus-plugin-openapi-docs— generates multi-page API reference from OpenAPI YAML@docusaurus/preset-classic— includes sitemap, Mermaid diagrams, Prism syntax highlighting- Algolia DocSearch for search
npm install
npm run gen-api-docs # generate OpenAPI reference pages (first time only)
npm start # dev server at localhost:3000npm run buildOutput goes to dist/.
Build pipeline (via npm run build):
docusaurus gen-api-docs all— regeneratesdocs/api/reference/fromstatic/zooza_api_v1.yamlnode scripts/build-llms-full.js— generatesstatic/llms-full.txtdocusaurus build— builds the static site
- Spec:
static/zooza_api_v1.yaml - Generated pages:
docs/api/reference/(committed to repo, regenerated at build) - To regenerate after spec changes:
npm run gen-api-docs
- Feature branches →
test(auto-deploys to staging via GitHub Actions) test→main(manual deploy to production via workflow_dispatch)
SFTP deployment via GitHub Actions:
- Staging: push to
test→/zooza.sk/sub/docs/staging/ - Production: manual trigger on
main→/zooza.sk/sub/docs/prod/
docs/— Markdown source filesdocs/api/reference/— Auto-generated OpenAPI MDX pagessrc/— React components, CSS, theme overridesstatic/— Static assets (images, YAML spec, llms.txt, robots.txt)scripts/— Build scripts (build-llms-full.js)dist/— Built output (gitignored).github/workflows/— CI/CD pipelines
- Primary:
#FA6900(orange) / dark:#FF8C42 - Secondary:
#3aa39d(teal) - Font: DM Sans (Google Fonts)
- Border radius: 5px
Configured in docusaurus.config.js under themeConfig.algolia.
The existing Algolia crawler needs to be reconfigured for Docusaurus record structure
after the first staging deploy. Update appId and apiKey with real values.