Tutorials
Getting started
Set up the docs site locally and understand the layout.
This tutorial takes you from a fresh clone to a running docs site.
Prerequisites
- Bun (the repo's package manager)
- Git
Steps
-
Clone the repository and install dependencies:
git clone https://github.com/ktbhealth/docs.git cd docs bun installbunfig.tomlsetslinker = "hoisted"— keep it. Bun's default isolated linker breaks the nitro dev server. -
Start the dev server:
bun run devThe site is served at
http://localhost:3000. Documentation pages live under/<locale>/docs(e.g./en/docs). -
Open
content/docs/en/index.mdxand edit it. The dev server hot-reloads MDX content.
Verify
- Visit
http://localhost:3000/en/docsand confirm your edit appears. - Run
bun run types:checkto typecheck without emitting.