From 47d3b80428cd251b48735cde91df2f217ea65235 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Tue, 30 Jun 2020 12:06:03 +0200 Subject: [PATCH] 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: --- src/gallium/docs/source/conf.py | 2 +- src/gallium/docs/source/drivers/freedreno/ir3-notes.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); -- 2.30.2