Skip to content

gh-149902: Remove dead packaging docs link and add a new section for external resources#150030

Merged
hugovk merged 10 commits into
python:mainfrom
miameows:fix-packaging-docs-link
May 22, 2026
Merged

gh-149902: Remove dead packaging docs link and add a new section for external resources#150030
hugovk merged 10 commits into
python:mainfrom
miameows:fix-packaging-docs-link

Conversation

@miameows
Copy link
Copy Markdown
Contributor

@miameows miameows commented May 18, 2026

Hi folks,

This PR removes a link to "Distributing Python Modules" from the front page of the docs. Said page was empty save for a message telling users to go to packaging.python.org. It was already marked as an orphan, so I removed the link and made a new section for "Other resources", linking packaging.python.org and (at the suggestion of Petr) typing.python.org.

I understand this is a fairly visible change and will probably require some discussion (and possibly modification) before it's ready to merge. I'm here to answer any questions or fix issues.

Before:
image

After:
image

cc @encukou (helped me plan this approach) and @nedbat (docs team)

Closes #149902

Thank you!

@read-the-docs-community
Copy link
Copy Markdown

read-the-docs-community Bot commented May 18, 2026

Comment thread Doc/tools/templates/indexcontent.html Outdated
Comment thread Doc/tools/templates/indexcontent.html Outdated
</td></tr>
</table>

<p><strong>{% trans %}Other resources:{% endtrans %}</strong></p>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

With this we'll have two "Other resources" sections, one in the sidebar and one here, why not add these to the existing one?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The "Other resources" section also has two links to the deprecated Python wiki, maybe we should drop those and link to packaging.python.org and typing.python.org instead.

Copy link
Copy Markdown
Member

@hugovk hugovk May 19, 2026

Choose a reason for hiding this comment

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

Do we need both "Other resources" sections?

If yes, should they both contain the same things?

If not, which shall we remlve?


Perhaps the wiki books link could be replaced with
https://www.pythondiscord.com/resources/?type=book or https://pythonbooks.org/ ?

See also #148998 for more general wiki cleanup.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm in favor of removing the other section if it links to outdated content

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think the placement of this new section should be fairly prominent, considering it contains a link that was (indirectly) already featured front and center. I think it's helpful to have a "signpost" of sorts so users who do a web search for "Python documentation" can easily find related resources without having to look at the small text in the sidebar. I'm of the opinion that sidebars are for navigation of complex hierarchies, not holding content

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I agree that the sidebar is serving two purposes now which could be confusing. If straightening that out expands the scope too much, we can continue the discussion in a subsequent PR.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@nedbat It should be fairly easy (famous last words) to get this sorted. I think we would just remove the sidebar and put the 3 non-wiki links in this section. That being said, it does expand the scope of this PR. Thoughts on merging this as-is (now that @hugovk's table -> list conversion is merged) and combining the sections in a subsequent PR?

miameows and others added 2 commits May 18, 2026 21:08
Co-authored-by: Stan Ulbrych <stan@python.org>
Co-authored-by: Stan Ulbrych <stan@python.org>
@nedbat
Copy link
Copy Markdown
Member

nedbat commented May 19, 2026

I like the idea of separating out these sections on the front page. But I would really like to do something about the vertical alignment. Currently the two columns of each table are centered (as shown here on the left), but should be top-aligned (as shown here on the right):

image

The table styling comes from the basic Sphinx theme, so I'm not sure what our options are. The fix is to use this CSS:

.contentstable td {
    vertical-align: top;
}

(Firefox claims this will have no effect, but it does, it's how I made the corrected image).

I'll make a PR into this branch using explicit style attributes in the HTML as well, we can go that way if it's easier.

@nedbat
Copy link
Copy Markdown
Member

nedbat commented May 19, 2026

The tweaking PR: miameows#2

hugovk and others added 2 commits May 19, 2026 16:16
@hugovk
Copy link
Copy Markdown
Member

hugovk commented May 19, 2026

Well, if we're poking around here, we shouldn't use a table for visual layout. Tables are for tabular data.

Let's replace it with a semantic list. This improves accessibility for screen readers, and we can also have a breakpoint to collapse to a single column for mobile.

Here's an alternative to @nedbat's PR, also with his wording tweaks: miameows#3

@picnixz picnixz changed the title gh-149902: Remove dead packaging docs link and add a new secition for external resources gh-149902: Remove dead packaging docs link and add a new section for external resources May 19, 2026
Replace tables with styled lists and add mobile breakpoint
Copy link
Copy Markdown
Member

@hugovk hugovk left a comment

Choose a reason for hiding this comment

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

We already expanded the scope of this PR, I agree the sidebar stuff can be a followup.

Thank you!

@nedbat
Copy link
Copy Markdown
Member

nedbat commented May 22, 2026

It is often hard to get these things merged. With the finish line in sight, let's not move the finish line further away.

@hugovk hugovk merged commit 9604fa8 into python:main May 22, 2026
34 checks passed
@hugovk hugovk added awaiting merge needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes labels May 22, 2026
@miss-islington-app
Copy link
Copy Markdown

Thanks @miameows for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

@miss-islington-app
Copy link
Copy Markdown

Thanks @miameows for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

@miss-islington-app
Copy link
Copy Markdown

Thanks @miameows for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.15.
🐍🍒⛏🤖

@bedevere-app
Copy link
Copy Markdown

bedevere-app Bot commented May 22, 2026

GH-150239 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label May 22, 2026
@bedevere-app
Copy link
Copy Markdown

bedevere-app Bot commented May 22, 2026

GH-150240 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label May 22, 2026
@bedevere-app
Copy link
Copy Markdown

bedevere-app Bot commented May 22, 2026

GH-150241 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label May 22, 2026
hugovk added a commit that referenced this pull request May 22, 2026
…on for external resources (GH-150030) (#150241)

Co-authored-by: Mia Albert <micha@2231puppy.tech>
Co-authored-by: Stan Ulbrych <stan@python.org>
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
hugovk added a commit that referenced this pull request May 22, 2026
…on for external resources (GH-150030) (#150240)

Co-authored-by: Mia Albert <micha@2231puppy.tech>
Co-authored-by: Stan Ulbrych <stan@python.org>
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
hugovk added a commit that referenced this pull request May 22, 2026
…on for external resources (GH-150030) (#150239)

Co-authored-by: Mia Albert <micha@2231puppy.tech>
Co-authored-by: Stan Ulbrych <stan@python.org>
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Distributing Python Modules" link on docs front page is effectively empty

5 participants