Skip to content

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
  1. Create a file under apps/docs/src/content/docs/. The path becomes the URL: technical/hosting/docker.md is /technical/hosting/docker/.
  2. Give it frontmatter with at least a title and a one-line description.
  3. Add it to the sidebar in apps/docs/astro.config.mjs, using its path without the extension as the slug.
  4. Run npm run dev -w @knetikdotdev/docs, or npm run docs:dev from the repository root.
apps/docs/src/content/docs/technical/example.md
---
title: Example page
description: One sentence that says what this page covers.
---
Write in plain Markdown. Use `.mdx` only when you need components.

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.

  • 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 StatusPill component, never for emphasis, links or code.
  • Fonts are self-hosted through @fontsource, with no external CDN.