Skip to content

docs: add explicit single-page guide structure callout#25503

Open
brandonh6k wants to merge 2 commits into
docker:mainfrom
brandonh6k:docs/style-single-page-callout
Open

docs: add explicit single-page guide structure callout#25503
brandonh6k wants to merge 2 commits into
docker:mainfrom
brandonh6k:docs/style-single-page-callout

Conversation

@brandonh6k

@brandonh6k brandonh6k commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Description

Follow-up to #25338 (the guides revamp). That PR moved guides to a single-page structure, but STYLE.md never documented the convention, so it's easy for new guides to drift back into multi-page/directory-wrapped structures.

Adds:

  • A "Guide structure" section stating guides are single-page and should live as flat .md files directly under content/guides/ (not <name>/index.md).
  • A "File organization" note under the existing "Images" section establishing the shared content/guides/images/ folder with slug-prefixed filenames as the convention (already the dominant pattern used by most guides).

Companion PR that applies this convention to the remaining guides still using the old directory-wrapped structure: #25504

Related issues or tickets

Discussed in the team's docs Slack channel following #25338.

Reviews

  • Editorial review

@netlify

netlify Bot commented Jul 6, 2026

Copy link
Copy Markdown

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 3a54daf
🔍 Latest deploy log https://app.netlify.com/projects/docsdocker/deploys/6a4c28df235d780007909c94
😎 Deploy Preview https://deploy-preview-25503--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

craig-osterhout pushed a commit that referenced this pull request Jul 9, 2026
)

## 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.md` directory structure alongside guides that are
already flat `<name>.md` files — an inconsistent mix. This PR finishes
the flattening:

- Flattens 50 folder-wrapped guides to `content/guides/<slug>.md` via
`git mv` (history preserved). These keep the same URL, since Hugo
generates the same permalink for a leaf-bundle `dir/index.md` and a flat
`dir.md`.
- Moves the last 4 guides' 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, matching the convention already used by most
other guides (`databases-1.webp`, `kafka-1.webp`, etc.), and rewrites
the in-body image references.
- Normalizes `genai-claude-code-mcp`'s non-standard filename
(`claude-code-mcp-guide.md`) and capitalized `Images/` folder to match
convention.
- Promotes `content/guides/frameworks/laravel/index.md` to a top-level
`content/guides/laravel.md`, since it was the only guide under
`frameworks/` and every other language/framework guide is flat.
- Adds `aliases` entries 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 --minify` build via `docker compose run` completes with zero
warnings/errors (3174 pages, 1524 aliases — unchanged from before this
PR).
- Verified both changed-URL guides render at their new path and the old
path 301s via the Hugo alias redirect.
- Verified every image reference in the 4 migrated guides resolves to an
existing file in `content/guides/images/`.
- Multi-agent docs review (link-checker, cross-reference-checker,
guide-conventions) found zero issues.

## Related issues or tickets

Discussed in the team's docs Slack channel following #25338.

## Reviews

- [ ] Technical review
@craig-osterhout craig-osterhout requested a review from a team July 9, 2026 15:46
@craig-osterhout craig-osterhout added area/contrib Relates to the Docker style guide and contribution guidelines status/review Pull requests that are ready for review labels Jul 9, 2026
@craig-osterhout

Copy link
Copy Markdown
Contributor

/review

@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

👋 Heads up: The /review command is deprecated. Please re-request a review from docker-agent in the PR sidebar instead.

@docker-agent docker-agent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assessment: 🟢 APPROVE

The new "Guide structure" and "Images / File organization" sections are clear, concise, and consistent with the existing STYLE.md voice. No high or medium severity issues found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/contrib Relates to the Docker style guide and contribution guidelines status/review Pull requests that are ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants