gutterpress 0.10.10 → 0.10.11
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 +20 -6
- package/dist/api/index.js +1 -1
- package/dist/{audit-nx0rxyqs.js → audit-ebbbhpx7.js} +3 -3
- package/dist/{build-7dgk1b9z.js → build-zrajk3s2.js} +3 -3
- package/dist/checks/source/markdownlint.d.ts +16 -0
- package/dist/{cli-4vyra9eq.js → cli-36r50yr3.js} +1 -1
- package/dist/{cli-m7v5z501.js → cli-gxq7yz5f.js} +1 -1
- package/dist/{cli-jcemen7j.js → cli-hz44te1m.js} +131 -57
- package/dist/cli.js +14 -14
- package/dist/{doctor-07rfg847.js → doctor-78qft9g7.js} +2 -2
- package/dist/engine/shared/cdp.d.ts +6 -2
- package/dist/{ext-6twv1x6c.js → ext-3g1mk8mb.js} +3 -3
- package/dist/{index-xs2g04p2.js → index-03cqyyyk.js} +381 -305
- package/dist/index.js +1 -1
- package/dist/lib/markdownlint-fix.d.ts +7 -0
- package/dist/lib/validation-exec.d.ts +6 -0
- package/dist/{lint-j60awn0r.js → lint-va95zh6j.js} +3 -3
- package/dist/{new-j8q6paaz.js → new-3ex11eyq.js} +3 -3
- package/dist/{preflight-w9predag.js → preflight-q8w6dnjh.js} +3 -3
- package/dist/{preview-keecv833.js → preview-azatsrtp.js} +3 -3
- package/dist/{publish-mjrvdxpc.js → publish-5tqzepkb.js} +3 -3
- package/dist/render.js +1 -1
- package/dist/{validate-cn6jsndb.js → validate-rp613ejg.js} +9 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,11 +12,11 @@ Download for your platform from the [latest release](https://github.com/dimm-cit
|
|
|
12
12
|
|
|
13
13
|
| Platform | Binary |
|
|
14
14
|
|---|---|
|
|
15
|
-
| Linux x64 | `gutterpress-linux-x64` |
|
|
16
|
-
| Linux ARM64 | `gutterpress-linux-arm64` |
|
|
17
|
-
| macOS Apple Silicon | `gutterpress-macos-arm64` |
|
|
18
|
-
| macOS Intel | `gutterpress-macos-x64` |
|
|
19
|
-
| Windows x64 | `gutterpress-windows-x64.exe` |
|
|
15
|
+
| Linux x64 | `gutterpress-cli-linux-x64` |
|
|
16
|
+
| Linux ARM64 | `gutterpress-cli-linux-arm64` |
|
|
17
|
+
| macOS Apple Silicon | `gutterpress-cli-macos-arm64` |
|
|
18
|
+
| macOS Intel | `gutterpress-cli-macos-x64` |
|
|
19
|
+
| Windows x64 | `gutterpress-cli-windows-x64.exe` |
|
|
20
20
|
|
|
21
21
|
Move the binary somewhere on your `PATH`, mark it executable (`chmod +x`), and you're done.
|
|
22
22
|
|
|
@@ -308,8 +308,22 @@ gutterpress validate [dir] [options]
|
|
|
308
308
|
--format <fmt> text (default) | json
|
|
309
309
|
--phase <p> pre | post | all | pre-build | post-build (default: all)
|
|
310
310
|
--target <t> Publish targets to validate against (comma-separated, e.g. dtrpg,itch), overriding the manifest's `targets:`
|
|
311
|
+
--fix Rewrite the source markdown in place with markdownlint's auto-fixes (source.markdownlint only)
|
|
311
312
|
```
|
|
312
313
|
|
|
314
|
+
`--fix` is the only thing validation ever writes, and only when you ask for
|
|
315
|
+
it: it applies markdownlint's own auto-fixes to the markdown, prints every
|
|
316
|
+
file it rewrote, and still reports whatever cannot be fixed mechanically. It
|
|
317
|
+
uses the same `.markdownlint.*` config the `source.markdownlint` check uses,
|
|
318
|
+
and does nothing when no config is found. A file with uncommitted changes is
|
|
319
|
+
rewritten too — you get a notice, not a refusal.
|
|
320
|
+
|
|
321
|
+
It writes only when `source.markdownlint` is actually part of the run, so
|
|
322
|
+
`--skip source.markdownlint`, an `--only` that names other checks, or a
|
|
323
|
+
`--phase`/`--category` that filters the source checks out all leave your
|
|
324
|
+
markdown untouched — `--fix` can never rewrite a file for a check the report
|
|
325
|
+
does not mention.
|
|
326
|
+
|
|
313
327
|
### `gutterpress audit`
|
|
314
328
|
|
|
315
329
|
Run asset-only validation checks (image DPI/format/color-space, print-readiness) without the rest of the validation pipeline.
|
|
@@ -546,7 +560,7 @@ The standalone binary is the easiest way — drop it in a GitHub Actions step an
|
|
|
546
560
|
- name: Build PDF
|
|
547
561
|
run: |
|
|
548
562
|
curl -L -o gutterpress \
|
|
549
|
-
https://github.com/dimm-city/gutterpress/releases/latest/download/gutterpress-linux-x64
|
|
563
|
+
https://github.com/dimm-city/gutterpress/releases/latest/download/gutterpress-cli-linux-x64
|
|
550
564
|
chmod +x gutterpress
|
|
551
565
|
sudo apt-get install -y google-chrome-stable ghostscript
|
|
552
566
|
./gutterpress build ./my-book --out dist/my-book.pdf
|
package/dist/api/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executeAndReport
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-hz44te1m.js";
|
|
4
4
|
import {
|
|
5
5
|
log
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-36r50yr3.js";
|
|
7
7
|
import {
|
|
8
8
|
UsageError,
|
|
9
9
|
rejectExtraPositionals,
|
|
10
10
|
rejectUnknownFlags
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-gxq7yz5f.js";
|
|
12
12
|
import"./cli-k8f9eb12.js";
|
|
13
13
|
import"./cli-c41yr7he.js";
|
|
14
14
|
import {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runBuild,
|
|
3
3
|
splitOutPath
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-hz44te1m.js";
|
|
5
5
|
import {
|
|
6
6
|
log
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-36r50yr3.js";
|
|
8
8
|
import {
|
|
9
9
|
UsageError,
|
|
10
10
|
parseFormat,
|
|
11
11
|
parsePdfxFlavor,
|
|
12
12
|
rejectExtraPositionals,
|
|
13
13
|
rejectUnknownFlags
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-gxq7yz5f.js";
|
|
15
15
|
import"./cli-k8f9eb12.js";
|
|
16
16
|
import"./cli-c41yr7he.js";
|
|
17
17
|
import {
|
|
@@ -1,3 +1,19 @@
|
|
|
1
1
|
import type { Check } from "../types";
|
|
2
|
+
/** Exported so `validate --fix` (lib/markdownlint-fix.ts) discovers config
|
|
3
|
+
* through THIS list, never a second copy of it. */
|
|
4
|
+
export declare const CONFIG_NAMES: string[];
|
|
5
|
+
/**
|
|
6
|
+
* Load a markdownlint config object from a discovered config file. The parser
|
|
7
|
+
* is selected by extension (.json → JSON, .jsonc → JSON minus comments, else
|
|
8
|
+
* YAML — which also accepts plain JSON). markdownlint-cli2-style files nest the
|
|
9
|
+
* rules under a `config:` key; plain markdownlint files are the rules object
|
|
10
|
+
* directly, so `parsed.config ?? parsed` handles both shapes.
|
|
11
|
+
*
|
|
12
|
+
* Exported for `validate --fix` (lib/markdownlint-fix.ts), so the fixer and
|
|
13
|
+
* this check can never disagree about which rules apply.
|
|
14
|
+
*/
|
|
15
|
+
export declare function loadConfig(configPath: string): Promise<Record<string, unknown>>;
|
|
16
|
+
/** The registered id, shared with `validate --fix`'s selector gate (#275). */
|
|
17
|
+
export declare const MARKDOWNLINT_CHECK_ID = "source.markdownlint";
|
|
2
18
|
declare const check: Check;
|
|
3
19
|
export default check;
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
// package.json
|
|
5
5
|
var package_default = {
|
|
6
6
|
name: "gutterpress",
|
|
7
|
-
version: "0.10.
|
|
7
|
+
version: "0.10.11",
|
|
8
8
|
description: "Markdown-to-PDF converter for professional print layout using a native Chromium print engine and Ghostscript.",
|
|
9
9
|
author: "itlackey",
|
|
10
10
|
license: "MPL-2.0",
|