|
4 | 4 |
|
5 | 5 | ## Purpose |
6 | 6 |
|
7 | | -Build publishable outputs from a local directory or a GitHub repository. `build` supports `pdf`, `html`, `site`, and `epub`, and it can generate multiple formats in a single run. |
| 7 | +Build publishable outputs from a local directory or a GitHub repository. `build` supports `pdf`, `html`, `site`, `epub`, and `typst`, and it can generate multiple formats in a single run. |
8 | 8 |
|
9 | 9 | ## Syntax |
10 | 10 |
|
@@ -55,6 +55,7 @@ mdpress build --config ./docs/book.yaml ./docs --format pdf,html |
55 | 55 | - When `--format` is provided, the CLI value overrides `output.formats` in config. |
56 | 56 | - When `--format` is omitted, `output.formats` is used first. |
57 | 57 | - If neither is set, the default output is `pdf`. |
| 58 | +- `--format all` expands to `pdf,html,site,epub` and does **not** include `typst`. To include Typst output, specify it explicitly (e.g., `--format all,typst` or `--format pdf,html,site,epub,typst`). |
58 | 59 |
|
59 | 60 | ### `--output` |
60 | 61 |
|
@@ -114,10 +115,12 @@ mdpress build --config ./configs/book.yaml --verbose |
114 | 115 | | `html` | A self-contained single-page HTML file | |
115 | 116 | | `site` | A multi-page static site directory | |
116 | 117 | | `epub` | A single ePub file | |
| 118 | +| `typst` | A PDF file generated via the Typst CLI (experimental, Chromium-free) | |
117 | 119 |
|
118 | 120 | ## Notes |
119 | 121 |
|
120 | 122 | - PDF generation requires Chrome or Chromium. If neither is available, PDF builds will fail. |
| 123 | +- Typst output requires the Typst CLI. If it is not installed, `--format typst` builds will fail. |
121 | 124 | - During the build, mdpress checks heading numbering, Markdown links, and Mermaid diagnostics. Many of these are warnings and do not necessarily stop the build. |
122 | 125 | - When `LANGS.md` exists at the project root, `build` generates one output set per language and also creates a language landing page. |
123 | 126 | - For remote GitHub inputs, the current implementation prefers the remote repository's `book.yaml`. A local `--config` path does not override the remote project's config location. |
|
0 commit comments