prestruct docs

Language, content, tone, and style reference for prestruct.

Tone and voice

This is a developer tool. The audience is engineers who are confident with Vite, React, and deployment pipelines.

Wrong Right
“Supercharge your SEO!” “Makes your routes crawlable.”
“It’s incredibly easy to set up!” “Takes about 15 minutes.”
“Prestruct is amazing because…” “Prestruct solves X by doing Y.”
“Don’t worry, it’s simple!” “The only structural change is extracting AppLayout.”

Sentence structure

Headings and labels

Briefs

Every section, code block, and list needs a one-line brief before it.

The brief explains why, not what. It sets context before diving in.

Briefs are not required for short pages. Use judgment. If a section needs setup, add one.

Frontmatter (every page, enforced)

Every docs page carries all five fields. scripts/check-docs-frontmatter.cjs gates CI on this; a page missing layout: silently renders as raw HTML with no site chrome (Jekyll has no defaults block, so there is no fallback).

---
version: 1.0.0        # version the page content reflects
permalink: /guides/x  # starts with / - the site links by permalink
layout: default
title: Page Title
nav_order: 10         # integer; controls sidebar position via _data/nav.yml
---

Code blocks

Structure and flow

Formatting

What to avoid

Punctuation


Next steps