Repository navigation
chore(layouts): remove unused partials, shortcodes, and layouts - #1410
Conversation
…r5io#1169) Signed-off-by: Abhiram Dhanvi <abhiramcr2726@gmail.com>
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
🚀 Preview deployment: https://docs.layer5.io/pr-preview/pr-1410/
|
sarajkrishnasingh
left a comment
There was a problem hiding this comment.
Nice cleanup for #1169, thanks for picking this up. The change is exactly scoped: 0 additions and 127 deletions across 12 files, with the plan-info call sites removed together with the partial so nothing dangles. Good judgment keeping search-input.html because Docsy's sidebar-tree still uses it at build time, and keeping the video list layout. I checked that no content page actually invokes the removed shortcodes, and the build, DCO and CodeRabbit checks are all green. No test coverage is needed for a docs-only removal, and you already verified with hugo --templateMetrics plus both production builds and npm test.
One small follow-up: docs/superpowers/specs/2026-04-28-five-narrative-design.md line 198 still lists {{< svg >}} under "Hugo shortcodes in use". Since that shortcode is gone now, that line could drop it:
- Hugo shortcodes in use:
{{< cardpane >}},{{< alert >}}. No new shortcodes needed.
Otherwise this looks ready to go.
Signed-off-by: Abhiram Dhanvi <abhiramcr2726@gmail.com>
|
Thanks for catching that, @sarajkrishnasingh! I removed |
sarajkrishnasingh
left a comment
There was a problem hiding this comment.
Thanks for following up so quickly. The new commit drops {{< svg >}} from the shortcodes list in the five narrative spec, which was the one open point from my earlier review, and the rest of the cleanup is unchanged.
Verified on head 9167385: the svg shortcode file is gone and nothing references it, the build, DCO and CodeRabbit checks are all green, and the branch is clean with no conflicts or unresolved threads. Approving.
Notes for Reviewers
This PR fixes #1169.
layouts/partials/plan-info.html. No page setsplan:in its front matter, so it was unused. Also removed the four{{ with .Params.plan }}blocks that depended on it, inlayouts/_default/content.html,layouts/docs/list.html,layouts/docs/rest-apis.htmlandlayouts/video/list.html.navbar-version-selector.html,rest-apis/tag-subsection-meta.html,local-video.html,svg.html,version.html,release/single.htmland_default/list.html.layouts/partials/search-input.html, because Docsy'ssidebar-tree.htmlstill uses it at build time. Also keptlayouts/video/list.htmlandvideo-section-index.html.hugo --templateMetrics,npm run build,npm run build:productionandnpm test.Signed commits
Summary by CodeRabbit