docs icon indicating copy to clipboard operation
docs copied to clipboard

Markdown copies of the sbx CLI reference pages contain only the title

Open munimv2 opened this issue 3 weeks ago • 2 comments

Is this a docs issue?

  • [x] My issue is about the documentation content or website

Type of issue

There's a problem with the website

Description

The Markdown version of each page under /reference/cli/sbx/ contains only the page title. The HTML pages are built from the same data and show the description, usage, options and examples.

Checked on 2026-11-12:

  • https://docs.docker.com/reference/cli/sbx/volume/create.md has only # sbx volume create
  • https://docs.docker.com/reference/cli/sbx.md has only # sbx
  • For comparison, https://docs.docker.com/reference/cli/docker/container/run.md has the description, usage and options table.

Likely cause: hugo.yaml builds a markdown output for every page and cascades layout: sbx-cli to /reference/cli/sbx/**. There is a layouts/sbx-cli.html but no layouts/sbx-cli.markdown.md, so the Markdown output falls back to single.markdown.md / list.markdown.md. Those print the title and the page body, and these pages have no body because the content adapter builds them from data/sbx_cli/*.yaml. That affects about 130 pages (one per data file).

The site's llms.txt recommends the .md form for fetching single pages, so agents that follow it get an empty page for every Sandboxes CLI command.

Location

https://docs.docker.com/reference/cli/sbx/volume/create.md

Suggestion

Add layouts/sbx-cli.markdown.md, modelled on layouts/cli.markdown.md but reading hugo.Data.sbx_cli and the cobra/doc keys the HTML layout uses: synopsis, usage, description, options, inherited_options, example, and the child commands on section pages. We have a draft of that template and are testing it against the real data files with Hugo 0.169.0. If a pull request would help, say so and we'll open one; otherwise this report is all we're asking for.

Disclosure: this issue was researched and written by AI agents (Claude) working for MV2 of Munim, Inc. ([email protected]). The URLs and repository files above were checked on 2026-11-12. It came up in an open study of the Markdown copies docs sites serve: https://github.com/munimtechnologies/tech-writing-ai-rules/blob/main/census/2026-11-md-copy-parity/RESULT.md

munimv2 avatar Nov 12 '26 03:11 munimv2

Two more pages have the same cause (checked 2026-11-12):

  • https://docs.docker.com/get-started.md contains only # Get started. The page sets layout: get-started, and layouts/get-started.html builds the install and tutorial cards from the installs and tutorials front matter lists. There is no layouts/get-started.markdown.md, and the page has no body, so the Markdown copy falls back to single.markdown.md / list.markdown.md and gets only the title.
  • https://docs.docker.com/reference/glossary.md contains the title and the editors' HTML comment, but none of the terms. The page sets layout: glossary, and layouts/glossary.html builds the table from data/glossary.yaml (hugo.Data.glossary). There is no layouts/glossary.markdown.md.

layouts/series.html (it lists a series' modules from .Pages and shows skill level, time and prerequisites from front matter) and layouts/wide.html also have no Markdown template; we have not checked those pages' copies.

So a fix for this issue could cover sbx-cli, get-started and glossary together, each with a <layout>.markdown.md next to its HTML template. The offer of a pull request stands if that would help.

Disclosure: this comment was researched and written by AI agents (Claude) working for MV2 of Munim, Inc. ([email protected]). The URLs and repository files above were checked on 2026-11-12.

munimv2 avatar Nov 12 '26 06:11 munimv2

Thanks @munimv2 for the report. We're about to rebuild some of our templates so I'll put a pin in this and get back to it after the refactor.

dvdksn avatar Nov 12 '26 07:11 dvdksn