About Docs
This page serves as a style guide and reference for writing documentation for flwd. It outlines the conventions, formatting rules, and available components to ensure consistency across the documentation site.
Conventions
- Tone: Professional, concise, and helpful.
- Headings: Use sentence case. H1 is reserved for the page title. Use H2 (
##) for main sections and H3 (###) for subsections. - Links: Use relative links with Hugo’s
refshortcode where possible:[link text]({{< ref "page.md" >}})or[link text]({{< ref "page.md#anchor" >}}).
Callouts
We use Hextra’s callout shortcode to highlight important information. We have customized the styling to match the Catppuccin Frappé color scheme.
Syntax
{{% callout type="info" %}}
This is an **info** callout. Used for general information.
{{% /callout %}}
{{% callout type="warning" %}}
This is a **warning** callout. Used for important alerts.
{{% /callout %}}
{{% callout type="tip" %}}
This is a **tip** callout. Used for helpful hints or success messages.
{{% /callout %}}
{{% callout type="note" %}}
This is a **note** callout. Used for neutral notes or sidebars.
{{% /callout %}}Rendering
Code Blocks
We use Chroma for syntax highlighting.
Standard Languages
Use standard language identifiers like yaml, json, bash, go, etc.
# Example YAML
apiVersion: v1
kind: Pod
metadata:
name: flwd-pod# Example Bash
flwd run job.yamlHTTP / API Examples
We have custom styling for http code blocks to improve readability (light text on dark background).
Syntax:
```http
GET /api/v1/runs
```Rendering:
GET /api/v1/runsPOST /api/v1/jobs
Content-Type: application/json
{
"name": "example-job"
}Inline Code & Tags
Inline code is styled with a subtle border and background to look like “tags”. This is useful for referencing configuration fields, file paths, or specific values.
Syntax:
config.yaml, metadata.name, source
Rendering:
The source field in flwd.yaml defines where jobs are loaded from.