Writing guide
Every component available to write Fullmetrix documentation, with the conventions to follow.
This page lists everything you can use inside a documentation page. Each example shows the rendered result, and the source is the file you are reading: content/docs/en/writing-guide.mdx.
File layout
meta.json
index.mdx
meta.json
quickstart.mdx
Every language has its own folder. A page missing in French falls back to the English one, so write English first, then translate.
Frontmatter
Prop
Type
Callouts
A default note.
Information
Context the reader should know.
Success
Something went as expected.
Warning
Something that can go wrong.
Error
Something that will break.
Tip
A shortcut or a good habit.
Steps
First step
Explain what to do and why.
Second step
Link to other pages with relative links.
Tabs
Content for Shopify. The choice is remembered across pages.
Code blocks
const revenue = orders.reduce((total, order) => total + order.total, 0) const before = "removed"
const after = "added"curl https://docs.fullmetrix.com/en/llms.txtnpm install fullmetrixAccordion
Cards
Tables
| Metric | Definition |
|---|---|
| ROAS | Revenue attributed to a channel divided by its spend |
| LTV | Revenue a customer generates over time |
Images
Images are zoomable on click. Put files in public/images and reference them with /images/file.png.
Conventions
- Write short sentences, with simple words.
- Never use emojis, em-dashes or en-dashes as separators.
- Use correct French accents in French pages.
- Do not describe a feature you have not verified in the product.
- Name files in kebab-case and keep the same file name in both languages.
- A page that still shows the "Coming soon" callout is a stub. Replace the whole body, and keep the title and description accurate.
- Every page exists in both languages with the same file name. Write English first, then translate.
- In each folder,
meta.jsonsets the order of the sidebar. A folder uses its ownindex.mdxas its landing page, so do not listindexin itspages. A line like---Label---adds a section title.