Betters configurability for Atom feeds#146
Merged
Merged
Conversation
breezykermo
marked this pull request as draft
July 3, 2026 20:50
Adds title: String and date: Option<DateTime<Utc>> to CastVertebra and populates them in build.rs by matching each output back to its Vertebra, so HTML feed plugins can read the parsed #document title and date. Combined outputs with no per-vertebra match default to empty title / no date.
Feed entries no longer require rheo-feed-title: the entry title defaults to the parsed #document title, and the timestamp defaults to the #document date (then file mtime). rheo-feed-title and rheo-feed-updated remain explicit overrides, so every vertebra now appears in the feed by default.
A vertebra declaring #let rheo-feed-exclude = "true" is omitted from the feed; the match is strict, so "false", other values, or an absent variable all keep the page in the feed. Covered by a new unit test.
Adds RheoValue::Bool so #let rheo-<key> = true|false is a genuine Typst boolean, not a string. Parser accepts bool literals, as_bool() reads them, and rheo-feed-exclude now takes a real boolean (= true) instead of "true".
Updates the rheo-* feed section of CLAUDE.md: rheo-* values may be string or boolean, every vertebra appears in the feed by default, rheo-feed-title and rheo-feed-updated are overrides over the #document title/date, and rheo-feed-exclude = true omits a page.
Deletes the unused #[deprecated] LinkInfo struct and drops the inert Spine.merge field along with its tests, initializers, init-template entry, and all comments/docs. PDF still combines by default; a merge key left in an old rheo.toml is silently ignored.
breezykermo
marked this pull request as ready for review
July 4, 2026 09:12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #144.