From 4e6a7e3ffbe594c40c42970016312b1b6e002edc Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Fri, 1 Sep 2023 12:26:36 -0400 Subject: [PATCH] Update RHEL docs patch --- 0101-Deactivate-markdown-doc.patch | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/0101-Deactivate-markdown-doc.patch b/0101-Deactivate-markdown-doc.patch index 92e048d..603cb39 100644 --- a/0101-Deactivate-markdown-doc.patch +++ b/0101-Deactivate-markdown-doc.patch @@ -1,25 +1,26 @@ 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 -@@ -36,20 +36,7 @@ - '.rst': 'restructuredtext', +@@ -36,21 +36,7 @@ + ".rst": "restructuredtext", } -try: -- import recommonmark +- import recommonmark -except ImportError: -- # manpages do not use any .md sources -- if not tags.has('builder-man'): -- raise +- # manpages do not use any .md sources +- if not tags.has("builder-man"): +- raise -else: -- 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' +- 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" +import sphinx # The encoding of source files. - #source_encoding = 'utf-8-sig' + # source_encoding = 'utf-8-sig'