Skip to content

Infra: Derive Discussions-To from Post-History - #5244

Open
vaibhavlord wants to merge 2 commits into
python:mainfrom
vaibhavlord:infra/discussions-to-fallback
Open

vaibhavlord wants to merge 2 commits into
python:mainfrom
vaibhavlord:infra/discussions-to-fallback

Conversation

@vaibhavlord

@vaibhavlord vaibhavlord commented Nov 24, 2026 •

Copy link
Copy Markdown

When Discussions-To is missing, render it using the last linked entry in
Post-History. If that link points to a Discourse reply, use the topic URL.
An explicit Discussions-To takes precedence.

Added regression tests for the fallback, explicit headers, and histories
without links. The local HTML build passed, and the test suite reported
549 passed and 2 expected failures.

For #5158

@python-cla-bot

python-cla-bot Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@read-the-docs-community

read-the-docs-community Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

@hugovk hugovk left a comment •

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.

Thanks for the PR.

Let's also add missing discussions_to in the PEPs API:

https://pep-previews--5244.org.readthedocs.build/api/peps.json

@hugovk hugovk added the infra Core infrastructure for building and rendering PEPs label Nov 25, 2026
@vaibhavlord

Copy link
Copy Markdown
Author

Thanks, Hugo! I’ve addressed all three suggestions in 054e07b, including the fallback in the PEPs JSON API. All checks are passing.

@vaibhavlord
vaibhavlord requested a review from hugovk November 25, 2026 19:11

@hugovk hugovk left a comment

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.

Thanks! Let's keep this open to give others a chance in case they'd like to review.

This branch has not been deployed

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

Labels

infra Core infrastructure for building and rendering PEPs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants