summaryrefslogtreecommitdiff
path: root/src/gallium/docs
diff options
context:
space:
mode:
authorErik Faye-Lund <erik.faye-lund@collabora.com>2020-06-30 12:06:03 +0200
committerMarge Bot <eric+marge@anholt.net>2020-07-01 07:29:21 +0000
commit47d3b80428cd251b48735cde91df2f217ea65235 (patch)
treefaca5ea5ba768177b96ea693089202c089d9a33d /src/gallium/docs
parent686f6c72068767c7343943790510aa82562795d8 (diff)
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 <alyssa.rosenzweig@collabora.com> Acked-by: Eric Engestrom <eric@engestrom.ch> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5691>
Diffstat (limited to 'src/gallium/docs')
-rw-r--r--src/gallium/docs/source/conf.py2
-rw-r--r--src/gallium/docs/source/drivers/freedreno/ir3-notes.rst2
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);