Skip to content

Commit

Permalink
doc: Set default language for syntax highlighting to "none"
Browse files Browse the repository at this point in the history
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é <[email protected]>
  • Loading branch information
kartben authored and carlescufi committed Oct 23, 2023
1 parent 677219f commit f2b080b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
exclude_patterns.append("**/*west-not-found*")

pygments_style = "sphinx"
highlight_language = "none"

todo_include_todos = False

Expand Down

0 comments on commit f2b080b

Please sign in to comment.