Skip to content

Commit 43024a4

Browse files
authored
[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.
1 parent 5024a6e commit 43024a4

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

lldb/docs/conf.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@
6464

6565
autodoc_default_options = {"special-members": True}
6666

67+
# The suffix of source filenames.
68+
source_suffix = {
69+
".rst": "restructuredtext",
70+
}
71+
6772
# Unless we only generate the basic manpage we need the plugin for generating
6873
# the Python API documentation.
6974
if not building_man_page:
@@ -83,15 +88,13 @@
8388
# a list of builtin themes.
8489
html_theme = "furo"
8590

91+
# Since man pages do not use markdown, we do not need to register a markdown
92+
# parser.
93+
source_suffix[".md"] = "markdown"
94+
8695
# Add any paths that contain templates here, relative to this directory.
8796
templates_path = ["_templates"]
8897

89-
# The suffix of source filenames.
90-
source_suffix = {
91-
".rst": "restructuredtext",
92-
".md": "markdown",
93-
}
94-
9598
# The encoding of source files.
9699
# source_encoding = 'utf-8-sig'
97100

0 commit comments

Comments
 (0)