Skip to content

singlehtml: deprecate the 'fix_refuris' helper function - #13037

Merged
AA-Turner merged 11 commits into
sphinx-doc:masterfrom
jayaddison:pr-11970-followup/fixup-cleanup-singlehtml-uri-resolution
Nov 13, 2024
Merged

AA-Turner merged 11 commits into
sphinx-doc:masterfrom
jayaddison:pr-11970-followup/fixup-cleanup-singlehtml-uri-resolution

Conversation

@jayaddison

@jayaddison jayaddison commented Oct 18, 2024 •

Copy link
Copy Markdown
Contributor

Feature or Bugfix

  • Deprecation

Purpose

Detail

  • Deprecates the sphinx.builders.singlehtml.SingleFileHTMLBuilder.fix_refuris method, and adds a warning noting that it's planned for removal in Sphinx 9 (the next major version).

Relates

Edit: update description: this PR removes calls to the method, so don't imply that this is deprecation of already-unused code.

@AA-Turner AA-Turner 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.

Remember to add new deprecations to doc/extdev/deprecated.rst.

A

@jayaddison

Copy link
Copy Markdown
Contributor Author

Although I'm fairly keen to merge this, and think it should be safe -- maybe I'll take one more self-review pass (and/or try some builds of external singlehtml projects) on it next week before re-requesting approval/merge.

@AA-Turner AA-Turner 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.

Our deprecation policy calls for two major releases. Any reason to expidite this one?

A

Comment thread CHANGES.rst Resolved
Comment thread doc/extdev/deprecated.rst Resolved
Comment thread sphinx/builders/singlehtml.py Resolved
Comment thread sphinx/builders/singlehtml.py Resolved
@jayaddison

Copy link
Copy Markdown
Contributor Author

Our deprecation policy calls for two major releases. Any reason to expidite this one?

Nope, this can wait until Sphinx 10 - oddly I think I configured that originally; I can't remember why I reset that to Sphinx 9.

@AA-Turner AA-Turner changed the title singlehtml: deprecate 'fix_refuris' helper function singlehtml: deprecate the 'fix_refuris' helper function Nov 13, 2024
@AA-Turner
AA-Turner merged commit c93723b into sphinx-doc:master Nov 13, 2024
@jayaddison
jayaddison deleted the pr-11970-followup/fixup-cleanup-singlehtml-uri-resolution branch November 13, 2024 23:24
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Dec 12, 2024
@AA-Turner AA-Turner added this to the 8.2.0 milestone Jan 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants