Your first Rosetta page
By the end of this tutorial you will have cloned the template into a project, brought up a local docs server at http://localhost:4321/, and authored a new page that shows up in the sidebar.
Before you begin
Section titled “Before you begin”You need Node.js 22 or later and a package manager — pnpm is recommended, but npm works too. Check what you have:
node --version # v22 or laterpnpm --version # 10 or laternode --version # v22 or laternpm --version # 10 or laterStep 1 — Clone the template
Section titled “Step 1 — Clone the template”From the project where you want docs, clone the template into rosetta-docs/:
git clone --depth 1 --branch v0.2.0 https://github.com/MarinCervinschi/rosetta-template.git rosetta-docsrm -rf rosetta-docs/.gitThe --branch v0.2.0 flag pins a specific release; rm -rf rosetta-docs/.git detaches the template’s history so your project owns the folder.
Step 2 — Install dependencies
Section titled “Step 2 — Install dependencies”cd rosetta-docspnpm install --frozen-lockfilecd rosetta-docsnpm installStep 3 — Start the dev server
Section titled “Step 3 — Start the dev server”pnpm devnpm run devOpen http://localhost:4321/ — you should see the Rosetta splash page. The readiness probe at http://localhost:4321/health returns {"status":"ok","service":"rosetta","version":"0.2.0"}.
Step 4 — Add your first page
Section titled “Step 4 — Add your first page”Create src/content/docs/tutorials/hello.mdx:
---title: Hello, Rosettadescription: My first page on a Rosetta site.category: tutorials---
Welcome. This file lives at `rosetta-docs/src/content/docs/tutorials/hello.mdx`and renders at `http://localhost:4321/tutorials/hello/`.Save the file. Starlight hot-reloads and the page appears in the sidebar under Tutorials.
Step 5 — Validate the schema
Section titled “Step 5 — Validate the schema”Before committing, run the schema check:
pnpm checknpm run checkIt should report 0 errors. If it fails with a frontmatter error, confirm that category matches the parent folder name — a mismatch between category: tutorials in the file and a how-to/ parent folder fails the build.
What you’ve learned
Section titled “What you’ve learned”- The four Diátaxis sections live under
src/content/docs/, andcategoryin frontmatter must match the folder. pnpm check(ornpm run check) is the build-time gate — run it before shipping.http://localhost:4321/healthis the readiness probe;http://localhost:4321/llms.txtis the agent-readable index.
Next, see the Component reference for the custom components you can use in your pages.