feat(docs): load esp_docs_cmakev2_extension

Load the esp_docs_cmakev2_extension to process documentation comments
from CMake files.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
This commit is contained in:
Frantisek Hrbata
2025-09-12 18:39:57 +02:00
parent 4d5d27e3e5
commit bab96ce3d7

View File

@@ -8,10 +8,13 @@
# pylint: disable=undefined-variable
import os.path
import re
import sys
from pathlib import Path
from esp_docs.conf_docs import * # noqa: F403,F401
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'tools', 'cmakev2')))
if os.environ.get('IDF_PATH') is None:
raise RuntimeError('IDF_PATH should be set, run export.sh before building docs')
@@ -415,6 +418,7 @@ extensions += [ # noqa: F405
'esp_docs.esp_extensions.run_doxygen',
'esp_docs.esp_extensions.add_html_zip',
'linuxdoc.rstFlatTable', # https://return42.github.io/linuxdoc/linuxdoc-howto/table-markup.html#flat-table
'esp_docs_cmakev2_extension',
]
# Use wavedrompy as backend, instead of wavedrom-cli