Skip to content

Commit ef88f10

Browse files
committed
[media] doc-rst: backward compatibility with older Sphinx versions
Sphinx is really evil when an older version finds an extra attribute for the :toctree: tag: it simply ignores everything and produce documents without any chapter inside! As we're now using tags available only on Sphinx 1.4.x, we need to use some creative ways to add a title before the table of contents. Do that by using a css class. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
1 parent e1813ed commit ef88f10

5 files changed

Lines changed: 18 additions & 8 deletions

File tree

‎Documentation/media/dvb-drivers/index.rst‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ any later version published by the Free Software Foundation. A copy of
1414
the license is included in the chapter entitled "GNU Free Documentation
1515
License".
1616

17+
.. class:: toc-title
18+
19+
Table of Contents
1720

1821
.. toctree::
1922
:maxdepth: 5
2023
:numbered:
21-
:caption: Table of Contents
22-
:name: dvb_mastertoc
2324

2425
intro
2526
avermedia

‎Documentation/media/media_kapi.rst‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ any later version published by the Free Software Foundation. A copy of
1414
the license is included in the chapter entitled "GNU Free Documentation
1515
License".
1616

17+
.. class:: toc-title
18+
19+
Table of Contents
20+
1721
.. toctree::
1822
:maxdepth: 5
1923
:numbered:
20-
:caption: Table of Contents
21-
:name: kapi_mastertoc
2224

2325
kapi/v4l2-framework
2426
kapi/v4l2-controls

‎Documentation/media/media_uapi.rst‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@ any later version published by the Free Software Foundation. A copy of
1414
the license is included in the chapter entitled "GNU Free Documentation
1515
License".
1616

17+
.. class:: toc-title
18+
19+
Table of Contents
1720

1821
.. toctree::
1922
:maxdepth: 5
20-
:caption: Table of Contents
21-
:name: uapi_mastertoc
2223

2324
intro
2425
uapi/v4l/v4l2

‎Documentation/media/v4l-drivers/index.rst‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ any later version published by the Free Software Foundation. A copy of
1414
the license is included in the chapter entitled "GNU Free Documentation
1515
License".
1616

17+
.. class:: toc-title
18+
19+
Table of Contents
1720

1821
.. toctree::
1922
:maxdepth: 5
2023
:numbered:
21-
:caption: Table of Contents
22-
:name: v4l_mastertoc
2324

2425
fourcc
2526
v4l-with-ir

‎Documentation/sphinx-static/theme_overrides.css‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@
3131
* - hide the permalink symbol as long as link is not hovered
3232
*/
3333

34+
.toc-title {
35+
font-size: 150%;
36+
font-weight: bold;
37+
}
38+
3439
caption, .wy-table caption, .rst-content table.field-list caption {
3540
font-size: 100%;
3641
}

0 commit comments

Comments
 (0)