• v0.1.4 0fb6ab52ae

    Robin released this 2026-11-16 05:52:34 +01:00 | 13 commits to main since this release

    Legal pages, a public history of their versions, and a table of contents that follows your readers.

    Your terms of sale, legal notice and privacy policy can now live in git next to your documentation: published at the root of your site, only when you decide, with every past version still readable.

    What's new

    • Pages at the root of your site. Leave a source's URL prefix empty and its pages answer at their own addresses, such as /terms/ or /privacy/, while every other address stays WordPress's. Move existing pages over one at a time: a published WordPress page keeps its address until you unpublish it, and the Status page lists the ones still in the way.
    • Simple pages. Choose Pages → Simple pages on a source to show the content and its table of contents only, without the documentation menu, breadcrumbs or previous and next links. Just right for legal texts.
    • Publish releases, not commits. Set Publish → The latest release with a tag pattern such as legal-*: commit and review as often as you like, and your site changes only when you publish a release on your forge. Drafts and pre-releases stay offline, and the webhook now listens to release events.
    • A public history of every version. Tick Versions on a source, or write versioned: true in a page's front matter, and each published change is kept. Readers see "In effect since" and the date under the title, and can open every past version at <page>/versions/, each one saying when it was in effect. Write changes: to sum up a version in one sentence, and updated: to set the date it takes effect.
    • Caches cleared for you. After each publication or rollback, the plugin clears your object cache, then the page cache of W3 Total Cache, WP Super Cache, WP Rocket or LiteSpeed Cache (only the source's pages when the cache plugin allows it). Visitors see the new text right away, even when you publish from WP-CLI. On by default, under Advanced → Caches; the log says what was cleared.
    • A table of contents that follows the reader. On wide screens it stays within the window and keeps the section being read in view, however long the page. On phones it opens as a panel from the side of the screen, from an "On this page" tab, and the article now starts at the top of the page.

    Also in this release

    • WP-CLI: wp lrob-docs source add|update gains --style, --publish, --tag-pattern and --versioned, and an empty --prefix= for the root of the site.
    • The French interface says "log" instead of "journal".
    • Documentation: a new "Pages and versions" guide, in English and French.

    Upgrading

    Upload the zip over the previous version: the database is updated on the first page load, and existing sources behave as before until you turn the new settings on.

    Downloads