| title | Documentation |
|---|---|
| description | Complete documentation for @goobits/docs-engine |
Battery-included documentation system for SvelteKit with markdown rendering, screenshots, search, and symbol references.
docs/
├── index.md
├── getting-started.md
├── guides/
│ ├── architecture.md
│ ├── migration.md
│ ├── examples.md
│ ├── diagrams.md
│ └── plugin-order.md
├── plugins/
│ ├── callouts.md
│ ├── code-highlighting.md
│ ├── code-tabs.md
│ ├── collapse.md
│ ├── filetree.md
│ ├── image-optimization.md
│ ├── katex.md
│ ├── links.md
│ ├── mermaid.md
│ ├── screenshots.md
│ ├── symbol-references.md
│ └── toc.md
├── components/
│ ├── docs-layout.md
│ └── theme-toggle.md
└── utilities/
├── frontmatter.md
└── navigation.md
New to docs-engine? Start here:
- Getting Started - 5-minute setup guide
- Quick Start - Package installation
The docs-engine processes markdown through a series of transformations:
flowchart LR
subgraph Input["📄 Input Layer"]
MD[Markdown/MDX]
TS[TypeScript]
end
subgraph Processing["⚙️ Processing Layer"]
Parse[Remark Parse]
RP[Remark Plugins]
Rehype[Rehype Convert]
HP[Rehype Plugins]
Parse --> RP
RP --> Rehype
Rehype --> HP
end
subgraph Output["🎨 Output Layer"]
HTML[Hydrated HTML]
IC[Interactive Components]
end
MD --> Parse
TS --> Parse
HP --> HTML
HP --> IC
style Input fill:#313244,stroke:#89b4fa
style Processing fill:#313244,stroke:#f9e2af
style Output fill:#313244,stroke:#a6e3a1
Processing Pipeline:
-
Remark Plugins (Markdown → AST transformations)
- Frontmatter, Math Parser, Callouts, Collapse, Code Tabs
-
Rehype Plugins (HTML transformations)
- Code Highlighting, KaTeX, Links, References
-
Additional Services
- Image Optimization, Screenshot Generation, Symbol Resolution
Note: All guides use our plugins! You'll see callouts, diagrams, code highlighting, and more in action.
Learn the fundamentals:
- Architecture - System design and philosophy
- Plugin Order - Understanding plugin execution order (uses mermaid diagrams!)
- Examples - Code examples and recipes
- Diagrams - Visual architecture diagrams (pure mermaid showcase!)
- Callouts - Styled note/warning/info boxes
- Collapse - Collapsible sections with details/summary
- KaTeX - Mathematical equations with LaTeX
- Mermaid - Diagram rendering
- Code Tabs - Tabbed code examples
- Code Highlighting - Syntax highlighting with Shiki
- Links - Convert relative paths to absolute URLs
- Table of Contents - Auto-generate TOC
- Frontmatter Parser - Parse YAML metadata
- Navigation Builder - Auto-generate navigation structure
- File Tree - Interactive file trees
- Screenshots - Automated screenshot generation
- Image Optimization - Auto WebP/AVIF generation
- Symbol References - Link to TypeScript symbols
Tip: Choose the path that matches your experience level. Each path builds on the previous one.
Tip: This documentation practices what it preaches! Here's what you're seeing in action:
- Callouts - All 9 types used with GitHub/Obsidian
[!NOTE]syntax throughout docs - Collapse Sections - Collapsible content in Collapse Plugin (dogfooding!)
- Mermaid Diagrams - Flowcharts in Plugin Order Guide
- File Trees - Directory structures like the one at the top of this page
- Table of Contents - Auto-generated
## TOCsections in guides
- Code Tabs - JS/TS examples in Quick Start sections (now on callouts, collapse, katex!)
- Line Highlighting - Important lines highlighted in code blocks
- Diff Syntax - Red/green additions and deletions
- Syntax Highlighting - All code blocks use Shiki
- Frontmatter - Every doc has YAML metadata at the top
- Links - All relative markdown links work correctly
- Navigation - Organized structure with sections
- Math Rendering - LaTeX equations with KaTeX in KaTeX Plugin (now dogfooding!)
- Symbol References -
{@Symbol}syntax with type links (e.g., {@KaTeXOptions}, {@CodeHighlightOptions}) (now dogfooding!) - Screenshot Examples - 10 CLI screenshot examples in Screenshots Plugin (now dogfooding!)
- Symbol Map Generation - 163 exported symbols from TypeScript source files (generated!)
Performance Highlights:
- 🚀 4x faster image processing
- ⚡ 11x faster navigation sorting
- 💾 90% less memory usage
- ✅ 178/178 tests passing
- Check the Troubleshooting Guide (when available)
- Open an issue on GitHub