Skip to content

Keep the Theme README's Swap Prose in Step When the Last Swap Goes #374

Closed

Description

@ptr727

themes/README.md describes the root override table's deprecated-call swaps in prose outside the table. The paragraph after the table says each swapped call is one Hugo deprecated in 0.158, and that a swap is a workaround for upstream lag. The next one says whether each swap is still needed is answerable by diffing against the recorded commit.

All the swaps are the same Hugo 0.158 deprecation, so upstream is likely to fix them together. Then the swap-only rows retire and every kept row drops its swap clause, per the update procedure. Nothing in that procedure revisits the prose, so it goes on describing swaps that no row records. This is the same row-to-prose staleness #362 settled for rows, here for swap clauses.

Done looks like the update procedure covering that prose when the last swap goes, or the prose stating no swap that only the table can confirm.

Found by the local review of #362's change.

🤖 Generated with Claude Code

Activity

  1. added
    documentation
    on Oct 1, 2026
  2. ptr727 commented on Oct 1, 2026

    @ptr727
    OwnerAuthor

    A second gap in the same procedure, found by the same review: the update procedure says a row whose only change is a deprecated call "becomes removable" once upstream makes the same swap, but never says what happens to that row's root file. The same paragraph says to keep a retired row's root file while it still renders anything, and a root override always renders, since it shadows the theme's template. So a reader retiring a swap-only row like baseof.html removes its table row, diff path, and grep entry but keeps the file. That leaves an untracked whole-template override hiding every later upstream change. The fix here should say that removing a swap-only row deletes its root file, and scope the keep rule to a template upstream renamed or deleted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions