mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Use "rst" consistently for code and highlighting directives
This commit is contained in:
parent
f2640a4286
commit
1252c7b549
@ -1,4 +1,4 @@
|
|||||||
.. highlight:: rest
|
.. highlight:: rst
|
||||||
|
|
||||||
Application API
|
Application API
|
||||||
===============
|
===============
|
||||||
|
@ -4054,7 +4054,7 @@ Options for the Python domain
|
|||||||
|
|
||||||
The examples below use the following :rst:dir:`py:function` directive:
|
The examples below use the following :rst:dir:`py:function` directive:
|
||||||
|
|
||||||
.. code-block:: reStructuredText
|
.. code-block:: rst
|
||||||
|
|
||||||
.. py:function:: serve_food(item: Literal["egg", "spam", "lobster thermidor"]) -> None
|
.. py:function:: serve_food(item: Literal["egg", "spam", "lobster thermidor"]) -> None
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
.. highlight:: rest
|
.. highlight:: rst
|
||||||
|
|
||||||
.. _ext-autodoc:
|
.. _ext-autodoc:
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
.. highlight:: rest
|
.. highlight:: rst
|
||||||
|
|
||||||
:mod:`sphinx.ext.autosectionlabel` -- Allow reference sections using its title
|
:mod:`sphinx.ext.autosectionlabel` -- Allow reference sections using its title
|
||||||
==============================================================================
|
==============================================================================
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
.. highlight:: rest
|
.. highlight:: rst
|
||||||
|
|
||||||
:mod:`sphinx.ext.autosummary` -- Generate autodoc summaries
|
:mod:`sphinx.ext.autosummary` -- Generate autodoc summaries
|
||||||
===========================================================
|
===========================================================
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
.. highlight:: rest
|
.. highlight:: rst
|
||||||
|
|
||||||
:mod:`sphinx.ext.doctest` -- Test snippets in the documentation
|
:mod:`sphinx.ext.doctest` -- Test snippets in the documentation
|
||||||
===============================================================
|
===============================================================
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
.. highlight:: rest
|
.. highlight:: rst
|
||||||
|
|
||||||
:mod:`sphinx.ext.graphviz` -- Add Graphviz graphs
|
:mod:`sphinx.ext.graphviz` -- Add Graphviz graphs
|
||||||
=================================================
|
=================================================
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
.. highlight:: rest
|
.. highlight:: rst
|
||||||
|
|
||||||
:mod:`sphinx.ext.ifconfig` -- Include content based on configuration
|
:mod:`sphinx.ext.ifconfig` -- Include content based on configuration
|
||||||
====================================================================
|
====================================================================
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
.. highlight:: rest
|
.. highlight:: rst
|
||||||
|
|
||||||
:mod:`sphinx.ext.inheritance_diagram` -- Include inheritance diagrams
|
:mod:`sphinx.ext.inheritance_diagram` -- Include inheritance diagrams
|
||||||
=====================================================================
|
=====================================================================
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
.. highlight:: rest
|
.. highlight:: rst
|
||||||
|
|
||||||
.. _math-support:
|
.. _math-support:
|
||||||
|
|
||||||
|
@ -953,7 +953,7 @@ mainly contained in information units, such as the language reference.
|
|||||||
(this notation is also used below to describe what entries are created).
|
(this notation is also used below to describe what entries are created).
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
.. code:: reStructuredText
|
.. code:: rst
|
||||||
|
|
||||||
.. index:: single: execution
|
.. index:: single: execution
|
||||||
single: execution; context
|
single: execution; context
|
||||||
@ -966,7 +966,7 @@ mainly contained in information units, such as the language reference.
|
|||||||
The pair of values must be separated by a semicolon.
|
The pair of values must be separated by a semicolon.
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
.. code:: reStructuredText
|
.. code:: rst
|
||||||
|
|
||||||
.. index:: pair: loop; statement
|
.. index:: pair: loop; statement
|
||||||
|
|
||||||
@ -976,7 +976,7 @@ mainly contained in information units, such as the language reference.
|
|||||||
All three values must be separated by a semicolon.
|
All three values must be separated by a semicolon.
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
.. code:: reStructuredText
|
.. code:: rst
|
||||||
|
|
||||||
.. index:: triple: module; search; path
|
.. index:: triple: module; search; path
|
||||||
|
|
||||||
@ -986,7 +986,7 @@ mainly contained in information units, such as the language reference.
|
|||||||
A shortcut to create an index entry that refers to another entry.
|
A shortcut to create an index entry that refers to another entry.
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
.. code:: reStructuredText
|
.. code:: rst
|
||||||
|
|
||||||
.. index:: see: entry; other
|
.. index:: see: entry; other
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user