fix(blog): list the new post in /blog + add RSS/Atom feeds (EN + es + zh-CN) - #371
Merged
Conversation
…es + zh-CN) The blog is a docs-instance (#340), so the /blog listing is maintained by hand — not auto-generated. The published post rendered at its URL but was missing from the index in all three locales. Add it to blogSidebars.ts (shared sidebar) and to the three index.mdx landing pages, newest-first. Build verified: post now appears in build/{,es/,zh-CN/}blog.html; 0 broken links. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The blog is a docs-plugin instance (#340), so Docusaurus emits no feed and the site advertised none (/blog/rss.xml → 404). Add scripts/gen-feeds.ts, run from `postbuild`, which reads the published posts (EN + es + zh-CN), sorts them newest-first, and writes per-locale RSS 2.0 + Atom 1.0 into build/: /blog/{rss,atom}.xml and /<locale>/blog/{rss,atom}.xml. Autodiscovery <link> tags added to headTags. CI generates them automatically (npm run build → postbuild); build/ stays gitignored. Verified: all 6 feeds well-formed XML; newest-first (this release's post is item 1); i18n feeds carry translated titles + locale-prefixed links; blog head advertises both feeds. Sitemap already covered the post (plugin auto-includes routes) — feeds are correctly not listed in the sitemap. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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
Two related fixes for blog discoverability, surfaced while verifying the #365 post (#370) went live.
1. The post wasn't listed in
/blogIt rendered at its URL but was missing from the index in all three locales. The blog is a docs-instance (#340), so the listing is maintained by hand. Added the post, newest-first, to
blogSidebars.tsand the threeindex.mdxlandings.2. The site had no RSS/Atom feed at all
/blog/rss.xml→ 404; nofeedOptions; nothing advertised in<head>. Docs-instances don't emit blog feeds — the migration dropped that capability. Addedscripts/gen-feeds.ts(runs frompostbuild): reads the published posts (EN + es + zh-CN), sorts newest-first, and writes per-locale RSS 2.0 + Atom 1.0:Autodiscovery
<link rel="alternate">tags added toheadTags. CI regenerates them automatically (npm run build→postbuild);build/stays gitignored.Verification
npm run build→ exit 0, 0 broken links; post now inbuild/blog.html(+ es/zh-CN).<head>advertises both feeds.🤖 Generated with Claude Code