[Lldb-commits] [lldb] 43024a4 - [lldb][man][nfc] Don't register a markdown parser when building man packages (#98420)
via lldb-commits
lldb-commits at lists.llvm.org
Thu Jul 11 12:54:29 PDT 2024
Author: Alan Zhao
Date: 2024-07-11T12:54:26-07:00
New Revision: 43024a465120315464490ca9c6074553cd968089
URL: https://github.com/llvm/llvm-project/commit/43024a465120315464490ca9c6074553cd968089
DIFF: https://github.com/llvm/llvm-project/commit/43024a465120315464490ca9c6074553cd968089.diff
LOG: [lldb][man][nfc] Don't register a markdown parser when building man packages (#98420)
This reduces Sphinx dependencies for building lldb man pages as lldb man
pages don't use markdown.
Added:
Modified:
lldb/docs/conf.py
Removed:
################################################################################
diff --git a/lldb/docs/conf.py b/lldb/docs/conf.py
index 27a1cd7c3c31a..9b005c9537f23 100644
--- a/lldb/docs/conf.py
+++ b/lldb/docs/conf.py
@@ -64,6 +64,11 @@
autodoc_default_options = {"special-members": True}
+# The suffix of source filenames.
+source_suffix = {
+ ".rst": "restructuredtext",
+}
+
# Unless we only generate the basic manpage we need the plugin for generating
# the Python API documentation.
if not building_man_page:
@@ -83,15 +88,13 @@
# a list of builtin themes.
html_theme = "furo"
+ # Since man pages do not use markdown, we do not need to register a markdown
+ # parser.
+ source_suffix[".md"] = "markdown"
+
# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]
-# The suffix of source filenames.
-source_suffix = {
- ".rst": "restructuredtext",
- ".md": "markdown",
-}
-
# The encoding of source files.
# source_encoding = 'utf-8-sig'
More information about the lldb-commits
mailing list