Formatting Examples
Section titled “Formatting Examples”This page is a disposable formatting sampler. Use it to judge Starlight spacing, terminal code blocks, tables, asides, Markdoc components, and copyable syntax before writing real content.
Markdown Basics
Section titled “Markdown Basics”Markdoc is a superset of CommonMark, so normal Markdown still carries the main writing flow. Use inline code for commands like docker compose ps, paths like /srv/apps, and config keys like restart: unless-stopped.
- Keep unordered lists compact.
- Use them for inventories, requirements, and quick notes.
- Prefer one idea per bullet.
- Use ordered lists for procedures.
- Put the command close to the step that uses it.
- End with a verification step.
Blockquote
Section titled “Blockquote”Placeholder quote for testing quote spacing. Replace this with a real note, source, or principle later.
| Use case | Format | Notes |
|---|---|---|
| Procedure | Ordered list | Best for repeatable tasks. |
| Command output | Fenced code | Use bash, text, or a specific language. |
| Risk note | Markdoc aside | Use note, tip, caution, or danger. |
| Structure | Markdoc filetree | Use the filetree tag. |
Asides
Section titled “Asides”Rendered
Section titled “Rendered”Syntax
Section titled “Syntax”{% aside type="tip" title="Copy-friendly content" %}Use Markdoc asides for optional improvements, shortcuts, or small quality-of-life details.{% /aside %}
{% aside type="caution" title="Check the blast radius" %}Use cautions for actions that can lock you out, delete data, or create confusing follow-up work.{% /aside %}Terminal Blocks
Section titled “Terminal Blocks”npm installnpm run buildnpm run dev -- --host 127.0.0.1docker compose pulldocker compose up -ddocker compose psdocker compose logs --tail=80Get-ChildItem -ForceTest-Path .\package.jsonConfig Blocks
Section titled “Config Blocks”services: dashboard: image: ghcr.io/example/dashboard:latest restart: unless-stopped ports: - "8080:8080" volumes: - ./data:/app/data[server]host = "127.0.0.1"port = 8080{ "scripts": { "build": "astro build", "dev": "astro dev" }}Diff Blocks
Section titled “Diff Blocks”services: dashboard: image: ghcr.io/example/dashboard:1.0.0 image: ghcr.io/example/dashboard:1.1.0 restart: unless-stoppedPlain Markdown File Tree
Section titled “Plain Markdown File Tree”Use plain text trees when you need a Markdown-only fallback.
srv/|-- apps/| |-- dashboard/| | |-- compose.yaml| | |-- .env| | `-- data/| `-- proxy/| |-- compose.yaml| `-- Caddyfile`-- backups/Markdoc File Tree
Section titled “Markdoc File Tree”Rendered
Section titled “Rendered”Directoryastro.codevibr.dev/ project root
- astro.config.mjs integration configuration
- markdoc.config.mjs Markdoc component preset
- package.json dependency manifest
Directorysrc/
Directorycontent/
Directorydocs/
Directorydocs/
- index.md
- examples.mdoc
Directoryhomelab/
- docker-compose-notes.md
- troubleshooting.md
Directoryblog/
- welcome-to-the-site.md
Directorypublic/
- favicon.svg
Syntax
Section titled “Syntax”{% filetree %}- **astro.codevibr.dev/** project root - astro.config.mjs integration configuration - markdoc.config.mjs Markdoc component preset - package.json dependency manifest - src/ - content/ - docs/ - docs/ - index.md - **examples.mdoc** - homelab/ - docker-compose-notes.md - troubleshooting.md - blog/ - welcome-to-the-site.md - public/ - favicon.svg{% /filetree %}Placeholders And Special Names
Section titled “Placeholders And Special Names”Rendered
Section titled “Rendered”Directoryapp/
README - recovery.md__init__.pyDirectorydata/
- ...
Syntax
Section titled “Syntax”{% filetree %}- app/ - `README - recovery.md` - `__init__.py` - data/ - ...{% /filetree %}Markdoc Steps
Section titled “Markdoc Steps”Rendered
Section titled “Rendered”Create the service directory.
Terminal window mkdir -p /srv/apps/dashboardAdd
compose.yaml.Start the stack and verify it is healthy.
Syntax
Section titled “Syntax”{% steps %}1. Create the service directory.
```bash mkdir -p /srv/apps/dashboard ```
2. Add `compose.yaml`.
3. Start the stack and verify it is healthy.{% /steps %}Markdoc Tabs
Section titled “Markdoc Tabs”Rendered
Section titled “Rendered”npm run builddocker compose up -dSyntax
Section titled “Syntax”{% tabs syncKey="package-manager" %}{% tabitem label="npm" %}```bashnpm run build```{% /tabitem %}
{% tabitem label="Docker" %}```bashdocker compose up -d```{% /tabitem %}{% /tabs %}Markdoc Cards
Section titled “Markdoc Cards”Rendered
Section titled “Rendered”Backup first
Confirm the latest backup before changing service versions.
Verify after deploy
Run the smoke checks before moving on to the next service.
Syntax
Section titled “Syntax”{% cardgrid %}{% card title="Backup first" icon="seti:folder" %}Confirm the latest backup before changing service versions.{% /card %}
{% card title="Verify after deploy" icon="rocket" %}Run the smoke checks before moving on to the next service.{% /card %}{% /cardgrid %}Link Components
Section titled “Link Components”Rendered
Section titled “Rendered”Back to docs
Syntax
Section titled “Syntax”{% linkcard title="Docker Compose Notes" href="/docs/homelab/docker-compose-notes/" description="Placeholder notes with Markdoc file tree syntax examples." /%}
{% linkbutton href="/docs/" variant="secondary" icon="right-arrow" %}Back to docs{% /linkbutton %}