Debian Codegraph @

doc/changes/6.0.rst

raw
1 ==========
2 Sphinx 6.0
3 ==========
4
5
6 Release 6.0.1 (released Jan 05, 2023)
7 =====================================
8
9 Dependencies
10 ------------
11
12 * Require Pygments 2.13 or later.
13
14 Bugs fixed
15 ----------
16
17 * #10944: imgmath: Fix resolving image paths for files in nested folders.
18
19 Release 6.0.0 (released Dec 29, 2022)
20 =====================================
21
22 Dependencies
23 ------------
24
25 * #10468: Drop Python 3.6 support
26 * #10470: Drop Python 3.7, Docutils 0.14, Docutils 0.15, Docutils 0.16, and
27 Docutils 0.17 support. Patch by Adam Turner
28
29 Incompatible changes
30 --------------------
31
32 * #7405: Removed the jQuery and underscore.js JavaScript frameworks.
33
34 These frameworks are no longer be automatically injected into themes from
35 Sphinx 6.0. If you develop a theme or extension that uses the
36 ``jQuery``, ``$``, or ``$u`` global objects, you need to update your
37 JavaScript to modern standards, or use the mitigation below.
38
39 The first option is to use the sphinxcontrib.jquery_ extension, which has been
40 developed by the Sphinx team and contributors. To use this, add
41 ``sphinxcontrib.jquery`` to the ``extensions`` list in ``conf.py``, or call
42 ``app.setup_extension("sphinxcontrib.jquery")`` if you develop a Sphinx theme
43 or extension.
44
45 The second option is to manually ensure that the frameworks are present.
46 To re-add jQuery and underscore.js, you will need to copy ``jquery.js`` and
47 ``underscore.js`` from `the Sphinx repository`_ to your ``static`` directory,
48 and add the following to your ``layout.html``:
49
50 .. _the Sphinx repository: https://github.com/sphinx-doc/sphinx/tree/v5.3.0/sphinx/themes/basic/static
51 .. code-block:: html+jinja
52
53 {%- block scripts %}
54 <script src="{{ pathto('_static/jquery.js', resource=True) }}"></script>
55 <script src="{{ pathto('_static/underscore.js', resource=True) }}"></script>
56 {{ super() }}
57 {%- endblock %}
58
59 .. _sphinxcontrib.jquery: https://github.com/sphinx-contrib/jquery/
60
61 Patch by Adam Turner.
62 * #10471, #10565: Removed deprecated APIs scheduled for removal in Sphinx 6.0. See
63 :ref:`dev-deprecated-apis` for details. Patch by Adam Turner.
64 * #10901: C Domain: Remove support for parsing pre-v3 style type directives and
65 roles. Also remove associated configuration variables ``c_allow_pre_v3`` and
66 ``c_warn_on_allowed_pre_v3``. Patch by Adam Turner.
67
68 Features added
69 --------------
70
71 * #10924: LaTeX: adopt better looking defaults for tables and code-blocks.
72 See :confval:`latex_table_style` and the ``pre_border-radius`` and
73 ``pre_background-TeXcolor`` :ref:`additionalcss` for the former defaults
74 and how to re-enact them if desired.
75
76 Bugs fixed
77 ----------
78
79 * #10984: LaTeX: Document :confval:`latex_additional_files` behavior for files
80 with ``.tex`` extension.