Skip to content

gh-115317: Rewrite changelog filter to use vanilla JavaScript #115324

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Feb 12, 2024

Conversation

hugovk
Copy link
Member

@hugovk hugovk commented Feb 12, 2024

Sphinx removed the jQuery library to improve performance, but the changelog filter was still using it. This PR rewrites it to use basic JavaScript.

Demo

https://cpython-previews--115324.org.readthedocs.build/en/115324/whatsnew/changelog.html

@hugovk hugovk added docs Documentation in the Doc dir needs backport to 3.11 only security fixes needs backport to 3.12 only security fixes labels Feb 12, 2024
@hugovk hugovk changed the title Rewrite changelog filter to use vanilla JavaScript gh-115317: Rewrite changelog filter to use vanilla JavaScript Feb 12, 2024
Copy link
Member

@tomasr8 tomasr8 left a comment

Choose a reason for hiding this comment

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

Just noticed some minor style things ;)

Comment on lines 48 to 49
}
else {
Copy link
Member

Choose a reason for hiding this comment

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

I think this is the more common formatting for blocks in js

Suggested change
}
else {
} else {

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I'm going to just run Prettier on this :)

Co-authored-by: Tomas R <[email protected]>
@hugovk hugovk enabled auto-merge (squash) February 12, 2024 19:35
@hugovk hugovk merged commit 341d787 into python:main Feb 12, 2024
@hugovk hugovk deleted the changelog-search-vanilla-js branch February 12, 2024 22:17
@miss-islington-app
Copy link

Thanks @hugovk for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Feb 12, 2024
…ythonGH-115324)

(cherry picked from commit 341d787)

Co-authored-by: Hugo van Kemenade <[email protected]>
Co-authored-by: Tomas R <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Feb 12, 2024

GH-115372 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 only security fixes label Feb 12, 2024
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Feb 12, 2024
…ythonGH-115324)

(cherry picked from commit 341d787)

Co-authored-by: Hugo van Kemenade <[email protected]>
Co-authored-by: Tomas R <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Feb 12, 2024

GH-115373 is a backport of this pull request to the 3.11 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.11 only security fixes label Feb 12, 2024
hugovk added a commit that referenced this pull request Feb 13, 2024
…H-115324) (#115372)

gh-115317: Rewrite changelog filter to use vanilla JavaScript (GH-115324)
(cherry picked from commit 341d787)

Co-authored-by: Hugo van Kemenade <[email protected]>
Co-authored-by: Tomas R <[email protected]>
hugovk added a commit that referenced this pull request Feb 13, 2024
…H-115324) (#115373)

gh-115317: Rewrite changelog filter to use vanilla JavaScript (GH-115324)
(cherry picked from commit 341d787)

Co-authored-by: Hugo van Kemenade <[email protected]>
Co-authored-by: Tomas R <[email protected]>
fsc-eriker pushed a commit to fsc-eriker/cpython that referenced this pull request Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants