Browse Source

doc: Set default language for syntax highlighting to "none"

Force code blocks with no 'language' explicitly set to render with no
highlighting. The current default was to use python (bad), and there
would also be an option to set it to "guess" but this doesn't work all
so well (ex. some C blocks would be detected as Transact-SQL!).

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
pull/63515/head
Benjamin Cabé 2 years ago committed by Carles Cufí
parent
commit
f2b080b5d6
  1. 1
      doc/conf.py

1
doc/conf.py

@ -105,6 +105,7 @@ else:
exclude_patterns.append("**/*west-not-found*") exclude_patterns.append("**/*west-not-found*")
pygments_style = "sphinx" pygments_style = "sphinx"
highlight_language = "none"
todo_include_todos = False todo_include_todos = False

Loading…
Cancel
Save