diff mbox

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

Message ID 20180519125239.89629-8-luc.vanoostenryck@gmail.com (mailing list archive)
State Mainlined, archived
Headers show

Commit Message

Luc Van Oostenryck May 19, 2018, 12:52 p.m. UTC
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@gmail.com>
---
 Documentation/conf.py | 3 +++
 1 file changed, 3 insertions(+)
diff mbox

Patch

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.
 #