docshelf keeps components optional. Use plain Markdown for most pages, then add a component when it makes the information easier to scan.
Callouts
Accordion
Show advanced details
This content starts closed and opens with the native details control.
Open details
This content starts open.
Tabs
npm install docshelf
bun add docshelf
pnpm add -D docshelf
Code groups
npx docshelf dev
bunx docshelf dev
Cards
Getting started
Install docshelf and create your first page.
Writing docsLearn the Markdown format and component syntax.
DeployPublish the generated static files.
Table
| Option | Type | Default | Description |
|---|---|---|---|
title |
string | filename | Page title and navigation label |
order |
number | 999 | Sidebar order |
draft |
boolean | false | Excludes the page from the build |
Version badge and keyboard shortcut
This component is available since:
v0.1.0Search opens with:
Ctrl+KOpen searchSteps
- Create a
docs/folder. - Add Markdown files.
- Run
docshelf build.