[Lldb-commits] [lldb] [lldb][man][nfc] Don't register a markdown parser when building man packages (PR #98420)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Jul 10 17:16:38 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: Alan Zhao (alanzhao1)
<details>
<summary>Changes</summary>
This reduces Sphinx dependencies for building lldb man pages as lldb man pages don't use markdown.
---
Full diff: https://github.com/llvm/llvm-project/pull/98420.diff
1 Files Affected:
- (modified) lldb/docs/conf.py (+5-1)
``````````diff
diff --git a/lldb/docs/conf.py b/lldb/docs/conf.py
index 27a1cd7c3c31a..805a6dc19ac81 100644
--- a/lldb/docs/conf.py
+++ b/lldb/docs/conf.py
@@ -89,9 +89,13 @@
# The suffix of source filenames.
source_suffix = {
".rst": "restructuredtext",
- ".md": "markdown",
}
+# Man pages do not use markdown pages, so we don't need to register a markdown
+# parser.
+if not building_man_page:
+ source_suffix[".md"] = "markdown"
+
# The encoding of source files.
# source_encoding = 'utf-8-sig'
``````````
</details>
https://github.com/llvm/llvm-project/pull/98420
More information about the lldb-commits
mailing list