[PATCH] D29794: docs/conf.py: Suppress sphinx highlighting failure warnings

Matthias Braun via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 9 15:20:21 PST 2017


MatzeB created this revision.
Herald added a subscriber: mcrosier.

I cannot build the llvm documentation on my machine because the pygments syntax highlighting package used by sphinx fails to parse newer LLVM constructs or valid (looks valid to me) gas constructs like `.secrel32 _function_name + 0`. Disable this particular warning so the build doesn't abort.

I assume the llvm-sphinx-docs buildbot is still using sphinx-1.4 which didn't have this warning yet.


Repository:
  rL LLVM

https://reviews.llvm.org/D29794

Files:
  docs/conf.py


Index: docs/conf.py
===================================================================
--- docs/conf.py
+++ docs/conf.py
@@ -251,3 +251,7 @@
 
 # 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' ]


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29794.87889.patch
Type: text/x-patch
Size: 406 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170209/8828d642/attachment.bin>


More information about the llvm-commits mailing list