Getting Started with ChaosNexus Codex
ChaosNexus Codex is the documentation hub for the ChaosNexus framework (the site you are currently reading!). It is built using VitePress to provide a fast, static-generated documentation site with full text search and LLM-friendly endpoints.
Prerequisites
Before building ChaosNexus Codex locally, ensure you have:
- Node.js and pnpm: The JavaScript runtime and package manager. (Tuned Chaos strictly prefers
pnpm). - Python: Required for certain documentation generation scripts (like generating attributions).
Local Development
If you wish to contribute to the documentation or preview changes locally:
Clone the Repository:
bashgit clone <your-repo-url> cd chaosnexus-codexInstall Dependencies:
bashpnpm installRun the Development Server:
bashpnpm website:devThis will start a local server (typically at
http://localhost:5173) where you can preview your markdown changes with hot-module replacement (HMR).
Building for Production
To compile the static site for deployment:
Run the Build Command:
bashpnpm website:buildThis will generate the API documentation scripts, fetch attributions, and compile the VitePress site into the
.vitepress/distdirectory.Preview the Build: To test the compiled production build locally before deployment:
bashpnpm website:preview
Documentation Structure
guide/: Contains the core getting started guides and architectural overviews.api/: Contains generated API references..vitepress/: Contains the site configuration (config.ts) and custom VitePress plugins.
Next Steps
- Learn about attributions and licenses in the Attributions Guide.