Repository navigation
docs: fix links to connector and fact guides - #1918
Conversation
wowi42
left a comment
There was a problem hiding this comment.
LGTM. The ../ prefix was wrong for pages at the docs root: ../api/connectors.md escapes the docs source tree, so the built page at /en/3.x/connectors.html linked to /en/api/connectors.html, hence the 404s in #1889.
The new links match the convention already used by the other root-level pages (docs/index.md, docs/operations.md, docs/contributing.md), and I confirmed these three were the last remaining ../ links from root-level pages, so this fixes the whole class of bug, not just the reported ones.
AI disclosure present and compliant with AI_POLICY.md.
Note for the record: I could not complete a local zensical build to double-check, because scripts/generate_arguments_doc.py crashes on Python 3.13 (types.UnionType has no __name__). That is an unrelated pre-existing issue; the docs-build CI on this PR passes.
|
Hmm, I'm not sure if this PR actually fixed the issue. I'm assuming that the changes have already been deployed to docs.pyinfra.com via pyinfra-dev/docs.pyinfra.com@84a797b (?) Clicking on the "Check out the writing connectors guide" link on https://docs.pyinfra.com/en/3.x/connectors.html still yields a 404 |
|
@simonhammes The fix in this PR does work. It is live on https://docs.pyinfra.com/en/latest/connectors.html and https://docs.pyinfra.com/en/next/connectors.html (both now link to The |
Ah, that makes sense! Thanks for the explanation. |
Summary
Closes #1889
Validation
AI disclosure
OpenAI Codex was used to help investigate the broken links, prepare the patch, and run validation. I manually reviewed and approved the final diff before committing it.