docs: collapse folder+index.md guides to flat single-file guides#25504
Open
brandonh6k wants to merge 1 commit into
Open
docs: collapse folder+index.md guides to flat single-file guides#25504brandonh6k wants to merge 1 commit into
brandonh6k wants to merge 1 commit into
Conversation
Flattens 50 folder-wrapped guides to content/guides/<slug>.md, matching the single-page convention most guides already use. Also moves the last local per-guide image bundles (genai-leveraging-rag, genai-video-bot, genai-claude-code-mcp, java) into the shared content/guides/images/ folder with slug-prefixed filenames, and promotes frameworks/laravel/index.md to a top-level laravel.md. Adds aliases for the two URLs that actually changed (frameworks/laravel/ and genai-claude-code-mcp/claude-code-mcp-guide/); all other renames produce the same URL Hugo already generated for the index.md bundle.
✅ Deploy Preview for docsdocker ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
1 task
Contributor
|
/review |
Contributor
|
👋 Heads up: The |
docker-agent
reviewed
Jul 8, 2026
docker-agent
left a comment
Contributor
There was a problem hiding this comment.
Assessment: 🟢 APPROVE
This PR cleanly flattens ~50 guide bundles from dir/index.md to dir.md and centralises per-guide image assets into the shared content/guides/images/ directory.
What was checked:
- Redirects: Both URL-changing renames include correct
aliases:entries —genai-claude-code-mcp/claude-code-mcp-guide/andguides/frameworks/laravel/. All 100%-similarity renames preserve their existing URLs (Hugo mapsdir/index.mdanddir.mdto the same slug), so no aliases are needed for those. - Image paths: All four guides with content changes (
genai-claude-code-mcp.md,genai-leveraging-rag.md,genai-video-bot.md,java.md) correctly update image references toimages/<slug-prefixed-name>, which resolves from the flat file location tocontent/guides/images/as intended. - Style guide: No violations found in the new
+lines. - Markdown formatting: No issues found.
No actionable issues found in the changed code.
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.
Description
Follow-up to #25338 (the guides revamp). That PR collapsed most multi-page guide series into single pages but left ~50 guides wrapped in a
<name>/index.mddirectory structure alongside guides that are already flat<name>.mdfiles — an inconsistent mix. This PR finishes the flattening:content/guides/<slug>.mdviagit mv(history preserved). These keep the same URL, since Hugo generates the same permalink for a leaf-bundledir/index.mdand a flatdir.md.genai-leveraging-rag,genai-video-bot,genai-claude-code-mcp,java) into the sharedcontent/guides/images/folder with slug-prefixed filenames, matching the convention already used by most other guides (databases-1.webp,kafka-1.webp, etc.), and rewrites the in-body image references.genai-claude-code-mcp's non-standard filename (claude-code-mcp-guide.md) and capitalizedImages/folder to match convention.content/guides/frameworks/laravel/index.mdto a top-levelcontent/guides/laravel.md, since it was the only guide underframeworks/and every other language/framework guide is flat.aliasesentries for the two URLs that actually changed (/guides/frameworks/laravel/and/guides/genai-claude-code-mcp/claude-code-mcp-guide/); every other rename preserves its existing URL.Companion PR establishing this as the documented convention going forward: #25503
Validation
hugo --minifybuild viadocker compose runcompletes with zero warnings/errors (3174 pages, 1524 aliases — unchanged from before this PR).content/guides/images/.Related issues or tickets
Discussed in the team's docs Slack channel following #25338.
Reviews