1. 09 Sep, 2016 2 commits
  2. 06 Sep, 2016 15 commits
  3. 05 Sep, 2016 18 commits
  4. 01 Sep, 2016 5 commits
    • Jonathan Corbet's avatar
      Merge branch 'doc/4.9' into docs-next · 87171fb7
      Jonathan Corbet authored
      87171fb7
    • Markus Heiser's avatar
      doc-rst: define PDF's of the media folder · 95149971
      Markus Heiser authored
      To build only the PDF of the media folder run::
      
        make SPHINXDIRS=media pdfdocs
      Signed-off-by: default avatarMarkus Heiser <markus.heiser@darmarIT.de>
      Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
      95149971
    • Markus Heiser's avatar
      doc-rst: generic way to build PDF of sub-folders · cd21379b
      Markus Heiser authored
      This extends the method to build only sub-folders to the targets
      "latexdocs" and "pdfdocs". To do so, a conf.py in the sub-folder is
      required, where the latex_documents of the sub-folder are
      defined. E.g. to build only gpu's PDF add the following to the
      Documentation/gpu/conf.py::
      
        +latex_documents = [
        +    ("index", "gpu.tex", "Linux GPU Driver Developer's Guide",
        +     "The kernel development community", "manual"),
        +]
      
      and run:
      
        make SPHINXDIRS=gpu pdfdocs
      Signed-off-by: default avatarMarkus Heiser <markus.heiser@darmarIT.de>
      Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
      cd21379b
    • Markus Heiser's avatar
      docs: sphinx-extensions: add metadata parallel-safe · b62b9d81
      Markus Heiser authored
      The setup() function of a Sphinx-extension can return a dictionary. This
      is treated by Sphinx as metadata of the extension [1].
      
      With metadata "parallel_read_safe = True" a extension is marked as
      save for "parallel reading of source". This is needed if you want
      build in parallel with N processes. E.g.:
      
        make SPHINXOPTS=-j4 htmldocs
      
      will no longer log warnings like:
      
        WARNING: the foobar extension does not declare if it is safe for
        parallel reading, assuming it isn't - please ask the extension author
        to check and make it explicit.
      
      Add metadata to extensions:
      
      * kernel-doc
      * flat-table
      * kernel-include
      
      [1] http://www.sphinx-doc.org/en/stable/extdev/#extension-metadataSigned-off-by: default avatarMarkus Heiser <markus.heiser@darmarIT.de>
      Tested-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
      b62b9d81
    • Mauro Carvalho Chehab's avatar
      docs-rst: kernel-doc: fix typedef output in RST format · 82801d06
      Mauro Carvalho Chehab authored
      When using a typedef function like this one:
      	typedef bool v4l2_check_dv_timings_fnc (const struct v4l2_dv_timings * t, void * handle);
      
      The Sphinx C domain expects it to create a c:type: reference,
      as that's the way it creates the type references when parsing
      a c:function:: declaration.
      
      So, a declaration like:
      
      	.. c:function:: bool v4l2_valid_dv_timings (const struct v4l2_dv_timings * t, const struct v4l2_dv_timings_cap * cap, v4l2_check_dv_timings_fnc fnc, void * fnc_handle)
      
      Will create a cross reference for :c:type:`v4l2_check_dv_timings_fnc`.
      
      So, when outputting such typedefs in RST format, we need to handle
      this special case, as otherwise it will produce those warnings:
      
      	./include/media/v4l2-dv-timings.h:43: WARNING: c:type reference target not found: v4l2_check_dv_timings_fnc
      	./include/media/v4l2-dv-timings.h:60: WARNING: c:type reference target not found: v4l2_check_dv_timings_fnc
      	./include/media/v4l2-dv-timings.h:81: WARNING: c:type reference target not found: v4l2_check_dv_timings_fnc
      
      So, change the kernel-doc script to produce a RST output for the
      above typedef as:
      	.. c:type:: v4l2_check_dv_timings_fnc
      
      	   **Typedef**: timings check callback
      
      	**Syntax**
      
      	  ``bool v4l2_check_dv_timings_fnc (const struct v4l2_dv_timings * t, void * handle);``
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
      82801d06