Skip to content

Add htmlproofer CI workflow (advisory)#120

Closed
miharp wants to merge 1 commit intoOpenVoxProject:masterfrom
miharp:feat/htmlproofer
Closed

Add htmlproofer CI workflow (advisory)#120
miharp wants to merge 1 commit intoOpenVoxProject:masterfrom
miharp:feat/htmlproofer

Conversation

@miharp
Copy link
Copy Markdown
Contributor

@miharp miharp commented Apr 29, 2026

Summary

Adds htmlproofer to the CI pipeline to catch broken internal links on every PR and push to master.

Currently runs in advisory mode (continue-on-error: true) due to significant inherited link debt from the Puppet docs migration. Will be made enforced once the outstanding issues are resolved.

What it checks

  • Internal links only (--disable-external) — avoids flakiness from third-party sites going down
  • Ignores legacy URL prefixes (/puppet/, /pe/, /puppetlabs/) that appear in inherited content
  • Runs against the full built _site/ directory

Known outstanding failures (advisory until fixed)

Category Count Tracked in
.markdown ref-style link definitions ~122 #118 / #119
.html links to deleted/missing pages ~783 follow-up
.md extension links ~38 follow-up

Roadmap to enforcement

  1. Merge Fix broken reference-style link definitions using .markdown extension #119 (ref-style link definitions) — drops ~1000 failures
  2. Fix remaining .markdown and .md edge cases
  3. Address broken .html links (deleted man pages, missing hiera pages)
  4. Flip continue-on-error to false

@miharp miharp force-pushed the feat/htmlproofer branch from e55bc33 to fe2cb95 Compare May 1, 2026 10:39
miharp added a commit to miharp/openvox-docs that referenced this pull request May 1, 2026
Inline links in _openvox-server_8x and _openvoxdb_8x used .markdown
extensions which Jekyll renders as .html. PR OpenVoxProject#119 fixed this in
_openvox_8x; this extends the same fix to the remaining two collections.

22 files updated across both collections.

Part of the link debt being surfaced by OpenVoxProject#120.

Signed-off-by: Michael Harp <mike@mikeharp.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
miharp added a commit to miharp/openvox-docs that referenced this pull request May 1, 2026
Inline links in _openvox-server_8x and _openvoxdb_8x used .markdown
extensions which Jekyll renders as .html. PR OpenVoxProject#119 fixed this in
_openvox_8x; this extends the same fix to the remaining two collections.

22 files updated across both collections.

Part of the link debt being surfaced by OpenVoxProject#120.

Signed-off-by: Michael Harp <mike@mikeharp.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
miharp added a commit to miharp/openvox-docs that referenced this pull request May 1, 2026
Inline links in _openvox-server_8x and _openvoxdb_8x used .markdown
extensions which Jekyll renders as .html. PR OpenVoxProject#119 fixed this in
_openvox_8x; this extends the same fix to the remaining two collections.

22 files updated across both collections.

Part of the link debt being surfaced by OpenVoxProject#120.

Signed-off-by: Michael Harp <mike@mikeharp.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
miharp added a commit to miharp/openvox-docs that referenced this pull request May 1, 2026
htmlproofer flags <a> tags without href attributes. Replace legacy
named anchor patterns with <span id="..."></span> which is the
correct HTML5 approach for bookmark targets.

- lang_variables.markdown: 5 nested <a id="..."> tags
- ha.markdown: 1 <a name="..."> tag

Fixes 12 htmlproofer failures. Part of OpenVoxProject#120.

Signed-off-by: Michael Harp <mike@mikeharp.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds htmlproofer to the CI pipeline to catch broken internal links on
every PR and push to master. Runs in advisory mode (continue-on-error:
true) due to inherited link debt from the Puppet docs migration.

- Internal links only (--disable-external) to avoid third-party flakiness
- Ignores legacy /puppet/, /pe/, /puppetlabs/ URL prefixes
- Pinned to ubuntu-24.04 and actions/checkout@v4 to match test.yml

Signed-off-by: Michael Harp <mike@mikeharp.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@miharp miharp force-pushed the feat/htmlproofer branch from fe2cb95 to 27f17ae Compare May 2, 2026 11:31
@miharp
Copy link
Copy Markdown
Contributor Author

miharp commented May 2, 2026

Closing for now — the pre-existing failure count (~1006) makes the advisory output too noisy to be useful. Generated reference files not being present on PR builds also causes false positives. Will revisit once the broken link backlog is in better shape.

@miharp miharp closed this May 2, 2026
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.

2 participants