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