### Run Local Build with Bun Source: https://github.com/buttondown/docs/blob/main/CLAUDE.md Execute this command to build the documentation locally. Ensure Bun is installed and configured for the project. ```bash bun run build ``` -------------------------------- ### Install Dependencies Source: https://github.com/buttondown/docs/blob/main/README.md Use this command to install all packages and dependencies for the monorepo. If using the standalone docs repo, use 'bun install'. ```bash MISE_EXPERIMENTAL=true mise run //docs:install ``` ```bash bun install ``` -------------------------------- ### Run Development Server Source: https://github.com/buttondown/docs/blob/main/README.md Starts the development server for the documentation. The terminal will watch for changes and recompile automatically. Refresh your browser to view changes. ```bash MISE_EXPERIMENTAL=true mise run //docs:dev ``` -------------------------------- ### Check Bun Version Source: https://github.com/buttondown/docs/blob/main/README.md Command to check the installed Bun version. Bun is used for package management and running the dev server. ```bash bun -v ``` -------------------------------- ### Add New Page to Navigation Source: https://github.com/buttondown/docs/blob/main/README.md Example structure for adding a new page to the sidebar navigation in navigation.json. Ensure the 'value' matches the filename without the .mdoc extension. ```json "top-level-nav": [ { "name": "Sub Topic title here", "items": [ { "discriminant": "page", "value": "page-1" }, { "discriminant": "page", "value": "page-2" }, { "discriminant": "divider", "value": "FAQ" }, { "discriminant": "page", "value": "faq-1" }, { "discriminant": "page", "value": "faq-1" } ] } ] ``` -------------------------------- ### Build Documentation Statically Source: https://github.com/buttondown/docs/blob/main/README.md Builds the documentation statically for production. ```bash MISE_EXPERIMENTAL=true mise run //docs:build ``` -------------------------------- ### Handlebars Code Sample with Process Flag Source: https://github.com/buttondown/docs/blob/main/README.md When using Handlebars or Django-like syntax in multiline code blocks, append ` {% process=false %}` after the opening backticks to ensure correct rendering and prevent content loss. ```handlebars {% if syntax= "looks like handlebars or django" %} make sure you have the process false added {% endif %} ``` -------------------------------- ### Handlebars Code Sample in Markdown Block Source: https://github.com/buttondown/docs/blob/main/README.md Code samples using Handlebars or Django-like syntax cannot be rendered in snippets due to syntax conflicts. Wrap them in standard Markdown code blocks instead. ```markdown {% if syntax= "looks like handlebars or django" %} just make it a regular markdown code block {% endif %} ``` -------------------------------- ### Clear Server Cache Source: https://github.com/buttondown/docs/blob/main/README.md Resets the Next.js server cache. ```bash MISE_EXPERIMENTAL=true mise run //docs:clear-cache ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.