Parcourir la source

doc-rst: make driver-api folder buildable stand-alone

Add minimal conf.py makes the driver-api folder buildable
stand-alone. To build only this folder run::

  make SPHINXDIRS=driver-api htmldocs
  make SPHINXDIRS=driver-api pdfdocs

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Markus Heiser il y a 8 ans
Parent
commit
241a8021c6
2 fichiers modifiés avec 18 ajouts et 0 suppressions
  1. 10 0
      Documentation/driver-api/conf.py
  2. 8 0
      Documentation/driver-api/index.rst

+ 10 - 0
Documentation/driver-api/conf.py

@@ -0,0 +1,10 @@
+# -*- coding: utf-8; mode: python -*-
+
+project = "The Linux driver implementer's API guide"
+
+tags.add("subproject")
+
+latex_documents = [
+    ('index', 'driver-api.tex', project,
+     'The kernel development community', 'manual'),
+]

+ 8 - 0
Documentation/driver-api/index.rst

@@ -25,3 +25,11 @@ available subsections can be seen below.
    hsi
    miscellaneous
    vme
+
+
+.. only::  subproject and html
+
+   Indices
+   =======
+
+   * :ref:`genindex`