Skip to content

Fix broken detector/fixer chaining links in generated workflow docs#866

Draft
github-actions[bot] wants to merge 2 commits intomainfrom
fix-issue-865-docs-links-8c8c94092709a44b
Draft

Fix broken detector/fixer chaining links in generated workflow docs#866
github-actions[bot] wants to merge 2 commits intomainfrom
fix-issue-865-docs-links-8c8c94092709a44b

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions bot commented Apr 3, 2026

Summary

This fixes the strict MkDocs build failure caused by broken links in generated workflows/gh-agent-workflows/*.md pages.

gh-agent-workflows/*/README.md files use links like:

  • ../../docs/workflows/detector-fixer-chaining.md

During docs generation, those links were carried through unchanged, but from the generated page location they resolve to docs/docs/workflows/... and fail strict link checks.

What changed

  • Updated docs/hooks.py in _rewrite_sibling_workflow_links to also rewrite:
    • ../../docs/workflows/<page>.md -> ../<page>.md
  • Updated tests/test_docs_hooks.py to assert this rewrite behavior.

Why this works

Generated pages are emitted under docs/workflows/gh-agent-workflows/, so links to docs pages one directory up should be ../<page>.md.

Validation

  • pytest tests/test_docs_hooks.py -v
  • mkdocs build --strict

Both pass after this change.

Closes #865.


What is this? | From workflow: Trigger Bug Hunter

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

github-actions bot and others added 2 commits April 3, 2026 11:47
Rewrite ../../docs/workflows/*.md links in generated gh-agent-workflow pages to ../*.md so strict MkDocs link checks resolve correctly. Update docs hook tests to assert the rewritten output.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions bot added the small_boom Small PR blast radius; usually low human-review need label Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

small_boom Small PR blast radius; usually low human-review need

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug-hunter] MkDocs strict build fails due to broken detector/fixer chaining links

0 participants