html: html_codeblock_linenos_style defaults to 'inline' (refs: #7849)

As discussed in #7879, the default style of line numbers for code
blocks in HTML output becames 'inline' by default.  And 'table' style
is now deprecated and will be removed in Sphinx-6.0.
This commit is contained in:
Takeshi KOMIYA
2020-07-11 22:30:37 +09:00
parent 77fad1ec98
commit 84dc65ad51
4 changed files with 27 additions and 75 deletions

View File

@@ -971,10 +971,15 @@ that use Sphinx's HTMLWriter class.
The style of line numbers for code-blocks.
* ``'table'`` -- display line numbers using ``<table>`` tag (default)
* ``'inline'`` -- display line numbers using ``<span>`` tag
* ``'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