create-nowaki 0.19.0 → 0.19.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-nowaki",
3
- "version": "0.19.0",
3
+ "version": "0.19.1",
4
4
  "description": "Scaffold a new Nowaki app",
5
5
  "license": "MIT",
6
6
  "author": "Tettu0530",
@@ -142,6 +142,17 @@ nowaki.config.mjs plugins (optional)
142
142
  <a href={route("/blog/[slug]", { slug })}>Post</a> // dynamic, params typed
143
143
  ```
144
144
  Unknown paths, missing params, and wrong param keys are compile errors.
145
+ 11. **Markdoc (optional)** — [Markdoc](https://markdoc.dev) via the official
146
+ `@nowaki-dev/markdoc` plugin (`npm install @nowaki-dev/markdoc`). Register it
147
+ in `nowaki.config.mjs` and import `.mdoc` files from routes; they are not
148
+ routes themselves. Upstream docs: `packages/nowaki-markdoc/README.md`.
149
+ ```js
150
+ // nowaki.config.mjs
151
+ import { markdoc } from "@nowaki-dev/markdoc";
152
+ export default {
153
+ plugins: [markdoc({ components: "./markdoc/components.tsx", tags: { /* … */ } })],
154
+ };
155
+ ```
145
156
 
146
157
  ## Security
147
158
 
@@ -9,11 +9,11 @@
9
9
  "prerender": "nowaki prerender"
10
10
  },
11
11
  "dependencies": {
12
- "@nowaki-dev/runtime": "^0.17.0",
12
+ "@nowaki-dev/runtime": "^0.17.1",
13
13
  "preact": "^11.1.1",
14
14
  "preact-render-to-string": "^6.8.2"
15
15
  },
16
16
  "devDependencies": {
17
- "nowaki": "^0.18.0"
17
+ "nowaki": "^0.18.1"
18
18
  }
19
19
  }