Skip to content

Commit

Permalink
doc: nrf: conf.py: Add DTS lexer
Browse files Browse the repository at this point in the history
Adding DTS lexer.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
  • Loading branch information
nordic-krch committed Sep 8, 2020
1 parent 27c30cb commit c044bae
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/nrf/conf.py
Expand Up @@ -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

Expand Down

0 comments on commit c044bae

Please sign in to comment.