@ainame/tuzuru 0.3.4 → 0.4.0
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/README.md +8 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ It is designed to keep workflows minimal, allowing you to focus on writing.
|
|
|
19
19
|
* Simple routing with auto-generated listing pages
|
|
20
20
|
* Yearly archives and category-based listings are created automatically.
|
|
21
21
|
* Simple preview server with built-in watch mode
|
|
22
|
-
* `tuzuru
|
|
22
|
+
* `tuzuru preview` automatically rebuilds on requests.
|
|
23
23
|
* Simple installation with minimal setup
|
|
24
24
|
* Install via Homebrew, npm, or download a binary from GitHub Releases.
|
|
25
25
|
* Simple deployment with built-in GitHub Actions
|
|
@@ -85,10 +85,10 @@ tuzuru generate
|
|
|
85
85
|
|
|
86
86
|
You can now see the `blog` directory that can be deployed to GitHub Pages or your favorite HTTP server.
|
|
87
87
|
|
|
88
|
-
For local development, use the built-in
|
|
88
|
+
For local development, use the built-in preview command:
|
|
89
89
|
|
|
90
90
|
``` bash
|
|
91
|
-
tuzuru
|
|
91
|
+
tuzuru preview
|
|
92
92
|
```
|
|
93
93
|
|
|
94
94
|
This starts a local HTTP server at `http://localhost:8000` with auto-regeneration enabled. When you modify source files, the blog will be automatically rebuilt on the next request.
|
|
@@ -299,21 +299,21 @@ Tuzuru includes a built-in HTTP server for local development:
|
|
|
299
299
|
|
|
300
300
|
```bash
|
|
301
301
|
# Basic usage (serves on port 8000)
|
|
302
|
-
tuzuru
|
|
302
|
+
tuzuru preview
|
|
303
303
|
|
|
304
304
|
# Custom port
|
|
305
|
-
tuzuru
|
|
305
|
+
tuzuru preview --port 3000
|
|
306
306
|
|
|
307
307
|
# Custom directory (default is 'blog')
|
|
308
|
-
tuzuru
|
|
308
|
+
tuzuru preview --directory my-output
|
|
309
309
|
|
|
310
310
|
# Custom config file
|
|
311
|
-
tuzuru
|
|
311
|
+
tuzuru preview --config my-config.json
|
|
312
312
|
```
|
|
313
313
|
|
|
314
314
|
### Auto-regeneration
|
|
315
315
|
|
|
316
|
-
The
|
|
316
|
+
The preview command automatically watches for changes in your source files and regenerates the blog when needed:
|
|
317
317
|
|
|
318
318
|
- **Content files**: Watches `contents/` and `contents/unlisted/` directories
|
|
319
319
|
- **Asset files**: Watches the `assets/` directory
|