Integrations
SEO
Built-in sitemap, canonical URLs, Open Graph tags, and JSON-LD structured data for search engines.
Tiramisu Docs includes built-in SEO features to help your documentation rank well in search engines.
Sitemap
A sitemap is automatically generated at /sitemap.xml. It includes all documentation pages with their last-edited dates.
To enable the sitemap, set the url field in your config:
export default defineConfig({
url: "https://docs.example.com",
// ...
}); The url is required for generating absolute URLs in the sitemap.
Meta Tags
Each documentation page automatically gets meta tags derived from its meta {} block:
Open Graph
og:title— from the page titleog:description— from the page descriptionog:type— alwaysarticleog:url— canonical URL built from your siteurland the page slugog:site_name— from thetitlein your configog:image— from theimagefield in the page meta
Twitter Cards
twitter:card—summary_large_imagewhen an image is set, otherwisesummarytwitter:title— from the page titletwitter:description— from the page descriptiontwitter:image— from theimagefield in the page meta
OG Image
You can set an Open Graph image per page using the image field in the page's meta {} block:
meta {
title = Getting Started,
description = Learn how to get started,
image = /images/getting-started.png
} The image path can be relative to your site root (e.g. /images/hero.png) or an absolute URL (e.g. https://example.com/og.png). Relative paths are resolved against your site url.
Canonical URL
A <link rel=canonical> tag is added to each page when a site url is configured. This helps search engines identify the preferred URL for each page.
JSON-LD Structured Data
Each page includes a TechArticle JSON-LD schema with:
headline— the page titleurl— the canonical page URLmainEntityOfPage— aWebPagereferenceisPartOf— aWebSitereference with your site name and URLdescription— if a description is set in the page metadateModified— if last-edited tracking is enabledimage— if an image is set in the page metaauthor— if an author is set in the page meta (as aPersonentity)
All of these tags are generated automatically. You only need to set url and title in your config and add title and description to each page's meta {} block.
Customizing the Sitemap
The sitemap route is included automatically when you scaffold a project. If you need to customize it, the generated route is at src/routes/sitemap.xml/+server.ts and uses the generateSitemap() function from the kit.