Revert `html_codeblock_linenos_style` removal (#10922)

This commit is contained in:
Adam Turner
2022-10-16 16:50:53 +01:00
committed by GitHub
parent e70a0fac6d
commit 592b46c431
5 changed files with 40 additions and 5 deletions

View File

@@ -1065,6 +1065,20 @@ that use Sphinx's HTMLWriter class.
.. versionadded:: 1.8
.. confval:: html_codeblock_linenos_style
The style of line numbers for code-blocks.
* ``'table'`` -- display line numbers using ``<table>`` tag
* ``'inline'`` -- display line numbers using ``<span>`` tag (default)
.. versionadded:: 3.2
.. versionchanged:: 4.0
It defaults to ``'inline'``.
.. deprecated:: 4.0
.. confval:: html_context
A dictionary of values to pass into the template engine's context for all