@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,352 @@
|
|
|
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 * as fs from 'node:fs/promises'
|
|
15
|
+
import assert from 'node:assert'
|
|
16
|
+
|
|
17
|
+
import type { Workspace } from '../workspace.js'
|
|
18
|
+
import type { CompoundDefDataModel } from '../../doxygen/data-model/compounds/compounddef-dm.js'
|
|
19
|
+
import type { NavbarItem, SidebarCategory, FrontMatter } from '../types.js'
|
|
20
|
+
import type { CompoundBase } from './compound-base-vm.js'
|
|
21
|
+
import type { TreeEntryBase } from './tree-entries-vm.js'
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Base class for managing collections of documentation compounds.
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* Provides common functionality for organising and managing different
|
|
28
|
+
* types of documentation collections such as classes, namespaces, files,
|
|
29
|
+
* and groups. Handles hierarchy creation, sidebar generation, and index
|
|
30
|
+
* file creation.
|
|
31
|
+
*
|
|
32
|
+
* @public
|
|
33
|
+
*/
|
|
34
|
+
export abstract class CollectionBase {
|
|
35
|
+
/** The workspace instance providing global configuration and utilities. */
|
|
36
|
+
workspace: Workspace
|
|
37
|
+
|
|
38
|
+
/** Map storing compound instances indexed by their unique identifiers. */
|
|
39
|
+
collectionCompoundsById: Map<string, CompoundBase>
|
|
40
|
+
|
|
41
|
+
// --------------------------------------------------------------------------
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Creates a new collection base instance.
|
|
45
|
+
*
|
|
46
|
+
* @remarks
|
|
47
|
+
* Initialises the workspace reference and creates an empty map for
|
|
48
|
+
* storing compound instances indexed by their identifiers.
|
|
49
|
+
*
|
|
50
|
+
* @param workspace - The workspace instance containing global configuration
|
|
51
|
+
*/
|
|
52
|
+
constructor(workspace: Workspace) {
|
|
53
|
+
this.workspace = workspace
|
|
54
|
+
|
|
55
|
+
this.collectionCompoundsById = new Map()
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// --------------------------------------------------------------------------
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Adds a compound definition to the collection.
|
|
62
|
+
*
|
|
63
|
+
* @remarks
|
|
64
|
+
* Abstract method that must be implemented by derived classes to handle
|
|
65
|
+
* the specific compound type addition logic.
|
|
66
|
+
*
|
|
67
|
+
* @param compoundDef - The compound definition data model to add
|
|
68
|
+
* @returns The created compound base instance
|
|
69
|
+
*/
|
|
70
|
+
abstract addChild(compoundDef: CompoundDefDataModel): CompoundBase
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Creates hierarchical relationships between compounds.
|
|
74
|
+
*
|
|
75
|
+
* @remarks
|
|
76
|
+
* Abstract method that organises compounds into their appropriate
|
|
77
|
+
* hierarchical structure based on the collection type.
|
|
78
|
+
*/
|
|
79
|
+
abstract createCompoundsHierarchies(): void
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Adds items to the sidebar category for navigation.
|
|
83
|
+
*
|
|
84
|
+
* @remarks
|
|
85
|
+
* Abstract method that populates the sidebar with appropriate navigation
|
|
86
|
+
* items for this collection type.
|
|
87
|
+
*
|
|
88
|
+
* @param sidebarCategory - The sidebar category to populate
|
|
89
|
+
*/
|
|
90
|
+
abstract addSidebarItems(sidebarCategory: SidebarCategory): void
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Creates navigation bar items for the top-level menu.
|
|
94
|
+
*
|
|
95
|
+
* @remarks
|
|
96
|
+
* Abstract method that generates navbar dropdown items appropriate
|
|
97
|
+
* for this collection type.
|
|
98
|
+
*
|
|
99
|
+
* @returns Array of navbar items for the collection
|
|
100
|
+
*/
|
|
101
|
+
abstract createNavbarItems(): NavbarItem[]
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Generates the main index Markdown file for the collection.
|
|
105
|
+
*
|
|
106
|
+
* @remarks
|
|
107
|
+
* Abstract method that creates the primary index page listing all
|
|
108
|
+
* items in the collection with appropriate organisation.
|
|
109
|
+
*/
|
|
110
|
+
abstract generateIndexDotMdFile(): Promise<void>
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Generates index files organised by initial letters.
|
|
114
|
+
*
|
|
115
|
+
* @remarks
|
|
116
|
+
* Optional method that can be overridden to create alphabetical
|
|
117
|
+
* index pages when the collection is large enough to warrant
|
|
118
|
+
* subdivision by initial letters.
|
|
119
|
+
*/
|
|
120
|
+
async generatePerInitialsIndexMdFiles(): Promise<void> {
|
|
121
|
+
// Nothing at this level. Override it where needed.
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Determines whether the collection should appear in the sidebar.
|
|
126
|
+
*
|
|
127
|
+
* @remarks
|
|
128
|
+
* Collections are visible in the sidebar when they contain at least
|
|
129
|
+
* one compound. Empty collections are hidden to avoid clutter.
|
|
130
|
+
*
|
|
131
|
+
* @returns True if the collection has compounds and should be visible
|
|
132
|
+
*/
|
|
133
|
+
isVisibleInSidebar(): boolean {
|
|
134
|
+
return this.collectionCompoundsById.size > 0
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
// --------------------------------------------------------------------------
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Organises tree entries by their initial letters for alphabetical indexing.
|
|
141
|
+
*
|
|
142
|
+
* @remarks
|
|
143
|
+
* Groups collection entries by their first letter to enable creation
|
|
144
|
+
* of alphabetical index pages. Handles special characters like tildes
|
|
145
|
+
* and ensures consistent lowercase grouping.
|
|
146
|
+
*
|
|
147
|
+
* @param entriesMap - Map of tree entries to organise
|
|
148
|
+
* @returns Map grouping entries by their initial letters
|
|
149
|
+
*/
|
|
150
|
+
orderPerInitials(
|
|
151
|
+
entriesMap: Map<string, TreeEntryBase>
|
|
152
|
+
): Map<string, TreeEntryBase[]> {
|
|
153
|
+
const entriesPerInitialsMap = new Map<string, TreeEntryBase[]>()
|
|
154
|
+
|
|
155
|
+
for (const [, entry] of entriesMap) {
|
|
156
|
+
const initial: string = entry.name
|
|
157
|
+
.replace(/^[~]/, '')
|
|
158
|
+
.charAt(0)
|
|
159
|
+
.toLowerCase()
|
|
160
|
+
if (initial.length > 0) {
|
|
161
|
+
let mapArray = entriesPerInitialsMap.get(initial)
|
|
162
|
+
if (mapArray === undefined) {
|
|
163
|
+
mapArray = []
|
|
164
|
+
entriesPerInitialsMap.set(initial, mapArray)
|
|
165
|
+
}
|
|
166
|
+
mapArray.push(entry)
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
const orderedMap = new Map<string, TreeEntryBase[]>()
|
|
171
|
+
const orderedInitials = Array.from(entriesPerInitialsMap.keys()).sort()
|
|
172
|
+
for (const initial of orderedInitials) {
|
|
173
|
+
const unorderedArray = entriesPerInitialsMap.get(initial)
|
|
174
|
+
assert(unorderedArray !== undefined)
|
|
175
|
+
const orderedArray = unorderedArray.sort((a, b) => {
|
|
176
|
+
let nameComparison = a.name
|
|
177
|
+
.replace(/^[~]/, '')
|
|
178
|
+
.localeCompare(b.name.replace(/^[~]/, ''), undefined, {
|
|
179
|
+
sensitivity: 'accent',
|
|
180
|
+
})
|
|
181
|
+
if (nameComparison !== 0) {
|
|
182
|
+
return nameComparison
|
|
183
|
+
}
|
|
184
|
+
nameComparison = a.longName.localeCompare(b.longName, undefined, {
|
|
185
|
+
sensitivity: 'accent',
|
|
186
|
+
})
|
|
187
|
+
return nameComparison
|
|
188
|
+
})
|
|
189
|
+
orderedMap.set(initial, orderedArray)
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
return orderedMap
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Generates output entries for alphabetical index pages.
|
|
197
|
+
*
|
|
198
|
+
* @remarks
|
|
199
|
+
* Creates formatted lists of entries organised by initial letters,
|
|
200
|
+
* producing HTML markup suitable for inclusion in Markdown index
|
|
201
|
+
* pages. Includes entry names, types, and navigation links.
|
|
202
|
+
*
|
|
203
|
+
* @param entriesPerInitialsMap - Map of entries grouped by initials
|
|
204
|
+
* @returns Array of formatted output lines for the index
|
|
205
|
+
*/
|
|
206
|
+
outputEntries(entriesPerInitialsMap: Map<string, TreeEntryBase[]>): string[] {
|
|
207
|
+
const lines: string[] = []
|
|
208
|
+
|
|
209
|
+
let totalCount = 0
|
|
210
|
+
for (const initial of entriesPerInitialsMap.keys()) {
|
|
211
|
+
lines.push('')
|
|
212
|
+
lines.push(`## - ${initial.toUpperCase()} -`)
|
|
213
|
+
lines.push('')
|
|
214
|
+
lines.push('<ul>')
|
|
215
|
+
const mapArray = entriesPerInitialsMap.get(initial)
|
|
216
|
+
assert(mapArray !== undefined)
|
|
217
|
+
for (const entry of mapArray) {
|
|
218
|
+
const linkName: string = entry.linkName
|
|
219
|
+
|
|
220
|
+
const { name } = entry
|
|
221
|
+
const kind = entry.kind
|
|
222
|
+
.replace(/enumvalue/, 'enum value')
|
|
223
|
+
.replace(/define/, 'macro definition')
|
|
224
|
+
|
|
225
|
+
let text = ''
|
|
226
|
+
|
|
227
|
+
text += `<li>`
|
|
228
|
+
if (entry.permalink !== undefined && entry.permalink.length > 0) {
|
|
229
|
+
text += `<a href="${entry.permalink}"><b>${name}</b></a>: `
|
|
230
|
+
} else {
|
|
231
|
+
text += `<b>${name}</b>: `
|
|
232
|
+
}
|
|
233
|
+
text += 'as '
|
|
234
|
+
if (name !== entry.comparableLinkName) {
|
|
235
|
+
text += `${kind} `
|
|
236
|
+
text += 'in '
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
if (entry.linkKind.length > 0) {
|
|
240
|
+
text += entry.linkKind
|
|
241
|
+
text += ' '
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
if (
|
|
245
|
+
entry.grouptPermalink !== undefined &&
|
|
246
|
+
entry.grouptPermalink.length > 0
|
|
247
|
+
) {
|
|
248
|
+
text += `<a href="${entry.grouptPermalink}">${linkName}</a>`
|
|
249
|
+
} else {
|
|
250
|
+
text += linkName
|
|
251
|
+
}
|
|
252
|
+
text += '</li>'
|
|
253
|
+
lines.push(text)
|
|
254
|
+
}
|
|
255
|
+
lines.push('</ul>')
|
|
256
|
+
|
|
257
|
+
if (mapArray.length > 1) {
|
|
258
|
+
lines.push(`<p>${mapArray.length.toString()} entries</p>`)
|
|
259
|
+
}
|
|
260
|
+
totalCount += mapArray.length
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
lines.push('<br/>')
|
|
264
|
+
lines.push(`<p>Total: ${totalCount.toString()} entries.</p>`)
|
|
265
|
+
|
|
266
|
+
return lines
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Generates a filtered index file for a specific kind of entries.
|
|
271
|
+
*
|
|
272
|
+
* @remarks
|
|
273
|
+
* Creates alphabetically organised index pages for specific entry types
|
|
274
|
+
* within the collection. Applies filtering to include only relevant
|
|
275
|
+
* entries, organises them by initial letters, and generates Markdown
|
|
276
|
+
* files with proper frontmatter and navigation links.
|
|
277
|
+
*
|
|
278
|
+
* @param params - Object containing index file generation parameters
|
|
279
|
+
* @param params.group - The collection group name for file organisation
|
|
280
|
+
* @param params.fileKind - The specific kind of entries to include
|
|
281
|
+
* @param params.title - The page title for the generated index
|
|
282
|
+
* @param params.description - The descriptive text for the index page
|
|
283
|
+
* @param params.map - Map of all available entries to filter from
|
|
284
|
+
* @param params.filter - Function to determine which entries to include
|
|
285
|
+
*/
|
|
286
|
+
async generateIndexFile({
|
|
287
|
+
group,
|
|
288
|
+
fileKind,
|
|
289
|
+
title,
|
|
290
|
+
description,
|
|
291
|
+
map,
|
|
292
|
+
filter,
|
|
293
|
+
}: {
|
|
294
|
+
group: string
|
|
295
|
+
fileKind: string
|
|
296
|
+
title: string
|
|
297
|
+
description: string
|
|
298
|
+
map: Map<string, TreeEntryBase>
|
|
299
|
+
filter: (kind: string) => boolean
|
|
300
|
+
}): Promise<void> {
|
|
301
|
+
const filteredMap = new Map<string, TreeEntryBase>()
|
|
302
|
+
for (const [id, entry] of map) {
|
|
303
|
+
if (filter(entry.kind)) {
|
|
304
|
+
filteredMap.set(id, entry)
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
if (filteredMap.size === 0) {
|
|
309
|
+
// There are no index entries.
|
|
310
|
+
return
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
if (!this.workspace.indicesMaps.has(group)) {
|
|
314
|
+
// Add the empty set at the first usage.
|
|
315
|
+
this.workspace.indicesMaps.set(group, new Set())
|
|
316
|
+
}
|
|
317
|
+
this.workspace.indicesMaps.get(group)?.add(fileKind)
|
|
318
|
+
|
|
319
|
+
const orderedEntries = this.orderPerInitials(filteredMap)
|
|
320
|
+
|
|
321
|
+
const { outputFolderPath } = this.workspace
|
|
322
|
+
|
|
323
|
+
const filePath = `${outputFolderPath}indices/${group}/${fileKind}.md`
|
|
324
|
+
const permalink = `indices/${group}/${fileKind}`
|
|
325
|
+
|
|
326
|
+
const frontMatter: FrontMatter = {
|
|
327
|
+
title,
|
|
328
|
+
slug: `${this.workspace.slugBaseUrl}${permalink}`,
|
|
329
|
+
// description: '...', // TODO
|
|
330
|
+
custom_edit_url: null,
|
|
331
|
+
keywords: ['doxygen', group, 'index'],
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
const lines: string[] = []
|
|
335
|
+
|
|
336
|
+
lines.push(`<p>${description}</p>`)
|
|
337
|
+
|
|
338
|
+
lines.push(...this.outputEntries(orderedEntries))
|
|
339
|
+
|
|
340
|
+
if (this.workspace.options.verbose) {
|
|
341
|
+
console.log(`Writing ${group} index file '${filePath}'...`)
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
await this.workspace.writeOutputMdFile({
|
|
345
|
+
filePath,
|
|
346
|
+
frontMatter,
|
|
347
|
+
bodyLines: lines,
|
|
348
|
+
})
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
// ----------------------------------------------------------------------------
|