You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`pnpm dev`| Start local dev server at `localhost:4321` (converts notebooks first) |
17
+
|`pnpm build`| Format, convert notebooks, and build production site to `dist/`|
18
+
|`pnpm build:ci`| Convert notebooks and build without formatting (use this in CI)|
19
+
|`pnpm preview`| Preview the production build locally |
20
+
|`pnpm format`| Run Prettier + black on all `.md`/`.mdx` files |
21
+
|`pnpm format:prose`| Run Prettier only |
22
+
|`pnpm format:code`| Run black on Python code blocks only |
22
23
23
24
## Project structure
24
25
@@ -44,7 +45,7 @@ Documentation site built with [Astro](https://astro.build) + [Starlight](https:/
44
45
## Adding content
45
46
46
47
-**Markdown/MDX pages**: drop `.md` or `.mdx` files into `src/content/docs/`. The URL mirrors the file path.
47
-
-**Jupyter notebooks**: add `.ipynb` files alongside other content. Running `npm run dev` or `npm run build:ci` converts them to `.mdx` automatically. The generated `.mdx` files are git-ignored — do not commit them.
48
+
-**Jupyter notebooks**: add `.ipynb` files alongside other content. Running `pnpm dev` or `pnpm build:ci` converts them to `.mdx` automatically. The generated `.mdx` files are git-ignored — do not commit them.
48
49
-**Sidebar ordering**: controlled by `_meta.yaml` files in each content directory (via `starlight-auto-sidebar`).
0 commit comments