This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
- Install dependencies:
npm install - Start local docs server:
npm start - Build documentation:
npm run build - Serve built documentation:
npm run serve - Process CRDs:
npm run process-crds - Clear Docusaurus cache:
npm run clear - Deploy documentation:
npm run deploy - Generate translations:
npm run write-translations - Generate heading IDs:
npm run write-heading-ids - Check Vale linting: Clone and run Vale from upbound/vale
- Markdown: Follow standard markdown syntax for docs
- Links: Use Docusaurus ref syntax for internal links:
[link text](./path/to/file.md) - Images: Place in
/static/images/, reference with/images/path/to/image.png - Vale Rules: Follow Google, Microsoft, and Upbound style guides enforced by Vale
- Content Structure: Keep front matter with
titleandweightat top of each file - Shortcodes: Use
:::tip,:::warning,:::infofor callouts and<Tabs>for tabbed content
docs/: Markdown files for documentation pagesstatic/images/: All image filessrc/: React components and custom stylingsrc/sidebars/main.js: Navigation structuredocusaurus.config.js: Site configurationpackage.json: Dependencies and build scriptscontent/: Content templates and utilitiesscripts/: Build and processing scriptsutils/: Utility functions and helperstemplates/: Documentation templates
- This is a Docusaurus site, not Hugo
- Requires Node.js 18.x and npm 9.x
- Use
npm startfor local development with hot reloading - CRDs are processed via script before start/build commands
- Site uses React components and MDX for enhanced functionality