Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@vivliostyle/cli

vivliostyle2.5kAGPL-3.09.7.0TypeScript support: included

Save the pdf file via headless browser and Vivliostyle.

vivliostyle

readme

Vivliostyle CLI

npm npm: total downloads

Supercharge your command-line publication workflow.

Install

npm install -g @vivliostyle/cli

Use

Usage: vivliostyle [options] [command]

Options:
  -v, --version   output the version number
  -h, --help      display help for command

Commands:
  init            create vivliostyle config
  build           build and create PDF file
  preview         launch preview server
  help [command]  display help for command

init

create vivliostyle config file.

vivliostyle init

You are new to Vivliostyle? Check out our latest project Create Book. With Create Book, you can easily bootstrap your book project and start writing without any extra effort.

CLI Options

Options:
  --title <title>            title
  --author <author>          author
  -l, --language <language>  language
  -s, --size  <size>         paper size
  -T, --theme <theme>        theme
  --log-level <level>        specify a log level of console outputs (choices: "silent", "info", "verbose", "debug", default: "info")
  -h, --help                 display help for command

build

build and create PDF file.

Put vivliostyle.config.js in the root directory, then:

vivliostyle build

CLI options

Options:
  -c, --config <config_file>         path to vivliostyle.config.js [vivliostyle.config.js]
  -o, --output <path>                specify output file name or directory [<title>.pdf]
                                     This option can be specified multiple, then each -o options can be supplied one -f option.
                                     ex: -o output1 -f webpub -o output2.pdf -f pdf
  -f, --format <format>              specify output format corresponding output target
                                     If an extension is specified on -o option, this field will be inferenced automatically.
  -s, --size <size>                  output pdf size
                                     preset: A5, A4, A3, B5, B4, JIS-B5, JIS-B4, letter, legal, ledger
                                     custom(comma separated): 182mm,257mm or 8.5in,11in
  -m, --crop-marks                   print crop marks
  --bleed <bleed>                    extent of the bleed area for printing with crop marks [3mm]
  --crop-offset <offset>             distance between the edge of the trim size and the edge of the media size. [auto (13mm + bleed)]
  --css <CSS>                        custom style CSS code. (ex: ":root {--my-color: lime;}")
  --style <stylesheet>               additional stylesheet URL or path
  --user-style <user_stylesheet>     user stylesheet URL or path
  -d, --single-doc                   single HTML document input
  -p, --press-ready                  make generated PDF compatible with press ready PDF/X-1a [false]
                                     This option is equivalent with "--preflight press-ready"
  -t, --timeout <seconds>            timeout limit for waiting Vivliostyle process [300]
  -T, --theme <theme...>             theme path or package name
  --title <title>                    title
  --author <author>                  author
  -l, --language <language>          language
  --reading-progression <direction>  Direction of reading progression (choices: "ltr", "rtl")
  --render-mode <mode>               if docker is set, Vivliostyle try to render PDF on Docker container [local] (choices: "local", "docker")
  --preflight <mode>                 apply the process to generate PDF for printing (choices: "press-ready", "press-ready-local")
  --preflight-option <options...>    options for preflight process (ex: gray-scale, enforce-outline)
                                     Please refer the document of press-ready for further information.
                                     https://github.com/vibranthq/press-ready
  --executable-browser <path>        specify a path of executable browser you installed
  --image <image>                    specify a docker image to render
  --viewer <URL>                     specify a URL of displaying viewer instead of vivliostyle-cli's one
                                     It is useful that using own viewer that has staging features. (ex: https://vivliostyle.vercel.app/)
  --viewer-param <parameters>        specify viewer parameters. (ex: "allowScripts=false&pixelRatio=16")
  --proxy-server <proxyServer>       HTTP/SOCK proxy server url for underlying Playwright
  --proxy-bypass <proxyBypass>       optional comma-separated domains to bypass proxy
  --proxy-user <proxyUser>           optional username for HTTP proxy authentication
  --proxy-pass <proxyPass>           optional password for HTTP proxy authentication
  --log-level <level>                specify a log level of console outputs (choices: "silent", "info", "verbose", "debug", default: "info")
  --ignore-https-errors              true to ignore HTTPS errors when Playwright browser opens a new page
  --host <host>                      IP address the server should listen on
  --port <port>                      port the server should listen on
  --no-enable-static-serve           disable static file serving
  --vite-config-file <path>          Vite config file path
  --no-vite-config-file              ignore Vite config file even if it exists
  -h, --help                         display help for command

preview

open preview page and save PDF interactively.

vivliostyle preview

CLI options

Options:
  -c, --config <config_file>         path to vivliostyle.config.js
  -T, --theme <theme...>             theme path or package name
  -s, --size <size>                  output pdf size
                                     preset: A5, A4, A3, B5, B4, JIS-B5, JIS-B4, letter, legal, ledger
                                     custom(comma separated): 182mm,257mm or 8.5in,11in
  -m, --crop-marks                   print crop marks
  --bleed <bleed>                    extent of the bleed area for printing with crop marks [3mm]
  --crop-offset <offset>             distance between the edge of the trim size and the edge of the media size. [auto (13mm + bleed)]
  --css <CSS>                        custom style CSS code. (ex: ":root {--my-color: lime;}")
  --style <stylesheet>               additional stylesheet URL or path
  --user-style <user_stylesheet>     user stylesheet URL or path
  -d, --single-doc                   single HTML document input
  -q, --quick                        quick loading with rough page count
  --title <title>                    title
  --author <author>                  author
  -l, --language <language>          language
  --reading-progression <direction>  Direction of reading progression (choices: "ltr", "rtl")
  --executable-browser <path>        specify a path of executable browser you installed
  --viewer <URL>                     specify a URL of displaying viewer instead of vivliostyle-cli's one
                                     It is useful that using own viewer that has staging features. (ex: https://vivliostyle.vercel.app/)
  --viewer-param <parameters>        specify viewer parameters. (ex: "allowScripts=false&pixelRatio=16")
  --browser <browser>                EXPERIMENTAL SUPPORT: Specify a browser type to launch Vivliostyle viewer [chromium]
                                     Currently, Firefox and Webkit support preview command only! (choices: "chromium", "firefox", "webkit")
  --proxy-server <proxyServer>       HTTP/SOCK proxy server url for underlying Playwright
  --proxy-bypass <proxyBypass>       optional comma-separated domains to bypass proxy
  --proxy-user <proxyUser>           optional username for HTTP proxy authentication
  --proxy-pass <proxyPass>           optional password for HTTP proxy authentication
  --log-level <level>                specify a log level of console outputs (choices: "silent", "info", "verbose", "debug", default: "info")
  --ignore-https-errors              true to ignore HTTPS errors when Playwright browser opens a new page
  --host <host>                      IP address the server should listen on
  --port <port>                      port the server should listen on
  --no-open-viewer                   do not open viewer
  --no-enable-static-serve           disable static file serving
  --no-enable-viewer-start-page      disable viewer start page
  --vite-config-file <path>          Vite config file path
  --no-vite-config-file              ignore Vite config file even if it exists
  -h, --help                         display help for command

User Guide

See User Guide

Contribute

See Contribution Guide.

License

Licensed under AGPL Version 3.

changelog

Changelog

9.6.0 (2025-08-11)

Bug Fixes

  • Update Vivliostyle.js to 2.34.1: Fix PDF internal link bug (4d5736c)

Features

9.5.0 (2025-08-02)

Features

  • Update Playwright to 1.54.2 (Chromium 139.0.7258.5) (605abea)
  • Update Vivliostyle.js to 2.34.0: Improve CSS page-margin boxes support (b4e31c8)

9.4.0 (2025-07-13)

Bug Fixes

  • Remove unnecessary debugger statement (a9cdceb)
  • Work pageCounterReset option with Vivliostyle Themes (#622) (e36d663)

Features

  • Add disableServerStartup option (2ee04d8)

9.3.3 (2025-06-30)

Bug Fixes

  • Update Vivliostyle.js to 2.33.2: Bug Fix (b9b1095)

9.3.2 (2025-06-27)

Bug Fixes

9.3.1 (2025-06-26)

Bug Fixes

  • Update Vivliostyle.js to 2.33.1: Bug Fixes (3c8665f)

9.3.0 (2025-06-25)

Features

  • Update Playwright to 1.53.1 (Chromium 138.0.7204.23) (8ad5b80)
  • Update Vivliostyle.js to 2.33.0: Spread inside/outside properties (e265395)

9.2.0 (2025-06-10)

Bug Fixes

  • Add imported theme files to watch target (bae7996)
  • Fix failure case of saving remote webbook files (3122ab6)
  • Fix to work --style/--user-style option (c1864bb), closes #604
  • Quit formatting html outputs (d9cbeaf), closes #599
  • Update Vivliostyle.js to 2.32.1: Bug Fixes (80702c0)

Features

  • Do not add a trailing slash to webbook URL (c00bc95), closes #603

The webbook URL no longer automatically adds a trailing slash. If the remote server requires one, you may need to update your input accordingly.

vivliostyle build https://example.com/subpath
↓
vivliostyle build https://example.com/subpath/

9.1.1 (2025-05-17)

Bug Fixes

  • Enable --render-mode/--preflight/--preflight-option parameters (b8e09ca)
  • Improve behavior running commands in Docker container (38056a7)
  • Resolve Docker build launch failure (00775a0), closes #593
  • Resolve host connection via Docker image (8193da3)
  • Resolve PATH in docker image (a311f65), closes #594
  • Restore support for file and data URL input (5dd7be3), closes #589

9.1.0 (2025-05-08)

Bug Fixes

  • Allow --timeout 0 argument for build command (d8c2993), closes #575

Features

  • Increase the default build timeout to 300s (20b8897)
  • Update Playwright to 1.52.0 (Chromium 136.0.7103.25) (fe7f72d)
  • Update Vivliostyle.js to 2.32.0: Improve [@font-face](https://github.com/font-face) support, etc. (80325cd), closes #580

9.0.2 (2025-05-06)

Bug Fixes

  • Always disable web security to allow cross-origin requests (58e97ef), closes #579
  • Check version compatibility of image config (6203101)
  • Locate appropriate server roots in single entry mode (71cfdce), closes #584 #585
  • Show cursor if process is interrupted (5b51f02), closes #583

9.0.1 (2025-05-05)

Bug Fixes

  • Add Vite as dependencies (c19fdf3)

9.0.0 (2025-05-03)

Bug Fixes

  • Load document with extensions other than .html correctly (d9fd342), closes #574

chore

Features

  • Rewrite internal system based on Vite (dd4b41f)

BREAKING CHANGES

  • Some systems that rely on architecture inside the Vivliostyle CLI may no longer work. See #550 for more information.
  • Node.js v18 is now the minimum supported version.

9.0.0-next.7 (2025-04-27)

9.0.0-next.6 (2025-03-09)

Reverts

  • Revert "chore: Export internal plugins" (92900c6)

9.0.0-next.5 (2025-03-09)

9.0.0-next.4 (2025-03-08)

Bug Fixes

  • Add config file to deps (bc0b875)

9.0.0-next.3 (2025-01-15)

9.0.0-next.2 (2025-01-13)

9.0.0-next.1 (2025-01-06)

9.0.0-next.0 (2025-01-06)

8.20.0 (2025-04-08)

Bug Fixes

  • Update Vivliostyle.js to 2.31.2: Bug Fixes (cacb9dd)

Features

  • Update Playwright to 1.51.1 (Chromium 134.0.6998.35) (9de4386)

8.19.0 (2025-03-01)

Bug Fixes

  • Update Vivliostyle.js to 2.31.1: Bug Fixes (c0ffa1e)

Features

  • Update Playwright to 1.50.1 (Chromium 133.0.6943.16) (ed4f1ea)

8.18.0 (2025-01-17)

Features

  • Update Vivliostyle.js to 2.31.0: Extended CSS Page Floats support (6964349)

8.17.2 (2025-01-10)

Bug Fixes

  • Update Vivliostyle.js to 2.30.8: Bug Fixes (9c25dc0)

9.0.1 (2025-05-05)

Bug Fixes

  • Add Vite as dependencies (c19fdf3)

9.0.0 (2025-05-03)

Bug Fixes

  • Load document with extensions other than .html correctly (d9fd342), closes #574

chore

Features

  • Rewrite internal system based on Vite (dd4b41f)

BREAKING CHANGES

  • Some systems that rely on architecture inside the Vivliostyle CLI may no longer work. See #550 for more information.
  • Node.js v18 is now the minimum supported version.

9.0.0-next.7 (2025-04-28)

9.0.0-next.6 (2025-03-09)

Reverts

  • Revert "chore: Export internal plugins" (92900c6)

9.0.0-next.5 (2025-03-09)

9.0.0-next.4 (2025-03-08)

Bug Fixes

  • Add config file to deps (bc0b875)

9.0.0-next.3 (2025-01-15)

9.0.0-next.2 (2025-01-13)

9.0.0-next.1 (2025-01-06)

9.0.0-next.0 (2025-01-06)

8.20.0 (2025-04-08)

Bug Fixes

  • Add --disable-gpu option when running on WSL (4fda0c9)
  • Update Vivliostyle.js to 2.31.2: Bug Fixes (cacb9dd)

Features

  • Update Playwright to 1.51.1 (Chromium 134.0.6998.35) (9de4386)

8.19.0 (2025-03-01)

Bug Fixes

  • Update Vivliostyle.js to 2.31.1: Bug Fixes (c0ffa1e)

Features

  • Update Playwright to 1.50.1 (Chromium 133.0.6943.16) (ed4f1ea)

8.18.0 (2025-01-17)

Features

  • Update Vivliostyle.js to 2.31.0: Extended CSS Page Floats support (6964349)

8.17.2 (2025-01-10)

Bug Fixes

  • Update Vivliostyle.js to 2.30.8: Bug Fixes (9c25dc0)

8.17.1 (2024-11-27)

Bug Fixes

8.17.0 (2024-11-27)

Bug Fixes

  • Fix to work --browser option (da522f7), closes #546
  • Update Vivliostyle.js to 2.30.7: Layout bug fixes (3e3310c)

Features

  • Update Playwright to 1.49.0 (Chromium 131.0.6778.33) (eadf6da)

8.16.2 (2024-11-18)

Bug Fixes

  • Update Vivliostyle.js to 2.30.6: Bug Fixes (52e4839)

8.16.1 (2024-11-06)

Bug Fixes

  • Fixed to generate tagged PDF (d75a47d), closes #539
  • Handle symlinks correctly when copying workspace directory (#536) (a96f678)

8.16.0 (2024-10-21)

Bug Fixes

  • Ensure template files are not copied into webpub/epub (da93797)
  • Escape path references that includes non-ascii chars (ea882d1), closes #525
  • Fix not to include publication.json itself in its resources property (0c55356), closes #523
  • Update Vivliostyle.js to 2.30.5: Bug Fixes (cfe3095)

Features

  • add document processor from markdown into html extension point (919de86)
  • support HTTP Proxy configuration via cli flag or environment variable (c8f2c69)
  • support ignoreHTTPSErrors when Playwright browser opens a new page (63f2557)
  • Update Playwright to 1.48.1 (Chromium 130.0.6723.31) (865cf5f)

8.15.0 (2024-10-03)

Bug Fixes

  • Set a project title if ToC title is not set (88b227c)
  • Upgreade Prettier formatter to v3 (1d9ea0c)

Features

  • Add feature generating ToC/cover documents from existing MD/HTML (92764d8)
  • Renew internal config schema validator (9e485ab)

8.14.1 (2024-08-20)

Bug Fixes

  • Update Vivliostyle.js to 2.30.4: Bug fix (4e435ce)

8.14.0 (2024-08-19)

Bug Fixes

  • Update Vivliostyle.js to 2.30.3: Fix for Chromium 128 (22609f0)

Features

  • Update Playwright to 1.46.1 (Chromium 128.0.6613.18) (d7335d6), closes #504

8.13.1 (2024-08-11)

Bug Fixes

  • error: cheerio does not provide an export named default (45a1f6b), closes #500

8.13.0 (2024-07-25)

Bug Fixes

  • Update Vivliostyle.js to 2.30.2: Bug Fixes (9fa6aca)

Features

  • Update Playwright to 1.45.2 (Chromium 127.0.6533.17) (885878f)

8.12.1 (2024-06-14)

Bug Fixes

  • Update Vivliostyle.js to 2.30.1: Bug Fix (0990d07)

8.12.0 (2024-06-04)

Features

  • Update Playwright to 1.44.1 (Chromium 125.0.6422.14) (d32d6a4)
  • Update Vivliostyle.js to 2.30.0: Chinese UI, Pagination bugfix, and more (c2330ce)

8.11.0 (2024-05-31)

Bug Fixes

  • Reflect manuscript title changes in preview mode (695a636)

Features

  • Support adding sections for generated ToC documents (9abc3b5)
  • Update a toc option of vivliostyle.config.js (7525a6f)

8.10.0 (2024-05-03)

Bug Fixes

  • Chromium processes and tmp files remain after exit with Ctrl+C on Windows (548b420), closes #479
  • Display errors that occurred during preview (f7d14b2)
  • Ensure to work reloading the config file correctly in preview mode (59a3b33)
  • Speed up reloading config files (025581f)

Features

  • Update Playwright to 1.43.1 (Chromium 124.0.6367.29) (07ce938)
  • Update Vivliostyle.js to 2.29.0: Update CSS text-spacing support (4a36af9)

8.9.1 (2024-03-12)

Bug Fixes

  • Drop support exporting a legacy NCX document (b7c4fde)
  • Drop support setting a legacy guide element in EPUB OPF (21200d6)
  • Update Vivliostyle.js to 2.28.1: Bug Fix (e47c2f3)

8.9.0 (2024-03-03)

Bug Fixes

  • Do not generate nav element if nav[epub:type] exists in ToC HTML (8a09ea7)
  • Improved order of inserting nav elements in EPUB (177f18e)
  • Insert titles into generated nav elements in EPUB (bcc441b)

Features

  • Update Playwright to 1.42.1 (Chromium 123.0.6312.4) (6822bdb)
  • Update Vivliostyle.js to 2.28.0: Bug fixes and error handling (0d610db)

8.8.0 (2024-02-09)

Features

  • Update Vivliostyle.js to 2.27.0: Default stylesheet update and bug fixes (53146e4)

8.7.0 (2024-01-22)

Bug Fixes

  • Delete publication.json when given a single input file (90ecbbb)
  • Improve file selector not to include unnecessary files into Webpub/EPUB (a1921e2), closes #461
  • Set version attribute when building EPUB using config (3721113), closes #460

Features

  • Enable EPUB compression (5f5e61d), closes #462
  • Update Playwright to 1.41.1 (Chromium 121.0.6167.57) (45e6364)
  • Update Vivliostyle.js to 2.26.0: Update CSS text-spacing support (26d12f8)

8.6.0 (2023-12-04)

Bug Fixes

  • Update Vivliostyle.js to 2.25.9: Bug Fixes (2277350)

Features

  • Update Playwright to 1.40.1 (Chromium 120.0.6099.28) (f116090)

8.5.1 (2023-11-06)

Bug Fixes

  • Update VFM to 2.2.1: Bug Fix (06fbfa9)
  • Update Vivliostyle.js to 2.25.8: Bug Fix (7d56caa)

8.5.0 (2023-11-03)

Bug Fixes

  • Allow copying assets which is included in gitignore or in symlinks (f5fd963)
  • Allow xhtml/xht files to be used as input of Webbook/EPUB (9a0590a)
  • Copy .htm files for webbook (7127c42)
  • Include node_module files for copy targets of webpub (1a24f89)

Features

  • Add the copyAsset option to allow for more fine-tuning of the asset copying process (62b41f3)
    • The includeAssets option is now deprecated.

8.4.1 (2023-10-24)

Bug Fixes

  • Update Vivliostyle.js to 2.25.7: Bug Fix (a2fac64)

8.4.0 (2023-10-16)

Features

  • disable chromium sandbox by default (bb82165), closes #446
  • Update Playwright to 1.39.0 (Chromium 119.0.6045.9) (fa1d764)
  • Update VFM to 2.2.0: New features to control sectionization (da0ec85)

8.3.1 (2023-10-03)

Bug Fixes

  • Update Vivliostyle.js to 2.25.6: Viewer UI Bug Fixes (5cbb756)

8.3.0 (2023-09-21)

Bug Fixes

  • Fix logging message when the file is updated during preview (bb5a44e)

Features

  • Preview should be terminated when the previewing page is closed (89f8bb4)
  • Update Playwright to 1.38.0 (Chromium 117.0.5938.62) (cf1b671)

8.2.0 (2023-08-10)

Bug Fixes

  • Set lang attributes for generated toc documents (4c71411), closes #170
  • Update Vivliostyle.js to 2.25.5: Bug Fixes (20449f3)

Features

  • Add a feature generating cover HTMLs (6ff97b5)
  • Add pageBreakBefore and pageCounterReset options (f3d0fbb)
  • Support multiple cover pages (9f761f5)

8.1.2 (2023-07-28)

Bug Fixes

  • Update Vivliostyle.js to 2.25.4: Viewer bugfix (518b401)

8.1.1 (2023-07-25)

Bug Fixes

8.1.0 (2023-07-25)

Bug Fixes

  • Migrate Jest to Vitest (e20d817)
  • Remove obsoleted cli flags checker (30ed466)
  • Set resources property for web publication manifest (3d6fa6a)
  • Update Vivliostyle.js to 2.25.3: Bug Fixes (e283af3)

Features

  • Add --reading-progression CLI option (8c4353c)
  • Add a log level option for CLI and JavaScript API (f3b9b6a)
  • Add EPUB for output option (19b1dab)
  • Make --verbose option deprecated (dab272d)
  • Support single HTML → webpub convertion (8b2a87c)

8.0.1 (2023-06-22)

Bug Fixes

  • config.workspaceDir should be honored when cliFlags.input is given (1c67007), closes #402 #402
  • Preserve output directory structure when single imput is set (b5bc015)
  • preview minimum font-size problem depending on locale on macOS (c15e9e0), closes #399
  • Update Vivliostyle.js to 2.25.2: Bugfix on variable fonts (f3e81ca)

8.0.0 (2023-06-12)

Features

  • Update Playwright to 1.35.0 (Chromium 115.0.5790.13) (1610cac)
  • Update Ubuntu version on Docker to jammy (22.04LTS) (ffbbd99), closes #410
  • Upgrade minimum node version (6e94857)

BREAKING CHANGES

  • Minimum supported version of Node.js becomes v16

7.4.0 (2023-05-31)

Bug Fixes

  • Update Vivliostyle.js to 2.25.1: Bug Fixes (5f862ca)

Features

  • Update Playwright to 1.34.3 (Chromium 114.0.5735.26) (8dde831)

7.3.0 (2023-05-15)

Features

  • Update Playwright to 1.33.0 (Chromium 113.0.5672.53) (101c98e)
  • Update Vivliostyle.js to 2.25.0: Support CSS Running Elements (ca6ff7e)

7.2.5 (2023-04-29)

Bug Fixes

7.2.4 (2023-04-20)

Bug Fixes

  • Update Vivliostyle.js to 2.24.3: Bug Fixes (88c1405)

7.2.3 (2023-04-20)

Bug Fixes

  • Avoid infinite loop during glob files (d36a021)
  • Copy ignored files into webpub output (efc30f2)
  • Prevent nested copy occuring with multiple times of build (cb84f7a)

7.2.2 (2023-04-12)

Bug Fixes

  • Update Vivliostyle.js to 2.24.2: Bug Fixes (ed08d91)

7.2.1 (2023-04-01)

Bug Fixes

  • prevent confirm dialog from being auto-dismissed (dd61be8)
  • Update Vivliostyle.js to 2.24.1: Bug Fix (64f722b)

7.2.0 (2023-04-01)

Features

  • set UI language of Vivliostyle Viewer (73dc48a)
  • Update Vivliostyle.js to 2.24.0: improved Viewer features (6094439)
  • Viewer parameter setting: --viewer-param option (viewerParam property) (72a749d), closes #169

7.1.1 (2023-03-25)

Bug Fixes

  • Update Vivliostyle.js to 2.23.2: Bug Fix (Regression) (4c258c0)

7.1.0 (2023-03-24)

Bug Fixes

  • Update Vivliostyle.js to 2.23.1: Bug Fixes (5567cdb)

Features

  • Update Playwright to 1.32.0 (Chromium 112.0.5615.29) (38f447f)

7.0.0 (2023-03-13)

Features

  • Update VFM to 2.1.0 (f53d141)
  • Update Vivliostyle.js to 2.23.0: New syntax of CSS text-spacing properties (7a4049c)

BREAKING CHANGES

  • VFM v1 → v2

6.3.1 (2023-02-23)

Bug Fixes

  • Update Playwright to 1.31.1 (Chromium 111.0.5563.19, bugfixed on Windows) (6cb5c21)

6.3.0 (2023-02-22)

Bug Fixes

  • browser address bar should not be focused when starting preview (cb48ff7)
  • preview minimum font-size problem depending on locale (d1c779e)
  • Update Vivliostyle.js to 2.22.4: Bug Fixes (9cc01b4)

Features

  • Update Playwright to 1.31.0 (Chromium 111.0.5563.19) (5a6cdcc)

6.2.3 (2023-02-18)

Bug Fixes

  • Allow loose specifiers for local theme directories; fix #373 (832a160)

6.2.2 (2023-01-29)

Bug Fixes

  • Update Vivliostyle.js to 2.22.3: Fix PDF internal link bug (5fc0e86)

6.2.1 (2023-01-26)

Bug Fixes

  • Update Vivliostyle.js to 2.22.2: Leader layout bug fixes (26c66d5)

6.2.0 (2023-01-25)

Bug Fixes

  • ERR_UNSUPPORTED_ESM_URL_SCHEME on Windows (d76692a), closes #362
  • preview crashes when config has toc: true (15dfcc7), closes #354

Features

  • Update Playwright to 1.30.0 (Chromium 110.0.5481.38) (48f7ee2)
  • Update Vivliostyle.js to 2.22.0: Support CSS leader() function (8036fa5)

6.1.0 (2023-01-06)

Bug Fixes

  • stop using Chromium's --headless=chrome mode that causes layout problem on HiDPI display (8c990d0), closes #357

Features

  • Update Playwright to 1.29.1 (Chromium 109.0.5414.46) (80461b5)
  • Update Vivliostyle.js to 2.21.1: Enable very thin border width; Update CSS text-spacing (b819768)

6.0.0 (2022-12-17)

Bug Fixes

  • Prevent recursive reference of same symlink (751de6a)

Features

  • Allow importing multiple themes and specify custom import path(s) (65506c8)
  • Renew the theme installation logic (dab7669)
  • Support Node.js ESM (59df357)
  • Update Vivliostyle.js to 2.20.0: CSS lh/rlh units and margin-break property support (b5d8d8f)

BREAKING CHANGES

  • vivliostyle-cli now provides codes as ESM

5.9.0 (2022-11-17)

Bug Fixes

  • remove no longer necessary chromium option to enable LayoutNGPrinting (3309491), closes #347
  • Update Vivliostyle.js to 2.192.2: Bug Fixes (6c140cc)

Features

  • Update Playwright to 1.28.0 (Chromium 108.0.5359.29) (334d246), closes #347

5.8.1 (2022-10-21)

Bug Fixes

  • Update Vivliostyle.js to 2.19.1: Bug Fix (ba8ebce)

5.8.0 (2022-10-18)

Features

  • Update Vivliostyle.js to 2.19.0: Support :is()/:not()/:where()/:has() pseudo-classes (8d1299a)

5.7.0 (2022-10-12)

Bug Fixes

  • Update Vivliostyle.js to 2.18.4: Bug Fixes (0accd81)

Features

  • Update Playwright to 1.27.0 (Chromium 107.0.5304.18) (05ce2c0)

5.6.2 (2022-09-30)

Bug Fixes

  • Update Vivliostyle.js to 2.18.3: Bug fix on text-spacing (8e2d039)

5.6.1 (2022-09-30)

Bug Fixes

  • Update Vivliostyle.js to 2.18.2: Bug fixes on text-spacing and viewer (9123122)

5.6.0 (2022-09-24)

Bug Fixes

  • case-insensitive pathname comparison is necessary for Windows (972f02a), closes #325 #325
  • page size with !important in author stylesheets should have higher priority than --size option (fae01c5)

Features

  • add custom CSS option (--css) and crop marks options (--crop-marks, --bleed, --crop-offset) (72c5801)
  • allow empty input for preview command to open Viewer start page (9bec5a9)
  • Update Playwright to 1.26.0 (Chromium 106.0.5249.30) (ea2a077)
  • Update Vivliostyle.js to 2.18.1: improved viewer settings and bug fixes (637fd5b)

5.5.1 (2022-08-09)

Bug Fixes

  • Update Vivliostyle.js to 2.17.1: Bug Fixes (d26c01c)

5.5.0 (2022-07-30)

Features

  • Update Playwright to 1.24.2 (Chromium 104.0.5112.48) (8a2bdec), closes #299

5.4.0 (2022-07-29)

Features

  • Update Vivliostyle.js to 2.17.0: Supports CSS Variables (8533a30)

5.3.0 (2022-07-19)

Features

  • Update Vivliostyle.js to 2.16.0: Improve CSS support (d61e62d)

5.2.4 (2022-07-08)

Bug Fixes

  • Update Vivliostyle.js to 2.15.8: Bug Fixes (f0559e5)

5.2.3 (2022-07-04)

Bug Fixes

  • Update Vivliostyle.js to 2.15.7: Fix float layout on printing (36c891d)

5.2.1 (2022-07-03)

Bug Fixes

  • Unnecessary blank page added to the last in output PDF (fda8991), closes #312

5.2.0 (2022-07-03)

Bug Fixes

  • Build not terminated when --render-mode=docker --http (4d84329), closes #298
  • Reduce size of Docker image (0dd443b), closes #305
  • Update Vivliostyle.js to 2.15.6: fix to use Chromium LayoutNG (d21b8ef)

Features

  • Improve font configuration in the docker image (57e644c)
  • Set chromium option --enable-blink-features=LayoutNGPrinting (454b4a6), closes 1121942#c79
  • Update Playwright to 1.23.1 (Chromium 104.0.5112.20) (c7f0af9)

5.1.0 (2022-06-12)

Bug Fixes

  • Update Vivliostyle.js to 2.15.5: Fix layout problem with Chrome>=102 (ecfdbb8)

Features

  • Update Playwright to 1.22.2 (Chromium 102.0.5005.40) (20f3d6a)

5.0.1 (2022-06-06)

Bug Fixes

  • Add patches for published packages (2e4b363)

5.0.0 (2022-06-06)

Experimental support of Firefox & Webkit (preview command only)

You can now use Firebox or Webkit browser to preview Vivliostyle viewer! To use this, please set an argument below

vivliostyle preview --browser firefox

chore

Features

  • Experimental support of Firefox & Webkit (0cedeca)
  • Rename executableChromium option to executableBrowser (f012071)
  • Switch Puppeteer into Playwright (95884ea)

BREAKING CHANGES

  • Node v14 is now the minimum supported version

4.12.4 (2022-06-01)

Bug Fixes

  • Update Vivliostyle.js to 2.15.4: Bug Fixes (a51f0a8)
  • vivliostyle build hangs up at "Launching build environment" (398419e), closes #294

4.12.3 (2022-05-29)

Bug Fixes

  • Disable timeout of browser startup (33dd2e2)
  • Update VFM to 1.2.2 (c9208f0)
  • Update Vivliostyle.js to 2.15.3: Bug Fixes (41a5254)

4.12.2 (2022-05-23)

Bug Fixes

  • Update Vivliostyle.js to 2.15.2: Bug Fixes (07be017)
  • wrong "Built …" message and unnecessary reloading on preview (e752402), closes #284

4.12.1 (2022-05-06)

Bug Fixes

  • Update Vivliostyle.js to 2.15.1: Fix page size problem (1ff2c40)

4.12.0 (2022-05-06)

Features

  • Add TrimBox and BleedBox to output PDF (f301d2a), closes #277
  • Update Puppeteer-core to 13.7.0: support chrome headless mode (a0266d0)
  • Update Vivliostyle.js to 2.15.0: Improve printing support (5504a95)
  • Use new chrome headless mode (e8d570b)

4.11.0 (2022-04-21)

Features

  • Update Puppeteer-core to 13.6.0 (Chromium 101) (4e94326)

4.10.0 (2022-04-20)

Bug Fixes

  • closes #261; Allow arbitrary VFM options (7507e7b)
  • Failed to load document when --viewer option is specified (706accf), closes #265
  • Process not terminated in docker mode (b15d828), closes #269
  • Update Vivliostyle.js to 2.14.6: Bug Fixes (ea9c3ef)
  • Use appropreate teardown and logging (36aa617)

Features

  • closes #229; support multiple entries of config (5b0ffbb)
  • closes #244; Clarify schema errors on console (4409106)
  • Expose config schemas (fc5ab43)

4.9.0 (2022-04-11)

Bug Fixes

  • Update Vivliostyle.js to 2.14.5: Fix text-spacing caused wrong page break (1b6f13f)

Features

  • Update Puppeteer-core to 13.5.2 (Chromium 100) (89645cf)

4.8.3 (2022-04-11)

4.8.2 (2022-02-21)

Bug Fixes

  • Update Vivliostyle.js to 2.14.4: Fix wrong page break with ruby (68be62e)

4.8.1 (2022-02-18)

Bug Fixes

  • Update Vivliostyle.js to 2.14.3: Fix bugs on links in output PDF (790c8ae)

4.8.0 (2022-02-14)

Bug Fixes

  • Update Vivliostyle.js to 2.14.2: bug fixes (615560f)

Features

  • Update Puppeteer-core to 13.3.1 (Chromium 99) (456c4b8)

4.7.0 (2022-02-06)

Bug Fixes

  • Correct "title" to "name" in publication.json readingOrder (9a4b6a0), closes #241
  • export cli flags interfaces (d7ff892)
  • importing command api causes process exit (bed6183)

Features

  • Add readingProgression config option (6b1193e), closes #221
  • Improve Vivliostyle.js/Chromium version info in output PDF (2b48c29), closes #220 #238
  • Set ReadingDirection in output PDF (3d023e2), closes #221
  • Update @vivliostyle/vfm to v1.2.1 (02b68ed)
  • Update Vivliostyle.js to 2.14.1: Improved text-spacing support (4bcdbb7)

4.6.0 (2022-01-18)

Bug Fixes

  • Make timeout building PDF configurable (7ad2c40)

Features

  • Add http server mode (f3407ad)
  • Add viewer option (011f834)
  • Update @vivliostyle/vfm to v1.1.0 (3abf1ad)
  • Update Vivliostyle.js to 2.13.0: Allow JavaScript in documents, etc. (ae790aa)

4.5.0 (2021-11-30)

Features

  • Update Puppetter-core to 12.0.1 (2eb4e45)

4.4.1 (2021-11-19)

Bug Fixes

  • Update Vivliostyle.js to 2.12.1: Fix bugs on math and text with ruby (e5f0346)

4.4.0 (2021-11-13)

Features

  • Update Vivliostyle.js to 2.12.0: support text-spacing and hanging-punctuation (dea228b)

4.3.2 (2021-11-01)

4.3.1 (2021-10-18)

4.3.0 (2021-10-10)

Features

4.2.1 (2021-09-26)

Bug Fixes

4.2.0 (2021-09-18)

Features

  • Update vivliostyle.js to 2.10.0 (219eab1)

4.1.0 (2021-09-11)

Features

  • Update vivliostyle.js to 2.9.1 (f19b085)

4.0.0 (2021-08-28)

chore

Features

  • Add render mode supports docker (b2931b3)
  • Lazy install chromium (966f02c)
  • Support preflight options (1c78975)

BREAKING CHANGES

  • Node v12 is now the minimum supported version
  • Switched to use puppeteer-core rather than puppeteer. If you're using vivliostyle-cli in any containers, you should run puppeteer's install.js and contain the browser runtime.

3.5.2 (2021-07-23)

Bug Fixes

3.5.1 (2021-07-14)

Bug Fixes

3.5.0 (2021-05-03)

Features

  • Update @vivliostyle/vfm to v1.0.0-alpha.19 (8979762)
  • Update @vivliostyle/vfm to v1.0.0-alpha.21 (e66190b)
  • Update puppeteer to 9.0.0 (af39584)

3.4.0 (2021-04-16)

Bug Fixes

  • extract function that reloads the configuration file (40b5b83)

Features

3.3.0 (2021-04-07)

Bug Fixes

Features

  • add VFM options (hardLineBreaks, disableFormatHtml) to vivliostyle.config.js (e4ec8f6)
  • Update option structure (de6ae25)
  • Update Vivliostyle version to 2.7.0 (8dab20f)

3.2.1 (2021-03-29)

Bug Fixes

  • Update Vivliostyle version to 2.6.2 (fe058df)

3.2.0 (2021-03-29)

Bug Fixes

  • Non-ASCII directory/file is not available. Error: Validation of pubManifest failed (f84fca4), closes #155
  • Preview watch not refreshed when CSS file is changed (298ecf7)

Features

  • Add --single-doc and --quick options (6ccd68f)
  • Add additional/user stylesheet options (026306a), closes #112
  • Replace preview UI with Vivliostyle Viewer (18265f2), closes #41

3.1.2 (2021-03-06)

Bug Fixes

  • Failed to load from web because of CORS error (1cb1baf)
  • Preview watch not working as expected (7607d74)

Features

  • Update vivliostyle core version to 2.5.2 (b5ad780)

3.1.1 (2021-02-28)

3.1.0 (2021-02-27)

Bug Fixes

  • exmaples/theme-preset size(JIS-B6 -> A5) (a50fe02)

Features

  • Update vivliostyle core version to 2.5 (7b49393)

3.0.3 (2021-02-09)

Bug Fixes

3.0.2 (2021-02-09)

Bug Fixes

  • Place resources file on build time (56a5e8b)

3.0.1 (2021-02-07)

Bug Fixes

  • Fix to raise errors on falsy input (a38dd85)

:tada: 3.0.0 (2021-02-07)

Introduce of the new configure file, vivliostyle.config.js!

We added support for a new config file format that allows you to save and share the build settings of your publications. See examples for a detailed description of what you can do with this config file.

Revise the command line options (multiple output etc.)

The CLI command line options have been revised to allow for more flexible I/O configuration. The biggest topic is that we can now set multiple output destinations simultaneously!

vivliostyle build -o publication/ -f webpub -o draft.pdf -f pdf

Support official Vivliostyle themes

We can now easily apply the various preset themes provided by Vivliostyle. Of course, you can also load your own CSS as a theme.

vivliostyle build input.md -T @vivliostyle/theme-techbook -o draft.pdf

3.0.0-rc.1 (2021-02-07)

Bug Fixes

  • Can't load from Web URL (e0e6689)
  • set process.cwd() to workspaceDir and entryContextDir (811d879)

Features

3.0.0-rc.0 (2021-02-06)

Bug Fixes

  • Cancel to set toc as resources (3bd5bdc)
  • Correct the behavior of exporting webbook (f5c9ae2)
  • Delete the default language config (b40f75f)
  • Ensure to exit a process (b59a39d)
  • Fix build option parser (5a1767a)
  • Fix judging method to detect entry file type (ef63e7d)
  • Fix process of removing tmp file (8b1f4ba)
  • Fix the context resolver on specifying a config file (918099a)
  • Fix to reflect language settings to manuscript outputs (35253d3)
  • Make element selectable on broker UI (5adf95c)
  • Merge output config correctly (8b3b518)
  • More graceful webbook exports (07d89d5)
  • Set project names from input context (2358f65)
  • Support implicit exports (34a3a40)
  • Support themes for HTML inputs and toc (baeff19)
  • Use Cheerio for (X)HTML parser (1188952)
  • Webbook export (4eeb30a)

Features

  • Add workspaceDir includeAssets configs (d1ce8b2)
  • Add tests for config parser codes (f123ee5)
  • Add validator not to overwrite source files (4fe2244)
  • Change to use hash by passing broker parameters (1ea1ddd)
  • Drop supports of exporting web manifest from single HTML (2494dc5)
  • Enable to set vivliostyle.config.js as an input argument (860fed1)
  • Format auto-generated HTMLs (399690d)
  • Implement in-place file transform (b8eb374)
  • Implement multiple target outputs (8603dbf)
  • Import Publication Manifest schema (1ef8483)
  • Rename manifest.json to publication.json (5556932)
  • Rename output format; webbook -> webpub (04472ed)
  • Revise CLI options (aca9cf3)
  • Support multiple -o and -f options (50f57ca)
  • Support to input publication manifests directly (23a5ec7)
  • Support various input formats (4e75580)
  • Support webbook export of single entry (71d3fb2)
  • Support zipped EPUB inputs (dac8afc)
  • Update config schema (b8f4be4)
  • Update manifest schema (fb6d955)
  • Update the config template (e09a898)
  • Update toc APIs (78e2d1b)
  • Use file-based protocol to serve the broker page (b10f446)

3.0.0-pre.6 (2021-01-13)

Bug Fixes

  • Local theme package copied to wrong place when updated during preview (ee05f3e), closes #93

Features

  • display stacktrace on error (42ca8f1)

3.0.0-pre.5 (2020-12-30)

Bug Fixes

  • --language,--size, --theme options for init command is not working. (6feec71)
  • include yarn.lock (605897e)
  • remove .posix and update upath 2.0.1 (594b8dd)
  • toc test fails due to separator on Windows (6a4ab12)

Features

  • init command document to 3.0.0 specification (32906ef)
  • init command to 3.0.0 specification (cf30818)

3.0.0-pre.4 (2020-11-01)

3.0.0-pre.3 (2020-08-06)

Bug Fixes

  • Errors due to path problem on Windows (8eeadee)

Features

  • inject title and style into raw html as well (d9afa06)

3.0.0-pre.2 (2020-07-02)

Bug Fixes

  • avoid infinite globby loop (e7d9d64)
  • flush before running press-ready (de28656)
  • prepend toc (141c657)
  • remove unncessary options (3151d16)
  • use title as a output filename (0e3b31a)
  • init: abort if config file exists (8e45ab1)
  • startLogging after error (1c6670d)

Features

2.0.0-pre.0 (2019-12-19)

  • :arrow_up: Version 1.3.0 (173420b)
  • :arrow_up: Version 1.3.1 (04bfa6f)
  • 11 #13 Fix entrypoint loader to load EPUB and XHTML (2cc03eb)

  • 2.0.0-pre.0 (c5f33d0)
  • Add instruction (1ed2787)
  • Adopt subcommand system (158c9e8)
  • Create README.md (7b71309)
  • fix broker path (964af52)
  • Rename save -> build (1af35d3)
  • Rename viola -> vivliostyle (d55299b)
  • Update codes for new command name (7422282)
  • Update test command (c2b0bee)
  • Use serve-handler (3c6a36d)
  • Vivliostyle 2019.1.106 (a680a61)
  • Vivliostyle 2019.8.101 (7d5f94c)
  • fix: add enum definitions (391f2ac)
  • fix: automatically find chrome port to avoid conflict (bd0d213), closes #24
  • fix: cover chrome-remote-interface (5f3bbed)
  • fix: migrate from vivliostyle to @vivliostyle/core (980ca9c)
  • fix: port cli to TypeScript (1b29b2c)
  • fix(npm): publish /broker to npm (a6f1c2f)
  • fix(test): test subcommand (e0baff1)
  • chore: add keywords, homepage, bugs to package.json (aee4c6c)
  • chore: add prettier to match styles (90addac)
  • chore: add travis (1ffbb02)
  • chore: cosmetic changes (478dfa1)
  • chore: cosmetic changes (71586e1)
  • chore: export interfaces (7aeac7f)
  • chore: fix command (f9966de)
  • chore: Fix editorconfig (7aa65c7)
  • chore: ignore clutter (4d8896c)
  • chore: omit viola-savepdf notice (7271553)
  • chore: publish declaration files (fa47ff9)
  • chore: remove Makefile in favor of proper test suite (365f427)
  • chore: rename vivliostyle-savepdf to @vivliostyle/cli (8152e1f)
  • chore: update deps (d151840)
  • chore: update preact from 8 to 10 (1036990)
  • chore(test): fix test to show stderr when command failed (865bf2e)
  • test: add test (7512f9b)
  • test: checks if savepdf generates pdf without err (9694093)
  • test: invoke test before push (62b5b87)
  • feat: mvp (683c5de)

BREAKING CHANGE

  • command has been changed from savepdf to vivliostyle

1.2.7 (2019-03-11)

  • :arrow_up: version 1.2.2 (d07dfe1)
  • :arrow_up: version 1.2.3 (8f8cc72)
  • :arrow_up: version 1.2.4 (60987a6)
  • :arrow_up: Version 1.2.5 (5cf0999)
  • :arrow_up: Version 1.2.6 (326e6b7)
  • :arrow_up: Version 1.2.7 (358e96b)
  • add 'root' cli option (47773a1)
  • Add book mode (c34a99c)
  • Add Dockerfile (c86c03f)
  • Bump dependency versions (8f4c4e3)
  • Bump up dependency versions (22d8b0f)
  • change option order / pass root option to preview mode (913f20d)
  • fix index path in save.js (3061be8)
  • fix listen address to localhost (43d40ca)
  • Fix parsing preset size (5f2a7c5)
  • Improve preview page navigator (016899a)
  • Integrate MathJax (db5b2eb)
  • Make configurable loading mode (068ed0b)
  • remove part of query string from path (e5021f6)
  • Show app version in preview page (afeeea3)
  • support to flattened node_modules (d3bc592)
  • Update to show the vivliostyle version (3fa880d)
  • Update urls for Vivliostyle.org (f89a326)

1.2.1 (2017-12-08)

  • :arrow_up: version 1.2.1 (7b020bd)
  • add --no-sandbox option (d4e51bd)
  • add a guide message in case of ECONNREFUSED error (5ec588e)
  • add a guide message in case of ECONNREFUSED error in headless mode (67bdf64)
  • Fix error handling (2e7648a)
  • make previewer enable to launch without sandbox (bf2727d)
  • make save.js enable to launch without sandbox (caca589)

1.2.0 (2017-11-21)

1.1.0 (2017-08-02)