Repository navigation
fix(docs): stop rendering the meta row and lead twice - #10
Merged
Merged
Conversation
DocsLayout already renders the frontmatter description as the page lede and a DocsArticleMeta chip row from group/readTime. 41 pages also rendered the chip row inline and 41 opened with the description again (61 pages in all), so both showed twice. Drop the inline copies and the now-unused imports; the layout's copy stays. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0153BeT3nUXo5japNTuJSPqb Signed-off-by: valgulnecron <39313199+ValgulNecron@users.noreply.github.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
Many docs pages showed the chip row ("Modules & Sources · v0.2 · 14 MIN") and the intro sentence twice.
DocsLayout.astroalready renders both from frontmatter, thegroup/readTimechip row and thedescriptionas the lede. Some pages rendered them a second time in the MDX body:<DocsArticleMeta … />row.description.This PR removes the inline copies and the now-unused
DocsArticleMetaimports, and keeps the layout's copy. It only deletes lines (61 files, 205 deletions). A deterministic script made the change: it removes a paragraph only when it matches the description exactly.No design change: the docs screens in
website.penalready show the chip row and the lede once.Verification
npm run build: 95 pages. The built pages have exactly one chip row and one lede; checked on multi-cluster, modules-sources, remote-agent-gateway, server-networking-tunnels, api-crds and air-gapped-installation.🤖 Generated with Claude Code
https://claude.ai/code/session_0153BeT3nUXo5japNTuJSPqb