Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
  1. Dec 10, 2021
  2. Nov 29, 2021
  3. Oct 12, 2021
  4. Sep 06, 2021
  5. Aug 12, 2021
  6. Jun 17, 2021
  7. Jun 01, 2021
  8. May 27, 2021
  9. Mar 08, 2021
  10. Feb 22, 2021
  11. Feb 01, 2021
  12. Dec 11, 2020
  13. Dec 03, 2020
  14. Oct 30, 2020
  15. Oct 28, 2020
  16. Oct 15, 2020
  17. Sep 04, 2020
  18. Jun 08, 2020
  19. Apr 20, 2020
  20. Mar 20, 2020
    • Mauro Carvalho Chehab's avatar
      docs: conf.py: avoid thousands of duplicate label warning on Sphinx · 4658b0eb
      Mauro Carvalho Chehab authored
      The autosectionlabel extension is nice, as it allows to refer to
      a section by its name without requiring any extra tag to create
      a reference name.
      
      However, on its default, it has two serious problems:
      
      1) the namespace is global. So, two files with different
         "introduction" section would create a label with the
         same name. This is easily solvable by forcing the extension
         to prepend the file name with:
      
      	autosectionlabel_prefix_document = True
      
      2) It doesn't work hierarchically. So, if there are two level 1
         sessions (let's say, one labeled "open" and another one "ioctl")
         and both have a level 2 "synopsis" label, both section 2 will
         have the same identical name.
      
         Currently, there's no way to tell Sphinx to create an
         hierarchical reference like:
      
      		open / synopsis
      		ioctl / synopsis
      
        This causes around 800 warnings. So, the fix should be to
        not let autosectionlabel to produce references for anything
        that it is not at a chapter level within any doc, with:
      
      	autosectionlabel_maxdepth = 2
      
      Fixes: 58ad30cf
      
       ("docs: fix reference to core-api/namespaces.rst")
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
      Link: https://lore.kernel.org/r/74f4d8d91c648d7101c45b4b99cc93532f4dadc6.1584716446.git.mchehab+huawei@kernel.org
      
      
      Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
      4658b0eb
  21. Mar 19, 2020
  22. Oct 02, 2019
    • Kees Cook's avatar
      doc-rst: Programmatically render MAINTAINERS into ReST · aa204855
      Kees Cook authored
      In order to have the MAINTAINERS file visible in the rendered ReST
      output, this makes some small changes to the existing MAINTAINERS file
      to allow for better machine processing, and adds a new Sphinx directive
      "maintainers-include" to perform the rendering.
      
      Features include:
      - Per-subsystem reference links: subsystem maintainer entries can be
        trivially linked to both internally and external. For example:
        https://www.kernel.org/doc/html/latest/process/maintainers.html#secure-computing
      
      - Internally referenced .rst files are linked so they can be followed
        when browsing the resulting rendering. This allows, for example, the
        future addition of maintainer profiles to be automatically linked.
      
      - Field name expansion: instead of the short fields (e.g. "M", "F",
        "K"), use the indicated inline "full names" for the fields (which are
        marked with "*"s in MAINTAINERS) so that a rendered subsystem entry
        is more human readable. Email lists are additio...
      aa204855
  23. Jul 17, 2019
  24. Jun 30, 2019
  25. Jun 26, 2019
  26. May 24, 2019
  27. Oct 07, 2018
  28. Oct 05, 2018