Repository navigation
SingleFile CLI 2.29.0
New features
-
New option
--apply-print-stylesheets: the page is saved as it would be printed. The saved page shows on screen the layout its site provides for printing, which on many article sites is the text without the navigation and the ads. The elements that are not displayed are kept, because the print layout may show them, so the saved page can be larger. The rules that depend on the size of the page are still evaluated for the window, not for a sheet of paper (gildas-lormeau/SingleFile#1567).single-file https://www.example.com page.html --apply-print-stylesheets -
New options
--accept-header-videoand--accept-header-audio: they set theAcceptheader sent when the tool fetches the video and audio files of a page, as the existing--accept-header-*options do for the other kinds of resources.
CLI fixes and improvements
- Updated single-file-core to 1.17.2:
- an
@namespacerule of a stylesheet loaded with@importno longer applies to the rules of the stylesheet that imports it, and the@namespacerule of a stylesheet is no longer ignored when the rules of an imported stylesheet are written before it. The pages saved as ZIP files and the stylesheets without@namespacerule are not concerned (gildas-lormeau/SingleFile#1513)
- an
eslintis updated in the lockfile, which resolves the advisory GHSA-g3hv-75wg-m249 onminimatch. It is a development dependency, the published package is not concerned.
Co-authored by Claude (Claude Code)