Skip to content

Commit

Permalink
Introduce kernel-doc API support
Browse files Browse the repository at this point in the history
kernel-doc API support is introduced by linuxdoc package that includes
Linux kernel tools used to generate the documentation.
With this patch we fully support the kernel documentation format that
can be found here:

https://return42.github.io/linuxdoc/linuxdoc-howto/kernel-doc-syntax.html
  • Loading branch information
acerv committed Mar 20, 2024
1 parent 15dc0f3 commit 826fc86
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
3 changes: 1 addition & 2 deletions doc_new/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

extensions = []

extensions = ['linuxdoc.rstKernelDoc']

# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
Expand Down
3 changes: 3 additions & 0 deletions doc_new/developers/api_c_tests.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
.. SPDX-License-Identifier: GPL-2.0-or-later
.. Include headers in this file with:
.. .. kernel-doc:: ../../include/tst_test.h
Developing using C API
======================
3 changes: 3 additions & 0 deletions doc_new/developers/api_kvm_tests.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
.. SPDX-License-Identifier: GPL-2.0-or-later
.. Include headers in this file with:
.. .. kernel-doc:: ../../include/tst_test.h
Developing using KVM API
========================
3 changes: 3 additions & 0 deletions doc_new/developers/api_network_tests.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
.. SPDX-License-Identifier: GPL-2.0-or-later
.. Include headers in this file with:
.. .. kernel-doc:: ../../include/tst_test.h
Developing using network API
============================
1 change: 1 addition & 0 deletions doc_new/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
sphinx-rtd-theme==2.0.0
linuxdoc==20231020

0 comments on commit 826fc86

Please sign in to comment.