2023-09-01 16:27:37 +00:00
|
|
|
diff -Naur a/clang/docs/conf.py b/clang/docs/conf.py
|
|
|
|
--- a/clang/docs/conf.py 2020-09-15 09:12:24.318287611 +0000
|
|
|
|
+++ b/clang/docs/conf.py 2020-09-15 15:01:00.025893199 +0000
|
|
|
|
@@ -37,21 +37,7 @@
|
|
|
|
".rst": "restructuredtext",
|
2023-05-12 11:49:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
-try:
|
2023-09-01 16:27:37 +00:00
|
|
|
- import recommonmark
|
2023-05-12 11:49:15 +00:00
|
|
|
-except ImportError:
|
2023-09-01 16:27:37 +00:00
|
|
|
- # manpages do not use any .md sources
|
|
|
|
- if not tags.has("builder-man"):
|
|
|
|
- raise
|
2023-05-12 11:49:15 +00:00
|
|
|
-else:
|
2023-09-01 16:27:37 +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-12 11:49:15 +00:00
|
|
|
+import sphinx
|
|
|
|
|
|
|
|
# The encoding of source files.
|
2023-09-01 16:27:37 +00:00
|
|
|
# source_encoding = 'utf-8-sig'
|