Rich Content Primitives

Rich technical documentation without MDX or JSX.
Most documentation UI should not require switching from standard Markdown to JSX frameworks.

Docboot provides expressive, accessible primitives via standard Markdown directives (:::directive) that compile ahead of time into portable HTML with progressive enhancement.


1. Before / After Comparison (:::compare) #

Compare two screenshots or visual states with an accessible interactive slider:

Modern Docboot screenshot Modern Docboot
Legacy architecture screenshot Legacy Architecture

Features: #

  • Responsive & Accessible: Works with mouse drag, touch swipes, and keyboard controls (Arrow keys).
  • Zero JS Fallback: Shows clean side-by-side or stacked images if JavaScript is disabled.
  • Image Pipeline Integrated: Optimizes images, generates responsive WebP/AVIF variants, and integrates with the lightbox zoom viewer.

Syntax:

MARKDOWN
:::compare
before: ./images/legacy-ui.png
after: ./images/modern-ui.png
beforeLabel: Before v2
afterLabel: After v2
beforeAlt: Legacy interface screenshot
afterAlt: Modern interface screenshot
:::

2. Steps Walkthrough (:::steps) #

Structure sequential tutorials, setup guides, and onboarding walkthroughs:

  1. 1

    Install dependencies

    Ensure Node.js 18+ is installed on your system, then install the package:

    npm install -D docboot
    
  2. 2

    Initialize project configuration

    Create your docboot.config.js in the project root:

    export default {
    title: 'My Documentation',
    rootDir: 'docs'
    };
    
  3. 3

    Start the fast dev server

    Launch the local development environment with instant live reload:

    npx docboot dev
    

Syntax:

MARKDOWN
:::steps
::step Install dependencies
Run npm install in your terminal.
::

::step Configure your site
Create docboot.config.js.
::
:::

3. Directory File Trees (:::tree) #

Display structured project folders and file layouts with semantic icons:

Project Structure
package.json
docboot.config.js
docs/
index.md
guide/
getting-started.md
rich-content.md
images.md
public/
favicon.svg
images/
hero.png
dist/

Syntax:

MARKDOWN
:::tree
- package.json
- docboot.config.js
- src/
  - index.js
  - compiler/
    - builder.js
- docs/
  - guide/
    - introduction.md
:::

4. Interactive Terminal Sessions (:::terminal) #

Show realistic terminal command sessions with window chrome, status markers, and smart command-only copy:

Terminal — zsh
$ npx docboot build
Discovered 18 documentation pages
Optimized 12 images (saved 68% bandwidth)
Compiled Tailwind CSS and search index
Static documentation built to ./dist in 142ms

Features: #

  • macOS terminal title bar and status markers (, , , $, >).
  • Smart Copy button copies only executable commands (stripping $ and command outputs).

Syntax:

MARKDOWN
:::terminal title="Terminal — zsh"
$ npm test
✓ 106 tests passed (0 errors)
:::

5. Status & Version Badges #

Communicate API lifecycle states, stability, and release milestones inline or in headings:

  • Stable: STABLE
  • Beta: BETA
  • Experimental: EXPERIMENTAL
  • Deprecated: DEPRECATED
  • Planned: PLANNED
  • Introduced in: v2.4.0

Syntax:

MARKDOWN
API Status: :::badge stable
Added in: :::since 2.4.0
Experimental feature: :::badge experimental

6. Deprecated Notice (:::deprecated) #

Display clear deprecation warnings with version info and recommended migration paths:

Deprecated in v2.0.0

config.legacyMode has been removed. Use the new zero-config build pipeline instead.

Syntax:

MARKDOWN
:::deprecated since="2.0.0"
Use `newFunction()` instead of `oldFunction()`.
:::

Guide readers through multi-step screenshots or product tours:

Syntax:

MARKDOWN
:::carousel
- src: ./images/step-1.png
  alt: Step 1 screenshot
  caption: 1. Configure settings

- src: ./images/step-2.png
  alt: Step 2 screenshot
  caption: 2. Review results
:::

8. Download Cards (:::download) #

Provide direct download links with automatic file extension detection and size formatting:

SVG
Docboot Brand Assets
favicon.svg 0.4 KB

Official vector SVG logos and icons for press and branding.

Download

Syntax:

MARKDOWN
:::download
file: ./assets/release.zip
title: Offline Documentation Bundle
description: Complete standalone static archive for offline environments.
version: v2.4.0
:::

9. Build-Time QR Codes (:::qr) #

Generate pure SVG QR codes ahead-of-time during build for mobile device pairing, PWA installation, or quick reference:

QR Code
Scan to open on mobile device

Syntax:

MARKDOWN
:::qr https://example.com/mobile-demo
title: Scan to test on real device
size: 160
:::

10. Collapsible Long Code Blocks #

Prevent long configuration files or code snippets from dominating the reading experience:

Syntax:

MARKDOWN
```json collapse collapsedLines="12"
{ ... long content ... }
```

11. Accessible Callouts #

Pro Tip

You can use :::tip, :::info, :::warning, :::danger, and :::note with optional custom titles.

Experimental Feature

This API is subject to changes in upcoming minor releases.


12. Footnotes #

Add bibliographic references and clarifying notes using standard CommonMark footnote syntax[1].

Syntax:

MARKDOWN
Here is a claim<sup class="docboot-footnote-ref" id="fnref-note"><a href="#fn-note" class="text-accent hover:underline font-mono text-[11px] font-bold px-0.5" aria-describedby="footnotes-label">[2]</a></sup>.

13. Synchronized Package Manager Tabs #

npm install docboot

14. API Endpoints (:::endpoint) #

Document REST, GraphQL, or WebSocket endpoints with color-coded HTTP method badges, highlighted path parameters, auth requirement tags, status tags, and a copy button:

GET
/api/v1/users/:id
Bearer 200 OK

Retrieve detailed user profile information by unique identifier.

:::params Path & Query Parameters

  • name: id type: string required: true description: The unique user identifier UUID
  • name: include_metadata type: boolean default: false description: Whether to include extra user profile metadata
200 OK
Response
{
"id": "usr_94819a82",
"name": "Alex Smith",
"role": "admin"
}

:::

Syntax:

MARKDOWN
:::endpoint GET /api/v1/users/:id auth="Bearer" status="200 OK"
Description or overview of the endpoint.

:::params
- name: id
  type: string
  required: true
  description: User ID
:::

:::response 200 OK
```json
{ "id": "usr_123" }
```
:::
:::

15. Request & Response Blocks (:::request / :::response) #

Document HTTP payloads, request parameters, and response status codes (2xx emerald, 3xx cyan, 4xx amber, 5xx rose):

Request POST /api/v1/projects
HTTP Payload
{
"title": "Docboot v3",
"visibility": "public"
}
201 Created
Response
{
"id": "prj_884920",
"title": "Docboot v3",
"createdAt": "2026-09-02T12:00:00Z"
}

Syntax:

MARKDOWN
:::request POST /api/v1/projects
```json
{ "title": "New Project" }
```
:::

:::response 201 Created
```json
{ "id": "prj_123" }
```
:::

16. Parameter Specifications (:::params) #

Render clean, responsive parameter lists without manually writing tedious Markdown tables:

Query Parameters
limit integer optional default: 20
Number of items to return per page (max 100)
sort string optional default: desc
Sort direction by creation date
Options:asc desc
apiKey string Required
API authorization key

Syntax:

MARKDOWN
:::params Query Parameters
- name: limit
  type: integer
  default: 20
  required: false
  description: Items per page
- name: sort
  type: string
  enum: [asc, desc]
  description: Sort order
:::

17. Properties, Environment Variables & Config Options #

Document individual schema properties, environment variables ($_ terminal badge), and configuration keys with copy buttons:

timeout number optional
default: 5000

Maximum time in milliseconds to wait for a network response before timing out.

$_
DOCBOOT_PORT number optional
default: 3000

Local development server port override.

pwa.autoUpdate string optional
default: prompt

Controls the Progressive Web App update notification lifecycle.

Allowed values:prompt immediate false

18. Feature & Overview Cards (:::cards & :::card) #

Build interactive card grids with hover elevation, icons, badges, and clickable destination links for overview and landing pages:

Syntax:

MARKDOWN
:::cards cols="2"
::card Zero Config href="/guide/getting-started" icon="zap" badge="Instant"
Instant setup with smart defaults.
::
::card Local Search href="/guide/search" icon="search"
Pre-indexed client search engine.
::
:::

19. Metric & Stat KPI Cards (:::metrics) #

Display high-impact benchmarks, performance milestones, and system metrics with trend indicators:

84ms
▼ -40%
Build time
Ultra-fast compilation speed.
7.2KB
Client JS
Zero runtime framework overhead.
100%
▲ +15%
Lighthouse
Perfect accessibility and SEO scores.

Syntax:

MARKDOWN
:::metrics cols="3"
::metric 84ms Build time trend="-40%"
Fast compilation speed.
::metric 7.2KB Client JS
Minimal bundle footprint.
::metric 100% Lighthouse trend="+15%"
Top tier audit score.
:::

20. Landing Page Hero Banner (:::hero) #

Create beautiful hero banners with subtle mesh gradients, badges, heading, tagline, and call-to-action buttons:

Version 2.4 Released

Next-Gen Documentation SSG

Zero-config technical documentation compiler for modern engineering teams.

Syntax:

MARKDOWN
:::hero
badge: Version 2.4 Released
title: Next-Gen Documentation SSG
tagline: Zero-config technical documentation compiler for modern engineering teams.
primaryText: Get Started
primaryLink: /guide/getting-started
secondaryText: GitHub
secondaryLink: https://github.com/litepacks/docboot
:::

21. Feature Highlights Grid (:::features) #

Highlight product capabilities and core architectural strengths:

Instant Build

Compiles hundreds of markdown pages in milliseconds with incremental caching.

Automated Accessibility

Built-in WCAG 2.2 AA diagnostics flag heading skips, missing alts, and invalid frames.

Portable Output

Generates standard static HTML and JSON that can be deployed to any static host.

Syntax:

MARKDOWN
:::features cols="3"
::feature Instant Build icon="zap"
Fast compilation pipeline.
::
::feature Automated Accessibility icon="shield"
WCAG 2.2 AA diagnostics.
::
:::

22. Compatibility Matrix (:::compat) #

Display browser and runtime support grids with platform logos and version pills:

Browser & Runtime Support
Chrome
120+
Firefox
121+
Safari
17+
Edge
120+
Node.js
18+
Deno
1.38+
Bun
1.0+

Syntax:

MARKDOWN
:::compat Browser & Runtime Support
Chrome: 120+
Firefox: 121+
Safari: 17+
Edge: 120+
Node.js: 18+
Deno: 1.38+
Bun: 1.0+
:::

23. Keyboard Shortcuts (:::shortcut & :::shortcuts) #

Render realistic 3D keycaps for command palette and navigation shortcuts:

Global Keybindings
Open Command Palette Search
Instant fuzzy search across all documentation pages
Mac⌘ Cmd +K
Win/LinuxCtrl +K
Toggle Dark & Light Mode
Switch theme color scheme
Mac⌘ Cmd +D
Win/LinuxCtrl +D

Syntax:

MARKDOWN
:::shortcuts
- action: Quick Search
  mac: Cmd + K
  windows: Ctrl + K
- action: Toggle Theme
  mac: Cmd + D
  windows: Ctrl + D
:::

24. Live Component Preview (:::preview) #

Render live interactive UI components alongside their source code:

Button Component Demo
Live Canvas
View Source Code html
<button class="px-4 py-2 bg-emerald-600 text-white rounded-lg font-medium text-sm">Primary Action</button>
<button class="px-4 py-2 bg-muted text-foreground border border-border rounded-lg font-medium text-sm">Secondary</button>

25. Release Notes & Changelogs (:::changelog) #

Structure release updates with categorized change tags (Added, Changed, Fixed, Removed):

v2.4.0 Rich Documentation Primitives
2026-09-02
Added
  • Added API endpoints, requests, responses, and parameters directives.
  • Added Cards, Metrics, Hero, Compatibility Matrix, Shortcuts, and Live Previews.
  • Added PWA auto-update lifecycle notifications.
Changed
  • Improved search indexing compression and sub-millisecond query execution.
Fixed
  • Resolved autofocus retention in command palette dialog.

Syntax:

MARKDOWN
:::changelog v2.4.0 date="2026-09-02" title="Release Name"
::added
- New feature A
- New feature B
::fixed
- Bug fix C
::
:::

26. Testimonial & Social Proof (:::quote) #

Present social proof, user endorsements, and architectural quotes:

Docboot is lightning fast and gets completely out of the way so developers can focus on writing great documentation.

LT
Linus Torvalds
Creator of Linux & Git

Syntax:

MARKDOWN
:::quote author="Author Name" title="Role at Company" avatar="https://..." url="https://..."
Endorsement quote text.
:::

27. Chronological Timeline & Roadmaps (:::timeline) #

Document releases, migration phases, or architectural roadmaps with styled timeline nodes:

Product Roadmap
2026 Q3

Zero-Config Engine

Instant startup with automatic file discovery, pre-indexed client search, and zero build tool hassle.

2026 Q4

Rich Documentation Directives

Over 40 accessible, interactive directives including API blocks, KPI metrics, hero banners, and component previews.

2027 Q1

Real-Time Collaborative Docs

Live multi-editor previews and edge SSR rendering plugins.

Syntax:

MARKDOWN
:::timeline Product Roadmap
::item 2026 Q3 — Zero-Config Engine
Instant startup and automatic routing.
::item 2026 Q4 — Rich Documentation Directives
Complete interactive component suite.
:::

28. FAQ & Accordions (:::faq & :::accordion) #

Render accessible, collapsible Q&A accordions with automatic Schema.org FAQPage microdata:

Frequently Asked Questions
Is Docboot free and open source?

Yes, Docboot is licensed under the MIT license and is 100% free for both personal and commercial documentation projects.

How does the client-side search engine work?

Docboot pre-indexes headings, sections, symbols, and text into a high-performance MiniSearch index during static build time. Search executes locally in browser memory with zero network delay.

Can I deploy Docboot to GitHub Pages or Cloudflare Pages?

Yes! Docboot includes one-command deployment workflows for GitHub Pages (docboot pages), Cloudflare Pages, Netlify, and Vercel.

Syntax:

MARKDOWN
:::faq Frequently Asked Questions
::q How fast is Docboot?
It compiles hundreds of pages in under 100 milliseconds.
::q Does it support dark mode?
Yes, with seamless system auto-detection and persistence.
:::

29. Pricing Plans & Tier Comparison (:::pricing) #

Compare edition features and plans with glowing popular highlights:

Open Source

MIT Licensed
Free forever
  • Unlimited documentation pages
  • Full offline PWA support
  • Pre-indexed MiniSearch engine
  • WCAG 2.2 AA accessibility audits Get Started

Cloud Hosted

Most Popular
$19 /mo
  • Everything in Open Source
  • Automatic Git sync & previews
  • Custom domain SSL management
  • Real-time page analytics Explore Guides

Enterprise

Dedicated
Custom billed annually
  • Everything in Cloud Hosted
  • Single Sign-On (SSO / SAML)
  • Dedicated SLA & 24/7 support
  • On-premise deployment assistance GitHub Repo

30. Enhanced Responsive Data Table (:::table) #

Wrap tables with smooth horizontal scrolling, zebra striping, and header styling:

Engine Benchmark Matrix
Documentation Engine Build Speed Client Bundle Runtime Framework Offline PWA
Docboot 84ms 7.2KB Zero Runtime ✓ Built-in
Docusaurus 4.2s 140KB React Plugin Required
VitePress 350ms 48KB Vue 3 Plugin Required
GitBook Cloud Only >300KB Proprietary Cloud Only

Syntax:

MARKDOWN
:::table Engine Benchmark Matrix
| Engine | Build Speed | Bundle Size |
| :--- | :---: | :---: |
| **Docboot** | **84ms** | **7.2KB** |
| Docusaurus | 4.2s | 140KB |
:::

31. Team Members & Authors (:::team & :::author) #

Introduce project maintainers, core team members, and guide authors with social badges:

SC

Sarah Connor

Lead Architect

Distributed systems engineer leading static compiler performance and caching.

A

Ahmet

Creator & Core Developer

Building lightweight developer tooling and modern documentation frameworks.

Syntax:

MARKDOWN
:::team cols="2"
::member Sarah Connor role="Lead Architect" github="sarahconnor" twitter="sarahconnor"
Distributed systems engineer.
::
::member Ahmet role="Maintainer" github="ahmet"
Core compiler developer.
::
:::

32. Project Sponsors & Backers (:::sponsors) #

Recognize supporting organizations and backers with tiered logo cards:

Syntax:

MARKDOWN
:::sponsors title="Proud Sponsors & Backers" cols="3"
::sponsor Google tier="Platinum" url="https://google.com"
::sponsor Vercel tier="Gold" url="https://vercel.com"
:::

33. Page Rating & Feedback Widget (:::feedback) #

Collect instant reader feedback with one-click ratings:

Was this tutorial helpful?
Your feedback helps us continuously improve our documentation.

Syntax:

MARKDOWN
:::feedback
title: Was this tutorial helpful?
positiveText: Yes, very helpful
negativeText: Needs improvement
:::

34. Embedded Interactive Code Sandboxes (:::sandbox) #

Embed live, editable playgrounds from StackBlitz, CodeSandbox, or CodePen:

Live Vite Playground
stackblitz

Syntax:

MARKDOWN
:::sandbox stackblitz id="docboot-starter" file="src/index.js" height="500px" title="Live Sandbox"
:::

35. Interactive Collapsible JSON Tree (:::json / :::jsontree) #

Display interactive, collapsible JSON payloads with syntax-highlighted semantic types, expandable nested objects and arrays, key counts, and a one-click raw JSON copy button:

User Profile Response
| |
{ 7 keys }
"id": "usr_99182",
"name": "Sarah Connor",
"email": "sarah@example.com",
"roles": Array(2) [
"admin",
"architect"
],
"verified": true,
"metrics": { 3 keys }
"loginCount": 42,
"lastActive": "2026-09-02T14:20:00Z",
"score": 98.6
},
"tokens": null
}

Syntax:

MARKDOWN
:::json title="API Response Payload" expandLevel=2
{
  "id": "usr_99182",
  "name": "Sarah Connor",
  "roles": ["admin", "architect"],
  "active": true
}
:::

36. One-Click Copy Snippets & Tokens (:::copy) #

Display copyable commands, environment tokens, or code snippets with instant visual feedback and copy toast:

$ Install Package: npx create-docboot-app my-docs
git

gh repo clone litepacks/docboot

You can also use inline copy badges within markdown paragraphs: run npm install docboot to install the CLI directly.

Syntax:

MARKDOWN
<!-- Block syntax with optional prefix and label -->
:::copy prefix="$" label="Install CLI"
npm install -g docboot
:::

<!-- Inline syntax in standard text paragraphs -->
Run :::copy npx docboot dev::: in your project folder.

Next Steps #

Footnotes

  1. Docboot automatically compiles footnotes with accessible bidirectional back-links ().
  2. Reference details and backlink.
5 min read · Updated