fix: repair Home Manager option scraping for new mdBook docs #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/home-manager-mdbook-scrape"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Home Manager migrated its docs from a single DocBook
options.xhtml(definition lists) to an mdBook site. The old URL is now a ~1.4 KB
redirect stub with zero
<dt>elements, soparse_html_optionsreturnedan empty list and every Home Manager query (search/info/stats/browse)
silently reported "not found". That silence is the real hazard: callers
read it as "this option does not exist" and answer from stale knowledge
(e.g. recommending the long-removed
programs.ssh.matchBlocksinstead ofthe current
programs.ssh.settingsDAG).print.html(every optionon one page, ~5.5k anchors).
parse_mdbook_options()for the<h2 id="opt-NAME">+ Type/Default/Example layout. It raises DocumentParseError when a page loads but has no
option anchors, so a future structural break fails loudly instead of
degrading to "not found".
infooutput (this is what carries themodern, correct option syntax).
nix-darwin keeps the working DocBook
<dt>parser.