Skip to content

docs: fix links to connector and fact guides - #1918

Merged
wowi42 merged 1 commit into
pyinfra-dev:3.xfrom
Himanshuagrawal4:PRO/pyinfra-fix-doc-links-20260808
Aug 25, 2026
Merged

wowi42 merged 1 commit into
pyinfra-dev:3.xfrom
Himanshuagrawal4:PRO/pyinfra-fix-doc-links-20260808

Conversation

@Himanshuagrawal4

Copy link
Copy Markdown
Contributor

Summary

  • fix the connector overview link to the writing-connectors guide
  • fix the facts overview links to operations and the writing-facts guide

Closes #1889

Validation

  • generated the documentation site successfully
  • verified all seven local link targets in the modified pages

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.

@Himanshuagrawal4
Himanshuagrawal4 marked this pull request as ready for review August 8, 2026 19:19
@wowi42 wowi42 added documentation Issues with docs/examples/docstrings. connectors Connector issues - builtin integrations with other tools. labels Aug 16, 2026

@wowi42 wowi42 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@wowi42
wowi42 merged commit c0d7942 into pyinfra-dev:3.x Aug 25, 2026
30 checks passed
@simonhammes

Copy link
Copy Markdown
Contributor

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

yagarea pushed a commit to yagarea/pyinfra that referenced this pull request Aug 26, 2026
@wowi42

wowi42 commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

@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 api/connectors.html correctly).

The /en/3.x pages are versioned docs and are only rebuilt from version tags (see scripts/build-public-docs.sh), while branch builds only refresh en/next and en/latest. So /en/3.x/connectors.html will keep the broken link until the next v3.x release is tagged.

@simonhammes

Copy link
Copy Markdown
Contributor

The /en/3.x pages are versioned docs and are only rebuilt from version tags (see scripts/build-public-docs.sh), while branch builds only refresh en/next and en/latest.

Ah, that makes sense! Thanks for the explanation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

connectors Connector issues - builtin integrations with other tools. documentation Issues with docs/examples/docstrings.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Documentation contains a few dead links

3 participants