1. 16 5月, 2017 1 次提交
  2. 12 4月, 2017 1 次提交
  3. 31 3月, 2017 1 次提交
  4. 09 3月, 2017 1 次提交
    • M
      docs-rst: automatically convert Graphviz and SVG images · db6ccf23
      Markus Heiser 提交于
      This patch brings scalable figure, image handling and a concept to
      embed *render* markups:
      
      * DOT (http://www.graphviz.org)
      * SVG
      
      For image handling use the 'image' replacement::
      
          .. kernel-image::  svg_image.svg
             :alt:    simple SVG image
      
      For figure handling use the 'figure' replacement::
      
          .. kernel-figure::  svg_image.svg
             :alt:    simple SVG image
      
             SVG image example
      
      Embed *render* markups (or languages) like Graphviz's **DOT** is
      provided by the *render* directive.::
      
        .. kernel-render:: DOT
           :alt: foobar digraph
           :caption: Embedded **DOT** (Graphviz) code.
      
           digraph foo {
            "bar" -> "baz";
           }
      
      The *render* directive is a concept to integrate *render* markups and
      languages, yet supported markups:
      
      * DOT: render embedded Graphviz's **DOT**
      * SVG: render embedded Scalable Vector Graphics (**SVG**)
      
      Cc: Jani Nikula <jani.nikula@linux.intel.com>
      Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
      Tested-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      Tested-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> (v2 - v5)
      Signed-off-by: Markus Heiser <markus.heiser@darmarit.de> (v1, v6)
      Signed-off-by: NJonathan Corbet <corbet@lwn.net>
      db6ccf23
  5. 19 12月, 2016 1 次提交
  6. 01 12月, 2016 1 次提交
  7. 20 11月, 2016 1 次提交
  8. 20 10月, 2016 1 次提交
  9. 16 9月, 2016 2 次提交
  10. 09 9月, 2016 2 次提交
  11. 01 9月, 2016 1 次提交
  12. 23 8月, 2016 3 次提交
  13. 19 8月, 2016 1 次提交
  14. 15 8月, 2016 1 次提交
    • M
      doc-rst: generic way to build only sphinx sub-folders · 606b9ac8
      Markus Heiser 提交于
      Add a generic way to build only a reST sub-folder with or
      without a individual *build-theme*.
      
      * control *sub-folders* by environment SPHINXDIRS
      * control *build-theme* by environment SPHINX_CONF
      
      Folders with a conf.py file, matching $(srctree)/Documentation/*/conf.py
      can be build and distributed *stand-alone*. E.g. to compile only the
      html of 'media' and 'gpu' folder use::
      
        make SPHINXDIRS="media gpu" htmldocs
      
      To use an additional sphinx-build configuration (*build-theme*) set the
      name of the configuration file to SPHINX_CONF. E.g. to compile only the
      html of 'media' with the *nit-picking* build use::
      
        make SPHINXDIRS=media SPHINX_CONF=conf_nitpick.py htmldocs
      
      With this, the Documentation/conf.py is read first and updated with the
      configuration values from the Documentation/media/conf_nitpick.py.
      Signed-off-by: NMarkus Heiser <markus.heiser@darmarIT.de>
      Signed-off-by: NJonathan Corbet <corbet@lwn.net>
      606b9ac8
  15. 21 7月, 2016 1 次提交
  16. 09 7月, 2016 1 次提交
  17. 08 7月, 2016 4 次提交
  18. 07 7月, 2016 7 次提交
  19. 01 7月, 2016 1 次提交
    • M
      doc-rst: flat-table directive - initial implementation · 0249a764
      Markus Heiser 提交于
      Implements the reST flat-table directive.
      
      The ``flat-table`` is a double-stage list similar to the ``list-table`` with
      some additional features:
      
      * column-span: with the role ``cspan`` a cell can be extended through
        additional columns
      
      * row-span: with the role ``rspan`` a cell can be extended through
        additional rows
      
      * auto span rightmost cell of a table row over the missing cells on the right
        side of that table-row.  With Option ``:fill-cells:`` this behavior can
        changed from *auto span* to *auto fill*, which automaticly inserts (empty)
      
      list tables
      
        The *list tables* formats are double stage lists. Compared to the
        ASCII-art they migth be less comfortable for readers of the
        text-files. Their advantage is, that they are easy to create/modify
        and that the diff of a modification is much more meaningfull, because
        it is limited to the modified content.
      
      The initial implementation was taken from the sphkerneldoc project [1]
      
      [1] https://github.com/return42/sphkerneldoc/commits/master/scripts/site-python/linuxdoc/rstFlatTable.pySigned-off-by: NMarkus Heiser <markus.heiser@darmarIT.de>
      [jc: fixed typos and misspellings in the docs]
      Signed-off-by: NJonathan Corbet <corbet@lwn.net>
      0249a764
  20. 10 6月, 2016 3 次提交
    • J
      Documentation/sphinx: add support for specifying extra export files · 03d35d9e
      Jani Nikula 提交于
      Let the user specify file patterns where to look for the EXPORT_SYMBOLs
      in addition to the file with kernel-doc comments. This is directly based
      on the -export-file FILE option added to kernel-doc in "kernel-doc: add
      support for specifying extra files for EXPORT_SYMBOLs", but we extend
      that with globbing patterns in the Sphinx extension.
      
      The file patterns are added as options to the :export: and :internal:
      arguments of the kernel-doc directive. For example, to extract the
      documentation of exported functions from include/net/mac80211.h:
      
      .. kernel-doc:: include/net/mac80211.h
         :export: net/mac80211/*.c
      
      Without the file pattern, no exported functions would be found, as the
      EXPORT_SYMBOLs are placed in the various source files under
      net/mac80211.
      
      The matched files are also added as dependencies on the document in
      Sphinx, as they may affect the output. This is one of the reasons to do
      the globbing in the Sphinx extension instead of in scripts/kernel-doc.
      
      The file pattern remains optional, and is not needed if the kernel-doc
      comments and EXPORT_SYMBOLs are placed in the source file passed in as
      the main argument to the kernel-doc directive. This is the most common
      case across the kernel source tree.
      Signed-off-by: NJani Nikula <jani.nikula@intel.com>
      03d35d9e
    • J
      Documentation/sphinx: use a more sensible string split in kernel-doc extension · 057de5c4
      Jani Nikula 提交于
      Using the default str.split doesn't return empty strings like the
      current version does.
      Signed-off-by: NJani Nikula <jani.nikula@intel.com>
      057de5c4
    • J
      Documentation/sphinx: remove unnecessary temporary variable · 06173fe3
      Jani Nikula 提交于
      Leftover cruft. No functional changes.
      Signed-off-by: NJani Nikula <jani.nikula@intel.com>
      06173fe3
  21. 04 6月, 2016 1 次提交
    • D
      doc/sphinx: Track line-number of starting blocks · d90368f2
      Daniel Vetter 提交于
      Design is pretty simple: kernel-doc inserts breadcrumbs with line
      numbers, and sphinx picks them up. At first I went with a sphinx
      comment, but inserting those at random places seriously upsets the
      parser, and must be filtered. Hence why this version now uses "#define
      LINEO " since one of these ever escape into output it's pretty clear
      there is a bug.
      
      It seems to work well, and at least the 2-3 errors where sphinx
      complained about something that was not correct in kernel-doc text the
      line numbers matched up perfectly.
      
      v2: Instead of noodling around in the parser state machine, create
      a ViewList and parse it ourselves. This seems to be the recommended
      way, per Jani's suggestion.
      
      v3:
      - Split out ViewList pach. Splitting the kernel-doc changes from the
        sphinx ones isn't possible, since emitting the LINENO lines wreaks
        havoc with the rst formatting. We must filter them.
      
      - Improve the regex per Jani's suggestions, and compile it just once
        for speed.
      
      - Now that LINENO lines are eaten, also add them to function parameter
        descriptions. Much less content and offset than for in-line struct
        member descriptions, but still nice to know which exact continuation
        line upsets sphinx.
      
      - Simplify/clarify the line +/-1 business a bit.
      
      v4: Split out the scripts/kernel-doc changes and make line-numbers
      opt-in, as suggested by Jani.
      
      Cc: Jani Nikula <jani.nikula@intel.com>
      Cc: linux-doc@vger.kernel.org
      Cc: Jonathan Corbet <corbet@lwn.net>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: NJani Nikula <jani.nikula@intel.com>
      d90368f2
  22. 03 6月, 2016 1 次提交
  23. 01 6月, 2016 2 次提交
  24. 30 5月, 2016 1 次提交