[media] doc-rst: backward compatibility with older Sphinx versions
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 19 Jul 2016 15:35:08 +0000 (12:35 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 19 Jul 2016 15:35:08 +0000 (12:35 -0300)
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>
Documentation/media/dvb-drivers/index.rst
Documentation/media/media_kapi.rst
Documentation/media/media_uapi.rst
Documentation/media/v4l-drivers/index.rst
Documentation/sphinx-static/theme_overrides.css

index e1d4d87f2a47a02d4803495bca224e71d69f5210..e4c2e74db9dc970184cdb1218af2cfd32fcf44cf 100644 (file)
@@ -14,12 +14,13 @@ any later version published by the Free Software Foundation. A copy of
 the license is included in the chapter entitled "GNU Free Documentation
 License".
 
+.. class:: toc-title
+
+       Table of Contents
 
 .. toctree::
        :maxdepth: 5
        :numbered:
-       :caption: Table of Contents
-       :name: dvb_mastertoc
 
        intro
        avermedia
index 0af80e90b7b52e22e14191ec87b8ef05d9602dc0..5414d2a7dfb822c7021bbf00ba4af3c77f86dcdb 100644 (file)
@@ -14,11 +14,13 @@ any later version published by the Free Software Foundation. A copy of
 the license is included in the chapter entitled "GNU Free Documentation
 License".
 
+.. class:: toc-title
+
+        Table of Contents
+
 .. toctree::
     :maxdepth: 5
     :numbered:
-    :caption: Table of Contents
-    :name: kapi_mastertoc
 
     kapi/v4l2-framework
     kapi/v4l2-controls
index debe4531040b3f5c0879c2c3b3b54c287047a9b9..aaa9a0e387c474b37fecb8503defceea2987417f 100644 (file)
@@ -14,11 +14,12 @@ any later version published by the Free Software Foundation. A copy of
 the license is included in the chapter entitled "GNU Free Documentation
 License".
 
+.. class:: toc-title
+
+        Table of Contents
 
 .. toctree::
     :maxdepth: 5
-    :caption: Table of Contents
-    :name: uapi_mastertoc
 
     intro
     uapi/v4l/v4l2
index 8d1710234e5ab179acbfa73b8ef488dbf428cf3e..2aab653905cec5e6d2f51ca4f366f46e9a1d1807 100644 (file)
@@ -14,12 +14,13 @@ any later version published by the Free Software Foundation. A copy of
 the license is included in the chapter entitled "GNU Free Documentation
 License".
 
+.. class:: toc-title
+
+        Table of Contents
 
 .. toctree::
        :maxdepth: 5
        :numbered:
-       :caption: Table of Contents
-       :name: v4l_mastertoc
 
        fourcc
        v4l-with-ir
index c97d8428302db5d78b78a2d264eec1a2c9dff867..3a2ac4bcfd789bc704987b650da6694089a91dca 100644 (file)
      *   - hide the permalink symbol as long as link is not hovered
      */
 
+    .toc-title {
+        font-size: 150%;
+       font-weight: bold;
+    }
+
     caption, .wy-table caption, .rst-content table.field-list caption {
         font-size: 100%;
     }
This page took 0.027489 seconds and 5 git commands to generate.