@xpack/doxygen2docusaurus 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +2 -1
- package/bin/doxygen2docusaurus.js +1 -1
- package/dist/cli/main.d.ts +0 -14
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +0 -34
- package/dist/cli/main.js.map +1 -1
- package/dist/docusaurus/cli-options.d.ts +3 -292
- package/dist/docusaurus/cli-options.d.ts.map +1 -1
- package/dist/docusaurus/cli-options.js +6 -290
- package/dist/docusaurus/cli-options.js.map +1 -1
- package/dist/docusaurus/generator.d.ts +0 -172
- package/dist/docusaurus/generator.d.ts.map +1 -1
- package/dist/docusaurus/generator.js +20 -280
- package/dist/docusaurus/generator.js.map +1 -1
- package/dist/docusaurus/renderers/descriptiontype.d.ts +0 -417
- package/dist/docusaurus/renderers/descriptiontype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/descriptiontype.js +11 -555
- package/dist/docusaurus/renderers/descriptiontype.js.map +1 -1
- package/dist/docusaurus/renderers/docinternalstype.d.ts +0 -132
- package/dist/docusaurus/renderers/docinternalstype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/docinternalstype.js +0 -156
- package/dist/docusaurus/renderers/docinternalstype.js.map +1 -1
- package/dist/docusaurus/renderers/doclisttype.d.ts +0 -22
- package/dist/docusaurus/renderers/doclisttype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/doclisttype.js +0 -42
- package/dist/docusaurus/renderers/doclisttype.js.map +1 -1
- package/dist/docusaurus/renderers/doctabletype.d.ts +0 -88
- package/dist/docusaurus/renderers/doctabletype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/doctabletype.js +1 -113
- package/dist/docusaurus/renderers/doctabletype.js.map +1 -1
- package/dist/docusaurus/renderers/doctitletype.d.ts +0 -22
- package/dist/docusaurus/renderers/doctitletype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/doctitletype.js +0 -42
- package/dist/docusaurus/renderers/doctitletype.js.map +1 -1
- package/dist/docusaurus/renderers/docvariablelisttype.d.ts +0 -44
- package/dist/docusaurus/renderers/docvariablelisttype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/docvariablelisttype.js +1 -69
- package/dist/docusaurus/renderers/docvariablelisttype.js.map +1 -1
- package/dist/docusaurus/renderers/docxrefsecttype.d.ts +0 -22
- package/dist/docusaurus/renderers/docxrefsecttype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/docxrefsecttype.js +0 -38
- package/dist/docusaurus/renderers/docxrefsecttype.js.map +1 -1
- package/dist/docusaurus/renderers/element-renderer-base.d.ts +0 -74
- package/dist/docusaurus/renderers/element-renderer-base.d.ts.map +1 -1
- package/dist/docusaurus/renderers/element-renderer-base.js +0 -64
- package/dist/docusaurus/renderers/element-renderer-base.js.map +1 -1
- package/dist/docusaurus/renderers/inctype.d.ts +0 -23
- package/dist/docusaurus/renderers/inctype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/inctype.js +0 -41
- package/dist/docusaurus/renderers/inctype.js.map +1 -1
- package/dist/docusaurus/renderers/linkedtexttype.d.ts +0 -22
- package/dist/docusaurus/renderers/linkedtexttype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/linkedtexttype.js +0 -45
- package/dist/docusaurus/renderers/linkedtexttype.js.map +1 -1
- package/dist/docusaurus/renderers/listingtype.d.ts +0 -52
- package/dist/docusaurus/renderers/listingtype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/listingtype.js +1 -88
- package/dist/docusaurus/renderers/listingtype.js.map +1 -1
- package/dist/docusaurus/renderers/paramtype.d.ts +0 -22
- package/dist/docusaurus/renderers/paramtype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/paramtype.js +2 -51
- package/dist/docusaurus/renderers/paramtype.js.map +1 -1
- package/dist/docusaurus/renderers/referencetype.d.ts +0 -23
- package/dist/docusaurus/renderers/referencetype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/referencetype.js +0 -38
- package/dist/docusaurus/renderers/referencetype.js.map +1 -1
- package/dist/docusaurus/renderers/reftexttype.d.ts +0 -22
- package/dist/docusaurus/renderers/reftexttype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/reftexttype.js +0 -38
- package/dist/docusaurus/renderers/reftexttype.js.map +1 -1
- package/dist/docusaurus/renderers/reftype.d.ts +0 -22
- package/dist/docusaurus/renderers/reftype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/reftype.js +0 -38
- package/dist/docusaurus/renderers/reftype.js.map +1 -1
- package/dist/docusaurus/renderers/renderers.d.ts +0 -151
- package/dist/docusaurus/renderers/renderers.d.ts.map +1 -1
- package/dist/docusaurus/renderers/renderers.js +4 -184
- package/dist/docusaurus/renderers/renderers.js.map +1 -1
- package/dist/docusaurus/renderers/substringtype.d.ts +0 -22
- package/dist/docusaurus/renderers/substringtype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/substringtype.js +0 -39
- package/dist/docusaurus/renderers/substringtype.js.map +1 -1
- package/dist/docusaurus/renderers/tableofcontentstype.d.ts +0 -22
- package/dist/docusaurus/renderers/tableofcontentstype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/tableofcontentstype.js +0 -39
- package/dist/docusaurus/renderers/tableofcontentstype.js.map +1 -1
- package/dist/docusaurus/types.d.ts +0 -110
- package/dist/docusaurus/types.d.ts.map +1 -1
- package/dist/docusaurus/types.js +0 -11
- package/dist/docusaurus/types.js.map +1 -1
- package/dist/docusaurus/utils.d.ts +0 -214
- package/dist/docusaurus/utils.d.ts.map +1 -1
- package/dist/docusaurus/utils.js +0 -296
- package/dist/docusaurus/utils.js.map +1 -1
- package/dist/docusaurus/view-model/classes-vm.d.ts +0 -137
- package/dist/docusaurus/view-model/classes-vm.d.ts.map +1 -1
- package/dist/docusaurus/view-model/classes-vm.js +9 -225
- package/dist/docusaurus/view-model/classes-vm.js.map +1 -1
- package/dist/docusaurus/view-model/collection-base.d.ts +0 -120
- package/dist/docusaurus/view-model/collection-base.d.ts.map +1 -1
- package/dist/docusaurus/view-model/collection-base.js +11 -101
- package/dist/docusaurus/view-model/collection-base.js.map +1 -1
- package/dist/docusaurus/view-model/compound-base-vm.d.ts +2 -147
- package/dist/docusaurus/view-model/compound-base-vm.d.ts.map +1 -1
- package/dist/docusaurus/view-model/compound-base-vm.js +47 -225
- package/dist/docusaurus/view-model/compound-base-vm.js.map +1 -1
- package/dist/docusaurus/view-model/concepts-vm.d.ts +26 -0
- package/dist/docusaurus/view-model/concepts-vm.d.ts.map +1 -0
- package/dist/docusaurus/view-model/concepts-vm.js +329 -0
- package/dist/docusaurus/view-model/concepts-vm.js.map +1 -0
- package/dist/docusaurus/view-model/description-anchors.d.ts +0 -58
- package/dist/docusaurus/view-model/description-anchors.d.ts.map +1 -1
- package/dist/docusaurus/view-model/description-anchors.js +0 -71
- package/dist/docusaurus/view-model/description-anchors.js.map +1 -1
- package/dist/docusaurus/view-model/files-and-folders-vm.d.ts +0 -247
- package/dist/docusaurus/view-model/files-and-folders-vm.d.ts.map +1 -1
- package/dist/docusaurus/view-model/files-and-folders-vm.js +61 -353
- package/dist/docusaurus/view-model/files-and-folders-vm.js.map +1 -1
- package/dist/docusaurus/view-model/groups-vm.d.ts +0 -148
- package/dist/docusaurus/view-model/groups-vm.d.ts.map +1 -1
- package/dist/docusaurus/view-model/groups-vm.js +2 -223
- package/dist/docusaurus/view-model/groups-vm.js.map +1 -1
- package/dist/docusaurus/view-model/members-vm.d.ts +0 -552
- package/dist/docusaurus/view-model/members-vm.d.ts.map +1 -1
- package/dist/docusaurus/view-model/members-vm.js +17 -702
- package/dist/docusaurus/view-model/members-vm.js.map +1 -1
- package/dist/docusaurus/view-model/namespaces-vm.d.ts +4 -199
- package/dist/docusaurus/view-model/namespaces-vm.d.ts.map +1 -1
- package/dist/docusaurus/view-model/namespaces-vm.js +79 -284
- package/dist/docusaurus/view-model/namespaces-vm.js.map +1 -1
- package/dist/docusaurus/view-model/options.d.ts +0 -43
- package/dist/docusaurus/view-model/options.d.ts.map +1 -1
- package/dist/docusaurus/view-model/options.js +0 -57
- package/dist/docusaurus/view-model/options.js.map +1 -1
- package/dist/docusaurus/view-model/pages-vm.d.ts +0 -115
- package/dist/docusaurus/view-model/pages-vm.d.ts.map +1 -1
- package/dist/docusaurus/view-model/pages-vm.js +0 -162
- package/dist/docusaurus/view-model/pages-vm.js.map +1 -1
- package/dist/docusaurus/view-model/tree-entries-vm.d.ts +8 -142
- package/dist/docusaurus/view-model/tree-entries-vm.d.ts.map +1 -1
- package/dist/docusaurus/view-model/tree-entries-vm.js +54 -174
- package/dist/docusaurus/view-model/tree-entries-vm.js.map +1 -1
- package/dist/docusaurus/view-model/view-model.d.ts +0 -125
- package/dist/docusaurus/view-model/view-model.d.ts.map +1 -1
- package/dist/docusaurus/view-model/view-model.js +20 -182
- package/dist/docusaurus/view-model/view-model.js.map +1 -1
- package/dist/docusaurus/workspace.d.ts +1 -126
- package/dist/docusaurus/workspace.d.ts.map +1 -1
- package/dist/docusaurus/workspace.js +8 -221
- package/dist/docusaurus/workspace.js.map +1 -1
- package/dist/doxygen/data-model/compounds/compounddef-dm.d.ts +5 -492
- package/dist/doxygen/data-model/compounds/compounddef-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/compounddef-dm.js +23 -672
- package/dist/doxygen/data-model/compounds/compounddef-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/compoundreftype-dm.d.ts +0 -129
- package/dist/doxygen/data-model/compounds/compoundreftype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/compoundreftype-dm.js +1 -145
- package/dist/doxygen/data-model/compounds/compoundreftype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/descriptiontype-dm.d.ts +104 -2848
- package/dist/doxygen/data-model/compounds/descriptiontype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/descriptiontype-dm.js +73 -3975
- package/dist/doxygen/data-model/compounds/descriptiontype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/docvarlistentrytype-dm.d.ts +0 -165
- package/dist/doxygen/data-model/compounds/docvarlistentrytype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/docvarlistentrytype-dm.js +0 -229
- package/dist/doxygen/data-model/compounds/docvarlistentrytype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/doxygentype-dm.d.ts +0 -70
- package/dist/doxygen/data-model/compounds/doxygentype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/doxygentype-dm.js +0 -105
- package/dist/doxygen/data-model/compounds/doxygentype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/enumvaluetype-dm.d.ts +0 -84
- package/dist/doxygen/data-model/compounds/enumvaluetype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/enumvaluetype-dm.js +1 -122
- package/dist/doxygen/data-model/compounds/enumvaluetype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/inctype-dm.d.ts +0 -116
- package/dist/doxygen/data-model/compounds/inctype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/inctype-dm.js +3 -155
- package/dist/doxygen/data-model/compounds/inctype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/linkedtexttype-dm.d.ts +3 -138
- package/dist/doxygen/data-model/compounds/linkedtexttype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/linkedtexttype-dm.js +5 -180
- package/dist/doxygen/data-model/compounds/linkedtexttype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/listofallmemberstype-dm.d.ts +0 -76
- package/dist/doxygen/data-model/compounds/listofallmemberstype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/listofallmemberstype-dm.js +0 -107
- package/dist/doxygen/data-model/compounds/listofallmemberstype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/locationtype-dm.d.ts +0 -162
- package/dist/doxygen/data-model/compounds/locationtype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/locationtype-dm.js +4 -203
- package/dist/doxygen/data-model/compounds/locationtype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/memberdeftype-dm.d.ts +2 -443
- package/dist/doxygen/data-model/compounds/memberdeftype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/memberdeftype-dm.js +19 -475
- package/dist/doxygen/data-model/compounds/memberdeftype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/memberreftype-dm.d.ts +0 -141
- package/dist/doxygen/data-model/compounds/memberreftype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/memberreftype-dm.js +0 -176
- package/dist/doxygen/data-model/compounds/memberreftype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/membertype-dm.d.ts +0 -101
- package/dist/doxygen/data-model/compounds/membertype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/membertype-dm.js +0 -115
- package/dist/doxygen/data-model/compounds/membertype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/paramtype-dm.d.ts +0 -164
- package/dist/doxygen/data-model/compounds/paramtype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/paramtype-dm.js +0 -208
- package/dist/doxygen/data-model/compounds/paramtype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/referencetype-dm.d.ts +0 -139
- package/dist/doxygen/data-model/compounds/referencetype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/referencetype-dm.js +2 -175
- package/dist/doxygen/data-model/compounds/referencetype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/reftexttype-dm.d.ts +0 -120
- package/dist/doxygen/data-model/compounds/reftexttype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/reftexttype-dm.js +2 -141
- package/dist/doxygen/data-model/compounds/reftexttype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/reftype-dm.d.ts +0 -268
- package/dist/doxygen/data-model/compounds/reftype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/reftype-dm.js +4 -326
- package/dist/doxygen/data-model/compounds/reftype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/reimplementtype-dm.d.ts +0 -105
- package/dist/doxygen/data-model/compounds/reimplementtype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/reimplementtype-dm.js +1 -139
- package/dist/doxygen/data-model/compounds/reimplementtype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/sectiondeftype-dm.d.ts +0 -168
- package/dist/doxygen/data-model/compounds/sectiondeftype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/sectiondeftype-dm.js +0 -209
- package/dist/doxygen/data-model/compounds/sectiondeftype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/tableofcontentstype-dm.d.ts +0 -267
- package/dist/doxygen/data-model/compounds/tableofcontentstype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/tableofcontentstype-dm.js +0 -354
- package/dist/doxygen/data-model/compounds/tableofcontentstype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/templateparamlisttype-dm.d.ts +0 -66
- package/dist/doxygen/data-model/compounds/templateparamlisttype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/templateparamlisttype-dm.js +0 -97
- package/dist/doxygen/data-model/compounds/templateparamlisttype-dm.js.map +1 -1
- package/dist/doxygen/data-model/data-model.d.ts +0 -149
- package/dist/doxygen/data-model/data-model.d.ts.map +1 -1
- package/dist/doxygen/data-model/data-model.js +4 -197
- package/dist/doxygen/data-model/data-model.js.map +1 -1
- package/dist/doxygen/data-model/doxyfile/doxyfileoptiontype-dm.d.ts +0 -115
- package/dist/doxygen/data-model/doxyfile/doxyfileoptiontype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/doxyfile/doxyfileoptiontype-dm.js +4 -129
- package/dist/doxygen/data-model/doxyfile/doxyfileoptiontype-dm.js.map +1 -1
- package/dist/doxygen/data-model/doxyfile/doxyfiletype-dm.d.ts +0 -87
- package/dist/doxygen/data-model/doxyfile/doxyfiletype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/doxyfile/doxyfiletype-dm.js +0 -118
- package/dist/doxygen/data-model/doxyfile/doxyfiletype-dm.js.map +1 -1
- package/dist/doxygen/data-model/doxygen-xml-parser.d.ts +0 -253
- package/dist/doxygen/data-model/doxygen-xml-parser.d.ts.map +1 -1
- package/dist/doxygen/data-model/doxygen-xml-parser.js +0 -291
- package/dist/doxygen/data-model/doxygen-xml-parser.js.map +1 -1
- package/dist/doxygen/data-model/index/indexcompoundtype-dm.d.ts +0 -98
- package/dist/doxygen/data-model/index/indexcompoundtype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/index/indexcompoundtype-dm.js +2 -122
- package/dist/doxygen/data-model/index/indexcompoundtype-dm.js.map +1 -1
- package/dist/doxygen/data-model/index/indexdoxygentype-dm.d.ts +0 -82
- package/dist/doxygen/data-model/index/indexdoxygentype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/index/indexdoxygentype-dm.js +0 -114
- package/dist/doxygen/data-model/index/indexdoxygentype-dm.js.map +1 -1
- package/dist/doxygen/data-model/index/indexmembertype-dm.d.ts +0 -85
- package/dist/doxygen/data-model/index/indexmembertype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/index/indexmembertype-dm.js +1 -107
- package/dist/doxygen/data-model/index/indexmembertype-dm.js.map +1 -1
- package/dist/doxygen/data-model/types.d.ts +0 -104
- package/dist/doxygen/data-model/types.d.ts.map +1 -1
- package/dist/doxygen/data-model/types.js +0 -52
- package/dist/doxygen/data-model/types.js.map +1 -1
- package/dist/index.d.ts +4 -16
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -42
- package/dist/index.js.map +1 -1
- package/package.json +45 -51
- package/src/cli/main.ts +122 -0
- package/src/docusaurus/cli-options.ts +560 -0
- package/src/docusaurus/generator.ts +788 -0
- package/src/docusaurus/renderers/descriptiontype.ts +1299 -0
- package/src/docusaurus/renderers/docinternalstype.ts +354 -0
- package/src/docusaurus/renderers/doclisttype.ts +134 -0
- package/src/docusaurus/renderers/doctabletype.ts +220 -0
- package/src/docusaurus/renderers/doctitletype.ts +77 -0
- package/src/docusaurus/renderers/docvariablelisttype.ts +123 -0
- package/src/docusaurus/renderers/docxrefsecttype.ts +84 -0
- package/src/docusaurus/renderers/element-renderer-base.ts +112 -0
- package/src/docusaurus/renderers/inctype.ts +75 -0
- package/src/docusaurus/renderers/linkedtexttype.ts +64 -0
- package/src/docusaurus/renderers/listingtype.ts +235 -0
- package/src/docusaurus/renderers/paramtype.ts +116 -0
- package/src/docusaurus/renderers/referencetype.ts +83 -0
- package/src/docusaurus/renderers/reftexttype.ts +81 -0
- package/src/docusaurus/renderers/reftype.ts +77 -0
- package/src/docusaurus/renderers/renderers.ts +756 -0
- package/src/docusaurus/renderers/substringtype.ts +53 -0
- package/src/docusaurus/renderers/tableofcontentstype.ts +74 -0
- package/src/docusaurus/types.ts +187 -0
- package/src/docusaurus/utils.ts +409 -0
- package/src/docusaurus/view-model/README.md +12 -0
- package/src/docusaurus/view-model/classes-vm.ts +1088 -0
- package/src/docusaurus/view-model/collection-base.ts +352 -0
- package/src/docusaurus/view-model/compound-base-vm.ts +1340 -0
- package/src/docusaurus/view-model/concepts-vm.ts +719 -0
- package/src/docusaurus/view-model/description-anchors.ts +107 -0
- package/src/docusaurus/view-model/files-and-folders-vm.ts +1293 -0
- package/src/docusaurus/view-model/groups-vm.ts +548 -0
- package/src/docusaurus/view-model/members-vm.ts +1943 -0
- package/src/docusaurus/view-model/namespaces-vm.ts +1018 -0
- package/src/docusaurus/view-model/options.ts +95 -0
- package/src/docusaurus/view-model/pages-vm.ts +342 -0
- package/src/docusaurus/view-model/tree-entries-vm.ts +376 -0
- package/src/docusaurus/view-model/view-model.ts +513 -0
- package/src/docusaurus/workspace.ts +588 -0
- package/src/doxygen/data-model/README.md +13 -0
- package/src/doxygen/data-model/compounds/compounddef-dm.ts +1156 -0
- package/src/doxygen/data-model/compounds/compoundreftype-dm.ts +266 -0
- package/src/doxygen/data-model/compounds/descriptiontype-dm.ts +10107 -0
- package/src/doxygen/data-model/compounds/docvarlistentrytype-dm.ts +354 -0
- package/src/doxygen/data-model/compounds/doxygentype-dm.ts +187 -0
- package/src/doxygen/data-model/compounds/enumvaluetype-dm.ts +218 -0
- package/src/doxygen/data-model/compounds/inctype-dm.ts +217 -0
- package/src/doxygen/data-model/compounds/linkedtexttype-dm.ts +288 -0
- package/src/doxygen/data-model/compounds/listofallmemberstype-dm.ts +160 -0
- package/src/doxygen/data-model/compounds/locationtype-dm.ts +284 -0
- package/src/doxygen/data-model/compounds/memberdeftype-dm.ts +874 -0
- package/src/doxygen/data-model/compounds/memberreftype-dm.ts +270 -0
- package/src/doxygen/data-model/compounds/membertype-dm.ts +239 -0
- package/src/doxygen/data-model/compounds/paramtype-dm.ts +302 -0
- package/src/doxygen/data-model/compounds/referencetype-dm.ts +248 -0
- package/src/doxygen/data-model/compounds/reftexttype-dm.ts +234 -0
- package/src/doxygen/data-model/compounds/reftype-dm.ts +430 -0
- package/src/doxygen/data-model/compounds/reimplementtype-dm.ts +201 -0
- package/src/doxygen/data-model/compounds/sectiondeftype-dm.ts +330 -0
- package/src/doxygen/data-model/compounds/tableofcontentstype-dm.ts +563 -0
- package/src/doxygen/data-model/compounds/templateparamlisttype-dm.ts +150 -0
- package/src/doxygen/data-model/data-model.ts +377 -0
- package/src/doxygen/data-model/doxyfile/doxyfileoptiontype-dm.ts +271 -0
- package/src/doxygen/data-model/doxyfile/doxyfiletype-dm.ts +200 -0
- package/src/doxygen/data-model/doxygen-xml-parser.ts +522 -0
- package/src/doxygen/data-model/index/indexcompoundtype-dm.ts +256 -0
- package/src/doxygen/data-model/index/indexdoxygentype-dm.ts +196 -0
- package/src/doxygen/data-model/index/indexmembertype-dm.ts +230 -0
- package/src/doxygen/data-model/types.ts +175 -0
- package/src/doxygen/data-model/xsds/README.md +6 -0
- package/src/doxygen/data-model/xsds/compound.xsd +1699 -0
- package/src/doxygen/data-model/xsds/doxyfile.xsd +355 -0
- package/src/doxygen/data-model/xsds/index.xsd +72 -0
- package/src/doxygen/data-model/xsds/xml.xsd +23 -0
- package/src/index.ts +261 -0
- package/src/tsconfig.json +10 -0
- package/dist/doxygen2docusaurus.d.ts +0 -4774
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/dist/tsdoc-metadata.json +0 -11
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* This file is part of the xPack project (http://xpack.github.io).
|
|
3
|
+
* Copyright (c) 2025-2026 Liviu Ionescu. All rights reserved.
|
|
4
|
+
*
|
|
5
|
+
* Permission to use, copy, modify, and/or distribute this software
|
|
6
|
+
* for any purpose is hereby granted, under the terms of the MIT license.
|
|
7
|
+
*
|
|
8
|
+
* If a copy of the license was not distributed with this file, it can
|
|
9
|
+
* be obtained from https://opensource.org/licenses/MIT.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
// ----------------------------------------------------------------------------
|
|
13
|
+
|
|
14
|
+
import assert from 'node:assert'
|
|
15
|
+
import util from 'node:util'
|
|
16
|
+
|
|
17
|
+
import { DoxygenXmlParser } from '../doxygen-xml-parser.js'
|
|
18
|
+
import { AbstractDataModelBase } from '../types.js'
|
|
19
|
+
import { ListItemDataModel, TermDataModel } from './descriptiontype-dm.js'
|
|
20
|
+
|
|
21
|
+
// ----------------------------------------------------------------------------
|
|
22
|
+
|
|
23
|
+
// <xsd:complexType name="docVarListEntryType">
|
|
24
|
+
// <xsd:sequence>
|
|
25
|
+
// <xsd:element name="term" type="docTitleType" />
|
|
26
|
+
// </xsd:sequence>
|
|
27
|
+
// </xsd:complexType>
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Abstract base class for variable list entry elements within documentation.
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Implements processing for variable list entry elements that contain terms
|
|
34
|
+
* within definition lists and variable list structures. This class handles
|
|
35
|
+
* the XML Schema definition for docVarListEntryType elements, which consist
|
|
36
|
+
* of a mandatory term element that provides the definition term for variable
|
|
37
|
+
* list items.
|
|
38
|
+
*
|
|
39
|
+
* The implementation processes term elements using the TermDataModel to
|
|
40
|
+
* maintain proper structure for definition lists and glossary entries within
|
|
41
|
+
* the documentation system.
|
|
42
|
+
*
|
|
43
|
+
* @public
|
|
44
|
+
*/
|
|
45
|
+
// eslint-disable-next-line max-len
|
|
46
|
+
export abstract class AbstractDocVarListEntryType extends AbstractDataModelBase {
|
|
47
|
+
/**
|
|
48
|
+
* The term element that defines the term for this variable list entry.
|
|
49
|
+
*
|
|
50
|
+
* @remarks
|
|
51
|
+
* Contains the term data model that represents the definition term within
|
|
52
|
+
* variable lists. This mandatory element provides the term portion of
|
|
53
|
+
* term-definition pairs within definition lists and glossary structures.
|
|
54
|
+
*/
|
|
55
|
+
// Mandatory elements.
|
|
56
|
+
term: TermDataModel | undefined
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Constructs an AbstractDocVarListEntryType instance from XML element data.
|
|
60
|
+
*
|
|
61
|
+
* @param xml - The Doxygen XML parser instance for processing XML content
|
|
62
|
+
* @param element - The XML element object containing the list entry data
|
|
63
|
+
* @param elementName - The name of the XML element being processed
|
|
64
|
+
*
|
|
65
|
+
* @remarks
|
|
66
|
+
* This constructor processes variable list entry elements by extracting
|
|
67
|
+
* the mandatory term element. The parser ensures proper validation of
|
|
68
|
+
* the term element and maintains compliance with the XML Schema definition
|
|
69
|
+
* for variable list entry structures within documentation systems.
|
|
70
|
+
*/
|
|
71
|
+
constructor(xml: DoxygenXmlParser, element: object, elementName: string) {
|
|
72
|
+
super(elementName)
|
|
73
|
+
|
|
74
|
+
// console.log(elementName, util.inspect(element,
|
|
75
|
+
// { compact: false, depth: 999 }))
|
|
76
|
+
|
|
77
|
+
// ------------------------------------------------------------------------
|
|
78
|
+
// Process elements.
|
|
79
|
+
|
|
80
|
+
// console.log(util.inspect(element, { compact: false, depth: 999 })
|
|
81
|
+
const innerElements = xml.getInnerElements(element, elementName)
|
|
82
|
+
assert(innerElements.length > 0)
|
|
83
|
+
|
|
84
|
+
for (const innerElement of innerElements) {
|
|
85
|
+
if (xml.hasInnerText(innerElement)) {
|
|
86
|
+
// Ignore texts.
|
|
87
|
+
} else if (xml.hasInnerElement(innerElement, 'term')) {
|
|
88
|
+
assert(this.term === undefined)
|
|
89
|
+
this.term = new TermDataModel(xml, innerElement)
|
|
90
|
+
} else {
|
|
91
|
+
console.error(
|
|
92
|
+
`${elementName} element:`,
|
|
93
|
+
Object.keys(innerElement),
|
|
94
|
+
'not implemented yet in',
|
|
95
|
+
this.constructor.name
|
|
96
|
+
)
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
assert(this.term !== undefined)
|
|
101
|
+
|
|
102
|
+
// ------------------------------------------------------------------------
|
|
103
|
+
// Process attributes.
|
|
104
|
+
|
|
105
|
+
assert(!xml.hasAttributes(element))
|
|
106
|
+
|
|
107
|
+
// ------------------------------------------------------------------------
|
|
108
|
+
|
|
109
|
+
// console.log(util.inspect(this, { compact: false, depth: 999 }))
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// ----------------------------------------------------------------------------
|
|
114
|
+
|
|
115
|
+
// <xsd:element name="varlistentry" type="docVarListEntryType" />
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Data model for variable list entry elements within documentation content.
|
|
119
|
+
*
|
|
120
|
+
* @remarks
|
|
121
|
+
* Represents variable list entry elements that provide the term portion
|
|
122
|
+
* of definition lists and variable list structures. This implementation
|
|
123
|
+
* processes Doxygen's varlistentry elements, which contain terms that
|
|
124
|
+
* are paired with list items to form complete definition entries within
|
|
125
|
+
* variable list documentation structures.
|
|
126
|
+
*
|
|
127
|
+
* @public
|
|
128
|
+
*/
|
|
129
|
+
export class VarListEntryDataModel extends AbstractDocVarListEntryType {
|
|
130
|
+
/**
|
|
131
|
+
* Constructs a VarListEntryDataModel from XML element data.
|
|
132
|
+
*
|
|
133
|
+
* @param xml - The Doxygen XML parser instance for processing XML content
|
|
134
|
+
* @param element - The XML element object containing the varlistentry data
|
|
135
|
+
*
|
|
136
|
+
* @remarks
|
|
137
|
+
* This constructor delegates to the parent AbstractDocVarListEntryType to
|
|
138
|
+
* handle variable list entry processing whilst identifying the element as
|
|
139
|
+
* 'varlistentry' for proper XML schema compliance and term extraction.
|
|
140
|
+
*/
|
|
141
|
+
constructor(xml: DoxygenXmlParser, element: object) {
|
|
142
|
+
// console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
|
|
143
|
+
super(xml, element, 'varlistentry')
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
// ----------------------------------------------------------------------------
|
|
148
|
+
|
|
149
|
+
// WARNING: the DTD does not define an explicit pair.
|
|
150
|
+
// <xsd:group name="docVariableListGroup">
|
|
151
|
+
// <xsd:sequence>
|
|
152
|
+
// <xsd:element name="varlistentry" type="docVarListEntryType" />
|
|
153
|
+
// <xsd:element name="listitem" type="docListItemType" />
|
|
154
|
+
// </xsd:sequence>
|
|
155
|
+
// </xsd:group>
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Data model for variable list pair elements within documentation content.
|
|
159
|
+
*
|
|
160
|
+
* @remarks
|
|
161
|
+
* Represents the pairing of variable list entries with their corresponding
|
|
162
|
+
* list items to form complete definition pairs within variable lists. This
|
|
163
|
+
* class encapsulates the relationship between terms and their definitions,
|
|
164
|
+
* as the XML Schema defines variable lists as sequences of varlistentry
|
|
165
|
+
* and listitem pairs but does not provide an explicit container element.
|
|
166
|
+
*
|
|
167
|
+
* This implementation creates a logical pairing structure to maintain the
|
|
168
|
+
* association between terms and their corresponding definitions within
|
|
169
|
+
* variable list documentation structures.
|
|
170
|
+
*
|
|
171
|
+
* @public
|
|
172
|
+
*/
|
|
173
|
+
export class VariableListPairDataModel extends AbstractDataModelBase {
|
|
174
|
+
/**
|
|
175
|
+
* The variable list entry containing the term for this definition pair.
|
|
176
|
+
*
|
|
177
|
+
* @remarks
|
|
178
|
+
* Contains the term portion of the definition pair, representing the
|
|
179
|
+
* item being defined within the variable list structure.
|
|
180
|
+
*/
|
|
181
|
+
varlistentry: VarListEntryDataModel
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* The list item containing the definition for this definition pair.
|
|
185
|
+
*
|
|
186
|
+
* @remarks
|
|
187
|
+
* Contains the definition portion of the definition pair, providing
|
|
188
|
+
* the explanatory content for the associated term within the variable
|
|
189
|
+
* list structure.
|
|
190
|
+
*/
|
|
191
|
+
listitem: ListItemDataModel
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Constructs a VariableListPairDataModel from entry and item components.
|
|
195
|
+
*
|
|
196
|
+
* @param varlistentry - The variable list entry containing the term
|
|
197
|
+
* @param listitem - The list item containing the definition content
|
|
198
|
+
*
|
|
199
|
+
* @remarks
|
|
200
|
+
* This constructor creates a logical pairing between a variable list
|
|
201
|
+
* entry and its corresponding list item to form a complete definition
|
|
202
|
+
* pair. This maintains the semantic relationship between terms and
|
|
203
|
+
* definitions within variable list structures.
|
|
204
|
+
*/
|
|
205
|
+
constructor(
|
|
206
|
+
varlistentry: VarListEntryDataModel,
|
|
207
|
+
listitem: ListItemDataModel
|
|
208
|
+
) {
|
|
209
|
+
// console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
|
|
210
|
+
super('variablelistpair')
|
|
211
|
+
this.varlistentry = varlistentry
|
|
212
|
+
this.listitem = listitem
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
// ----------------------------------------------------------------------------
|
|
217
|
+
|
|
218
|
+
// <xsd:complexType name="docVariableListType">
|
|
219
|
+
// <xsd:sequence>
|
|
220
|
+
// <xsd:group ref="docVariableListGroup" maxOccurs="unbounded" />
|
|
221
|
+
// </xsd:sequence>
|
|
222
|
+
// </xsd:complexType>
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Abstract base class for variable list elements within documentation content.
|
|
226
|
+
*
|
|
227
|
+
* @remarks
|
|
228
|
+
* Implements processing for variable list elements that contain sequences
|
|
229
|
+
* of term-definition pairs within documentation structures. This class
|
|
230
|
+
* handles the XML Schema definition for docVariableListType elements,
|
|
231
|
+
* which consist of repeated variable list groups containing varlistentry
|
|
232
|
+
* and listitem pairs.
|
|
233
|
+
*
|
|
234
|
+
* The implementation processes these pairs sequentially, creating
|
|
235
|
+
* VariableListPairDataModel instances to maintain the logical relationship
|
|
236
|
+
* between terms and their corresponding definitions. The parser expects
|
|
237
|
+
* alternating varlistentry and listitem elements in the correct order
|
|
238
|
+
* to form proper definition pairs.
|
|
239
|
+
*
|
|
240
|
+
* @public
|
|
241
|
+
*/
|
|
242
|
+
// eslint-disable-next-line max-len
|
|
243
|
+
export abstract class AbstractDocVariableListType extends AbstractDataModelBase {
|
|
244
|
+
/**
|
|
245
|
+
* Constructs an AbstractDocVariableListType instance from XML element data.
|
|
246
|
+
*
|
|
247
|
+
* @param xml - The Doxygen XML parser instance for processing XML content
|
|
248
|
+
* @param element - The XML element object containing the variable list data
|
|
249
|
+
* @param elementName - The name of the XML element being processed
|
|
250
|
+
*
|
|
251
|
+
* @remarks
|
|
252
|
+
* This constructor processes variable list elements by extracting pairs
|
|
253
|
+
* of varlistentry and listitem elements in the expected sequence order.
|
|
254
|
+
* The parser creates VariableListPairDataModel instances to maintain
|
|
255
|
+
* the semantic relationship between terms and their definitions whilst
|
|
256
|
+
* ensuring proper XML schema compliance for variable list structures.
|
|
257
|
+
*
|
|
258
|
+
* The implementation expects alternating varlistentry and listitem
|
|
259
|
+
* elements and validates this sequence to ensure proper definition
|
|
260
|
+
* pair formation within the variable list documentation structure.
|
|
261
|
+
*/
|
|
262
|
+
// children: VariableListPairDataModel[] = []
|
|
263
|
+
|
|
264
|
+
constructor(xml: DoxygenXmlParser, element: object, elementName: string) {
|
|
265
|
+
super(elementName)
|
|
266
|
+
|
|
267
|
+
// console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
|
|
268
|
+
|
|
269
|
+
// ------------------------------------------------------------------------
|
|
270
|
+
// Process elements.
|
|
271
|
+
|
|
272
|
+
const innerElements = xml.getInnerElements(element, elementName)
|
|
273
|
+
assert(innerElements.length > 0)
|
|
274
|
+
|
|
275
|
+
this.children = []
|
|
276
|
+
|
|
277
|
+
let varlistentry: VarListEntryDataModel | undefined
|
|
278
|
+
for (const innerElement of innerElements) {
|
|
279
|
+
// console.log('innerElement:', innerElement)
|
|
280
|
+
// WARNING: this is not ok, since it depends on the order, it expects
|
|
281
|
+
// pairs of varlistentry and listitem, in this order.
|
|
282
|
+
if (xml.hasInnerText(innerElement)) {
|
|
283
|
+
// Ignore texts.
|
|
284
|
+
} else if (xml.hasInnerElement(innerElement, 'varlistentry')) {
|
|
285
|
+
varlistentry = new VarListEntryDataModel(xml, innerElement)
|
|
286
|
+
} else if (xml.hasInnerElement(innerElement, 'listitem')) {
|
|
287
|
+
const listitem = new ListItemDataModel(xml, innerElement)
|
|
288
|
+
assert(varlistentry !== undefined)
|
|
289
|
+
this.children.push(
|
|
290
|
+
new VariableListPairDataModel(varlistentry, listitem)
|
|
291
|
+
)
|
|
292
|
+
varlistentry = undefined
|
|
293
|
+
} else {
|
|
294
|
+
console.error(
|
|
295
|
+
util.inspect(innerElement, { compact: false, depth: 999 })
|
|
296
|
+
)
|
|
297
|
+
console.error(
|
|
298
|
+
`${elementName} element:`,
|
|
299
|
+
Object.keys(innerElement),
|
|
300
|
+
'not implemented yet in',
|
|
301
|
+
this.constructor.name
|
|
302
|
+
)
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
// ------------------------------------------------------------------------
|
|
307
|
+
// Process attributes.
|
|
308
|
+
|
|
309
|
+
assert(!xml.hasAttributes(element))
|
|
310
|
+
|
|
311
|
+
// ------------------------------------------------------------------------
|
|
312
|
+
|
|
313
|
+
// console.log(util.inspect(this, { compact: false, depth: 999 }))
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
// ----------------------------------------------------------------------------
|
|
318
|
+
|
|
319
|
+
// <xsd:element name="variablelist" type="docVariableListType" />
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* Data model for variable list elements within documentation content.
|
|
323
|
+
*
|
|
324
|
+
* @remarks
|
|
325
|
+
* Represents variable list elements that provide definition list structures
|
|
326
|
+
* within documentation. This implementation processes Doxygen's variablelist
|
|
327
|
+
* elements, which contain sequences of term-definition pairs for creating
|
|
328
|
+
* glossaries, definition lists, and other structured reference content.
|
|
329
|
+
*
|
|
330
|
+
* The variable list maintains proper pairing between terms and their
|
|
331
|
+
* corresponding definitions through VariableListPairDataModel instances.
|
|
332
|
+
*
|
|
333
|
+
* @public
|
|
334
|
+
*/
|
|
335
|
+
export class VariableListDataModel extends AbstractDocVariableListType {
|
|
336
|
+
/**
|
|
337
|
+
* Constructs a VariableListDataModel from XML element data.
|
|
338
|
+
*
|
|
339
|
+
* @param xml - The Doxygen XML parser instance for processing XML content
|
|
340
|
+
* @param element - The XML element object containing the variablelist data
|
|
341
|
+
*
|
|
342
|
+
* @remarks
|
|
343
|
+
* This constructor delegates to the parent AbstractDocVariableListType to
|
|
344
|
+
* handle variable list processing whilst identifying the element as
|
|
345
|
+
* 'variablelist' for proper XML schema compliance and definition pair
|
|
346
|
+
* extraction within documentation structures.
|
|
347
|
+
*/
|
|
348
|
+
constructor(xml: DoxygenXmlParser, element: object) {
|
|
349
|
+
// console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
|
|
350
|
+
super(xml, element, 'variablelist')
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
// ----------------------------------------------------------------------------
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* This file is part of the xPack project (http://xpack.github.io).
|
|
3
|
+
* Copyright (c) 2025-2026 Liviu Ionescu. All rights reserved.
|
|
4
|
+
*
|
|
5
|
+
* Permission to use, copy, modify, and/or distribute this software
|
|
6
|
+
* for any purpose is hereby granted, under the terms of the MIT license.
|
|
7
|
+
*
|
|
8
|
+
* If a copy of the license was not distributed with this file, it can
|
|
9
|
+
* be obtained from https://opensource.org/licenses/MIT.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
// ----------------------------------------------------------------------------
|
|
13
|
+
|
|
14
|
+
import assert from 'node:assert'
|
|
15
|
+
import * as util from 'node:util'
|
|
16
|
+
|
|
17
|
+
import { DoxygenXmlParser } from '../doxygen-xml-parser.js'
|
|
18
|
+
import { CompoundDefDataModel } from './compounddef-dm.js'
|
|
19
|
+
import { AbstractDataModelBase } from '../types.js'
|
|
20
|
+
|
|
21
|
+
// ----------------------------------------------------------------------------
|
|
22
|
+
|
|
23
|
+
// <xsd:complexType name="DoxygenType">
|
|
24
|
+
// <xsd:sequence maxOccurs="unbounded">
|
|
25
|
+
// <xsd:element name="compounddef" type="compounddefType" minOccurs="0" />
|
|
26
|
+
// </xsd:sequence>
|
|
27
|
+
// <xsd:attribute name="version" type="DoxVersionNumber" use="required" />
|
|
28
|
+
// <xsd:attribute ref="xml:lang" use="required"/>
|
|
29
|
+
// </xsd:complexType>
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Abstract base class for the root Doxygen document type.
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
* Represents the top-level Doxygen XML document structure containing
|
|
36
|
+
* compound definitions and document metadata. This is the root element
|
|
37
|
+
* that contains all other documentation elements parsed from Doxygen XML.
|
|
38
|
+
*
|
|
39
|
+
* @public
|
|
40
|
+
*/
|
|
41
|
+
export abstract class AbstractDoxygenType extends AbstractDataModelBase {
|
|
42
|
+
// Mandatory attributes.
|
|
43
|
+
/**
|
|
44
|
+
* The version of Doxygen that generated the XML.
|
|
45
|
+
*
|
|
46
|
+
* @remarks
|
|
47
|
+
* Version string indicating which Doxygen version was used to
|
|
48
|
+
* generate the XML output, useful for compatibility checking.
|
|
49
|
+
*/
|
|
50
|
+
version = ''
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* The language code for the documentation.
|
|
54
|
+
*
|
|
55
|
+
* @remarks
|
|
56
|
+
* XML language attribute indicating the primary language used
|
|
57
|
+
* in the documentation content.
|
|
58
|
+
*/
|
|
59
|
+
lang = ''
|
|
60
|
+
|
|
61
|
+
// Optional elements.
|
|
62
|
+
/**
|
|
63
|
+
* Array of compound definition data models.
|
|
64
|
+
*
|
|
65
|
+
* @remarks
|
|
66
|
+
* Contains all the compound definitions (classes, files, namespaces, etc.)
|
|
67
|
+
* that are documented within this Doxygen XML file. This is the main
|
|
68
|
+
* content of the documentation.
|
|
69
|
+
*/
|
|
70
|
+
compoundDefs?: CompoundDefDataModel[] | undefined
|
|
71
|
+
|
|
72
|
+
// Optional attributes.
|
|
73
|
+
/**
|
|
74
|
+
* XML schema location when no namespace is specified.
|
|
75
|
+
*
|
|
76
|
+
* @remarks
|
|
77
|
+
* Optional attribute specifying the schema location for XML
|
|
78
|
+
* validation when no explicit namespace is used.
|
|
79
|
+
*/
|
|
80
|
+
noNamespaceSchemaLocation?: string | undefined
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Creates a new Doxygen document data model from XML.
|
|
84
|
+
*
|
|
85
|
+
* @remarks
|
|
86
|
+
* Parses the root XML element representing a Doxygen document and
|
|
87
|
+
* extracts all compound definitions and metadata attributes.
|
|
88
|
+
*
|
|
89
|
+
* @param xml - The XML parser instance
|
|
90
|
+
* @param element - The XML element to parse
|
|
91
|
+
* @param elementName - The name of the XML element
|
|
92
|
+
*/
|
|
93
|
+
constructor(xml: DoxygenXmlParser, element: object, elementName: string) {
|
|
94
|
+
super(elementName)
|
|
95
|
+
|
|
96
|
+
// console.log(elementName, util.inspect(element,
|
|
97
|
+
// { compact: false, depth: 999 }))
|
|
98
|
+
|
|
99
|
+
const innerElements = xml.getInnerElements(element, elementName)
|
|
100
|
+
assert(innerElements.length > 0)
|
|
101
|
+
|
|
102
|
+
for (const innerElement of innerElements) {
|
|
103
|
+
if (xml.hasInnerText(innerElement)) {
|
|
104
|
+
// Ignore texts.
|
|
105
|
+
} else if (xml.hasInnerElement(innerElement, 'compounddef')) {
|
|
106
|
+
this.compoundDefs ??= []
|
|
107
|
+
this.compoundDefs.push(new CompoundDefDataModel(xml, innerElement))
|
|
108
|
+
} else {
|
|
109
|
+
console.error(util.inspect(innerElement))
|
|
110
|
+
console.error(
|
|
111
|
+
`${elementName} element:`,
|
|
112
|
+
Object.keys(innerElement),
|
|
113
|
+
'not implemented yet in',
|
|
114
|
+
this.constructor.name
|
|
115
|
+
)
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// ------------------------------------------------------------------------
|
|
120
|
+
// Process attributes.
|
|
121
|
+
|
|
122
|
+
assert(xml.hasAttributes(element))
|
|
123
|
+
|
|
124
|
+
const attributesNames = xml.getAttributesNames(element)
|
|
125
|
+
// console.log(attributesNames)
|
|
126
|
+
for (const attributeName of attributesNames) {
|
|
127
|
+
// console.log(attributeName)
|
|
128
|
+
if (attributeName === '@_version') {
|
|
129
|
+
this.version = xml.getAttributeStringValue(element, '@_version')
|
|
130
|
+
} else if (attributeName === '@_lang') {
|
|
131
|
+
this.lang = xml.getAttributeStringValue(element, '@_lang')
|
|
132
|
+
} else if (attributeName === '@_noNamespaceSchemaLocation') {
|
|
133
|
+
this.noNamespaceSchemaLocation = xml.getAttributeStringValue(
|
|
134
|
+
element,
|
|
135
|
+
'@_noNamespaceSchemaLocation'
|
|
136
|
+
)
|
|
137
|
+
} else {
|
|
138
|
+
console.error(util.inspect(element, { compact: false, depth: 999 }))
|
|
139
|
+
console.error(
|
|
140
|
+
`${elementName} attribute:`,
|
|
141
|
+
attributeName,
|
|
142
|
+
'not implemented yet in',
|
|
143
|
+
this.constructor.name
|
|
144
|
+
)
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
assert(this.version.length > 0)
|
|
148
|
+
assert(this.lang.length > 0)
|
|
149
|
+
|
|
150
|
+
// ------------------------------------------------------------------------
|
|
151
|
+
|
|
152
|
+
// console.log(util.inspect(this, { compact: false, depth: 999 }))
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
// ----------------------------------------------------------------------------
|
|
157
|
+
|
|
158
|
+
// <xsd:element name="doxygen" type="DoxygenType"/>
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Concrete implementation of the Doxygen document data model.
|
|
162
|
+
*
|
|
163
|
+
* @remarks
|
|
164
|
+
* Represents the root doxygen element in Doxygen XML files. Inherits
|
|
165
|
+
* all functionality from the abstract base class and provides the
|
|
166
|
+
* specific element name for parsing.
|
|
167
|
+
*
|
|
168
|
+
* @public
|
|
169
|
+
*/
|
|
170
|
+
export class DoxygenDataModel extends AbstractDoxygenType {
|
|
171
|
+
/**
|
|
172
|
+
* Creates a new Doxygen document data model from XML.
|
|
173
|
+
*
|
|
174
|
+
* @remarks
|
|
175
|
+
* Parses the XML element representing the root doxygen element using
|
|
176
|
+
* the inherited parsing logic with the 'doxygen' element name.
|
|
177
|
+
*
|
|
178
|
+
* @param xml - The XML parser instance
|
|
179
|
+
* @param element - The XML element to parse
|
|
180
|
+
*/
|
|
181
|
+
constructor(xml: DoxygenXmlParser, element: object) {
|
|
182
|
+
// console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
|
|
183
|
+
super(xml, element, 'doxygen')
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
// ----------------------------------------------------------------------------
|