Quick Start · Structure · Commands · Deploying · Configuration · Docs · GitHub
A starter template for Tome documentation sites. Structured using the Diataxis framework.
# Clone this template
git clone https://github.com/tomehq/starter my-docs
cd my-docs
# Install dependencies
pnpm install
# Start the dev server
pnpm devOpen http://localhost:3000 to see your docs.
Or use the CLI directly:
npx @tomehq/cli init my-docsThis template follows the Diataxis documentation framework, organizing content into four categories:
pages/
├── index.md # Welcome page
├── tutorials/ # Learning-oriented (how to get started)
│ ├── getting-started.md
│ └── deploy.md
├── guides/ # Task-oriented (how to solve problems)
│ ├── components.mdx
│ └── configuration.md
├── reference/ # Information-oriented (technical details)
│ ├── config.md
│ ├── components.md
│ └── cli.md
└── concepts/ # Understanding-oriented (how things work)
├── how-tome-works.md
└── file-routing.md
| Command | Description |
|---|---|
pnpm dev |
Start dev server at localhost:3000 |
pnpm build |
Build static site to out/ |
pnpm deploy |
Deploy to Tome Cloud |
# Login to Tome Cloud
npx tome login
# Deploy to production
npx tome deployTo set up CI/CD with GitHub Actions, add your TOME_TOKEN as a repository secret and add a deploy step to the workflow in .github/workflows/deploy.yml:
- name: Deploy
if: github.event_name == 'push'
run: npx tome deploy
env:
TOME_TOKEN: ${{ secrets.TOME_TOKEN }}npx vercelnpx netlify deploy --dir=outRun pnpm build and serve the out/ directory from any static host.
Edit tome.config.js to customize your site:
export default {
name: "My Docs",
theme: {
preset: "amber", // try: ocean, forest, slate, rose, violet
mode: "auto", // auto, light, or dark
},
// Uncomment to add social links:
// socialLinks: [
// { platform: "github", url: "https://github.com/your-org/your-repo" },
// { platform: "twitter", url: "https://x.com/your-handle" },
// ],
};