media: index.rst: don't write "Contents:" on PDF output
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Sun, 3 Sep 2017 18:39:51 +0000 (14:39 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 5 Sep 2017 10:30:41 +0000 (06:30 -0400)
Right now, Sphinx unconditionally creates a blank page with
just "Contents:" on it, on PDF output. While this makes sense
for html, it doesn't o PDF, as LaTeX does what's required
automatically.

Fix it.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Documentation/media/index.rst

index 7d2907d4f8d7c3302f095e16f22ebd270e7f2dab..1cf5316c8ff800b69ccbde624552066b52caef31 100644 (file)
@@ -1,7 +1,11 @@
 Linux Media Subsystem Documentation
 ===================================
 
-Contents:
+.. only:: html
+
+   .. class:: toc-title
+
+        Table of Contents
 
 .. toctree::
    :maxdepth: 2