Skip to content

Fix broken cross-links in generated reference pages#251

Merged
Sharpie merged 1 commit into
OpenVoxProject:mainfrom
miharp:fix-249-generated-reference-crosslinks
Jun 3, 2026
Merged

Fix broken cross-links in generated reference pages#251
Sharpie merged 1 commit into
OpenVoxProject:mainfrom
miharp:fix-249-generated-reference-crosslinks

Conversation

@miharp
Copy link
Copy Markdown
Contributor

@miharp miharp commented Jun 3, 2026

What

Fixes the broken internal cross-links emitted by the generated reference pages (#249). These 404 when published to docs.openvoxproject.org/openbolt/latest and can't be fixed downstream because the pages are generated from this repo. All fixed at the source that feeds the generators:

Broken link Fix Source
plan_functions#run-plan #run_plan documentation/templates/bolt_types_reference.md.erb
[apply_prep](#apply-prep) (self-link) #apply_prep rakelib/docs.rake (apply func desc)
bolt_inventory_reference#plugin-hooks-1 #plugin_hooks-1 bolt-modules/.../datatypes/target.rb
writing_plans#collect-facts-from-targets #collect-facts-from-the-targets target.rb + bolt-modules/.../functions/facts.rb
writing_plugins#hooks #plugin-hooks lib/bolt/config/options.rb
using_plugins#task supported_plugins#task lib/bolt/config/options.rb

The bolt-defaults / bolt-project schema JSON are regenerated from the same OPTIONS hash, so they're updated to match. (The task plugin is documented on supported_plugins, not using_plugins.)

On the "removed/relocated sections" in the issue

While verifying, the failures into writing_plans / writing_tasks turned out not to be removed sections — those sections still exist. The published pages stopped emitting heading IDs partway down because kramdown flipped into raw mode (a <TYPE> <PARAMETER_NAME> code span split across a line break, and ```shell script fences with a space in the info string). Those authored pages now live only in openvox-docs, so that render-bug fix is the companion PR OpenVoxProject/openvox-docs#289 — not this repo.

Verification

Regenerated the openbolt references with these changes into a full openvox-docs build and ran html-proofer scoped to _site/openbolt/latest; the generated-page cross-links above all resolve (collection reaches 0 broken links together with openvox-docs#289).

Fixes #249

@miharp miharp marked this pull request as draft June 3, 2026 10:57
The generated reference pages emit internal cross-links whose anchors do
not match the rendered heading IDs (or point at the wrong page), so they
404 when published. Fixed at the source that feeds the generators:

- plan_functions#run-plan -> #run_plan (bolt_types_reference template)
- apply_prep self-link #apply-prep -> #apply_prep (apply func desc in
  rakelib/docs.rake)
- bolt_inventory_reference#plugin-hooks-1 -> #plugin_hooks-1 (Target type)
- writing_plans#collect-facts-from-targets -> #collect-facts-from-the-targets
  (Target type and facts function)
- writing_plugins#hooks -> #plugin-hooks (plugin-hooks option)
- using_plugins#task -> supported_plugins#task (plugin-hooks option; the
  task plugin is documented on supported_plugins)

The bolt-defaults/bolt-project schema JSON are regenerated from the same
OPTIONS hash, so they are updated to match.

Verified with html-proofer against a full openbolt docs build: the
generated-page cross-links above resolve. The authored pages these link
into (writing_plans, writing_tasks) live downstream in openvox-docs; a
companion render-bug fix there is OpenVoxProject/openvox-docs#289.

Fixes OpenVoxProject#249

Signed-off-by: Michael Harp <mike@mikeharp.com>
@miharp miharp force-pushed the fix-249-generated-reference-crosslinks branch from f0065ac to 6a31dce Compare June 3, 2026 11:08
@miharp miharp marked this pull request as ready for review June 3, 2026 11:25
@Sharpie Sharpie merged commit 13d054a into OpenVoxProject:main Jun 3, 2026
95 of 97 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Generated reference pages contain broken internal cross-links (hyphen vs underscore anchors; relocated sections)

2 participants