@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,95 @@
|
|
|
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 util from 'node:util'
|
|
15
|
+
import assert from 'node:assert'
|
|
16
|
+
|
|
17
|
+
import type { DoxygenFileOptionDataModel } from '../../doxygen/data-model/doxyfile/doxyfileoptiontype-dm.js'
|
|
18
|
+
|
|
19
|
+
// ----------------------------------------------------------------------------
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Manages Doxygen file configuration options and provides access methods.
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* Organises Doxygen configuration options by identifier and provides
|
|
26
|
+
* convenient methods for retrieving option values in different formats.
|
|
27
|
+
* Used to access project-specific settings from the Doxygen configuration.
|
|
28
|
+
*
|
|
29
|
+
* @public
|
|
30
|
+
*/
|
|
31
|
+
export class DoxygenFileOptions {
|
|
32
|
+
membersById: Map<string, DoxygenFileOptionDataModel>
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Creates a new Doxygen file options manager.
|
|
36
|
+
*
|
|
37
|
+
* @remarks
|
|
38
|
+
* Builds an indexed map of configuration options for efficient lookup
|
|
39
|
+
* by option identifier. Validates that options are provided.
|
|
40
|
+
*
|
|
41
|
+
* @param options - Array of Doxygen file option data models
|
|
42
|
+
* @throws Assertion error if options array is undefined
|
|
43
|
+
*/
|
|
44
|
+
constructor(options: DoxygenFileOptionDataModel[] | undefined) {
|
|
45
|
+
this.membersById = new Map()
|
|
46
|
+
|
|
47
|
+
assert(options !== undefined)
|
|
48
|
+
for (const option of options) {
|
|
49
|
+
this.membersById.set(option.id, option)
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Retrieves a string option value by identifier.
|
|
55
|
+
*
|
|
56
|
+
* @remarks
|
|
57
|
+
* Extracts the raw string value from a Doxygen configuration option.
|
|
58
|
+
* Validates that the option exists and contains exactly one string value.
|
|
59
|
+
*
|
|
60
|
+
* @param optionId - Identifier of the configuration option
|
|
61
|
+
* @returns The string value of the specified option
|
|
62
|
+
* @throws Assertion error if option is missing or has invalid format
|
|
63
|
+
*/
|
|
64
|
+
getOptionStringValue(optionId: string): string {
|
|
65
|
+
const option = this.membersById.get(optionId)
|
|
66
|
+
assert(option !== undefined)
|
|
67
|
+
assert(option.values !== undefined)
|
|
68
|
+
assert(option.values.length === 1)
|
|
69
|
+
assert(typeof option.values[0] === 'string')
|
|
70
|
+
return option.values[0]
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Retrieves a CDATA option value with quote removal.
|
|
75
|
+
*
|
|
76
|
+
* @remarks
|
|
77
|
+
* Extracts the string value from a Doxygen configuration option and
|
|
78
|
+
* removes surrounding double quotes that are commonly present in
|
|
79
|
+
* CDATA sections. Useful for path and string configuration values.
|
|
80
|
+
*
|
|
81
|
+
* @param optionId - Identifier of the configuration option
|
|
82
|
+
* @returns The unquoted string value of the specified option
|
|
83
|
+
* @throws Assertion error if option is missing or has invalid format
|
|
84
|
+
*/
|
|
85
|
+
getOptionCdataValue(optionId: string): string {
|
|
86
|
+
const option = this.membersById.get(optionId)
|
|
87
|
+
assert(option !== undefined)
|
|
88
|
+
assert(option.values !== undefined)
|
|
89
|
+
assert(option.values.length === 1)
|
|
90
|
+
assert(typeof option.values[0] === 'string')
|
|
91
|
+
return option.values[0].replace(/^"/, '').replace(/"$/, '')
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// ----------------------------------------------------------------------------
|
|
@@ -0,0 +1,342 @@
|
|
|
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 util from 'node:util'
|
|
15
|
+
import assert from 'node:assert'
|
|
16
|
+
|
|
17
|
+
import { CompoundBase } from './compound-base-vm.js'
|
|
18
|
+
import type { CompoundDefDataModel } from '../../doxygen/data-model/compounds/compounddef-dm.js'
|
|
19
|
+
import { flattenPath, sanitizeHierarchicalPath } from '../utils.js'
|
|
20
|
+
import { CollectionBase } from './collection-base.js'
|
|
21
|
+
import type {
|
|
22
|
+
NavbarItem,
|
|
23
|
+
SidebarCategory,
|
|
24
|
+
SidebarCategoryItem,
|
|
25
|
+
SidebarDocItem,
|
|
26
|
+
FrontMatter,
|
|
27
|
+
} from '../types.js'
|
|
28
|
+
|
|
29
|
+
// ----------------------------------------------------------------------------
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Manages documentation pages collection for the generated site.
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
* Handles the organisation and generation of standalone documentation
|
|
36
|
+
* pages that are not part of the main API reference, such as the
|
|
37
|
+
* main project page and custom documentation pages.
|
|
38
|
+
*
|
|
39
|
+
* @public
|
|
40
|
+
*/
|
|
41
|
+
export class Pages extends CollectionBase {
|
|
42
|
+
// compoundsById: Map<string, Page>
|
|
43
|
+
|
|
44
|
+
// --------------------------------------------------------------------------
|
|
45
|
+
|
|
46
|
+
// constructor (workspace: Workspace) {
|
|
47
|
+
// super(workspace)
|
|
48
|
+
|
|
49
|
+
// // this.compoundsById = new Map()
|
|
50
|
+
// }
|
|
51
|
+
|
|
52
|
+
// --------------------------------------------------------------------------
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Adds a page compound to the collection.
|
|
56
|
+
*
|
|
57
|
+
* @remarks
|
|
58
|
+
* Creates a new Page instance from the compound definition and registers
|
|
59
|
+
* it in the collection. Special handling is provided for the main index
|
|
60
|
+
* page which becomes the workspace's main page.
|
|
61
|
+
*
|
|
62
|
+
* @param compoundDef - The compound definition for the page
|
|
63
|
+
* @returns The created Page instance
|
|
64
|
+
*/
|
|
65
|
+
override addChild(compoundDef: CompoundDefDataModel): CompoundBase {
|
|
66
|
+
const page = new Page(this, compoundDef)
|
|
67
|
+
this.collectionCompoundsById.set(page.id, page)
|
|
68
|
+
|
|
69
|
+
if (page.id === 'indexpage') {
|
|
70
|
+
this.workspace.mainPage = page
|
|
71
|
+
}
|
|
72
|
+
return page
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// --------------------------------------------------------------------------
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Creates hierarchical relationships between page compounds.
|
|
79
|
+
*
|
|
80
|
+
* @remarks
|
|
81
|
+
* Pages do not have hierarchical relationships, so this method
|
|
82
|
+
* performs no operations. Pages are organised as a flat collection.
|
|
83
|
+
*/
|
|
84
|
+
override createCompoundsHierarchies(): void {
|
|
85
|
+
// There are no pages hierarchies.
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// --------------------------------------------------------------------------
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Adds page items to the sidebar navigation structure.
|
|
92
|
+
*
|
|
93
|
+
* @remarks
|
|
94
|
+
* Creates a "Pages" category in the sidebar and populates it with
|
|
95
|
+
* page entries. Top-level pages may be excluded based on configuration
|
|
96
|
+
* settings when they are displayed at the top of the sidebar.
|
|
97
|
+
*
|
|
98
|
+
* @param sidebarCategory - The main sidebar category to populate
|
|
99
|
+
*/
|
|
100
|
+
override addSidebarItems(sidebarCategory: SidebarCategory): void {
|
|
101
|
+
// Add pages to the sidebar.
|
|
102
|
+
// They are organised as a flat list, no hierarchies.
|
|
103
|
+
const pagesCategory: SidebarCategoryItem = {
|
|
104
|
+
type: 'category',
|
|
105
|
+
label: 'Pages',
|
|
106
|
+
// There is no index page.
|
|
107
|
+
collapsed: true,
|
|
108
|
+
items: [],
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
for (const [pageId, page] of this.collectionCompoundsById) {
|
|
112
|
+
if (
|
|
113
|
+
this.workspace.options.listPagesAtTop &&
|
|
114
|
+
page instanceof Page &&
|
|
115
|
+
page.isTopPage()
|
|
116
|
+
) {
|
|
117
|
+
continue
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
if (pageId === 'indexpage') {
|
|
121
|
+
continue
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
const { sidebarLabel } = page
|
|
125
|
+
if (sidebarLabel === undefined || page.sidebarId === undefined) {
|
|
126
|
+
continue
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
const id = this.workspace.sidebarBaseId + page.sidebarId
|
|
130
|
+
const docItem: SidebarDocItem = {
|
|
131
|
+
type: 'doc',
|
|
132
|
+
label: sidebarLabel,
|
|
133
|
+
id,
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
pagesCategory.items.push(docItem)
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
if (pagesCategory.items.length > 0) {
|
|
140
|
+
sidebarCategory.items.push(pagesCategory)
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Creates sidebar items for top-level pages at the root level.
|
|
146
|
+
*
|
|
147
|
+
* @remarks
|
|
148
|
+
* Conditionally adds page items directly to the main sidebar category
|
|
149
|
+
* when the configuration option to display pages at the top is enabled.
|
|
150
|
+
* This provides prominent placement for important pages outside the
|
|
151
|
+
* standard pages category.
|
|
152
|
+
*
|
|
153
|
+
* @param sidebarCategory - The main sidebar category to populate
|
|
154
|
+
*/
|
|
155
|
+
createTopPagesSidebarItems(sidebarCategory: SidebarCategory): void {
|
|
156
|
+
// Add pages to the sidebar.
|
|
157
|
+
if (!this.workspace.options.listPagesAtTop) {
|
|
158
|
+
// Do not list pages at the top of the sidebar.
|
|
159
|
+
return
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
for (const [pageId, page] of this.collectionCompoundsById) {
|
|
163
|
+
// Skip special pages.
|
|
164
|
+
if (
|
|
165
|
+
pageId === 'indexpage' ||
|
|
166
|
+
!(page instanceof Page && page.isTopPage())
|
|
167
|
+
) {
|
|
168
|
+
continue
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
if (page.sidebarLabel === undefined || page.sidebarId === undefined) {
|
|
172
|
+
continue
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
const docItem: SidebarDocItem = {
|
|
176
|
+
type: 'doc',
|
|
177
|
+
label: page.sidebarLabel,
|
|
178
|
+
id: `${this.workspace.sidebarBaseId}${page.sidebarId}`,
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
sidebarCategory.items.push(docItem)
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
// --------------------------------------------------------------------------
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Creates navigation bar items for pages.
|
|
189
|
+
*
|
|
190
|
+
* @remarks
|
|
191
|
+
* Pages do not appear in the navigation bar by design, so this method
|
|
192
|
+
* returns an empty array. The workspace's main navigation is handled
|
|
193
|
+
* by other compound types such as namespaces and classes.
|
|
194
|
+
*
|
|
195
|
+
* @returns An empty array as pages are not included in navigation
|
|
196
|
+
*/
|
|
197
|
+
override createNavbarItems(): NavbarItem[] {
|
|
198
|
+
// Pages do not show on the menu.
|
|
199
|
+
// Reference 'this' to satisfy the linter.
|
|
200
|
+
return []
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
// --------------------------------------------------------------------------
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Generates index file for pages collection.
|
|
207
|
+
*
|
|
208
|
+
* @remarks
|
|
209
|
+
* Pages do not have a dedicated index file as they are organised
|
|
210
|
+
* as individual standalone documents. This method performs no
|
|
211
|
+
* operations to maintain interface consistency.
|
|
212
|
+
*
|
|
213
|
+
* @returns Promise that resolves immediately
|
|
214
|
+
*/
|
|
215
|
+
override async generateIndexDotMdFile(): Promise<void> {
|
|
216
|
+
// There is no pages index.
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
// ----------------------------------------------------------------------------
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Represents an individual documentation page in the generated site.
|
|
224
|
+
*
|
|
225
|
+
* @remarks
|
|
226
|
+
* Handles standalone documentation pages that are not part of the main
|
|
227
|
+
* API reference structure. Pages can include special content such as
|
|
228
|
+
* the main project page, deprecated items, and custom documentation.
|
|
229
|
+
* The class manages permalink generation, sidebar positioning, and
|
|
230
|
+
* content rendering for these standalone documents.
|
|
231
|
+
*
|
|
232
|
+
* @public
|
|
233
|
+
*/
|
|
234
|
+
export class Page extends CompoundBase {
|
|
235
|
+
/**
|
|
236
|
+
* Initialises a new Page instance.
|
|
237
|
+
*
|
|
238
|
+
* @remarks
|
|
239
|
+
* Constructs the page with appropriate labels, permalinks, and identifiers
|
|
240
|
+
* based on the compound definition. The page title is derived from the
|
|
241
|
+
* compound's title, and relative permalinks are generated using sanitised
|
|
242
|
+
* paths to ensure valid URLs.
|
|
243
|
+
*
|
|
244
|
+
* @param collection - The parent pages collection
|
|
245
|
+
* @param compoundDef - The compound definition containing page data
|
|
246
|
+
*/
|
|
247
|
+
constructor(collection: Pages, compoundDef: CompoundDefDataModel) {
|
|
248
|
+
super(collection, compoundDef)
|
|
249
|
+
|
|
250
|
+
const { title } = compoundDef
|
|
251
|
+
assert(title !== undefined)
|
|
252
|
+
this.sidebarLabel = title.trim().replace(/\.$/, '')
|
|
253
|
+
|
|
254
|
+
const { sidebarLabel } = this
|
|
255
|
+
this.indexName = sidebarLabel
|
|
256
|
+
this.treeEntryName = sidebarLabel
|
|
257
|
+
|
|
258
|
+
this.pageTitle = sidebarLabel
|
|
259
|
+
|
|
260
|
+
const sanitizedPath: string = sanitizeHierarchicalPath(this.compoundName)
|
|
261
|
+
this.relativePermalink = `pages/${sanitizedPath}`
|
|
262
|
+
|
|
263
|
+
this.sidebarId = `pages/${flattenPath(sanitizedPath)}`
|
|
264
|
+
|
|
265
|
+
// SectionDefs for pages?
|
|
266
|
+
assert(compoundDef.sectionDefs === undefined)
|
|
267
|
+
|
|
268
|
+
// console.log('0', this.id)
|
|
269
|
+
// console.log('1', this.compoundName)
|
|
270
|
+
// console.log('2', this.relativePermalink)
|
|
271
|
+
// console.log('3', this.docusaurusId)
|
|
272
|
+
// console.log('4', this.sidebarLabel)
|
|
273
|
+
// console.log('5', this.indexName)
|
|
274
|
+
// console.log()
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
// --------------------------------------------------------------------------
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Determines whether the page should be displayed at the top level.
|
|
281
|
+
*
|
|
282
|
+
* @remarks
|
|
283
|
+
* Special pages such as 'deprecated' and 'todo' are excluded from
|
|
284
|
+
* top-level display as they are considered auxiliary content.
|
|
285
|
+
* All other pages are eligible for prominent placement.
|
|
286
|
+
*
|
|
287
|
+
* @returns True if the page should appear at the top level
|
|
288
|
+
*/
|
|
289
|
+
isTopPage(): boolean {
|
|
290
|
+
if (this.id === 'deprecated' || this.id === 'todo') {
|
|
291
|
+
return false
|
|
292
|
+
}
|
|
293
|
+
return true
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
// --------------------------------------------------------------------------
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Renders the page content to markdown lines.
|
|
300
|
+
*
|
|
301
|
+
* @remarks
|
|
302
|
+
* Generates the complete page content including brief descriptions,
|
|
303
|
+
* inner indices, section indices, detailed descriptions, and sections.
|
|
304
|
+
* A 'more' permalink is provided when detailed descriptions are available
|
|
305
|
+
* to enable navigation to the detailed content section.
|
|
306
|
+
*
|
|
307
|
+
* @param frontMatter - The front matter configuration for the page
|
|
308
|
+
* @returns Array of markdown lines representing the complete page content
|
|
309
|
+
*/
|
|
310
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
311
|
+
override renderToLines(frontMatter: FrontMatter): string[] {
|
|
312
|
+
const lines: string[] = []
|
|
313
|
+
|
|
314
|
+
const morePermalink =
|
|
315
|
+
this.detailedDescriptionHtmlLines !== undefined ? '#details' : undefined
|
|
316
|
+
|
|
317
|
+
lines.push(
|
|
318
|
+
this.renderBriefDescriptionToHtmlString({
|
|
319
|
+
briefDescriptionHtmlString: this.briefDescriptionHtmlString,
|
|
320
|
+
morePermalink,
|
|
321
|
+
})
|
|
322
|
+
)
|
|
323
|
+
|
|
324
|
+
lines.push(...this.renderInnerIndicesToLines({}))
|
|
325
|
+
|
|
326
|
+
lines.push(...this.renderSectionIndicesToLines())
|
|
327
|
+
|
|
328
|
+
lines.push(
|
|
329
|
+
...this.renderDetailedDescriptionToHtmlLines({
|
|
330
|
+
briefDescriptionHtmlString: this.briefDescriptionHtmlString,
|
|
331
|
+
detailedDescriptionHtmlLines: this.detailedDescriptionHtmlLines,
|
|
332
|
+
showHeader: false,
|
|
333
|
+
})
|
|
334
|
+
)
|
|
335
|
+
|
|
336
|
+
lines.push(...this.renderSectionsToLines())
|
|
337
|
+
|
|
338
|
+
return lines
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
// ----------------------------------------------------------------------------
|