1. 24 10月, 2016 2 次提交
  2. 20 10月, 2016 1 次提交
  3. 21 9月, 2016 1 次提交
  4. 23 8月, 2016 6 次提交
  5. 19 8月, 2016 6 次提交
  6. 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
  7. 13 8月, 2016 2 次提交
  8. 21 7月, 2016 1 次提交
  9. 20 7月, 2016 1 次提交
    • D
      doc/sphinx: Enable keep_warnings · 47d6d752
      Daniel Vetter 提交于
      Unfortunately warnings generated after parsing in sphinx can end up
      with entirely bogus files and line numbers as sources. Strangely for
      outright errors this is not a problem. Trying to convert warnings to
      errors also doesn't fix it.
      
      The only way to get useful output out of sphinx to be able to root
      cause the error seems to be enabling keep_warnings, which inserts
      a System Message into the actual output. Not pretty at all, but I
      don't really want to fix up core rst/sphinx code, and this gets the job
      done meanwhile.
      
      Cc: Markus Heiser <markus.heiser@darmarit.de>
      Cc: Jonathan Corbet <corbet@lwn.net>
      Cc: linux-doc@vger.kernel.org
      Signed-off-by: NDaniel Vetter <daniel.vetter@intel.com>
      Signed-off-by: NJonathan Corbet <corbet@lwn.net>
      47d6d752
  10. 15 7月, 2016 1 次提交
    • M
      doc-rst: Fix compilation of the pdf docbook · 520a2477
      Mauro Carvalho Chehab 提交于
      The rst2pdf tool is a very broken toolchain, with is not capable
      of parsing complex documents. As such, it doesn't build the
      media book, failing with:
      
      	[ERROR] pdfbuilder.py:130 too many values to unpack
      
      (using rst2pdf version 0.93.dev-r0 and Sphinx version 1.4.5)
      
      So, make it build only the books we know that are safe to build.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      
      --
      
      Btw, with the standard Sphinx version shipped on Fedora 24 (Sphinx
      1.3.1), rst2pdf doesn't build even the simple kernel-documentation,
      failing with this error:
          writing Kernel... [ERROR] pdfbuilder.py:130 list index out of range
      
      This is a known bug:
          https://github.com/sphinx-doc/sphinx/issues/1844
      
      So, maybe we should just disable pdf generation from RST for good,
      as I suspect that maintaining it with a broken toolchain will be a
      big headache.
      520a2477
  11. 08 7月, 2016 1 次提交
  12. 06 7月, 2016 1 次提交
  13. 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
  14. 30 5月, 2016 3 次提交
    • J
      Documentation/sphinx: set version and release properly · c13ce448
      Jani Nikula 提交于
      Read the version and release from the top level Makefile (for use when
      Sphinx is invoked directly, by e.g. Read the Docs), but override them
      via Sphinx command line arguments in a normal documentation build.
      Signed-off-by: NJani Nikula <jani.nikula@intel.com>
      c13ce448
    • J
      Documentation/sphinx: configure the kernel-doc extension · 24dcdeb2
      Jani Nikula 提交于
      Tell Sphinx where to find the extension, and pass on the kernel src tree
      and kernel-doc paths to the extension.
      
      With this, any .rst files under Documentation may contain the kernel-doc
      rst directive to include kernel-doc documentation from any source file.
      
      While building, it may be handy to pass kernel-doc extension
      configuration on the command line. For example, 'make SPHINXOPTS="-D
      kerneldoc_verbosity=0" htmldocs' silences all stderr output from
      kernel-doc when the kernel-doc exit code is 0. (The stderr will be
      logged unconditionally when the exit code is non-zero.)
      Signed-off-by: NJani Nikula <jani.nikula@intel.com>
      24dcdeb2
    • J
      Documentation/sphinx: add basic working Sphinx configuration and build · 22cba31b
      Jani Nikula 提交于
      Add basic configuration and makefile to build documentation from any
      .rst files under Documentation using Sphinx. For starters, there's just
      the placeholder index.rst.
      
      At the top level Makefile, hook Sphinx documentation targets alongside
      (but independent of) the DocBook toolchain, having both be run on the
      various 'make *docs' targets.
      
      All Sphinx processing is placed into Documentation/Makefile.sphinx. Both
      that and the Documentation/DocBook/Makefile are now expected to handle
      all the documentation targets, explicitly ignoring them if they're not
      relevant for that particular toolchain. The changes to the existing
      DocBook Makefile are kept minimal.
      
      There is graceful handling of missing Sphinx and rst2pdf (which is
      needed for pdf output) by checking for the tool and python module,
      respectively, with informative messages to the user.
      
      If the Read the Docs theme (sphinx_rtd_theme) is available, use it, but
      otherwise gracefully fall back to the Sphinx default theme, with an
      informative message to the user, and slightly less pretty HTML output.
      
      Sphinx can now handle htmldocs, pdfdocs (if rst2pdf is available),
      epubdocs and xmldocs targets. The output documents are written into per
      output type subdirectories under Documentation/output.
      
      Finally, you can pass options to sphinx-build using the SPHINXBUILD make
      variable. For example, 'make SPHINXOPTS=-v htmldocs' for more verbose
      output from Sphinx.
      
      This is based on the original work by Jonathan Corbet, but he probably
      wouldn't recognize this as his own anymore.
      Signed-off-by: NJani Nikula <jani.nikula@intel.com>
      22cba31b