jit: doc: Use shared Indices and tables

Apart from that, do not use leading .rst names in toctree.

ChangeLog:

	* doc/indices-and-tables.rst: Rename Indexes to Indices.

gcc/jit/ChangeLog:

	* doc/cp/index.rst: Remove trailing .rst in toctree.
	* doc/cp/intro/index.rst: Likewise.
	* doc/cp/topics/index.rst: Likewise.
	* doc/index.rst: Likewise.
	* doc/intro/index.rst: Likewise.
	* doc/topics/index.rst: Likewise.
	* doc/indices-and-tables.rst: New file.
This commit is contained in:
Martin Liska 2022-11-11 14:25:46 +01:00
parent 02698e21de
commit 3b54cc9d04
8 changed files with 37 additions and 41 deletions

View file

@ -1,6 +1,6 @@
.. only:: html
Indexes and tables
Indices and tables
==================
:ref:`genindex`

View file

@ -33,5 +33,5 @@ Contents:
.. toctree::
:maxdepth: 2
intro/index.rst
topics/index.rst
intro/index
topics/index

View file

@ -21,7 +21,7 @@ Tutorial
.. toctree::
:maxdepth: 2
tutorial01.rst
tutorial02.rst
tutorial03.rst
tutorial04.rst
tutorial01
tutorial02
tutorial03
tutorial04

View file

@ -21,11 +21,11 @@ Topic Reference
.. toctree::
:maxdepth: 2
contexts.rst
objects.rst
types.rst
expressions.rst
functions.rst
locations.rst
compilation.rst
asm.rst
contexts
objects
types
expressions
functions
locations
compilation
asm

View file

@ -33,14 +33,9 @@ Contents:
.. toctree::
:maxdepth: 2
intro/index.rst
topics/index.rst
cp/index.rst
internals/index.rst
intro/index
topics/index
cp/index
internals/index
Indices and tables
==================
* :ref:`genindex`
* :ref:`search`
indices-and-tables

View file

@ -0,0 +1 @@
.. include:: ../../../doc/indices-and-tables.rst

View file

@ -21,8 +21,8 @@ Tutorial
.. toctree::
:maxdepth: 2
tutorial01.rst
tutorial02.rst
tutorial03.rst
tutorial04.rst
tutorial05.rst
tutorial01
tutorial02
tutorial03
tutorial04
tutorial05

View file

@ -21,14 +21,14 @@ Topic Reference
.. toctree::
:maxdepth: 2
contexts.rst
objects.rst
types.rst
expressions.rst
functions.rst
function-pointers.rst
locations.rst
compilation.rst
compatibility.rst
performance.rst
asm.rst
contexts
objects
types
expressions
functions
function-pointers
locations
compilation
compatibility
performance
asm