From c044baeb36380a732bde588ce58c73de31aac6ca Mon Sep 17 00:00:00 2001 From: Krzysztof Chruscinski Date: Mon, 7 Sep 2020 13:01:45 +0200 Subject: [PATCH] doc: nrf: conf.py: Add DTS lexer Adding DTS lexer. Signed-off-by: Krzysztof Chruscinski --- doc/nrf/conf.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/nrf/conf.py b/doc/nrf/conf.py index e45eff57fb8..79c0e178a77 100644 --- a/doc/nrf/conf.py +++ b/doc/nrf/conf.py @@ -129,6 +129,11 @@ # The name of the Pygments (syntax highlighting) style to use. pygments_style = 'sphinx' +# Additional lexer for Pygments (syntax highlighting) +from lexer.DtsLexer import DtsLexer +from sphinx.highlighting import lexers +lexers['DTS'] = DtsLexer() + # If true, `todo` and `todoList` produce output, else they produce nothing. todo_include_todos = False