mirror of
https://github.com/espressif/esp-idf.git
synced 2026-08-18 06:35:35 +03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user