From: Erik Faye-Lund Date: Tue, 30 Jun 2020 10:06:03 +0000 (+0200) Subject: gallium/docs: use none for highlight_language X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=47d3b80428cd251b48735cde91df2f217ea65235;p=mesa.git gallium/docs: use none for highlight_language 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 Acked-by: Eric Engestrom Part-of: --- diff --git a/src/gallium/docs/source/conf.py b/src/gallium/docs/source/conf.py index c6039fbe8d1..972dcce6eb3 100644 --- a/src/gallium/docs/source/conf.py +++ b/src/gallium/docs/source/conf.py @@ -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 = [] diff --git a/src/gallium/docs/source/drivers/freedreno/ir3-notes.rst b/src/gallium/docs/source/drivers/freedreno/ir3-notes.rst index 182508f0cca..2111c6fdde2 100644 --- a/src/gallium/docs/source/drivers/freedreno/ir3-notes.rst +++ b/src/gallium/docs/source/drivers/freedreno/ir3-notes.rst @@ -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);