gallium/docs: use none for highlight_language
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Tue, 30 Jun 2020 10:06:03 +0000 (12:06 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 1 Jul 2020 07:29:21 +0000 (07:29 +0000)
We have much more blocks that are of no particular language (mostly
custom ASM variants), so let's instead opt in if we want
syntax-highlighting.

Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Acked-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5691>

src/gallium/docs/source/conf.py
src/gallium/docs/source/drivers/freedreno/ir3-notes.rst

index c6039fbe8d1150ec54a2c79abddff2dcfd1b4932..972dcce6eb33bb36bedc04ba59159e136f039d85 100644 (file)
@@ -84,7 +84,7 @@ exclude_trees = []
 pygments_style = 'sphinx'
 
 # The language for highlighting source code.
-highlight_language = 'c'
+highlight_language = 'none'
 
 # A list of ignored prefixes for module index sorting.
 #modindex_common_prefix = []
index 182508f0cca263ca163aeefe52f798bd101e7850..2111c6fdde289e256f175523cd7bae0c8a3cdb20 100644 (file)
@@ -133,7 +133,7 @@ In addition there are various util macros/functions to simplify manipulation/tra
 
 For example:
 
-::
+.. code-block:: c
 
   foreach_ssa_src_n(src, i, instr) {
     unsigned d = delay_calc_srcn(ctx, src, instr, i);