Authoring Guide
This documentation site is built with Starlight, a documentation framework for Astro.
✍️ Authoring
Section titled “✍️ Authoring”Documentation is written in Markdown (.md) or MDX (.mdx).
File Location
Section titled “File Location”All documentation files are located in:
src/content/docs/
Frontmatter
Section titled “Frontmatter”Each file must begin with a frontmatter block:
---title: My Page Titledescription: A short description of this page.---Sidebars
Section titled “Sidebars”The sidebar is configured in astro.config.mjs. When adding a new page, ensure you add it to the sidebar array if you want it to appear in the navigation.
🚀 Commands
Section titled “🚀 Commands”| Command | Action |
|---|---|
./bin/preview | Starts local dev server at localhost:4321 |
npm run build | Build your production site to ./dist/ |
npm run preview | Preview your build locally, before deploying |
🏗️ Build & Deploy
Section titled “🏗️ Build & Deploy”This site is designed to be hosted on Cloudflare Pages.
- Build:
npm run buildgenerates the static site in thedist/folder. - Deploy: Push to the
mainbranch of theblog-docsGitHub repository to trigger an automatic deployment on Cloudflare.
Sample Blog
Section titled “Sample Blog”---title: 'My Wonderful Blog Post'publishDate: 2025-01-01author: BernhardaccessLevel: publicexcerpt: 'Sample Blog'topic: blogimage: index/sample.pngdraft: falselanguage: entags: ['post', 'sample']---
Awesome new blog ...