mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-15 22:08:03 +00:00
3.5 KiB
3.5 KiB
HyperFrames documentation rules
Before changing anything in docs/, read:
../research/docs-refactor/PLAN.md../research/docs-refactor/NOTES.md- The complete body of every page you plan to change
- The product source or tests that prove the behavior being documented
These rules are persistent and apply to every documentation session:
- Write for a smart general user first. Do not assume they are a developer.
- Explain what a person can accomplish before explaining implementation details.
- Prefer plain words, short examples, screenshots, and visible outcomes.
- Keep agent instructions copyable and specific.
- Put CLI, SDK, package, schema, deployment, and internals under Developers.
- Never infer product behavior from page titles or old docs. Verify it in current code.
- Do not preserve a page merely because it already exists. Merge, rewrite, redirect, or remove it when that improves the user journey.
- Do not publish empty, duplicated, outdated, or aspirational content as fact.
- A page should answer a real question or help complete a real task.
- Keep ordinary top-level groups inside each tab, with no nested
root,directory,expanded, or drilldown behavior. - Match the deployed main docs' sidebar rhythm: 14px medium group headings, square links, no horizontal group dividers, and a segmented vertical rail whose active segment follows the current page. Groups remain open and non-collapsible.
- Keep the Aspen sidebar aligned to the 56px header and disable its early scroll-fade mask.
- Keep Mintlify's right-side On this page behavior and styling unchanged.
- Keep Aspen's desktop header on one row: logo, tabs, search, compact GitHub link with its star count, Playground action, and theme toggle. Preserve the fixed-width star-count fallback so client-side navigation does not make the control blink or collapse.
- Keep the bottom-center agent input visually distinct from the page with its own surface, stronger border, and restrained shadow.
- Record important findings, uncertainties, and decisions in
../research/docs-refactor/NOTES.md. - Update progress and changed decisions in
../research/docs-refactor/PLAN.md.
Page standard
Most human-facing pages should contain:
- What this lets you do
- When to use it
- A visual or concrete example
- The shortest successful path
- What should happen
- Common problems
- Useful next steps
Do not force this structure where it makes a page worse. Reference pages may stay reference-shaped.
Verification
After navigation or MDX changes:
PATH=/opt/homebrew/opt/node@20/bin:$PATH mint validate
PATH=/opt/homebrew/opt/node@20/bin:$PATH mint broken-links
Use Bun for repository work. Do not create a pnpm-lock.yaml.
Freshness and ownership
- A product behavior page is owned by the team that owns the matching product surface.
- A package or API reference is owned by the package maintainer.
- Workflow pages are owned by the maintainer of the matching agent skill.
- When a feature changes, update its task guide, related troubleshooting entry, and screenshot in the same pull request.
- Treat screenshots as product claims. Replace them when labels, layout, or the demonstrated workflow changes materially.
- Review Start here, Studio, Export, and Troubleshooting at least once per release cycle.
- Review lower-traffic reference pages at least quarterly.
- Remove an unowned update feed instead of letting it become stale.
- Use search analytics and support questions to decide which missing task pages to add next.