@xpack/doxygen2docusaurus 1.1.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 +4 -3
- package/bin/doxygen2docusaurus.js +1 -1
- package/dist/cli/main.d.ts +0 -8
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +1 -29
- package/dist/cli/main.js.map +1 -1
- package/dist/docusaurus/cli-options.d.ts +4 -65
- package/dist/docusaurus/cli-options.d.ts.map +1 -1
- package/dist/docusaurus/cli-options.js +16 -91
- package/dist/docusaurus/cli-options.js.map +1 -1
- package/dist/docusaurus/generator.d.ts +7 -4
- package/dist/docusaurus/generator.d.ts.map +1 -1
- package/dist/docusaurus/generator.js +50 -140
- package/dist/docusaurus/generator.js.map +1 -1
- package/dist/docusaurus/renderers/descriptiontype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/descriptiontype.js +11 -138
- package/dist/docusaurus/renderers/descriptiontype.js.map +1 -1
- package/dist/docusaurus/renderers/docinternalstype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/docinternalstype.js +0 -24
- package/dist/docusaurus/renderers/docinternalstype.js.map +1 -1
- package/dist/docusaurus/renderers/doclisttype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/doclisttype.js +0 -22
- package/dist/docusaurus/renderers/doclisttype.js.map +1 -1
- package/dist/docusaurus/renderers/doctabletype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/doctabletype.js +1 -25
- package/dist/docusaurus/renderers/doctabletype.js.map +1 -1
- package/dist/docusaurus/renderers/doctitletype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/doctitletype.js +0 -20
- package/dist/docusaurus/renderers/doctitletype.js.map +1 -1
- package/dist/docusaurus/renderers/docvariablelisttype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/docvariablelisttype.js +1 -25
- package/dist/docusaurus/renderers/docvariablelisttype.js.map +1 -1
- package/dist/docusaurus/renderers/docxrefsecttype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/docxrefsecttype.js +0 -16
- package/dist/docusaurus/renderers/docxrefsecttype.js.map +1 -1
- package/dist/docusaurus/renderers/element-renderer-base.d.ts.map +1 -1
- package/dist/docusaurus/renderers/element-renderer-base.js +0 -12
- package/dist/docusaurus/renderers/element-renderer-base.js.map +1 -1
- package/dist/docusaurus/renderers/inctype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/inctype.js +0 -18
- package/dist/docusaurus/renderers/inctype.js.map +1 -1
- package/dist/docusaurus/renderers/linkedtexttype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/linkedtexttype.js +0 -23
- package/dist/docusaurus/renderers/linkedtexttype.js.map +1 -1
- package/dist/docusaurus/renderers/listingtype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/listingtype.js +1 -24
- package/dist/docusaurus/renderers/listingtype.js.map +1 -1
- package/dist/docusaurus/renderers/paramtype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/paramtype.js +2 -29
- package/dist/docusaurus/renderers/paramtype.js.map +1 -1
- package/dist/docusaurus/renderers/referencetype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/referencetype.js +0 -17
- package/dist/docusaurus/renderers/referencetype.js.map +1 -1
- package/dist/docusaurus/renderers/reftexttype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/reftexttype.js +0 -16
- package/dist/docusaurus/renderers/reftexttype.js.map +1 -1
- package/dist/docusaurus/renderers/reftype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/reftype.js +0 -16
- package/dist/docusaurus/renderers/reftype.js.map +1 -1
- package/dist/docusaurus/renderers/renderers.d.ts.map +1 -1
- package/dist/docusaurus/renderers/renderers.js +4 -33
- package/dist/docusaurus/renderers/renderers.js.map +1 -1
- package/dist/docusaurus/renderers/substringtype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/substringtype.js +0 -17
- package/dist/docusaurus/renderers/substringtype.js.map +1 -1
- package/dist/docusaurus/renderers/tableofcontentstype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/tableofcontentstype.js +0 -17
- package/dist/docusaurus/renderers/tableofcontentstype.js.map +1 -1
- package/dist/docusaurus/types.d.ts +4 -8
- 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.map +1 -1
- package/dist/docusaurus/utils.js +0 -82
- package/dist/docusaurus/utils.js.map +1 -1
- package/dist/docusaurus/view-model/classes-vm.d.ts +2 -2
- package/dist/docusaurus/view-model/classes-vm.d.ts.map +1 -1
- package/dist/docusaurus/view-model/classes-vm.js +12 -87
- package/dist/docusaurus/view-model/classes-vm.js.map +1 -1
- package/dist/docusaurus/view-model/collection-base.d.ts +2 -2
- package/dist/docusaurus/view-model/collection-base.d.ts.map +1 -1
- package/dist/docusaurus/view-model/collection-base.js +11 -23
- package/dist/docusaurus/view-model/collection-base.js.map +1 -1
- package/dist/docusaurus/view-model/compound-base-vm.d.ts +2 -32
- package/dist/docusaurus/view-model/compound-base-vm.d.ts.map +1 -1
- package/dist/docusaurus/view-model/compound-base-vm.js +47 -129
- 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.map +1 -1
- package/dist/docusaurus/view-model/description-anchors.js +0 -13
- package/dist/docusaurus/view-model/description-anchors.js.map +1 -1
- package/dist/docusaurus/view-model/files-and-folders-vm.d.ts +2 -2
- package/dist/docusaurus/view-model/files-and-folders-vm.d.ts.map +1 -1
- package/dist/docusaurus/view-model/files-and-folders-vm.js +64 -110
- package/dist/docusaurus/view-model/files-and-folders-vm.js.map +1 -1
- package/dist/docusaurus/view-model/groups-vm.d.ts +2 -2
- package/dist/docusaurus/view-model/groups-vm.d.ts.map +1 -1
- package/dist/docusaurus/view-model/groups-vm.js +7 -80
- package/dist/docusaurus/view-model/groups-vm.js.map +1 -1
- package/dist/docusaurus/view-model/members-vm.d.ts.map +1 -1
- package/dist/docusaurus/view-model/members-vm.js +17 -154
- package/dist/docusaurus/view-model/members-vm.js.map +1 -1
- package/dist/docusaurus/view-model/namespaces-vm.d.ts +6 -2
- package/dist/docusaurus/view-model/namespaces-vm.d.ts.map +1 -1
- package/dist/docusaurus/view-model/namespaces-vm.js +82 -89
- package/dist/docusaurus/view-model/namespaces-vm.js.map +1 -1
- package/dist/docusaurus/view-model/options.d.ts.map +1 -1
- package/dist/docusaurus/view-model/options.js +0 -14
- package/dist/docusaurus/view-model/options.js.map +1 -1
- package/dist/docusaurus/view-model/pages-vm.d.ts +2 -2
- package/dist/docusaurus/view-model/pages-vm.d.ts.map +1 -1
- package/dist/docusaurus/view-model/pages-vm.js +3 -50
- package/dist/docusaurus/view-model/pages-vm.js.map +1 -1
- package/dist/docusaurus/view-model/tree-entries-vm.d.ts +8 -22
- package/dist/docusaurus/view-model/tree-entries-vm.d.ts.map +1 -1
- package/dist/docusaurus/view-model/tree-entries-vm.js +54 -54
- package/dist/docusaurus/view-model/tree-entries-vm.js.map +1 -1
- package/dist/docusaurus/view-model/view-model.d.ts +0 -6
- package/dist/docusaurus/view-model/view-model.d.ts.map +1 -1
- package/dist/docusaurus/view-model/view-model.js +20 -63
- package/dist/docusaurus/view-model/view-model.js.map +1 -1
- package/dist/docusaurus/workspace.d.ts +1 -20
- package/dist/docusaurus/workspace.d.ts.map +1 -1
- package/dist/docusaurus/workspace.js +9 -116
- package/dist/docusaurus/workspace.js.map +1 -1
- package/dist/doxygen/data-model/compounds/compounddef-dm.d.ts +5 -7
- package/dist/doxygen/data-model/compounds/compounddef-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/compounddef-dm.js +23 -187
- package/dist/doxygen/data-model/compounds/compounddef-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/compoundreftype-dm.d.ts +0 -9
- package/dist/doxygen/data-model/compounds/compoundreftype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/compoundreftype-dm.js +1 -47
- package/dist/doxygen/data-model/compounds/compoundreftype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/descriptiontype-dm.d.ts +0 -39
- package/dist/doxygen/data-model/compounds/descriptiontype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/descriptiontype-dm.js +36 -1308
- package/dist/doxygen/data-model/compounds/descriptiontype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/docvarlistentrytype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/docvarlistentrytype-dm.js +0 -64
- package/dist/doxygen/data-model/compounds/docvarlistentrytype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/doxygentype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/doxygentype-dm.js +0 -35
- package/dist/doxygen/data-model/compounds/doxygentype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/enumvaluetype-dm.d.ts +0 -6
- package/dist/doxygen/data-model/compounds/enumvaluetype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/enumvaluetype-dm.js +1 -44
- package/dist/doxygen/data-model/compounds/enumvaluetype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/inctype-dm.d.ts +0 -9
- package/dist/doxygen/data-model/compounds/inctype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/inctype-dm.js +3 -48
- package/dist/doxygen/data-model/compounds/inctype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/linkedtexttype-dm.d.ts +3 -15
- package/dist/doxygen/data-model/compounds/linkedtexttype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/linkedtexttype-dm.js +5 -57
- package/dist/doxygen/data-model/compounds/linkedtexttype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/listofallmemberstype-dm.d.ts +0 -6
- package/dist/doxygen/data-model/compounds/listofallmemberstype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/listofallmemberstype-dm.js +0 -38
- package/dist/doxygen/data-model/compounds/listofallmemberstype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/locationtype-dm.d.ts +0 -6
- package/dist/doxygen/data-model/compounds/locationtype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/locationtype-dm.js +4 -52
- package/dist/doxygen/data-model/compounds/locationtype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/memberdeftype-dm.d.ts +2 -10
- package/dist/doxygen/data-model/compounds/memberdeftype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/memberdeftype-dm.js +19 -64
- package/dist/doxygen/data-model/compounds/memberdeftype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/memberreftype-dm.d.ts +0 -6
- package/dist/doxygen/data-model/compounds/memberreftype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/memberreftype-dm.js +1 -45
- package/dist/doxygen/data-model/compounds/memberreftype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/membertype-dm.d.ts +0 -6
- package/dist/doxygen/data-model/compounds/membertype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/membertype-dm.js +0 -43
- package/dist/doxygen/data-model/compounds/membertype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/paramtype-dm.d.ts +0 -6
- package/dist/doxygen/data-model/compounds/paramtype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/paramtype-dm.js +0 -51
- package/dist/doxygen/data-model/compounds/paramtype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/referencetype-dm.d.ts +0 -9
- package/dist/doxygen/data-model/compounds/referencetype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/referencetype-dm.js +2 -47
- package/dist/doxygen/data-model/compounds/referencetype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/reftexttype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/reftexttype-dm.js +2 -38
- package/dist/doxygen/data-model/compounds/reftexttype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/reftype-dm.d.ts +0 -21
- package/dist/doxygen/data-model/compounds/reftype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/reftype-dm.js +4 -82
- package/dist/doxygen/data-model/compounds/reftype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/reimplementtype-dm.d.ts +0 -6
- package/dist/doxygen/data-model/compounds/reimplementtype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/reimplementtype-dm.js +1 -42
- package/dist/doxygen/data-model/compounds/reimplementtype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/sectiondeftype-dm.d.ts +0 -9
- package/dist/doxygen/data-model/compounds/sectiondeftype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/sectiondeftype-dm.js +0 -53
- package/dist/doxygen/data-model/compounds/sectiondeftype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/tableofcontentstype-dm.d.ts +0 -12
- package/dist/doxygen/data-model/compounds/tableofcontentstype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/tableofcontentstype-dm.js +0 -105
- package/dist/doxygen/data-model/compounds/tableofcontentstype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/templateparamlisttype-dm.d.ts +0 -6
- package/dist/doxygen/data-model/compounds/templateparamlisttype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/templateparamlisttype-dm.js +0 -38
- package/dist/doxygen/data-model/compounds/templateparamlisttype-dm.js.map +1 -1
- package/dist/doxygen/data-model/data-model.d.ts +0 -65
- package/dist/doxygen/data-model/data-model.d.ts.map +1 -1
- package/dist/doxygen/data-model/data-model.js +4 -115
- package/dist/doxygen/data-model/data-model.js.map +1 -1
- package/dist/doxygen/data-model/doxyfile/doxyfileoptiontype-dm.d.ts +0 -6
- package/dist/doxygen/data-model/doxyfile/doxyfileoptiontype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/doxyfile/doxyfileoptiontype-dm.js +4 -47
- package/dist/doxygen/data-model/doxyfile/doxyfileoptiontype-dm.js.map +1 -1
- package/dist/doxygen/data-model/doxyfile/doxyfiletype-dm.d.ts +0 -6
- package/dist/doxygen/data-model/doxyfile/doxyfiletype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/doxyfile/doxyfiletype-dm.js +0 -40
- package/dist/doxygen/data-model/doxyfile/doxyfiletype-dm.js.map +1 -1
- package/dist/doxygen/data-model/doxygen-xml-parser.d.ts +0 -236
- package/dist/doxygen/data-model/doxygen-xml-parser.d.ts.map +1 -1
- package/dist/doxygen/data-model/doxygen-xml-parser.js +0 -289
- package/dist/doxygen/data-model/doxygen-xml-parser.js.map +1 -1
- package/dist/doxygen/data-model/index/indexcompoundtype-dm.d.ts +0 -6
- package/dist/doxygen/data-model/index/indexcompoundtype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/index/indexcompoundtype-dm.js +2 -45
- package/dist/doxygen/data-model/index/indexcompoundtype-dm.js.map +1 -1
- package/dist/doxygen/data-model/index/indexdoxygentype-dm.d.ts +0 -6
- package/dist/doxygen/data-model/index/indexdoxygentype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/index/indexdoxygentype-dm.js +0 -41
- package/dist/doxygen/data-model/index/indexdoxygentype-dm.js.map +1 -1
- package/dist/doxygen/data-model/index/indexmembertype-dm.d.ts +0 -6
- package/dist/doxygen/data-model/index/indexmembertype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/index/indexmembertype-dm.js +1 -43
- package/dist/doxygen/data-model/index/indexmembertype-dm.js.map +1 -1
- package/dist/doxygen/data-model/types.d.ts +1 -10
- package/dist/doxygen/data-model/types.d.ts.map +1 -1
- package/dist/doxygen/data-model/types.js +0 -15
- 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 +53 -56
- 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 -1147
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/dist/tsdoc-metadata.json +0 -11
- /package/{template → templates}/css/custom.css +0 -0
- /package/{template → templates}/img/README.md +0 -0
- /package/{template → templates}/img/document-svgrepo-com.svg +0 -0
- /package/{template → templates}/img/folder-svgrepo-com.svg +0 -0
|
@@ -0,0 +1,409 @@
|
|
|
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
|
+
|
|
16
|
+
// ----------------------------------------------------------------------------
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Formats a Date object into a standardised UTC string representation.
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* Produces a timestamp in the format "YYYY-MM-DD HH:mm:ss +0000" using
|
|
23
|
+
* UTC timezone for consistent date formatting across different environments.
|
|
24
|
+
* This format ensures reproducible timestamps regardless of the local
|
|
25
|
+
* system timezone, which is essential for documentation generation consistency.
|
|
26
|
+
*
|
|
27
|
+
* @param date - The Date object to format.
|
|
28
|
+
* @returns A formatted date string in UTC with timezone offset.
|
|
29
|
+
*
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
export function formatDate(date: Date): string {
|
|
33
|
+
// Custom format: YYYY-MM-DD HH:mm:ss
|
|
34
|
+
const year = date.getUTCFullYear()
|
|
35
|
+
// The +1 is needed because months are zero-based.
|
|
36
|
+
const month = String(date.getUTCMonth() + 1).padStart(2, '0')
|
|
37
|
+
const day = String(date.getUTCDate()).padStart(2, '0')
|
|
38
|
+
const hours = String(date.getUTCHours()).padStart(2, '0')
|
|
39
|
+
const minutes = String(date.getUTCMinutes()).padStart(2, '0')
|
|
40
|
+
const seconds = String(date.getUTCSeconds()).padStart(2, '0')
|
|
41
|
+
|
|
42
|
+
return (
|
|
43
|
+
`${year.toString()}-${month}-${day} ${hours}:${minutes}:${seconds} ` +
|
|
44
|
+
'+0000'
|
|
45
|
+
)
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Formats a duration value into a human-readable string representation.
|
|
50
|
+
*
|
|
51
|
+
* @remarks
|
|
52
|
+
* Converts millisecond values into appropriate units (milliseconds, seconds,
|
|
53
|
+
* or minutes) with appropriate precision for display purposes. The function
|
|
54
|
+
* automatically selects the most suitable unit based on the magnitude of
|
|
55
|
+
* the duration value to ensure optimal readability for performance reporting.
|
|
56
|
+
*
|
|
57
|
+
* @param n - The duration in milliseconds.
|
|
58
|
+
* @returns A formatted duration string with appropriate units.
|
|
59
|
+
*
|
|
60
|
+
* @public
|
|
61
|
+
*/
|
|
62
|
+
export function formatDuration(n: number): string {
|
|
63
|
+
if (n < 1000) {
|
|
64
|
+
return `${n.toString()} ms`
|
|
65
|
+
} else if (n < 100000) {
|
|
66
|
+
return `${(n / 1000).toFixed(1)} sec`
|
|
67
|
+
} else {
|
|
68
|
+
return `${(n / 60000).toFixed(1)} min`
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// ----------------------------------------------------------------------------
|
|
73
|
+
|
|
74
|
+
// /**
|
|
75
|
+
// * Escape characters that are problematic in MDX/JSX context.
|
|
76
|
+
// * This includes HTML special chars and MDX/JSX delimiters.
|
|
77
|
+
// */
|
|
78
|
+
// export function escapeMdx (text: string): string {
|
|
79
|
+
// return text
|
|
80
|
+
// .replaceAll(/[&]/g, '&')
|
|
81
|
+
// .replaceAll(/[<]/g, '<')
|
|
82
|
+
// .replaceAll(/[>]/g, '>')
|
|
83
|
+
// .replaceAll(/["]/g, '"')
|
|
84
|
+
// .replaceAll(/[']/g, ''')
|
|
85
|
+
// .replaceAll(/[`]/g, '`')
|
|
86
|
+
// .replaceAll(/{/g, '{')
|
|
87
|
+
// .replaceAll(/}/g, '}')
|
|
88
|
+
// .replaceAll(/\[/g, '[')
|
|
89
|
+
// .replaceAll(/\]/g, ']')
|
|
90
|
+
// .replaceAll(/~/g, '~')
|
|
91
|
+
// .replaceAll(/[\\]/g, '\\\\')
|
|
92
|
+
// .replaceAll(/\*/g, '*') // Markdown for bold
|
|
93
|
+
// .replaceAll(/_/g, '_') // Markdown for italics
|
|
94
|
+
// }
|
|
95
|
+
|
|
96
|
+
// export function encodeUrl (text: string): string {
|
|
97
|
+
// return text
|
|
98
|
+
// .replaceAll(/[<]/g, '%3C')
|
|
99
|
+
// .replaceAll(/[>]/g, '%3E')
|
|
100
|
+
// .replaceAll(/[(]/g, '%28')
|
|
101
|
+
// .replaceAll(/[)]/g, '%29')
|
|
102
|
+
// .replaceAll(/[&]/g, '%26')
|
|
103
|
+
// .replaceAll(/[*]/g, '%2A')
|
|
104
|
+
// }
|
|
105
|
+
|
|
106
|
+
// /**
|
|
107
|
+
// * Escape characters that are problematic in a markdown context.
|
|
108
|
+
// * This includes HTML special chars and markdown delimiters.
|
|
109
|
+
// */
|
|
110
|
+
// export function escapeMarkdown (text: string): string {
|
|
111
|
+
// return text
|
|
112
|
+
// .replaceAll(/&/g, '&')
|
|
113
|
+
// .replaceAll(/</g, '<')
|
|
114
|
+
// .replaceAll(/>/g, '>')
|
|
115
|
+
// .replaceAll(/\\/g, '\\\\') // Must be placed before \[ \]
|
|
116
|
+
// .replaceAll(/\[/g, '\\[')
|
|
117
|
+
// .replaceAll(/\]/g, '\\]')
|
|
118
|
+
// .replaceAll(/\*/g, '\\*') // Markdown for bold
|
|
119
|
+
// .replaceAll(/_/g, '\\_') // Markdown for italics
|
|
120
|
+
// .replaceAll(/~/g, '\\~') // Markdown for strikethrough in GFM
|
|
121
|
+
// }
|
|
122
|
+
|
|
123
|
+
// /**
|
|
124
|
+
// * In <code></code> only a few characters need to be escaped.
|
|
125
|
+
// */
|
|
126
|
+
// export function escapeHtml (text: string): string {
|
|
127
|
+
// return text
|
|
128
|
+
// .replaceAll(/&/g, '&')
|
|
129
|
+
// .replaceAll(/</g, '<')
|
|
130
|
+
// .replaceAll(/>/g, '>')
|
|
131
|
+
// }
|
|
132
|
+
|
|
133
|
+
// export function escapeQuotes (text: string): string {
|
|
134
|
+
// return text
|
|
135
|
+
// .replaceAll(/"/g, '"')
|
|
136
|
+
// }
|
|
137
|
+
|
|
138
|
+
// // type='plain-html'
|
|
139
|
+
// export function escapeBraces (text: string): string {
|
|
140
|
+
// return text
|
|
141
|
+
// .replaceAll(/{/g, '{') // MD
|
|
142
|
+
// .replaceAll(/}/g, '}') // MD
|
|
143
|
+
// }
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Removes empty lines from a text string.
|
|
147
|
+
*
|
|
148
|
+
* @remarks
|
|
149
|
+
* Eliminates lines that contain only whitespace characters, helping to
|
|
150
|
+
* clean up text content for documentation processing. This function is
|
|
151
|
+
* particularly useful for normalising content extracted from XML sources
|
|
152
|
+
* where formatting artefacts may introduce unwanted empty lines.
|
|
153
|
+
*
|
|
154
|
+
* @param text - The input text to process.
|
|
155
|
+
* @returns The text with empty lines removed.
|
|
156
|
+
*
|
|
157
|
+
* @public
|
|
158
|
+
*/
|
|
159
|
+
export function removeEmptyLines(text: string): string {
|
|
160
|
+
return text.replace(/^\s*$(?:\r\n?|\n)/gm, '')
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Sanitises text for use in hierarchical URL paths.
|
|
165
|
+
*
|
|
166
|
+
* @remarks
|
|
167
|
+
* Transforms text into a URL-safe format suitable for hierarchical paths
|
|
168
|
+
* by converting to lowercase, removing spaces, encoding special characters,
|
|
169
|
+
* and preserving forward slashes for path structure. This function ensures
|
|
170
|
+
* that generated URLs are compatible with web standards whilst maintaining
|
|
171
|
+
* the hierarchical nature of documentation structures.
|
|
172
|
+
*
|
|
173
|
+
* @param text - The input text to sanitise.
|
|
174
|
+
* @returns A URL-safe hierarchical path string.
|
|
175
|
+
*
|
|
176
|
+
* @public
|
|
177
|
+
*/
|
|
178
|
+
// Preserve '/' too.
|
|
179
|
+
export function sanitizeHierarchicalPath(text: string): string {
|
|
180
|
+
return text
|
|
181
|
+
.toLowerCase()
|
|
182
|
+
.replaceAll(/[ ]*/g, '')
|
|
183
|
+
.replaceAll(/\*/g, '2a')
|
|
184
|
+
.replaceAll(/&/g, '26')
|
|
185
|
+
.replaceAll(/</g, '3c')
|
|
186
|
+
.replaceAll(/>/g, '3e')
|
|
187
|
+
.replaceAll(/\(/g, '28')
|
|
188
|
+
.replaceAll(/\)/g, '29')
|
|
189
|
+
.replaceAll(/[^a-zA-Z0-9/-]/g, '-')
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Sanitises anonymous namespace identifiers for better readability.
|
|
194
|
+
*
|
|
195
|
+
* @remarks
|
|
196
|
+
* Simplifies the representation of anonymous namespaces by removing
|
|
197
|
+
* redundant text whilst preserving the essential identifying information.
|
|
198
|
+
* This transformation improves the readability of documentation by reducing
|
|
199
|
+
* verbose namespace representations commonly generated by Doxygen.
|
|
200
|
+
*
|
|
201
|
+
* @param text - The namespace identifier to sanitise.
|
|
202
|
+
* @returns A cleaner namespace identifier.
|
|
203
|
+
*
|
|
204
|
+
* @public
|
|
205
|
+
*/
|
|
206
|
+
export function sanitizeAnonymousNamespace(text: string): string {
|
|
207
|
+
return text.replaceAll(/anonymous_namespace\{/g, 'anonymous{')
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Flattens a hierarchical path by replacing separators with hyphens.
|
|
212
|
+
*
|
|
213
|
+
* @remarks
|
|
214
|
+
* Converts forward slashes to hyphens to create a flat string suitable
|
|
215
|
+
* for use in contexts where hierarchical separators are not appropriate.
|
|
216
|
+
* This is particularly useful for creating file names or identifiers
|
|
217
|
+
* that must not contain path separators whilst preserving readability.
|
|
218
|
+
*
|
|
219
|
+
* @param text - The hierarchical path to flatten.
|
|
220
|
+
* @returns A flattened path string with hyphens instead of slashes.
|
|
221
|
+
*
|
|
222
|
+
* @public
|
|
223
|
+
*/
|
|
224
|
+
export function flattenPath(text: string): string {
|
|
225
|
+
return text.replaceAll('/', '-')
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Removes hexadecimal anchor suffixes from reference identifiers.
|
|
230
|
+
*
|
|
231
|
+
* @remarks
|
|
232
|
+
* Strips trailing hexadecimal anchor patterns from Doxygen reference
|
|
233
|
+
* identifiers to obtain the base reference without anchor information.
|
|
234
|
+
* This is essential for creating clean reference links whilst preserving
|
|
235
|
+
* the ability to extract anchor information separately when needed.
|
|
236
|
+
*
|
|
237
|
+
* @param refid - The reference identifier to process.
|
|
238
|
+
* @returns The reference identifier with hexadecimal anchor removed.
|
|
239
|
+
*
|
|
240
|
+
* @public
|
|
241
|
+
*/
|
|
242
|
+
export function stripPermalinkHexAnchor(refid: string): string {
|
|
243
|
+
return refid.replace(/_1[0-9a-fg]*$/, '')
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Removes text anchor suffixes from reference identifiers.
|
|
248
|
+
*
|
|
249
|
+
* @remarks
|
|
250
|
+
* Strips trailing text-based anchor patterns from Doxygen reference
|
|
251
|
+
* identifiers to obtain the base reference without anchor information.
|
|
252
|
+
* This complements the hexadecimal anchor removal function by handling
|
|
253
|
+
* text-based anchor patterns that may appear in certain Doxygen outputs.
|
|
254
|
+
*
|
|
255
|
+
* @param refid - The reference identifier to process.
|
|
256
|
+
* @returns The reference identifier with text anchor removed.
|
|
257
|
+
*
|
|
258
|
+
* @public
|
|
259
|
+
*/
|
|
260
|
+
export function stripPermalinkTextAnchor(refid: string): string {
|
|
261
|
+
return refid.replace(/_1_[0-9a-z]*$/, '')
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* Removes leading newline characters from text.
|
|
266
|
+
*
|
|
267
|
+
* @remarks
|
|
268
|
+
* Strips newline characters from the beginning of a text string whilst
|
|
269
|
+
* preserving the remainder of the content. This function is useful for
|
|
270
|
+
* cleaning up text content that may have unwanted leading whitespace
|
|
271
|
+
* from XML parsing or template processing operations.
|
|
272
|
+
*
|
|
273
|
+
* @param text - The input text to process.
|
|
274
|
+
* @returns The text with leading newlines removed.
|
|
275
|
+
*
|
|
276
|
+
* @public
|
|
277
|
+
*/
|
|
278
|
+
export function stripLeadingNewLines(text: string): string {
|
|
279
|
+
return text.replace(/^[\r\n]+/, '')
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Removes trailing whitespace and newline characters from text.
|
|
284
|
+
*
|
|
285
|
+
* @remarks
|
|
286
|
+
* Strips trailing spaces, carriage returns, and newlines from the end
|
|
287
|
+
* of a text string whilst preserving the main content. This function
|
|
288
|
+
* ensures clean text output by removing formatting artefacts that may
|
|
289
|
+
* interfere with proper Markdown rendering or display.
|
|
290
|
+
*
|
|
291
|
+
* @param text - The input text to process.
|
|
292
|
+
* @returns The text with trailing whitespace and newlines removed.
|
|
293
|
+
*
|
|
294
|
+
* @public
|
|
295
|
+
*/
|
|
296
|
+
export function stripTrailingNewLines(text: string): string {
|
|
297
|
+
return text.replace(/[ \r\n]+$/, '')
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* Removes both leading and trailing newline characters from text.
|
|
302
|
+
*
|
|
303
|
+
* @remarks
|
|
304
|
+
* Combines the functionality of stripping both leading and trailing
|
|
305
|
+
* newlines to clean up text content for processing. This comprehensive
|
|
306
|
+
* cleaning function is particularly useful for normalising content
|
|
307
|
+
* extracted from various sources that may have inconsistent whitespace.
|
|
308
|
+
*
|
|
309
|
+
* @param text - The input text to process.
|
|
310
|
+
* @returns The text with leading and trailing newlines removed.
|
|
311
|
+
*
|
|
312
|
+
* @public
|
|
313
|
+
*/
|
|
314
|
+
export function stripLeadingAndTrailingNewLines(text: string): string {
|
|
315
|
+
return text.replace(/^[\r\n]+/, '').replace(/[ \r\n]+$/, '')
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Extracts the anchor portion from a reference identifier.
|
|
320
|
+
*
|
|
321
|
+
* @remarks
|
|
322
|
+
* Retrieves the anchor part of a Doxygen reference identifier by removing
|
|
323
|
+
* the base reference portion and returning only the anchor suffix. This
|
|
324
|
+
* function is essential for creating proper internal links within
|
|
325
|
+
* documentation pages where anchor-based navigation is required.
|
|
326
|
+
*
|
|
327
|
+
* @param refid - The reference identifier to process.
|
|
328
|
+
* @returns The anchor portion of the reference identifier.
|
|
329
|
+
*
|
|
330
|
+
* @public
|
|
331
|
+
*/
|
|
332
|
+
export function getPermalinkAnchor(refid: string): string {
|
|
333
|
+
return refid.replace(/^.*_1/, '')
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* Checks whether a folder exists at the specified path.
|
|
338
|
+
*
|
|
339
|
+
* @remarks
|
|
340
|
+
* Asynchronously verifies the existence of a directory at the given path
|
|
341
|
+
* and confirms that it is indeed a directory rather than a file. This
|
|
342
|
+
* function provides safe filesystem access with proper error handling
|
|
343
|
+
* for cases where the path does not exist or is inaccessible.
|
|
344
|
+
*
|
|
345
|
+
* @param folderPath - The path to check for folder existence.
|
|
346
|
+
* @returns A promise that resolves to true if the folder exists.
|
|
347
|
+
*
|
|
348
|
+
* @public
|
|
349
|
+
*/
|
|
350
|
+
export async function folderExists(folderPath: string): Promise<boolean> {
|
|
351
|
+
try {
|
|
352
|
+
const stat = await fs.stat(folderPath)
|
|
353
|
+
return stat.isDirectory()
|
|
354
|
+
} catch {
|
|
355
|
+
return false
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* Joins an array of strings with different delimiters for the final item.
|
|
361
|
+
*
|
|
362
|
+
* @remarks
|
|
363
|
+
* Concatenates array elements using a standard delimiter between most items
|
|
364
|
+
* and a special delimiter before the last item, useful for creating
|
|
365
|
+
* grammatically correct lists (e.g., "A, B, and C"). This function ensures
|
|
366
|
+
* proper English grammar in generated text whilst handling edge cases
|
|
367
|
+
* such as empty arrays and single-item arrays appropriately.
|
|
368
|
+
*
|
|
369
|
+
* @param arr - The array of strings to join.
|
|
370
|
+
* @param delimiter - The standard delimiter between items.
|
|
371
|
+
* @param lastDelimiter - The special delimiter before the last item.
|
|
372
|
+
* @returns The joined string with appropriate delimiters.
|
|
373
|
+
*
|
|
374
|
+
* @public
|
|
375
|
+
*/
|
|
376
|
+
export function joinWithLast(
|
|
377
|
+
arr: string[],
|
|
378
|
+
delimiter: string,
|
|
379
|
+
lastDelimiter: string
|
|
380
|
+
): string {
|
|
381
|
+
if (arr.length === 0) return ''
|
|
382
|
+
if (arr.length === 1) return arr[0]
|
|
383
|
+
return arr.slice(0, -1).join(delimiter) + lastDelimiter + arr[arr.length - 1]
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* Validates whether a string represents a valid URL.
|
|
388
|
+
*
|
|
389
|
+
* @remarks
|
|
390
|
+
* Attempts to construct a URL object from the input string to determine
|
|
391
|
+
* if it represents a valid, well-formed URL. This validation method
|
|
392
|
+
* leverages the native URL constructor's built-in validation capabilities
|
|
393
|
+
* to provide robust URL checking without implementing custom parsing logic.
|
|
394
|
+
*
|
|
395
|
+
* @param str - The string to validate as a URL.
|
|
396
|
+
* @returns True if the string is a valid URL, false otherwise.
|
|
397
|
+
*
|
|
398
|
+
* @public
|
|
399
|
+
*/
|
|
400
|
+
export function isUrl(str: string): boolean {
|
|
401
|
+
try {
|
|
402
|
+
new URL(str)
|
|
403
|
+
return true
|
|
404
|
+
} catch {
|
|
405
|
+
return false
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
// ----------------------------------------------------------------------------
|