[llvm] r294672 - docs/conf.py: Suppress sphinx highlighting failure warnings

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 9 16:00:22 PST 2017


Author: matze
Date: Thu Feb  9 18:00:22 2017
New Revision: 294672

URL: http://llvm.org/viewvc/llvm-project?rev=294672&view=rev
Log:
docs/conf.py: Suppress sphinx highlighting failure warnings

The pygments syntax highlighting package used by sphinx fails to parse
newer LLVM constructs or valid (at least to me) gas constructs like
`.secrel32 _function_name + 0`.

Disable this particular warning so the build doesn't abort as fixing
pygments doesn't seem a workable option here.

Differential Revision: https://reviews.llvm.org/D29794

Modified:
    llvm/trunk/docs/conf.py

Modified: llvm/trunk/docs/conf.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/conf.py?rev=294672&r1=294671&r2=294672&view=diff
==============================================================================
--- llvm/trunk/docs/conf.py (original)
+++ llvm/trunk/docs/conf.py Thu Feb  9 18:00:22 2017
@@ -251,3 +251,7 @@ for name in os.listdir(command_guide_pat
 
 # FIXME: Define intersphinx configuration.
 intersphinx_mapping = {}
+
+# Pygment lexer are sometimes out of date (when parsing LLVM for example) or
+# wrong. Suppress the warning so the build doesn't abort.
+suppress_warnings = [ 'misc.highlighting_failure' ]




More information about the llvm-commits mailing list