diff mbox series

[15/16] conf.py: default the highlight language to bitbake

Message ID 20261201152251.2742634-16-twoerner@gmail.com
State New
Headers show
Series docs: highlight code blocks as BitBake by default | expand

Commit Message

Trevor Woerner Dec. 1, 2026, 3:22 p.m. UTC
Most code blocks in these manuals are BitBake metadata, and a
contributor adding one should not have to remember to say so. Blocks in
any other language state it explicitly.

AI-Generated: codex/claude-opus 5.5 (xhigh)
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
 documentation/conf.py | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/documentation/conf.py b/documentation/conf.py
index eba9cfff4a3a..6ce3ed8e956f 100644
--- a/documentation/conf.py
+++ b/documentation/conf.py
@@ -111,6 +111,9 @@  templates_path = ['_templates']
 # List of patterns, relative to source directory, that match files and
 # directories to ignore when looking for source files.
 # This pattern also affects html_static_path and html_extra_path.
+# Code blocks are BitBake unless they say otherwise.
+highlight_language = 'bitbake'
+
 exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', 'boilerplate.rst']
 
 # master document name. The default changed from contents to index. so better