2023-05-22 15:57:51 +00:00
|
|
|
diff -Naur a/llvm/docs/conf.py b/llvm/docs/conf.py
|
|
|
|
--- a/llvm/docs/conf.py 2020-09-15 09:12:24.318287611 +0000
|
|
|
|
+++ b/llvm/docs/conf.py 2020-09-15 15:01:00.025893199 +0000
|
2023-09-01 16:26:36 +00:00
|
|
|
@@ -36,21 +36,7 @@
|
|
|
|
".rst": "restructuredtext",
|
2023-05-22 15:57:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
-try:
|
2023-09-01 16:26:36 +00:00
|
|
|
- import recommonmark
|
2023-05-22 15:57:51 +00:00
|
|
|
-except ImportError:
|
2023-09-01 16:26:36 +00:00
|
|
|
- # manpages do not use any .md sources
|
|
|
|
- if not tags.has("builder-man"):
|
|
|
|
- raise
|
2023-05-22 15:57:51 +00:00
|
|
|
-else:
|
2023-09-01 16:26:36 +00:00
|
|
|
- import sphinx
|
|
|
|
-
|
|
|
|
- if sphinx.version_info >= (3, 0):
|
|
|
|
- # This requires 0.5 or later.
|
|
|
|
- extensions.append("recommonmark")
|
|
|
|
- else:
|
|
|
|
- source_parsers = {".md": "recommonmark.parser.CommonMarkParser"}
|
|
|
|
- source_suffix[".md"] = "markdown"
|
2023-05-22 15:57:51 +00:00
|
|
|
+import sphinx
|
|
|
|
|
|
|
|
# The encoding of source files.
|
2023-09-01 16:26:36 +00:00
|
|
|
# source_encoding = 'utf-8-sig'
|