The official documentation website for the Pizza Marketplace project, built with Astro and the Starlight docs theme.
- Overview
- Tech Stack
- Prerequisites
- Getting Started
- Available Scripts
- Project Structure
- Writing Documentation
- Contributing
- License
This site serves as the central reference for the Pizza Marketplace project. It covers:
- Project architecture and design decisions
- Local development setup guides
- API reference documentation
- Contributor guidelines
| Layer | Technology |
|---|---|
| Site framework | Astro v6 |
| Docs theme | Starlight v0.38 |
| Content format | Markdown (.md) and MDX (.mdx) |
| Image optimization | sharp |
| Package manager | pnpm |
- Node.js >= 20
- pnpm >= 9 — install with
npm install -g pnpm
git clone <repository-url>
cd realworld-angular-docs
pnpm installpnpm devThe docs site will be available at http://localhost:4321 and reloads automatically as you edit content.
| Script | Description |
|---|---|
pnpm dev / pnpm start |
Start the dev server at http://localhost:4321 |
pnpm run build |
Build the production site to dist/ |
pnpm run preview |
Preview the production build locally |
pnpm astro ... |
Run Astro CLI commands (e.g. astro add, astro check) |
realworld-angular-docs/
├── public/ # Static assets (favicons, etc.)
├── src/
│ ├── assets/ # Images referenced in documentation
│ └── content/
│ └── docs/ # All documentation pages
│ ├── index.mdx # Homepage / landing page
│ ├── guides/ # How-to guides
│ └── reference/ # API and technical reference
├── astro.config.mjs # Astro + Starlight configuration
└── tsconfig.json
All documentation lives in src/content/docs/. Each .md or .mdx file becomes a route based on its file path.
- Create a new
.mdor.mdxfile insidesrc/content/docs/ - Add frontmatter at the top:
---
title: My New Page
description: A short description of this page.
---
Your content here.- The page will automatically appear in the sidebar based on the Starlight configuration in
astro.config.mjs.
Place images in src/assets/ and reference them with a relative path:
Use .mdx for pages that need interactive components or custom Astro/React components embedded in the content.
The sidebar is configured in astro.config.mjs under the starlight plugin options. Update the sidebar array to add, reorder, or group pages.
We welcome contributions to the documentation! If you find something outdated, unclear, or missing:
- Fork the repository and create your branch from
main - Edit or add
.md/.mdxfiles insrc/content/docs/ - Preview your changes locally with
pnpm dev - Open a pull request with a description of what you changed and why
If you spot an error or want to suggest new content, please open an issue with:
- The page URL or file path
- What is incorrect or missing
- A suggested correction or improvement (if applicable)
This project is licensed under the MIT License.