doc: Add Sphinx extension for code samples

This adds a new Sphinx extension for both a code-sample directive and role.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
Benjamin Cabé 2023-08-30 08:46:55 +02:00 committed by Carles Cufí
commit 3c5f3da4d8
3 changed files with 324 additions and 0 deletions

View file

@ -85,6 +85,7 @@ extensions = [
"notfound.extension",
"sphinx_copybutton",
"zephyr.external_content",
"zephyr.domain",
]
# Only use SVG converter when it is really needed, e.g. LaTeX.