Skip to content

Betters configurability for Atom feeds#146

Merged
breezykermo merged 7 commits into
mainfrom
feat/better-atom-feeds
Jul 4, 2026
Merged

Betters configurability for Atom feeds#146
breezykermo merged 7 commits into
mainfrom
feat/better-atom-feeds

Conversation

@breezykermo

Copy link
Copy Markdown
Contributor

Closes #144.

@breezykermo breezykermo changed the title Extracts #set document date into Vertebra.date via Typst AST Extracts #set document date for Atom feeds Jul 3, 2026
@breezykermo
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.
@breezykermo breezykermo changed the title Extracts #set document date for Atom feeds Betters configurability for Atom feeds Jul 4, 2026
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
breezykermo marked this pull request as ready for review July 4, 2026 09:12
@breezykermo
breezykermo merged commit 8f844b2 into main Jul 4, 2026
5 checks passed
@breezykermo
breezykermo deleted the feat/better-atom-feeds branch July 4, 2026 09:13
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.

Improve Atom feed

1 participant