Merged
Conversation
…odule BREAKING CHANGE: `blogatto/config/feed`'s `FeedConfig`, `FeedItem`, and the related builder functions have moved to `blogatto/config/feed/rss` as `RssFeedConfig` and `RssFeedItem`. `Config.feeds` is now `Config.rss_feeds`, and `config.feed()` is now `config.rss_feed()`. `FeedMetadata` stays in `blogatto/config/feed`. This makes the existing API explicit about RSS and leaves room for additional feed formats (e.g. Atom, #44) without overloading the generic `feed` namespace.
Adds AtomFeed configuration and internal builder for generating Atom 1.0 feeds via webls. Multiple Atom feeds can be configured through `config.atom_feed()` with optional filter/serialize hooks mirroring the RSS API. Updates docs, README, and the simple_blog example to demonstrate atom feed generation. Closes #44
|
✔️ aa4b429...f34f847 - Conventional commits check succeeded. |
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.
Summary
AtomFeedconfiguration module (blogatto/config/feed/atom) mirroring the RSS API:atom.new(id, title, updated)plus builder setters for authors, link, categories, contributors, generator, icon/logo, rights, subtitle, filter, serialize, and output.blogatto/internal/builder/feed/atom) that convertsAtomFeed/AtomFeedItemintowebls/atomtypes and writes the rendered XML.config.atom_feed(...)intoConfigand the build pipeline so multiple Atom feeds can be generated alongside RSS feeds.refactor!: rename FeedConfig to RssFeedConfig and split into rss submodule) — required for the newfeed/rss+feed/atomnamespace split.atom-feeds.md, updatedindex.md,configuration.md,rss-feeds.md,example.md, nav reordering for sitemap/dev-server/error-handling), and thesimple_blogexample to emitatom.xml.Closes #44
Test plan
gleam buildclean (root project)gleam test— 470 tests pass (was 442 before atom builder tests)gleam format src testcleanexamples/simple_blogbuilds and producesdist/atom.xmlwith valid Atom 1.0 entries for both posts