Getting Started
Installation
Install Tiramisu Docs using the scaffolder or set up manually with SvelteKit and the Vite plugin.
Scaffolder
The fastest way to get started is with the scaffolder:
bun create tiramisu-docs my-docsThe scaffolder will ask you about sections and i18n. Once done:
cd my-docs
bun install
bun run devManual Setup
If you prefer to set things up yourself, start with a SvelteKit project and add the dependencies:
bun add @tiramisu-docs/kit @timeleap/tiramisuVite Configuration
Configure the Vite plugin in vite.config.ts:
import { sveltekit } from "@sveltejs/kit/vite"
import { tiramisuPlugin } from "@tiramisu-docs/kit/vite"
import tailwindcss from "@tailwindcss/vite"
import { defineConfig } from "vite"
import config from "./src/lib/tiramisu.config"
export default defineConfig({
plugins: [tiramisuPlugin({ config }), tailwindcss(), sveltekit()],
resolve: { conditions: ["browser"] },
}) Tiramisu Configuration
Create src/lib/tiramisu.config.ts:
import { defineConfig } from "@tiramisu-docs/kit"
export default defineConfig({
title: "My Docs",
description: "Documentation for my project",
nav: [{ label: "Docs", href: "/docs" }],
}) Theme Setup
Import the theme in src/app.css:
@import "@tiramisu-docs/kit/styles/theme.css";
@import "tailwindcss";
@source "../node_modules/@tiramisu-docs/kit/src/lib"; Info
See Project Structure for a complete overview of all files and folders.