feat: changelog content type with RSS feed#27
Merged
Conversation
Deploying capsa with
|
| Latest commit: |
4da4f76
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://022fdcdd.capsa-6ct.pages.dev |
| Branch Preview URL: | https://feat-rss-and-changelog.capsa-6ct.pages.dev |
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
Adds a dated changelog/release-notes content type — the last feature gap vs
Docusaurus. Design principle: entries ride the existing docs machinery rather
than a separate blog engine, so search, prerendering, OG cards, edit links,
and hydration all work with zero new plumbing.
Changelog — drop dated MDX files in
content/changelog/:/docs/changelogwith dated cards (title, date, description)./docs/changelog/<slug>— searchable,prerendered with OG cards, edit-on-GitHub linked — with the entry date shown
in the breadcrumb. They stay out of the Documentation sidebar and the docs
index (their tab owns discovery).
datefrontmatter (ISOYYYY-MM-DD, quoted or unquoted — gray-matter'sparsed Date objects are normalized) flows through the manifest.
/feed.xmlon deploys withVITE_SITE_URLset, newestfirst with RFC-1123 pubDates and absolute links; every page head advertises
it via
<link rel="alternate">. Cleanly absent (file and tag) without asite URL — same gating as the sitemap.
pageHtml()with a syntheticmanifest entry, so it gets a real title/canonical and a "Changelog" OG card
for free.
Date/toLocaleDateString, whose UTC-midnight parsing shifts a day acrosstimezones and would break hydration of prerendered pages.
Also in this PR:
the breadcrumb and
<title>/og:title ("v0.2.0 — …" instead of "V0 2 0").Guides → Changelog authoring guide.
Type of change
Checklist
pnpm typecheckpassespnpm lintpassespnpm format:checkpasses (runpnpm formatto fix)pnpm buildsucceedspnpm check:linkspassesNotes
the TZ-free date rendering), sidebar/docs-index exclusion, and Pagefind
discoverability of entries.
feed.xmlis a generated artifact (gitignored, like the sitemap).content/changelog/and remove the tabfrom
src/navigation.ts.