Content authoring
Where content lives in the repo and how to add new pages safely.
Where content lives
Prime UI keeps site content inside src/content so editing content does not require touching the application code.
src/content
blog
taxonomy
docs
meta.json
changelog
legal
Add a docs page
Creating pages is straightforward, but the key is keeping a consistent structure across the whole documentation set.
- 1
Create a new file
Add a Markdown file under
src/content/docs. For nested sections, create a folder and anindex.md(optional). - 2
Add frontmatter
- 3
Update navigation (optional)
If you want the page to appear in the sidebar in a specific place, update the relevant
meta.json.
What to read next
Use these pages as your “toolbox” when you author new content or refactor existing docs.