Skip to content

Package pages: link install blockers and their via path to their own pages #113

Closed

Description

@patrickballard

The package page's "Install coverage with dependencies" section (install_html() in scripts/build_pages.py) names each blocker and its path, cryptography==46.0.3 builds from source via mcp → PyJWT → cryptography, as plain <code>. Readers who want to know more about cryptography have to search for it, and search engines see no link between the two pages. Internal links are the cheapest SEO the site can get, and most blockers are themselves in the top 5,000.

What to do

  • In install_html(), link each blocker's name to ../<canonical name>/ when that package has a page (it's in the scan and passes SAFE_NAME). Leave names outside the scan as plain text, never a link that 404s.
  • Do the same for each name in the via path, except the page's own package.
  • install_html() needs the set of page names: pass it in from build(), which already builds names.
  • Keep html.escape on everything; quote the URL part with urllib.parse.quote, as the badge snippet does.
  • Tests in tests/test_install_coverage.py: a blocker in the scan is a link, one outside it isn't, and a name with characters that need escaping stays escaped.

Activity

  1. added
    enhancement
    good first issue
    on Nov 16, 2026
  2. AdityaSreevatsaK commented on Nov 17, 2026

    @AdityaSreevatsaK
    Contributor

    Hey @patrickballard,

    I've raised PR #138 implementing internal links for known install blockers and dependency paths.

    The implementation preserves HTML escaping and avoids broken or unsafe links. Regression tests were added, and fork CI passed.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions