Skip to content

Latest commit

Β 

History

History
48 lines (38 loc) Β· 2.13 KB

File metadata and controls

48 lines (38 loc) Β· 2.13 KB

YAMP Docs

πŸš€ Project Structure

You'll see the following folders and files:

.
β”œβ”€β”€ public/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ assets/       - Images and other media
β”‚   β”œβ”€β”€ content/      - The actual docs
β”‚   β”‚   β”œβ”€β”€ docs/
β”‚   β”‚   β”‚   β”œβ”€β”€ dev/  - Placeholder for generation
β”‚   β”‚   β”‚   β”œβ”€β”€ rc/   - Placeholder for generation
β”‚   β”‚   β”‚   β”œβ”€β”€ de/   - German Language; Latest
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ dev/  - German Language; Dev
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ rc/   - German Language; RC
β”‚   β”‚   β”‚   β”œβ”€β”€ en/   - English Language (default); Latest
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ dev/  - English Language; Dev
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ rc/   - English Language; RC
β”‚   β”‚   β”œβ”€β”€ versions/ - Defining versions

Starlight looks for .md or .mdx files in the src/content/docs/ directory. Each file is exposed as a route based on its file name.

Images can be added to src/assets/ and embedded in Markdown with a relative link.

Static assets, like favicons, can be placed in the public/ directory.

Contributing

🧞 Commands

All commands are run from the root of the project, from a terminal:

Disclaimer It is recommended to use bun. pnpm has problems resolving the library sharp.

Command Action
bun install Installs dependencies
bun run dev Starts local dev server at localhost:4321
bun run build Build your production site to ./dist/
bun run preview Preview your build locally, before deploying
bun run astro ... Run CLI commands like astro add, astro check
bun run astro -- --help Get help using the Astro CLI

πŸ‘€ Want to learn more?

Check out Starlight’s docs, read the Astro documentation, or jump into the Astro Discord server.