Skip to content

fix: link a package's own extras on the package info page - #773

Merged
rich-iannone merged 2 commits into
mainfrom
fix/package-info-self-extras
Nov 27, 2026
Merged

rich-iannone merged 2 commits into
mainfrom
fix/package-info-self-extras

Conversation

@rich-iannone

Copy link
Copy Markdown
Member

This PR fixes the package info page for projects whose optional groups include other groups through the package's own extras, as Great Tables' all = ["great_tables[extra]", "great_tables[widget]", ...] does. The page already parsed extras but never showed them, so all showed nine identical great_tables rows, each linking to the package's own PyPI page.

Now such a group gets a line such as "Includes the extra, widget and dev groups", with each name linking to that group's heading, and its table lists only the other packages; a group made up only of such references, like all, shows just the line. The package itself is no longer counted in the summary or looked up on PyPI.

Extras on other packages are now shown too, so ibis-framework[duckdb] no longer appears as plain ibis-framework. Group headings get explicit IDs matching the anchors they already had, so the new links always resolve.

@github-actions

Copy link
Copy Markdown

📚 Preview this PR's docs locally

Fetch the just-built site and open it in your browser:

# this exact build
great-docs preview --run 46075101429

# or always the latest build for this PR
great-docs preview --pr 773
Auth & tips
  • Requires great-docs: pip install great-docs (or run via pipx/uvx).
  • Auth: run gh auth login then add --use-gh, or set GITHUB_TOKEN (needs Actions: read).
  • Jump to a page: add --path reference/index.html.
  • Latest vs exact: --pr <n> grabs the newest build; --run <id> pins this one.
  • Re-download: --refresh ignores the local cache.

@rich-iannone
rich-iannone merged commit 1e1abaa into main Nov 27, 2026
7 checks passed
@rich-iannone
rich-iannone deleted the fix/package-info-self-extras branch November 27, 2026 22:40
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.

1 participant