Tiramisu Docs

Writing

Learn how to create documentation pages with file-based routing, folder structure, and meta blocks.

Documentation pages are .tiramisu files inside the src/docs/ directory. Each file becomes a page on your site.

File Location

Place your files in src/docs/ (or in a locale subfolder like src/docs/ if using i18n). The file path determines the URL:

File PathURL
src/docs/index.tiramisu/docs
src/docs/guide.tiramisu/docs/guide
src/docs/api/auth.tiramisu/docs/api/auth

Folder Structure

Folders create sidebar groups automatically. A folder with an index.tiramisu file uses the index page's title as the group label:

src/docs
index.tiramisu
getting-started
index.tiramisu
installation.tiramisu
quick-start.tiramisu
api
index.tiramisu
endpoints.tiramisu

Page Anatomy

Every page has two parts: a meta block and content.

tiramisu
meta { title = My Page, order = 2, group = Guide }

Paragraph text goes here. Use bold { bold } and italic { italic } for emphasis.

h2 { A Section }

More content with code { inline code } and other formatting.