@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,77 @@
|
|
|
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 { ElementLinesRendererBase } from './element-renderer-base.js'
|
|
18
|
+
import {
|
|
19
|
+
type AbstractDocTitleType,
|
|
20
|
+
TermDataModel,
|
|
21
|
+
TitleDataModel,
|
|
22
|
+
} from '../../doxygen/data-model/compounds/descriptiontype-dm.js'
|
|
23
|
+
|
|
24
|
+
// ----------------------------------------------------------------------------
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Renderer for Doxygen document title elements.
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* Handles title and term elements within documentation structures.
|
|
31
|
+
* Supports polymorphic rendering for different title types while
|
|
32
|
+
* providing error handling for unrecognised element variations.
|
|
33
|
+
*
|
|
34
|
+
* @public
|
|
35
|
+
*/
|
|
36
|
+
export class DocTitleTypeLinesRenderer extends ElementLinesRendererBase {
|
|
37
|
+
/**
|
|
38
|
+
* Renders a document title element to formatted output lines.
|
|
39
|
+
*
|
|
40
|
+
* @remarks
|
|
41
|
+
* Processes title and term data models by rendering their child elements.
|
|
42
|
+
* Logs errors for unrecognised title types that require implementation
|
|
43
|
+
* support for complete documentation coverage.
|
|
44
|
+
*
|
|
45
|
+
* @param element - The document title element to render
|
|
46
|
+
* @param type - The rendering context type
|
|
47
|
+
* @returns Array containing the rendered title text
|
|
48
|
+
*/
|
|
49
|
+
override renderToLines(
|
|
50
|
+
element: AbstractDocTitleType,
|
|
51
|
+
type: string
|
|
52
|
+
): string[] {
|
|
53
|
+
// console.log(util.inspect(element, { compact: false, depth: 999 }))
|
|
54
|
+
|
|
55
|
+
let text = ''
|
|
56
|
+
|
|
57
|
+
if (element instanceof TitleDataModel) {
|
|
58
|
+
text += this.workspace.renderElementsArrayToString(element.children, type)
|
|
59
|
+
} else if (element instanceof TermDataModel) {
|
|
60
|
+
text += this.workspace.renderElementsArrayToString(element.children, type)
|
|
61
|
+
} else {
|
|
62
|
+
console.error(
|
|
63
|
+
element.constructor.name,
|
|
64
|
+
'not rendered in',
|
|
65
|
+
this.constructor.name
|
|
66
|
+
)
|
|
67
|
+
// text += '<b>'
|
|
68
|
+
// text +=
|
|
69
|
+
// this.workspace.renderElementsArrayToString(element.children, type)
|
|
70
|
+
// text += '</b>'
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
return [text]
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// ----------------------------------------------------------------------------
|
|
@@ -0,0 +1,123 @@
|
|
|
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 { ElementLinesRendererBase } from './element-renderer-base.js'
|
|
18
|
+
import type {
|
|
19
|
+
AbstractDocVariableListType,
|
|
20
|
+
VariableListPairDataModel,
|
|
21
|
+
} from '../../doxygen/data-model/compounds/docvarlistentrytype-dm.js'
|
|
22
|
+
|
|
23
|
+
// ----------------------------------------------------------------------------
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Renderer for Doxygen variable list container elements.
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
* Creates HTML definition list structure for variable lists containing
|
|
30
|
+
* term-description pairs. Provides the outer container for organised
|
|
31
|
+
* presentation of variable documentation.
|
|
32
|
+
*
|
|
33
|
+
* @public
|
|
34
|
+
*/
|
|
35
|
+
export class DocVariableListTypeLinesRenderer extends ElementLinesRendererBase {
|
|
36
|
+
/**
|
|
37
|
+
* Renders a variable list container to formatted output lines.
|
|
38
|
+
*
|
|
39
|
+
* @remarks
|
|
40
|
+
* Creates an HTML definition list wrapper around variable list entries.
|
|
41
|
+
* Each child element represents a term-description pair within the
|
|
42
|
+
* structured list format.
|
|
43
|
+
*
|
|
44
|
+
* @param element - The variable list container element to render
|
|
45
|
+
* @param type - The rendering context type (unused in implementation)
|
|
46
|
+
* @returns Array of HTML strings forming the definition list structure
|
|
47
|
+
*/
|
|
48
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
49
|
+
renderToLines(element: AbstractDocVariableListType, type: string): string[] {
|
|
50
|
+
// console.log(util.inspect(element, { compact: false, depth: 999 }))
|
|
51
|
+
|
|
52
|
+
const lines: string[] = []
|
|
53
|
+
|
|
54
|
+
lines.push('')
|
|
55
|
+
lines.push('<dl class="doxyVariableList">')
|
|
56
|
+
lines.push(
|
|
57
|
+
...this.workspace.renderElementsArrayToLines(element.children, 'html')
|
|
58
|
+
)
|
|
59
|
+
lines.push('</dl>')
|
|
60
|
+
|
|
61
|
+
return lines
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Renderer for individual variable list entry pairs.
|
|
67
|
+
*
|
|
68
|
+
* @remarks
|
|
69
|
+
* Converts term-description pairs into HTML definition list items.
|
|
70
|
+
* Handles both single-line and multi-line descriptions with appropriate
|
|
71
|
+
* formatting for readable documentation output.
|
|
72
|
+
*
|
|
73
|
+
* @public
|
|
74
|
+
*/
|
|
75
|
+
export class VariableListPairLinesRenderer extends ElementLinesRendererBase {
|
|
76
|
+
/**
|
|
77
|
+
* Renders a variable list entry pair to formatted output lines.
|
|
78
|
+
*
|
|
79
|
+
* @remarks
|
|
80
|
+
* Creates HTML definition term and description elements from the
|
|
81
|
+
* variable list entry. Handles multi-line descriptions by splitting
|
|
82
|
+
* content across multiple lines within the definition element.
|
|
83
|
+
*
|
|
84
|
+
* @param element - The variable list pair element to render
|
|
85
|
+
* @param type - The rendering context type (unused in implementation)
|
|
86
|
+
* @returns Array of HTML strings for the term-description pair
|
|
87
|
+
*/
|
|
88
|
+
override renderToLines(
|
|
89
|
+
element: VariableListPairDataModel,
|
|
90
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
91
|
+
type: string
|
|
92
|
+
): string[] {
|
|
93
|
+
// console.log(util.inspect(element, { compact: false, depth: 999 }))
|
|
94
|
+
|
|
95
|
+
const lines: string[] = []
|
|
96
|
+
|
|
97
|
+
// console.log(element.varlistentry.term)
|
|
98
|
+
// console.log(element.listitem.paras)
|
|
99
|
+
|
|
100
|
+
// WARNING: the title includes <b></b>
|
|
101
|
+
const title = this.workspace
|
|
102
|
+
.renderElementToString(element.varlistentry.term, 'html')
|
|
103
|
+
.trim()
|
|
104
|
+
|
|
105
|
+
// this.workspace.skipElementsPara(element.listitem.paras)
|
|
106
|
+
const description = this.workspace
|
|
107
|
+
.renderElementsArrayToString(element.listitem.paras, 'html')
|
|
108
|
+
.trim()
|
|
109
|
+
|
|
110
|
+
lines.push(`<dt>${title}</dt>`)
|
|
111
|
+
if (!description.includes('\n')) {
|
|
112
|
+
lines.push(`<dd>${description}</dd>`)
|
|
113
|
+
} else {
|
|
114
|
+
lines.push('<dd>')
|
|
115
|
+
lines.push(...description.split('\n'))
|
|
116
|
+
lines.push('</dd>')
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
return lines
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
// ----------------------------------------------------------------------------
|
|
@@ -0,0 +1,84 @@
|
|
|
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 { ElementLinesRendererBase } from './element-renderer-base.js'
|
|
18
|
+
import type { AbstractDocXRefSectType } from '../../doxygen/data-model/compounds/descriptiontype-dm.js'
|
|
19
|
+
|
|
20
|
+
// ----------------------------------------------------------------------------
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Renderer for Doxygen cross-reference section elements.
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* Generates HTML structure for cross-reference sections with titles and
|
|
27
|
+
* descriptions. Creates definition lists with linked titles and detailed
|
|
28
|
+
* content for documentation cross-references.
|
|
29
|
+
*
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
export class DocXRefSectLinesRenderer extends ElementLinesRendererBase {
|
|
33
|
+
/**
|
|
34
|
+
* Renders a cross-reference section to formatted output lines.
|
|
35
|
+
*
|
|
36
|
+
* @remarks
|
|
37
|
+
* Creates an HTML definition list structure with the cross-reference
|
|
38
|
+
* title as a linked term and the description as the definition content.
|
|
39
|
+
* Generates a permalink for the cross-reference section.
|
|
40
|
+
*
|
|
41
|
+
* @param element - The cross-reference section element to render
|
|
42
|
+
* @param type - The rendering context type (unused in implementation)
|
|
43
|
+
* @returns Array of HTML strings forming the cross-reference section
|
|
44
|
+
*/
|
|
45
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
46
|
+
renderToLines(element: AbstractDocXRefSectType, type: string): string[] {
|
|
47
|
+
// console.log(util.inspect(element, { compact: false, depth: 999 }))
|
|
48
|
+
|
|
49
|
+
const lines: string[] = []
|
|
50
|
+
|
|
51
|
+
const title = this.workspace.renderString(
|
|
52
|
+
element.xreftitle ?? '???',
|
|
53
|
+
'html'
|
|
54
|
+
)
|
|
55
|
+
const permalink = this.workspace.getPermalink({
|
|
56
|
+
refid: element.id,
|
|
57
|
+
kindref: 'xrefsect',
|
|
58
|
+
})
|
|
59
|
+
assert(permalink !== undefined)
|
|
60
|
+
|
|
61
|
+
lines.push('')
|
|
62
|
+
lines.push('<div class="doxyXrefSect">')
|
|
63
|
+
lines.push('<dl class="doxyXrefSectList">')
|
|
64
|
+
lines.push(
|
|
65
|
+
`<dt class="doxyXrefSectTitle"><a href=${permalink}>${title}</a></dt>`
|
|
66
|
+
)
|
|
67
|
+
lines.push('<dd class="doxyXrefSectDescription">')
|
|
68
|
+
|
|
69
|
+
if (element.xrefdescription !== undefined) {
|
|
70
|
+
lines.push(
|
|
71
|
+
this.workspace
|
|
72
|
+
.renderElementToString(element.xrefdescription, 'html')
|
|
73
|
+
.trim()
|
|
74
|
+
)
|
|
75
|
+
}
|
|
76
|
+
lines.push('</dd>')
|
|
77
|
+
lines.push('</dl>')
|
|
78
|
+
lines.push('</div>')
|
|
79
|
+
|
|
80
|
+
return lines
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// ----------------------------------------------------------------------------
|
|
@@ -0,0 +1,112 @@
|
|
|
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 type { Workspace } from '../workspace.js'
|
|
15
|
+
|
|
16
|
+
// ----------------------------------------------------------------------------
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Abstract base class for renderers that output string content.
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* Provides common functionality for element renderers that convert
|
|
23
|
+
* Doxygen XML elements into formatted string output. Maintains a
|
|
24
|
+
* reference to the workspace for accessing configuration and utilities.
|
|
25
|
+
*
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
28
|
+
export abstract class ElementStringRendererBase {
|
|
29
|
+
/**
|
|
30
|
+
* The workspace containing global configuration and utilities.
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Provides access to rendering utilities, permalink generation,
|
|
34
|
+
* and global configuration options needed for element processing.
|
|
35
|
+
*/
|
|
36
|
+
workspace: Workspace
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Creates a new string element renderer.
|
|
40
|
+
*
|
|
41
|
+
* @remarks
|
|
42
|
+
* Initialises the renderer with the workspace reference for accessing
|
|
43
|
+
* global configuration and rendering utilities.
|
|
44
|
+
*
|
|
45
|
+
* @param workspace - The workspace instance
|
|
46
|
+
*/
|
|
47
|
+
constructor(workspace: Workspace) {
|
|
48
|
+
this.workspace = workspace
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Renders an element to a formatted string.
|
|
53
|
+
*
|
|
54
|
+
* @remarks
|
|
55
|
+
* Abstract method that must be implemented by derived classes to
|
|
56
|
+
* convert specific element types into their string representation.
|
|
57
|
+
*
|
|
58
|
+
* @param element - The element to render
|
|
59
|
+
* @param type - The rendering context type
|
|
60
|
+
* @returns Formatted string output
|
|
61
|
+
*/
|
|
62
|
+
abstract renderToString(element: object, type: string): string
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Abstract base class for renderers that output multiple lines.
|
|
67
|
+
*
|
|
68
|
+
* @remarks
|
|
69
|
+
* Provides common functionality for element renderers that convert
|
|
70
|
+
* Doxygen XML elements into formatted multi-line output. Maintains
|
|
71
|
+
* a reference to the workspace for accessing configuration and utilities.
|
|
72
|
+
*
|
|
73
|
+
* @public
|
|
74
|
+
*/
|
|
75
|
+
export abstract class ElementLinesRendererBase {
|
|
76
|
+
/**
|
|
77
|
+
* The workspace containing global configuration and utilities.
|
|
78
|
+
*
|
|
79
|
+
* @remarks
|
|
80
|
+
* Provides access to rendering utilities, permalink generation,
|
|
81
|
+
* and global configuration options needed for element processing.
|
|
82
|
+
*/
|
|
83
|
+
workspace: Workspace
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Creates a new lines element renderer.
|
|
87
|
+
*
|
|
88
|
+
* @remarks
|
|
89
|
+
* Initialises the renderer with the workspace reference for accessing
|
|
90
|
+
* global configuration and rendering utilities.
|
|
91
|
+
*
|
|
92
|
+
* @param workspace - The workspace instance
|
|
93
|
+
*/
|
|
94
|
+
constructor(workspace: Workspace) {
|
|
95
|
+
this.workspace = workspace
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Renders an element to an array of formatted lines.
|
|
100
|
+
*
|
|
101
|
+
* @remarks
|
|
102
|
+
* Abstract method that must be implemented by derived classes to
|
|
103
|
+
* convert specific element types into their multi-line representation.
|
|
104
|
+
*
|
|
105
|
+
* @param element - The element to render
|
|
106
|
+
* @param type - The rendering context type
|
|
107
|
+
* @returns Array of formatted output lines
|
|
108
|
+
*/
|
|
109
|
+
abstract renderToLines(element: object, type: string): string[]
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// ----------------------------------------------------------------------------
|
|
@@ -0,0 +1,75 @@
|
|
|
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 { ElementLinesRendererBase } from './element-renderer-base.js'
|
|
18
|
+
import type { AbstractIncType } from '../../doxygen/data-model/compounds/inctype-dm.js'
|
|
19
|
+
|
|
20
|
+
// ----------------------------------------------------------------------------
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Renderer for include directive elements in documentation.
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* Handles the rendering of #include statements found in source code,
|
|
27
|
+
* converting them to appropriate HTML output with proper link generation
|
|
28
|
+
* when the included file is documented.
|
|
29
|
+
*
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
export class IncTypeLinesRenderer extends ElementLinesRendererBase {
|
|
33
|
+
/**
|
|
34
|
+
* Renders an include element to formatted output lines.
|
|
35
|
+
*
|
|
36
|
+
* @remarks
|
|
37
|
+
* Converts Doxygen include elements into HTML format with appropriate
|
|
38
|
+
* angle brackets or quotes, and creates links to documented files
|
|
39
|
+
* when available. Handles both local includes (quotes) and system
|
|
40
|
+
* includes (angle brackets).
|
|
41
|
+
*
|
|
42
|
+
* @param element - The include element to render
|
|
43
|
+
* @param type - The rendering context type
|
|
44
|
+
* @returns Array of formatted output lines
|
|
45
|
+
*/
|
|
46
|
+
override renderToLines(element: AbstractIncType, type: string): string[] {
|
|
47
|
+
// console.log(util.inspect(element, { compact: false, depth: 999 }))
|
|
48
|
+
|
|
49
|
+
const lines: string[] = []
|
|
50
|
+
|
|
51
|
+
let permalink: string | undefined = ''
|
|
52
|
+
if (element.refId !== undefined) {
|
|
53
|
+
permalink = this.workspace.getPagePermalink(element.refId)
|
|
54
|
+
// May be undefined.
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
const content = this.workspace.renderString(element.text.trim(), type)
|
|
58
|
+
let text = ''
|
|
59
|
+
text += '#include '
|
|
60
|
+
text += element.local ? '"' : '<'
|
|
61
|
+
if (permalink !== undefined && permalink.length > 0) {
|
|
62
|
+
text += `<a href="${permalink}">${content}</a>`
|
|
63
|
+
} else {
|
|
64
|
+
text += content
|
|
65
|
+
}
|
|
66
|
+
text += element.local ? '"' : '>'
|
|
67
|
+
// text += '</code>'
|
|
68
|
+
|
|
69
|
+
lines.push(text)
|
|
70
|
+
|
|
71
|
+
return lines
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// ----------------------------------------------------------------------------
|
|
@@ -0,0 +1,64 @@
|
|
|
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 { ElementStringRendererBase } from './element-renderer-base.js'
|
|
18
|
+
import type { AbstractLinkedTextType } from '../../doxygen/data-model/compounds/linkedtexttype-dm.js'
|
|
19
|
+
|
|
20
|
+
// ----------------------------------------------------------------------------
|
|
21
|
+
|
|
22
|
+
// <xsd:complexType name="linkedTextType" mixed="true"> <-- Character data
|
|
23
|
+
// is allowed to appear between the child elements!
|
|
24
|
+
// <xsd:sequence>
|
|
25
|
+
// <xsd:element name="ref" type="refTextType" minOccurs="0"
|
|
26
|
+
// maxOccurs="unbounded" />
|
|
27
|
+
// </xsd:sequence>
|
|
28
|
+
// </xsd:complexType>
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Renderer for Doxygen linked text elements containing mixed content.
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* Handles complex text structures that contain both character data and
|
|
35
|
+
* reference elements. Renders child elements recursively to build the
|
|
36
|
+
* complete text output with embedded links.
|
|
37
|
+
*
|
|
38
|
+
* @public
|
|
39
|
+
*/
|
|
40
|
+
export class LinkedTextTypeStringRenderer extends ElementStringRendererBase {
|
|
41
|
+
/**
|
|
42
|
+
* Renders a linked text element to a formatted string.
|
|
43
|
+
*
|
|
44
|
+
* @remarks
|
|
45
|
+
* Processes all child elements in sequence to generate the complete
|
|
46
|
+
* text output with embedded references and mixed content. Maintains
|
|
47
|
+
* the original order of text and reference elements.
|
|
48
|
+
*
|
|
49
|
+
* @param element - The linked text element to render
|
|
50
|
+
* @param type - The rendering context type
|
|
51
|
+
* @returns The formatted string with mixed content
|
|
52
|
+
*/
|
|
53
|
+
renderToString(element: AbstractLinkedTextType, type: string): string {
|
|
54
|
+
// console.log(util.inspect(element, { compact: false, depth: 999 }))
|
|
55
|
+
|
|
56
|
+
let text = ''
|
|
57
|
+
|
|
58
|
+
text += this.workspace.renderElementsArrayToString(element.children, type)
|
|
59
|
+
|
|
60
|
+
return text
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// ----------------------------------------------------------------------------
|