Files
hotdog-cms/internal/siteyaml
jcoffey-dev ec80947aaa
ci / go (pull_request) Failing after 3s
ci / editor-ui (pull_request) Successful in 57s
hotdog-cms import mkdocs: documentation sites, addresses and all
`hotdog-cms import mkdocs -from DIR` moves an MkDocs site into the docs
pack: pages under content/docs/ as written (index.md and README.md become a
folder's own page, a page's first heading its title), every other file
under static/, the nav as data/docs-nav.yaml, and the docs collection at
path: / so every address stays. Links to pictures and downloads are made to
work from the page's address; links to pages are left for the build to
follow. IMPORT-REPORT.md lists what doesn't come across, page by page, and
the mkdocs.yml settings HotDog doesn't use. -trust-html turns the sanitizer
off, as MkDocs has none, for docs whose writers can all be trusted.

So that pages render as MkDocs rendered them:

- markdown.heading_ids: mkdocs gives headings Python-Markdown's anchors
  (on-linux-bsd for "On Linux & BSD", _1 for a second one), so
  page.md#section links still land.
- Keys use pymdownx.keys' own table (its MIT notice is in keymap.go): every
  name it knows, its aliases, its class names (key-control for ctrl), and
  unknown keys stay text. markdown.keys adds names, as its key_map does.
- An admonition's written title is Markdown: "Which is what `X` is for"
  keeps its code.
- A code block's file name (```json title="servers.json") is shown above it.
- siteyaml.SetEntry changes one collection in site.yaml and nothing else.

Checked against MkDocs' own build of two real doc sets (19 and 430 pages):
the same addresses, heading anchors and links on every page, and the same
text but for code highlighting.
2026-10-12 20:41:42 -07:00
..