From d7f4293d156ed6fa31f882c44d2553342e6e2817 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roberto=20Abdelkader=20Mart=C3=ADnez=20P=C3=A9rez?= Date: Wed, 11 Dec 2019 15:53:54 +0100 Subject: [PATCH] Add new default role `tech` and the provisional `nref-option` role Co-authored-by: pancho horrillo --- docs/source/conf.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index ded0ce9..1d120b3 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -14,7 +14,6 @@ # import sys # sys.path.insert(0, os.path.abspath('.')) - # -- Project information ----------------------------------------------------- project = 'Kapow!' @@ -39,6 +38,15 @@ templates_path = ['_templates'] # This pattern also affects html_static_path and html_extra_path. exclude_patterns = [] +rst_prolog = """ +.. role:: tech(code) + :class: xref + +.. role:: nref-option(code) + :class: xref + +.. default-role:: tech +""" # -- Options for HTML output -------------------------------------------------