docs(doc_builder.py): overhaul, remove bugs, clean up, modularize (#7913)
Arduino Lint / lint (push) Waiting to run
MicroPython CI / Build esp32 port (push) Waiting to run
MicroPython CI / Build rp2 port (push) Waiting to run
MicroPython CI / Build stm32 port (push) Waiting to run
MicroPython CI / Build unix port (push) Waiting to run
C/C++ CI / Build OPTIONS_16BIT - Ubuntu (push) Waiting to run
C/C++ CI / Build OPTIONS_24BIT - Ubuntu (push) Waiting to run
C/C++ CI / Build OPTIONS_FULL_32BIT - Ubuntu (push) Waiting to run
C/C++ CI / Build OPTIONS_NORMAL_8BIT - Ubuntu (push) Waiting to run
C/C++ CI / Build OPTIONS_SDL - Ubuntu (push) Waiting to run
C/C++ CI / Build OPTIONS_VG_LITE - Ubuntu (push) Waiting to run
C/C++ CI / Build OPTIONS_16BIT - cl - Windows (push) Waiting to run
C/C++ CI / Build OPTIONS_16BIT - gcc - Windows (push) Waiting to run
C/C++ CI / Build OPTIONS_24BIT - cl - Windows (push) Waiting to run
C/C++ CI / Build OPTIONS_24BIT - gcc - Windows (push) Waiting to run
C/C++ CI / Build OPTIONS_FULL_32BIT - cl - Windows (push) Waiting to run
C/C++ CI / Build OPTIONS_FULL_32BIT - gcc - Windows (push) Waiting to run
C/C++ CI / Build OPTIONS_VG_LITE - cl - Windows (push) Waiting to run
C/C++ CI / Build OPTIONS_VG_LITE - gcc - Windows (push) Waiting to run
C/C++ CI / Build ESP IDF ESP32S3 (push) Waiting to run
C/C++ CI / Run tests with 32bit build (push) Waiting to run
C/C++ CI / Run tests with 64bit build (push) Waiting to run
BOM Check / bom-check (push) Waiting to run
Verify that lv_conf_internal.h matches repository state / verify-conf-internal (push) Waiting to run
Verify the widget property name / verify-property-name (push) Waiting to run
Verify code formatting / verify-formatting (push) Waiting to run
Build docs / build-and-deploy (push) Waiting to run
Test API JSON generator / Test API JSON (push) Waiting to run
Check Makefile / Build using Makefile (push) Waiting to run
Check Makefile for UEFI / Build using Makefile for UEFI (push) Waiting to run
Port repo release update / run-release-branch-updater (push) Waiting to run
Verify Kconfig / verify-kconfig (push) Waiting to run

This commit is contained in:
Victor Wheeler
2025-03-20 06:54:45 -06:00
committed by GitHub
parent 40cba753fb
commit 69052cd2ea
12 changed files with 2168 additions and 847 deletions
+31 -14
View File
@@ -571,7 +571,7 @@ class FileAST(c_ast.FileAST):
super().__init__(*args, **kwargs)
self._parent = None
def setup_docs(self, no_docstrings, temp_directory): # NOQA
def setup_docs(self, no_docstrings, lvgl_src_dir, intermediate_dir, doxyfile_src_file, silent=False): # NOQA
global get_enum_item_docs
global get_enum_docs
global get_func_docs
@@ -601,22 +601,39 @@ class FileAST(c_ast.FileAST):
get_macros = dummy_list
else:
import doc_builder # NOQA
import doxygen_xml # NoQA
doc_builder.EMIT_WARNINGS = False
# doc_builder.DOXYGEN_OUTPUT = False
doxygen_xml.EMIT_WARNINGS = False
# doxygen_xml.DOXYGEN_OUTPUT = False
docs = doc_builder.XMLSearch(temp_directory)
# Instantiating a doxygen_xml.DoxygenXml object:
# - runs Doxygen in `temp_directory`
# - loads XML into `doxygen_xml.index` as a `xml.etree.ElementTree`
# - builds these dictionaries as direct children of `doxygen_xml`:
# = doxygen_xml.defines dictionary of doxygen_xml.DEFINE objects
# = doxygen_xml.enums dictionary of doxygen_xml.ENUM objects
# = doxygen_xml.variables dictionary of doxygen_xml.VARIABLE objects
# = doxygen_xml.namespaces dictionary of doxygen_xml.NAMESPACE objects
# = doxygen_xml.structures dictionary of doxygen_xml.STRUCT objects
# = doxygen_xml.typedefs dictionary of doxygen_xml.TYPEDEF objects
# = doxygen_xml.functions dictionary of doxygen_xml.FUNCTION objects
# = doxygen_xml.groups dictionary of doxygen_xml.GROUP objects
# = doxygen_xml.files dictionary of doxygen_xml.FILE objects
# = doxygen_xml.classes dictionary of doxygen_xml.CLASS objects
doxygen_xml = doxygen_xml.DoxygenXml(lvgl_src_dir,
intermediate_dir,
doxyfile_src_file,
silent_mode=True)
get_enum_item_docs = docs.get_enum_item
get_enum_docs = docs.get_enum
get_func_docs = docs.get_function
get_var_docs = docs.get_variable
get_union_docs = docs.get_union
get_struct_docs = docs.get_structure
get_typedef_docs = docs.get_typedef
get_macro_docs = docs.get_macro
get_macros = docs.get_macros
get_enum_item_docs = doxygen_xml.get_enum_item
get_enum_docs = doxygen_xml.get_enum
get_func_docs = doxygen_xml.get_function
get_var_docs = doxygen_xml.get_variable
get_union_docs = doxygen_xml.get_union
get_struct_docs = doxygen_xml.get_structure
get_typedef_docs = doxygen_xml.get_typedef
get_macro_docs = doxygen_xml.get_macro
get_macros = doxygen_xml.get_macros
@property
def name(self):