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. 1

    Create a new file

    Add a Markdown file under src/content/docs. For nested sections, create a folder and an index.md (optional).

  2. 2

    Add frontmatter

    ---
    title: Your page title
    excerpt: One sentence summary shown in previews.
    ---
  3. 3

    Update navigation (optional)

    If you want the page to appear in the sidebar in a specific place, update the relevant meta.json.

Use these pages as your “toolbox” when you author new content or refactor existing docs.