Skip to Content
1robie

Getting started

Run this site locally, edit a page, and publish your changes.

This guide gets the site running on your machine and walks through the edit → preview → publish loop.

Prerequisites

  • Node.js 20.9 or newer — check with node --version
  • npm — ships with Node. Do not use yarn or pnpm in this repository.

Run it locally

Install the dependencies. This also generates .source/, the compiled content collections:

npm install

Start the dev server:

npm run dev

It serves localhost:3000 and reloads on save, content and meta.json changes included.

Edit a page

Every page maps to a file:

URLSource
/src/app/(home)/page.tsx
/docs/…content/docs/docs/
/portfolio/…content/docs/portfolio/
/<category>/<id>/…content/docs/<category>/<id>/
/blog/…content/blog/

Add a guide by creating an .mdx file under content/docs/docs/:

content/docs/docs/my-guide.mdx
---
title: My guide
description: One line shown in search results and previews.
---

Start with the content; the title is rendered from the front matter.

Then add "my-guide" to pages in content/docs/docs/meta.json, where you want it in the sidebar. See Site architecture for admonitions, components and links.

Check it before pushing

npm run check

It runs types, lint, formatting, the content checks and the build, then checks every internal link and anchor of the exported site.

Publish

Push to main. The deploy workflow runs the same check, exports the site and deploys it to GitHub Pages.

Next steps

Last updated on

On this page