Skip to content

prodockit 0.37.0

Choose a tag to compare

@buckwem buckwem released this 18 Aug 14:46
· 27 commits to main since this release
5e30e0b

A minor rather than a patch: two of these change what an author writes, not only what was broken.

Added

prodockit.tree - a directory listing that looks like one (#379).

/// tree
docs/ - the documentation source tree
  index.md - the cover page
  stylesheets/ - CSS for both outputs
zensical.toml - project configuration
///

Indentation is the structure, a trailing / marks a directory, and - starts an optional description. Nothing else is typed, so the icon and the emphasis cannot disagree with what an entry actually is - which a hand-written list has no way to prevent.

Icons come from the project's own set: the block emits a shortcode and whatever icon extension the project already uses renders it, Lucide's folder and file by default. directory_icon/file_icon name others.

Ragged indentation is refused rather than guessed at: a listing is read for its shape, so an entry attached to the wrong parent is a diagram that is wrong and looks right.

Changed

prodockit-table-rotated is now landscape-page (#469), and works for any content - a table, a diagram, an image. There is no alias: a document still using the old class silently stops getting a landscape page rather than erroring, which is why this is a minor version.

Fixed

A landscape page is displayed landscape (#469). The block was always laid out on a landscape page box - that is what makes its pagination and repeating header rows work - and the finished page was then given the PDF's own rotation flag, which a reader honours by showing a landscape page as portrait with the content sideways. Measured before and after: 595x842 (portrait) /Rotate=270 became 842x595 (landscape) /Rotate=0, from an identical page box.

An inline SVG icon is no longer clipped in the PDF. prodockit.pdf.html serialised each <svg> straight from BeautifulSoup, which had parsed the page as HTML and lowercased viewBox to viewbox. SVG attribute names are case-sensitive, so the icon lost the coordinate system it scales into and WeasyPrint drew it at native size, clipped by its own box - a folder icon with its right-hand side sliced off. This affects every icon in every prodockit PDF, not only the new trees.

Full notes: changelog