[PATCH 2/3] [DO-NOT-MERGE] docs/sphinx: change default role to "any"

John Snow posted 3 patches 4 years, 11 months ago
Maintainers: Thomas Huth <thuth@redhat.com>, Leif Lindholm <leif@nuviainc.com>, Markus Armbruster <armbru@redhat.com>, Tyrone Ting <kfting@nuvoton.com>, Eric Blake <eblake@redhat.com>, "Alex Bennée" <alex.bennee@linaro.org>, Juan Quintela <quintela@redhat.com>, Peter Maydell <peter.maydell@linaro.org>, "Dr. David Alan Gilbert" <dgilbert@redhat.com>, Havard Skinnemoen <hskinnemoen@google.com>, Radoslaw Biernacki <rad@semihalf.com>, Cornelia Huck <cohuck@redhat.com>
[PATCH 2/3] [DO-NOT-MERGE] docs/sphinx: change default role to "any"
Posted by John Snow 4 years, 11 months ago
This interprets single-backtick syntax in all of our Sphinx docs as a
cross-reference to *something*, including Python symbols.

Signed-off-by: John Snow <jsnow@redhat.com>
---
 docs/conf.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/docs/conf.py b/docs/conf.py
index d40d8ff37bab..d0a8f78f6ead 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -84,6 +84,9 @@
 # The master toctree document.
 master_doc = 'index'
 
+# Interpret `this` to be a cross-reference to "anything".
+default_role = 'any'
+
 # General information about the project.
 project = u'QEMU'
 copyright = u'2020, The QEMU Project Developers'
-- 
2.26.2