[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 1/7] docs: enable sphinx blockdiag extension
From: |
Hao Wu |
Subject: |
[PATCH v2 1/7] docs: enable sphinx blockdiag extension |
Date: |
Fri, 24 Mar 2023 16:08:58 -0700 |
From: Havard Skinnemoen <hskinnemoen@google.com>
This allows use to add block diagrams in documentations,
such as the block diagram in docs/specs/impi.rst.
Signed-off-by: Havard Skinnemoen <hskinnemoen@google.com>
Signed-off-by: Hao Wu <hskinnemoen@google.com>
---
docs/conf.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/docs/conf.py b/docs/conf.py
index 00767b0e24..6974647408 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -71,7 +71,11 @@
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
-extensions = ['kerneldoc', 'qmp_lexer', 'hxtool', 'depfile', 'qapidoc']
+extensions = ['kerneldoc', 'qmp_lexer', 'hxtool', 'depfile', 'qapidoc',
+ 'sphinxcontrib.blockdiag']
+
+# Fontpath for blockdiag (truetype font)
+blockdiag_fontpath =
'/usr/share/fonts/truetype/liberation/LiberationSans-Regular.ttf'
if sphinx.version_info[:3] > (4, 0, 0):
tags.add('sphinx4')
--
2.40.0.348.gf938b09366-goog
- [PATCH v2 0/7] Handling IPMI for emulated BMC, Hao Wu, 2023/03/24
- [PATCH v2 1/7] docs: enable sphinx blockdiag extension,
Hao Wu <=
- [PATCH v2 2/7] docs/specs: IPMI device emulation: main processor, Hao Wu, 2023/03/24
- [PATCH v2 3/7] docs/specs: IPMI device emulation: BMC, Hao Wu, 2023/03/24
- [PATCH v2 5/7] hw/ipmi: Take out common from ipmi_bmc_extern.c, Hao Wu, 2023/03/24
- [PATCH v2 4/7] hw/ipmi: Refactor IPMI interface, Hao Wu, 2023/03/24
- Re: [PATCH v2 4/7] hw/ipmi: Refactor IPMI interface, Cédric Le Goater, 2023/03/27