Set up your environment
Start the dev server
Run the Astro development server:Open the URL shown in your terminal (usually
http://localhost:4321) to see your site.Project structure
Your content lives in thedocs/ directory:
| Path | Purpose |
|---|---|
docs/*.mdx | Documentation pages written in MDX. |
docs/docs.json | Configuration for navigation and site metadata. |
docs/images/ | Images referenced from your pages. |
src/ | Astro layouts, components, and styles you can customize. |
Add a new page
Create an MDX file
Create a new file in the
docs/ directory. For example, docs/my-page.mdx:docs/my-page.mdx
Deploy
Push your changes to GitHub. If your hosting is configured to build on push, your site deploys automatically. To build the site locally:dist/ directory.