pypi / sphinx
sphinx
What changed in sphinx 8 to 9, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
37 breaking13 deprecations13 new APIs and options12 behavior and defaults1 tooling24 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initsphinx 970 changes
Breaking changes 10
Docutils 0.20 is no longer supported.
Python 3.11 is no longer supported.
autodoc has been substantially rewritten, which may introduce incompatibilities in edge cases, especially for extensions that interact with its internals.
Sphinx 9.0 supports Docutils 0.22.
The HTML builder uses span instead of em with class property, improving semantic HTML structure.
MathJax v4 is now used by default; set mathjax_path to keep using an older version.
Non-decodable source-file characters now raise an error instead of being replaced with '?' while logging a warning.
Escaped title content is no longer included in the search index.
The method no longer takes an app parameter; it takes config and env instead.
The method now returns only fragment and title keys.
Deprecations 11
The mapping interface for options objects was deprecated.
Remaining public .app attributes, including builder.app, env.app, events.app, and SphinxTransform.app, are deprecated.
The public app attribute is deprecated.
The public app attribute is deprecated.
The public app attribute is deprecated.
Support for non-UTF 8 source encodings is deprecated and scheduled for removal in Sphinx 10.
The Parser config attribute is deprecated.
The Parser env attribute is deprecated.
The set_application method of Parser objects is deprecated.
The module is deprecated and will be removed in Sphinx 10; Sphinx no longer uses its classes.
The public app attribute is deprecated.
New APIs and options 13
Adds an API for copying static assets from extensions to the build output.
Set this environment variable to a non-empty value to make autodoc import native modules directly instead of using a neighboring .pyi type stub.
Enables the legacy pre-9.0 implementation of autodoc.
Exits after the first failed doctest.
The LaTeX builder supports the fontawesome6 package.
intersphinx adds a file-based cache for remote inventories; its directory location may change without notice.
Allows case-insensitive URL comparison for specified URL patterns.
Loads MathJax configuration from a file.
Configures MathJax v4.
autodoc adds initial support for PEP 695 type aliases.
A tags keyword argument is optional from Sphinx 9 and will be required from Sphinx 11.
The duration extension now provides configuration options.
Adds a warning type for grouping issues related to the C and C++ parsers.
Behavior and default changes 11
autosummary provides more context in import exception stack traces.
Project-defined type aliases used as annotations can be cross-referenced, allowing documented py:data objects to be linked in function signatures.
autodoc detects typing_extensions.overload and final decorators.
C domain objects can now appear in the table of contents.
The LaTeX builder supports CSS3 length units.
Images with data URIs that are not base64-encoded are supported.
autodoc detects final() decorators.
The LaTeX builder allows more cases of table nesting.
An empty mapping permits warnings on every redirect.
The py:deco directive now supports the tilde prefix.
HTML search uses the latest Snowball version, v3.0.1.
Tooling 1
The LaTeX builder supports the fontawesome7 package.
Fixes and other changes 24
Fixes LaTeX builds for documents using the standard
acronymrole.Fixes default option parsing in autodoc.
Improves autodoc support for objects that cannot be weak-referenced.
Fixes creating
HTMLThemeFactoryobjects in third-party extensions.Fixes PDF build crashes when a code block contains more than circa 1350 code lines.
Fixes LaTeX rendering of grid-filled merged vertical cells and footer overruns involving merged vertical table cells.
Fixes compatibility with MyST-Parser.
Fixes duplicate
:no-index-entry:entries for modules in autodoc.Fixes TAB characters ending up in
sphinxVerbatimso they obey tab stops.Fixed spurious build warnings when translators reorder references in strings or use translated display text in references.
Some missing exports in sphinx.ext.autodoc were restored.
Restores sphinx.ext.autodoc.mock for use with autodoc.
The mapping interface for options objects was restored.
The option now works when aliases appear in PEP 604 union syntax.
The parsers now correctly handle unpacked type annotations for parsing and cross-referencing.
Doctest blocks are now correctly added to the group defined by this configuration variable.
Sphinx supports Docutils 0.22.
EPUB manifest paths use forward slashes, and duplicate manifest items are resolved on Windows.
HTML Search no longer clears text fragments from the URL on page load.
Extra parentheses are removed from js:function arguments and errors.
Fixes longtable builds with automatic tabularcolumns widths, horizontal overflow, footnotes, nested tables, caption links, and related rendering issues.
Multiple py:type directives for the same canonical type no longer produce spurious duplicate object description warnings.
Duplicate equation label warnings now use a new warning subtype.
LaTeX longtable no longer errors when tabularcolumns specifies automatic widths.
sphinx 830 changes
Breaking changes 27
User-supplied files are no longer overwritten when copying assets unless forced with force=True.
Invalid html_sidebars values now raise an error.
Support for the old 2008–2010 Sphinx 0.5 and 0.6 mapping format was removed.
The default changed to False.
The default changed to False.
sphinx-quickstart no longer supports generating old-style make.bat output.
sphinx-quickstart no longer supports generating old-style Makefile output.
Sphinx 8 no longer supports Python 3.9.
The -m option was removed.
The --no-use-make-mode option was removed.
The --use-make-mode option was removed.
The long-deprecated alias was removed; use sphinx.domains.changeset.VersionChange directly.
The tuple interface to ObjectMember was removed.
Removed; use sphinx.util.display.display_chunk instead.
Removed; use sphinx.http_date.epoch_to_rfc1123 instead.
Removed; use sphinx.exceptions.format_exception_cut_frames instead.
Removed; on Python 3.10 and newer, use isinstance(obj, typing.NewType) instead.
Removed; use contextlib.chdir instead.
Removed; use sphinx.util.osutil.path_stabilize instead.
Removed; use sphinx.util.display.progress_message instead.
Removed; use sphinx.http_date.rfc1123_to_epoch instead.
Removed; use sphinx.exceptions.save_traceback instead.
Removed; use sphinx.util.display.SkipProgressMessage instead.
Removed; use sphinx.util.display.status_iterator instead.
Removed; use sphinx.util.typing.stringify_annotation instead.
Removed; use sphinx.builders.epub3._XML_NAME_PATTERN instead.
Invalid sections now raise an error in Theme.get_config.
Deprecations 2
The deprecation for string methods on pathlib.Path objects is extended to Sphinx 9; use os.fspath or pathlib.Path methods.
Renamed from normalize_intersphinx_mapping; the old name will be removed in Sphinx 10.
Behavior and default changes 1
The default changed from False to True.