@beltype/cli 0.1.2 → 0.1.3

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 (2) hide show
  1. package/README.md +5 -5
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -3,15 +3,15 @@
3
3
  The BelType command line. It prints a finished HTML document to PDF: Cicero cuts the document into pages in the browser, and Caster prints the pages Cicero presented. Chromium's own print is never called, so the run needs only Playwright's bare headless shell.
4
4
 
5
5
  ```bash
6
- beltype print samples/paper/index.html # writes samples/paper/index.pdf
7
- beltype print samples/paper/index.html -o paper.pdf
6
+ beltype print paper/index.html # writes paper/index.pdf
7
+ beltype print paper/index.html -o paper.pdf
8
8
  ```
9
9
 
10
10
  The document is plain HTML, CSS and the files beside it. The run answers every request from the document's folder, on a made-up `.invalid` address, and refuses anything else by name: a document that asks for a file it does not have, or for anything on a network, prints nothing. Fonts must be declared with `@font-face` and their files, because Caster embeds every face it draws.
11
11
 
12
12
  ## The sample
13
13
 
14
- `samples/paper/` is a short scientific article on A4 (its data are invented). It exercises what a paged document needs:
14
+ `paper`, from [`@beltype/specimens`](https://codeberg.org/BelType/specimens), is a short scientific article on A4 (its data are invented). It exercises what a paged document needs:
15
15
 
16
16
  - the page box, with margins and an `@page :first` that withholds the margin boxes on the title page;
17
17
  - margin boxes: a running title and a running section from named strings (`string-set`), and the folio from `counter(page)`;
@@ -21,7 +21,7 @@ The document is plain HTML, CSS and the files beside it. The run answers every r
21
21
  - `break-after: avoid` on headings and `break-inside: avoid` on figures;
22
22
  - `hyphens: auto`, the hyphen drawn where Blink breaks and extracted as a soft hyphen.
23
23
 
24
- Its fonts, Source Serif 4 and Source Sans 3, are under the SIL Open Font License (`samples/paper/fonts/`).
24
+ Its fonts, Source Serif 4 and Source Sans 3, are under the SIL Open Font License, with their licences in the specimen's `fonts/`. A change to it is made in the specimens repository, and the pin here moves.
25
25
 
26
26
  ## What is not printed yet
27
27
 
@@ -46,6 +46,6 @@ The companions come from the organization's repositories as git dependencies, ea
46
46
  ```bash
47
47
  pnpm install
48
48
  pnpm run check # tsc over src and test, strict
49
- pnpm test # prints the sample and reads the file back with mupdf
49
+ pnpm test # prints the specimen and reads the file back with mupdf
50
50
  pnpm run build # dist/, which the beltype command runs
51
51
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beltype/cli",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "beltype, the command line: a finished HTML document printed to PDF by Cicero and Caster in Chromium's headless shell.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -38,6 +38,7 @@
38
38
  "playwright-core": "1.63.0"
39
39
  },
40
40
  "devDependencies": {
41
+ "@beltype/specimens": "0.1.0",
41
42
  "@types/node": "^22.20.5",
42
43
  "mupdf": "1.28.1",
43
44
  "typescript": "7.0.2"