@docubook/flame 1.7.2 → 2.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/.docu/components/Context.tsx +1 -1
  2. package/.docu/components/Pagination.tsx +9 -1
  3. package/.docu/components/Search.tsx +6 -6
  4. package/.docu/components/Sidebar.tsx +37 -8
  5. package/.docu/components/Theme.tsx +2 -2
  6. package/.docu/components/Toc.tsx +52 -6
  7. package/.docu/components/Typography.tsx +1 -1
  8. package/.docu/components/home/Hero.tsx +4 -4
  9. package/.docu/components/registry.ts +1 -1
  10. package/.docu/lib/build.deno.js +3 -3
  11. package/.docu/lib/{build.impl-TSIF3F7O.js → build.impl-VXB4KL4D.js} +3 -3
  12. package/.docu/lib/build.node.js +3 -3
  13. package/.docu/lib/{chunk-SPHVBXRR.js → chunk-7PRQ3RQB.js} +6 -6
  14. package/.docu/lib/{chunk-DITXUPUV.js → chunk-A6FIEG3H.js} +61 -10
  15. package/.docu/lib/{chunk-PJIJEPNR.js → chunk-JRERMREW.js} +5 -4
  16. package/.docu/lib/{chunk-KMDGSD57.js → chunk-LZDEWK25.js} +3 -3
  17. package/.docu/lib/{chunk-HRO7ONJQ.js → chunk-MQWWCO6O.js} +70 -27
  18. package/.docu/lib/{chunk-B6LGUADD.js → chunk-TRT6WQZG.js} +346 -183
  19. package/.docu/lib/chunk-UISOJ4RW.js +114 -0
  20. package/.docu/lib/clean.js +1 -1
  21. package/.docu/lib/deploy.deno.js +1 -1
  22. package/.docu/lib/deploy.node.js +1 -1
  23. package/.docu/lib/preview.deno.js +5 -3
  24. package/.docu/lib/preview.node.js +5 -3
  25. package/.docu/lib/server.deno.js +6 -4
  26. package/.docu/lib/server.node.js +6 -4
  27. package/.docu/node/build.impl.ts +75 -26
  28. package/.docu/node/build.ts +70 -17
  29. package/.docu/node/client.ts +64 -27
  30. package/.docu/node/deploy.shared.ts +5 -5
  31. package/.docu/node/deploy.ts +1 -1
  32. package/.docu/node/html.shared.ts +7 -2
  33. package/.docu/node/html.ts +4 -2
  34. package/.docu/node/hydrate.node.ts +69 -4
  35. package/.docu/node/hydrate.ts +50 -1
  36. package/.docu/node/mdx-manifest.d.ts +5 -0
  37. package/.docu/node/mdx.ts +103 -17
  38. package/.docu/node/preview.deno.ts +1 -1
  39. package/.docu/node/preview.impl.ts +3 -3
  40. package/.docu/node/preview.node.ts +1 -1
  41. package/.docu/node/preview.ts +2 -2
  42. package/.docu/node/route.ts +57 -1
  43. package/.docu/node/runtime/bun.ts +28 -0
  44. package/.docu/node/runtime/deno.ts +34 -0
  45. package/.docu/node/runtime/index.ts +4 -0
  46. package/.docu/node/runtime/node.ts +107 -0
  47. package/.docu/node/runtime/types.ts +19 -0
  48. package/.docu/node/search-indexer.ts +3 -2
  49. package/.docu/node/seo.ts +2 -2
  50. package/.docu/node/server-routes.ts +32 -13
  51. package/.docu/node/server.deno.ts +1 -1
  52. package/.docu/node/server.impl.ts +49 -3
  53. package/.docu/node/server.node.ts +1 -1
  54. package/.docu/node/server.ts +45 -1
  55. package/.docu/pages/docs/[[...slug]].tsx +13 -4
  56. package/.docu/pages/index.tsx +1 -1
  57. package/.docu/styles/globals.css +38 -20
  58. package/README.md +7 -48
  59. package/bin/cli.js +25 -7
  60. package/package.json +7 -6
  61. package/template/README.md +7 -48
  62. package/template/docs/getting-started/configuration.mdx +16 -4
  63. package/template/docs/getting-started/overview.mdx +34 -42
  64. package/template/docs/guide/components.mdx +46 -228
  65. package/template/docs/guide/routing.mdx +8 -6
  66. package/template/docs/index.mdx +9 -8
  67. package/template/docu.json +4 -4
package/README.md CHANGED
@@ -1,19 +1,18 @@
1
1
  <h1 align="center" style="font-size: 32px;">
2
2
  DocuBook Flame 🔥
3
3
  </h1>
4
- <h3 align="center" style="font-size: 20px;">
5
- Fast as flame — a Bun-native framework for modern documentation experiences.
6
- </h3>
4
+
5
+ <p align="center" style="font-size: 20px;">
6
+ <strong>Compile markdown. Deploy anything.</strong>
7
+ </p>
7
8
 
8
9
  <p align="center">
9
- <strong>@docubook/flame</strong> is a lightweight runtime for building documentation websites using React, MDX, and filesystem-based routing — running on Bun, Node.js, and Deno.
10
+ No runtime, no server to run, no lock-in. One markdown format, readable
11
+ by humans and agents alike, compiled to flat static HTML — deploy anywhere.
10
12
  </p>
11
13
 
12
14
  ---
13
15
 
14
- > **Lightweight** — 📦 ~132 kB packed. No bloat, just fire.
15
-
16
- ---
17
16
  ## Quick Start
18
17
 
19
18
  **Bun**
@@ -43,47 +42,7 @@ deno task dev
43
42
 
44
43
  ## Documentation
45
44
 
46
- For the full documentation, please visit **[packages/flame/docs](https://github.com/DocuBook/docubook/tree/main/packages/flame/docs)** or read the individual pages below:
47
-
48
- ### Getting Started
49
-
50
- | Page | Description |
51
- | --------------------------------------------------------------------------------------------------------------------- | -------------------------------------------- |
52
- | [Welcome](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/index.mdx) | Overview and welcome to `@docubook/flame`. |
53
- | [Introduction](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/getting-started/introduction.mdx) | Overview of the framework. |
54
- | [Installation](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/getting-started/installation.mdx) | Install and scaffold your first site. |
55
- | [Quick Start Guide](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/getting-started/quick-start-guide.mdx) | Get up and running in minutes. |
56
- | [Format text](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/getting-started/format-text.mdx) | Markdown and inline styling in MDX. |
57
- | [Frontmatter](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/getting-started/frontmatter.mdx) | Page metadata via frontmatter. |
58
- | [Themes](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/getting-started/themes.mdx) | Color system, presets, and custom hex. |
59
- | [Plugins](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/getting-started/plugins.mdx) | Extend the build and dev pipeline. |
60
- | [Deployment](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/getting-started/deployment.mdx) | Deploy to static hosting with clean URLs. |
61
- | [Search — Built-in](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/getting-started/search/built-in.mdx) | Build-time full-text search. |
62
- | [Search — Algolia](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/getting-started/search/algolia.mdx) | Algolia DocSearch integration. |
63
-
64
- ### Components
65
-
66
- | Page | Description |
67
- | ------------------------------------------------------------------------------------------------- | ---------------------------------------- |
68
- | [Accordion](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/components/accordion.mdx) | Collapsible content sections. |
69
- | [Accordion Group](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/components/accordion-group.mdx) | Group multiple accordions. |
70
- | [Button](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/components/button.mdx) | Action and navigation buttons. |
71
- | [Card](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/components/card.mdx) | Compact content cards. |
72
- | [Card Group](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/components/card-group.mdx) | Display multiple cards together. |
73
- | [Code Block](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/components/code-block.mdx) | Code snippets with line highlighting. |
74
- | [Custom Components](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/components/custom.mdx) | Register your own MDX components. |
75
- | [File Tree](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/components/file-tree.mdx) | Hierarchical file structures. |
76
- | [Image](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/components/image.mdx) | Display images in Markdown. |
77
- | [Keyboard](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/components/keyboard.mdx) | Keyboard keys with platform styling. |
78
- | [Link](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/components/link.mdx) | Navigation links. |
79
- | [Mermaid](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/components/mermaid.mdx) | Mermaid.js diagrams in MDX. |
80
- | [Note](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/components/note.mdx) | Notes, warnings, and success messages. |
81
- | [Release Note](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/components/release-note.mdx) | Per-version update notes. |
82
- | [Stepper](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/components/stepper.mdx) | Step-by-step instructions. |
83
- | [Tables](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/components/tables.mdx) | GitHub-flavored tables. |
84
- | [Tabs](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/components/tabs.mdx) | Switchable content sections. |
85
- | [Tooltips](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/components/tooltips.mdx) | Hover info tooltips. |
86
- | [Youtube](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/components/youtube.mdx) | Embed YouTube videos. |
45
+ For the full documentation, please visit **[packages/flame/docs](https://github.com/DocuBook/docubook/tree/main/packages/flame/docs)** or read the official site [docubook.pro](https://docubook.pro)
87
46
 
88
47
  ---
89
48
 
package/bin/cli.js CHANGED
@@ -1,6 +1,5 @@
1
1
  #!/usr/bin/env node
2
2
  /* global process, console, Bun, Deno */
3
-
4
3
  import { resolve, join } from "node:path";
5
4
  import { pathToFileURL } from "node:url";
6
5
  import { cpSync, existsSync, readFileSync, writeFileSync, renameSync } from "node:fs";
@@ -51,6 +50,23 @@ if (!COMMAND_MAP) {
51
50
 
52
51
  const command = process.argv[2];
53
52
 
53
+ // Detect the package manager that invoked this binary. npm, pnpm, bun, and
54
+ // yarn set npm_config_user_agent when they run a bin; fall back to lockfiles
55
+ // in the target directory for direct invocations (e.g. `node bin/cli.js`).
56
+ function detectPkgManager(dir) {
57
+ const userAgent = process.env.npm_config_user_agent || "";
58
+ // pnpm/yarn UA strings also contain "npm/?" — match specific tools first.
59
+ if (/bun\//.test(userAgent)) return "bun";
60
+ if (/pnpm\//.test(userAgent)) return "pnpm";
61
+ if (/yarn\//.test(userAgent)) return "yarn";
62
+ if (/npm\//.test(userAgent)) return "npm";
63
+ if (existsSync(join(dir, "bun.lock"))) return "bun";
64
+ if (existsSync(join(dir, "pnpm-lock.yaml"))) return "pnpm";
65
+ if (existsSync(join(dir, "yarn.lock"))) return "yarn";
66
+ if (existsSync(join(dir, "package-lock.json"))) return "npm";
67
+ return "npm";
68
+ }
69
+
54
70
  // Parse flags
55
71
  const themeIndex = process.argv.indexOf("--theme");
56
72
  if (themeIndex !== -1 && themeIndex + 1 < process.argv.length) {
@@ -142,16 +158,18 @@ if (command === "init") {
142
158
  }
143
159
  writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + "\n");
144
160
 
145
- // Runtime detection via shebang (#!/usr/bin/env node) makes typeof Bun
146
- // unavailable — check for bun.lock as a reliable Bun indicator.
147
- const isBun = existsSync(join(targetDir, "bun.lock"));
148
- const pkgManager = runtime === "deno" ? "deno" : isBun ? "bun" : "node";
161
+ // The shebang (#!/usr/bin/env node) hides `typeof Bun`, so the package
162
+ // manager is detected from the invoking tool (npm_config_user_agent) with
163
+ // a lockfile fallback — the next steps must match the PM the user is on.
164
+ const pkgManager = runtime === "deno" ? "deno" : detectPkgManager(targetDir);
149
165
  const nextSteps = {
150
166
  bun: " bun install\n bun run dev",
151
- node: " npm install\n npm run dev",
167
+ pnpm: " pnpm install\n pnpm run dev",
168
+ yarn: " yarn\n yarn dev",
169
+ npm: " npm install\n npm run dev",
152
170
  deno: " deno task dev\n\n ⚠️ If you see a freshness error, run:\n DENO_ALLOW_NEWER=true deno task dev",
153
171
  }[pkgManager];
154
- console.log(`\n ✓ Project scaffolded!\n\n Next steps:\n${nextSteps}\n`);
172
+ console.log(`\n ✓ Project scaffolded!\n\n Next steps (${pkgManager}):\n${nextSteps}\n`);
155
173
  process.exit(0);
156
174
  } catch (err) {
157
175
  console.error(`Failed to scaffold project: ${err.message}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docubook/flame",
3
- "version": "1.7.2",
3
+ "version": "2.0.0-alpha.1",
4
4
  "description": "A blazing-fast React + MDX framework powered by Bun, built for modern documentation experiences.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -45,6 +45,7 @@
45
45
  "author-url": "https://wildan.dev",
46
46
  "license": "MIT",
47
47
  "dependencies": {
48
+ "@mdx-js/react": "^3.0.1",
48
49
  "@tailwindcss/cli": "4.3.0",
49
50
  "@tailwindcss/typography": "0.5.16",
50
51
  "bun-plugin-tailwind": "^0.1.2",
@@ -54,11 +55,11 @@
54
55
  "react": "^19.2.7",
55
56
  "react-dom": "^19.2.7",
56
57
  "unified": "^11.0.0",
57
- "@docubook/runt": "^1.0.0",
58
- "@docubook/ui-react": "^1.0.0",
59
- "@docubook/mdx-content": "^3.4.6",
60
- "@docubook/themes-colors": "^1.0.2",
61
- "@docubook/core": "^1.8.2"
58
+ "zod": "^4.4.3",
59
+ "@docubook/core": "^2.0.0-alpha.1",
60
+ "@docubook/markdown": "^2.0.0-alpha.1",
61
+ "@docubook/themes-colors": "^2.0.0-alpha.1",
62
+ "@docubook/ui-react": "^2.0.0-alpha.1"
62
63
  },
63
64
  "peerDependencies": {
64
65
  "@sentry/bun": "^10.0.0"
@@ -1,19 +1,18 @@
1
1
  <h1 align="center" style="font-size: 32px;">
2
2
  DocuBook Flame 🔥
3
3
  </h1>
4
- <h3 align="center" style="font-size: 20px;">
5
- Fast as flame — a Bun-native framework for modern documentation experiences.
6
- </h3>
4
+
5
+ <p align="center" style="font-size: 20px;">
6
+ <strong>Compile markdown. Deploy anything.</strong>
7
+ </p>
7
8
 
8
9
  <p align="center">
9
- <strong>@docubook/flame</strong> is a lightweight runtime for building documentation websites using React, MDX, and filesystem-based routing — running on Bun, Node.js, and Deno.
10
+ No runtime, no server to run, no lock-in. One markdown format, readable
11
+ by humans and agents alike, compiled to flat static HTML — deploy anywhere.
10
12
  </p>
11
13
 
12
14
  ---
13
15
 
14
- > **Lightweight** — 📦 ~132 kB packed. No bloat, just fire.
15
-
16
- ---
17
16
  ## Quick Start
18
17
 
19
18
  **Bun**
@@ -43,47 +42,7 @@ deno task dev
43
42
 
44
43
  ## Documentation
45
44
 
46
- For the full documentation, please visit **[packages/flame/docs](https://github.com/DocuBook/docubook/tree/main/packages/flame/docs)** or read the individual pages below:
47
-
48
- ### Getting Started
49
-
50
- | Page | Description |
51
- | --------------------------------------------------------------------------------------------------------------------- | -------------------------------------------- |
52
- | [Welcome](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/index.mdx) | Overview and welcome to `@docubook/flame`. |
53
- | [Introduction](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/getting-started/introduction.mdx) | Overview of the framework. |
54
- | [Installation](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/getting-started/installation.mdx) | Install and scaffold your first site. |
55
- | [Quick Start Guide](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/getting-started/quick-start-guide.mdx) | Get up and running in minutes. |
56
- | [Format text](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/getting-started/format-text.mdx) | Markdown and inline styling in MDX. |
57
- | [Frontmatter](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/getting-started/frontmatter.mdx) | Page metadata via frontmatter. |
58
- | [Themes](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/getting-started/themes.mdx) | Color system, presets, and custom hex. |
59
- | [Plugins](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/getting-started/plugins.mdx) | Extend the build and dev pipeline. |
60
- | [Deployment](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/getting-started/deployment.mdx) | Deploy to static hosting with clean URLs. |
61
- | [Search — Built-in](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/getting-started/search/built-in.mdx) | Build-time full-text search. |
62
- | [Search — Algolia](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/getting-started/search/algolia.mdx) | Algolia DocSearch integration. |
63
-
64
- ### Components
65
-
66
- | Page | Description |
67
- | ------------------------------------------------------------------------------------------------- | ---------------------------------------- |
68
- | [Accordion](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/components/accordion.mdx) | Collapsible content sections. |
69
- | [Accordion Group](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/components/accordion-group.mdx) | Group multiple accordions. |
70
- | [Button](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/components/button.mdx) | Action and navigation buttons. |
71
- | [Card](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/components/card.mdx) | Compact content cards. |
72
- | [Card Group](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/components/card-group.mdx) | Display multiple cards together. |
73
- | [Code Block](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/components/code-block.mdx) | Code snippets with line highlighting. |
74
- | [Custom Components](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/components/custom.mdx) | Register your own MDX components. |
75
- | [File Tree](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/components/file-tree.mdx) | Hierarchical file structures. |
76
- | [Image](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/components/image.mdx) | Display images in Markdown. |
77
- | [Keyboard](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/components/keyboard.mdx) | Keyboard keys with platform styling. |
78
- | [Link](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/components/link.mdx) | Navigation links. |
79
- | [Mermaid](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/components/mermaid.mdx) | Mermaid.js diagrams in MDX. |
80
- | [Note](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/components/note.mdx) | Notes, warnings, and success messages. |
81
- | [Release Note](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/components/release-note.mdx) | Per-version update notes. |
82
- | [Stepper](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/components/stepper.mdx) | Step-by-step instructions. |
83
- | [Tables](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/components/tables.mdx) | GitHub-flavored tables. |
84
- | [Tabs](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/components/tabs.mdx) | Switchable content sections. |
85
- | [Tooltips](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/components/tooltips.mdx) | Hover info tooltips. |
86
- | [Youtube](https://github.com/DocuBook/docubook/blob/main/packages/flame/docs/components/youtube.mdx) | Embed YouTube videos. |
45
+ For the full documentation, visit **[www.docubook.pro](https://www.docubook.pro/)**
87
46
 
88
47
  ---
89
48
 
@@ -3,16 +3,28 @@ title: Configuration
3
3
  description: docu.json reference — meta, navbar, themes, routes, and plugins.
4
4
  ---
5
5
 
6
- `docu.json` in your project root controls the site. Key sections:
6
+ `docu.json` in the project root controls the whole site. It is validated against `docu.schema.json`.
7
+
8
+ ## First edits
9
+
10
+ | What | Where |
11
+ |---|---|
12
+ | Site name & tagline | `meta.title`, `meta.description` |
13
+ | Brand in the header | `navbar.logoText` |
14
+ | Landing copy | `home.hero` — headline, description, actions |
15
+ | Colour preset | `themes.colors` — `default`, `freshlime`, `coffee` |
16
+ | Footer links | `footer.social` |
17
+
18
+ ## Reference
7
19
 
8
20
  | Field | Description |
9
21
  |---|---|
10
22
  | `meta` | Site title, description, favicon, base URL |
11
23
  | `navbar` | Logo, navigation menu links |
12
- | `home.hero` | Landing page hero with tagline, headline, actions |
13
- | `home.features` | Feature cards with icon, title, description |
24
+ | `home.hero` | Landing page hero — tagline, headline, actions |
25
+ | `home.features` | Feature cards — icon, title, description |
14
26
  | `routes` | Sidebar navigation (auto-detected from `docs/` when empty) |
15
27
  | `themes` | Colour preset or custom palette |
16
28
  | `plugins` | Build/dev pipeline extensions |
17
29
 
18
- See this site's `docu.json` for a complete example, or refer to `docu.schema.json` in the package root.
30
+ This project's `docu.json` is a complete working example — edit it and the dev server applies the changes live.
@@ -1,50 +1,42 @@
1
1
  ---
2
2
  title: Quick Start
3
- description: Get your first documentation site running on Bun, Node.js, or Deno.
3
+ description: The Flame workflow — dev server, first edit, authoring, and build.
4
4
  ---
5
5
 
6
- ## Prerequisites
7
-
8
- Choose **one** runtime:
9
-
10
- - **Bun** >= 1.1: `curl -fsSL https://bun.sh/install | bash`
11
- - **Node.js** >= 20.11: [nodejs.org](https://nodejs.org)
12
- - **Deno** >= 2.x: `curl -fsSL https://deno.land/install.sh | sh`
13
-
14
- ## Create a project
15
-
16
- <Tabs>
17
- <Tab title="Bun">
18
- ```bash
19
- mkdir my-docs && cd my-docs
20
- bun add @docubook/flame
21
- bunx flame init
22
- bun run dev
23
- ```
24
- </Tab>
25
- <Tab title="Node.js">
26
- ```bash
27
- mkdir my-docs && cd my-docs
28
- npm install @docubook/flame
29
- npx flame init
30
- npm run dev
31
- ```
32
- </Tab>
33
- <Tab title="Deno">
34
- ```bash
35
- mkdir my-docs && cd my-docs
36
- deno run -A npm:@docubook/flame init
37
- deno task dev
38
- ```
39
- </Tab>
40
- </Tabs>
41
-
42
- Open http://localhost:3000 — changes to `docs/` or `docu.json` hot-reload.
43
-
44
- ## Build for production
6
+ Your Flame project is ready — this is the workflow to make it yours.
7
+
8
+ ## 1. Run the dev server
9
+
10
+ ```bash
11
+ bun run dev # or: npm run dev / deno task dev
12
+ ```
13
+
14
+ Open http://localhost:3000 — edits to `docs/` and `docu.json` hot-reload instantly.
15
+
16
+ ## 2. Make your first edit
17
+
18
+ Open `docs/getting-started/overview.mdx` (this file):
19
+
20
+ 1. Change `title` and `description` in the frontmatter — the browser updates live
21
+ 2. Add a heading below and save
22
+ 3. New pages appear in the sidebar and search automatically
23
+
24
+ ## 3. Author with directives
25
+
26
+ Content is plain markdown — components are directives, no JSX:
27
+
28
+ ```md
29
+ :::tip
30
+ A callout — no JSX needed.
31
+ :::
32
+ ```
33
+
34
+ See [Components](/docs/guide/components) for the full directive set.
35
+
36
+ ## 4. Build for production
45
37
 
46
38
  ```bash
47
- npm run build # or: bun run build / deno task build
39
+ bun run build # or: npm run build / deno task build
48
40
  ```
49
41
 
50
- Static output goes to `.docu/dist/` — deploy to any CDN or static host.
42
+ Flat static HTML lands in `.docu/dist/` — deploy anywhere ([Deployment](/docs/guide/deployment)).