[PATCH 0/2] Documentation/sphinx: add "nodocs" directive

Mike Rapoport
2018-06-18T13:36:52Z

Hi,

These patches allow passing "-no-doc-sections" option to scripts/kernel-doc
from the sphinx generator.

This allows to avoid duplicated DOC: sections when "kernel-doc:" directive
is used without explicit selection of functions or function types. For
instance, [1] has "IDA description" and "idr synchronization" twice.

[1] https://www.kernel.org/doc/html/v4.17/core-api/idr.html

Mike Rapoport (2):
Documentation/sphinx: add "nodocs" directive
docs/idr: use "nodocs" directive

Documentation/core-api/idr.rst | 2 ++
Documentation/sphinx/kerneldoc.py | 3 +++
2 files changed, 5 insertions(+)

--
2.7.4