[PATCH v2 07/12] doc: set primary domain to C

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This doesn't change much but allows to be a bit more lazy and
write
	.. <directive>::
	.. code-block::
instead od
	.. c:<directive>::
	.. code-block:: c

I understood that this should also show in the index "... (function)"
instead of "... (C function)" but this doesn't seems to be the case.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx>
---
 Documentation/conf.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Documentation/conf.py b/Documentation/conf.py
index cfb0be7fb..86f1dc47e 100644
--- a/Documentation/conf.py
+++ b/Documentation/conf.py
@@ -60,6 +60,9 @@ release = next(open('../Makefile', 'r')).split('=')[1].rstrip()
 # The short X.Y version.
 version = release.split('-')[0]
 
+# it's a C project, so:
+primary_domain = 'c'
+
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
 #
-- 
2.17.0

--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux