Writing docs
This site is Astro Starlight with the Knetik design system applied. It holds both product docs (how to use Knetik) and technical docs (how to run, extend and integrate it). Pages are Markdown (.md) or MDX (.mdx) files under apps/docs/src/content/docs/.
The pages in this section show every block type once, with its source next to the result, so you can check rendering after a theme change. Each page has the source in a fenced block and the live render below it.
| Block | Page |
|---|---|
| Callouts (note, tip, caution, danger) | Callouts |
| Tabs, including npm and pnpm | Tabs |
| Numbered steps | Steps |
| Cards and link cards | Cards |
| Code with title, line highlight, diff and copy | Code blocks |
| Tables | Tables |
| Mermaid diagrams | Diagrams |
| Your own components in MDX | MDX components |
| Images | Images |
Add a page
Section titled “Add a page”- Create a file under
apps/docs/src/content/docs/. The path becomes the URL:technical/hosting/docker.mdis/technical/hosting/docker/. - Give it frontmatter with at least a
titleand a one-linedescription. - Add it to the
sidebarinapps/docs/astro.config.mjs, using its path without the extension as theslug. - Run
npm run dev -w @knetikdotdev/docs, ornpm run docs:devfrom the repository root.
---title: Example pagedescription: One sentence that says what this page covers.---
Write in plain Markdown. Use `.mdx` only when you need components.Choosing .md or .mdx
Section titled “Choosing .md or .mdx”Use .md for prose, tables and code. Use .mdx when a page needs a component (tabs, steps, cards, or your own). MDX files start with import lines for the components they use.
Follow the product’s voice: technical, short, and specific. Name the step that failed and the next action. Spell the product Knetik; the all-caps KNETIK is the wordmark only. Say “stage”, “gate”, “run”, “artifact”, “connector” and “module”, and avoid “workflow”, “job”, “task” and “plugin” for those.
Design rules for docs
Section titled “Design rules for docs”- Dark only. There is no theme switch.
- Flat: no shadows, corners 2px at most.
- Cyan and coral mean state (running or confirmed, needs a person). Use them only through the
StatusPillcomponent, never for emphasis, links or code. - Fonts are self-hosted through
@fontsource, with no external CDN.