[clang] [flang] [llvm] [Docs] Allow building man pages without myst_parser (PR #82402)

Michał Górny via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 23 11:52:07 PST 2024


================
@@ -35,8 +35,16 @@
 
 import sphinx
 
-if sphinx.version_info >= (3, 0):
-    extensions.append("myst_parser")
+# When building man pages, we do not use the markdown pages,
+# So, we can continue without the myst_parser dependencies.
+# Doing so reduces dependencies of some packaged llvm distributions.
+try:
+  import myst_parser
----------------
mgorny wrote:

I think you're using different indentation (2 spaces) vs other code in that file (4 spaces).

https://github.com/llvm/llvm-project/pull/82402


More information about the cfe-commits mailing list