Skip to content

Remove dead code from the post-render script - #366

Merged
has2k1 merged 1 commit into
posit-dev:mainfrom
has2k1:post-render-delete-dead-code
Oct 8, 2026
Merged

has2k1 merged 1 commit into
posit-dev:mainfrom
has2k1:post-render-delete-dead-code

Conversation

@has2k1

@has2k1 has2k1 commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator

This PR removes code from great_docs/assets/post-render.py that can never run or does work that an earlier step already does, and makes its error handling stricter.

Delete the source-link helper and the dataclass Attributes table rewrite,
neither of which could ever run, along with the sidecar files they loaded.
Delete a second pass that fixed the metadata script path, which an earlier
pass already handled, and the start-up directory listings.

Catch specific exceptions instead of `Exception`. A programming error in
the SEO, i18n, scale-to-fit or alternate-link passes now fails the build
instead of printing a line and carrying on.

Rendered output of four gauntlet packages is unchanged.
@has2k1 has2k1 changed the title refactor: remove dead code from the post-render script Remove dead code from the post-render script Oct 8, 2026
@has2k1
has2k1 merged commit 7077d5a into posit-dev:main Oct 8, 2026
8 checks passed
@has2k1
has2k1 deleted the post-render-delete-dead-code branch October 13, 2026 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant