@xpack/doxygen2docusaurus 2.0.0 → 2.2.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 +3 -1
- package/bin/doxygen2docusaurus.js +5 -5
- 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/conceptparts.d.ts +9 -0
- package/dist/docusaurus/renderers/conceptparts.d.ts.map +1 -0
- package/dist/docusaurus/renderers/conceptparts.js +21 -0
- package/dist/docusaurus/renderers/conceptparts.js.map +1 -0
- 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 +15 -186
- 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 +27 -0
- package/dist/docusaurus/view-model/concepts-vm.d.ts.map +1 -0
- package/dist/docusaurus/view-model/concepts-vm.js +337 -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 +5 -199
- package/dist/docusaurus/view-model/namespaces-vm.d.ts.map +1 -1
- package/dist/docusaurus/view-model/namespaces-vm.js +85 -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 +39 -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 +7 -492
- package/dist/doxygen/data-model/compounds/compounddef-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/compounddef-dm.js +28 -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/concepts-dm.d.ts +23 -0
- package/dist/doxygen/data-model/compounds/concepts-dm.d.ts.map +1 -0
- package/dist/doxygen/data-model/compounds/concepts-dm.js +94 -0
- package/dist/doxygen/data-model/compounds/concepts-dm.js.map +1 -0
- 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/requirements-dm.d.ts +2 -0
- package/dist/doxygen/data-model/compounds/requirements-dm.d.ts.map +1 -0
- package/dist/doxygen/data-model/compounds/requirements-dm.js +2 -0
- package/dist/doxygen/data-model/compounds/requirements-dm.js.map +1 -0
- 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 +8 -200
- 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 +5 -16
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -42
- package/dist/index.js.map +1 -1
- package/package.json +49 -52
- 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/conceptparts.ts +119 -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 +812 -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 +749 -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 +1037 -0
- package/src/docusaurus/view-model/options.ts +95 -0
- package/src/docusaurus/view-model/pages-vm.ts +389 -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 +1230 -0
- package/src/doxygen/data-model/compounds/compoundreftype-dm.ts +266 -0
- package/src/doxygen/data-model/compounds/concepts-dm.ts +362 -0
- package/src/doxygen/data-model/compounds/descriptiontype-dm.ts +10114 -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 +881 -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/requirements-dm.ts +50 -0
- package/src/doxygen/data-model/compounds/sectiondeftype-dm.ts +330 -0
- package/src/doxygen/data-model/compounds/tableofcontentstype-dm.ts +564 -0
- package/src/doxygen/data-model/compounds/templateparamlisttype-dm.ts +150 -0
- package/src/doxygen/data-model/data-model.ts +378 -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 +1788 -0
- package/src/doxygen/data-model/xsds/doxyfile.xsd +365 -0
- package/src/doxygen/data-model/xsds/index.xsd +74 -0
- package/src/doxygen/data-model/xsds/xml.xsd +23 -0
- package/src/index.ts +267 -0
- package/src/tsconfig.json +12 -0
- package/dist/doxygen2docusaurus.d.ts +0 -4774
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/dist/tsdoc-metadata.json +0 -11
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
|
-
/*
|
|
3
|
-
* This file is part of the xPack project (http://xpack.github.io).
|
|
4
|
-
* Copyright (c) 2025 Liviu Ionescu. All rights reserved.
|
|
5
|
-
*
|
|
6
|
-
* Permission to use, copy, modify, and/or distribute this software
|
|
7
|
-
* for any purpose is hereby granted, under the terms of the MIT license.
|
|
8
|
-
*
|
|
9
|
-
* If a copy of the license was not distributed with this file, it can
|
|
10
|
-
* be obtained from https://opensource.org/licenses/MIT.
|
|
11
|
-
*/
|
|
12
|
-
// ----------------------------------------------------------------------------
|
|
13
1
|
import assert from 'node:assert';
|
|
14
2
|
import util from 'node:util';
|
|
15
3
|
import { ElementLinesRendererBase, ElementStringRendererBase, } from './element-renderer-base.js';
|
|
@@ -19,20 +7,8 @@ import { getPermalinkAnchor, isUrl, stripLeadingAndTrailingNewLines, } from '../
|
|
|
19
7
|
import { AbstractDocHtmlOnlyType, LatexOnlyDataModel, ManOnlyDataModel, RtfOnlyDataModel, XmlOnlyDataModel, } from '../../doxygen/data-model/compounds/compounddef-dm.js';
|
|
20
8
|
import { renderParagraphs } from '../cli-options.js';
|
|
21
9
|
import { AbstractDataModelBase } from '../../doxygen/data-model/types.js';
|
|
22
|
-
// ----------------------------------------------------------------------------
|
|
23
|
-
/**
|
|
24
|
-
* Primary renderer for description type elements in documentation.
|
|
25
|
-
*
|
|
26
|
-
* @remarks
|
|
27
|
-
* Handles the rendering of Doxygen description elements that contain
|
|
28
|
-
* formatted text, converting them into appropriate output lines for
|
|
29
|
-
* documentation generation. Supports both brief and detailed descriptions.
|
|
30
|
-
*
|
|
31
|
-
* @public
|
|
32
|
-
*/
|
|
33
10
|
export class DescriptionTypeLinesRenderer extends ElementLinesRendererBase {
|
|
34
11
|
renderToLines(element, type) {
|
|
35
|
-
// console.log(util.inspect(element, { compact: false, depth: 999 }))
|
|
36
12
|
if (element.title !== undefined && element.title.length > 0) {
|
|
37
13
|
console.error('title ignored in', element.constructor.name);
|
|
38
14
|
}
|
|
@@ -41,52 +17,22 @@ export class DescriptionTypeLinesRenderer extends ElementLinesRendererBase {
|
|
|
41
17
|
return lines;
|
|
42
18
|
}
|
|
43
19
|
}
|
|
44
|
-
// ----------------------------------------------------------------------------
|
|
45
|
-
/**
|
|
46
|
-
* Renderer for Doxygen paragraph elements in documentation.
|
|
47
|
-
*
|
|
48
|
-
* @remarks
|
|
49
|
-
* Handles the complex rendering of paragraph elements that can contain
|
|
50
|
-
* mixed content including text, markup, links, and block-level elements.
|
|
51
|
-
* Manages paragraph boundaries and applies appropriate HTML wrapping.
|
|
52
|
-
*
|
|
53
|
-
* @public
|
|
54
|
-
*/
|
|
55
20
|
export class DocParaTypeLinesRenderer extends ElementLinesRendererBase {
|
|
56
|
-
/**
|
|
57
|
-
* Renders a paragraph element to formatted output lines.
|
|
58
|
-
*
|
|
59
|
-
* @remarks
|
|
60
|
-
* Processes child elements to determine paragraph boundaries and applies
|
|
61
|
-
* appropriate HTML paragraph tags when enabled. Handles mixed content
|
|
62
|
-
* including inline elements and block-level elements with proper spacing.
|
|
63
|
-
*
|
|
64
|
-
* @param element - The paragraph element to render
|
|
65
|
-
* @param type - The rendering context type
|
|
66
|
-
* @returns Array of formatted output lines with paragraph structure
|
|
67
|
-
*/
|
|
68
21
|
renderToLines(element, type) {
|
|
69
|
-
// console.log(util.inspect(element, { compact: false, depth: 999 }))
|
|
70
|
-
// console.log(element)
|
|
71
22
|
const lines = [];
|
|
72
23
|
let inParagraph = false;
|
|
73
24
|
let text = '';
|
|
74
25
|
assert(element.children !== undefined);
|
|
75
26
|
for (const child of element.children) {
|
|
76
|
-
// console.log(child)
|
|
77
27
|
if (this.isParagraph(child)) {
|
|
78
28
|
inParagraph = true;
|
|
79
|
-
text += this.workspace.renderElementToString(child,
|
|
80
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
81
|
-
renderParagraphs ? 'html' : type);
|
|
29
|
+
text += this.workspace.renderElementToString(child, renderParagraphs ? 'html' : type);
|
|
82
30
|
}
|
|
83
31
|
else {
|
|
84
32
|
if (inParagraph) {
|
|
85
33
|
text = text.trim();
|
|
86
|
-
// console.log(text)
|
|
87
34
|
if (text.length > 0) {
|
|
88
35
|
lines.push('');
|
|
89
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
90
36
|
if ((element.skipPara ?? false) || !renderParagraphs) {
|
|
91
37
|
lines.push(text);
|
|
92
38
|
}
|
|
@@ -103,10 +49,8 @@ export class DocParaTypeLinesRenderer extends ElementLinesRendererBase {
|
|
|
103
49
|
}
|
|
104
50
|
if (inParagraph) {
|
|
105
51
|
text = text.trim();
|
|
106
|
-
// console.log(text)
|
|
107
52
|
if (text.length > 0) {
|
|
108
53
|
lines.push('');
|
|
109
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
110
54
|
if ((element.skipPara ?? false) || !renderParagraphs) {
|
|
111
55
|
lines.push(text);
|
|
112
56
|
}
|
|
@@ -116,44 +60,29 @@ export class DocParaTypeLinesRenderer extends ElementLinesRendererBase {
|
|
|
116
60
|
}
|
|
117
61
|
}
|
|
118
62
|
}
|
|
119
|
-
// console.log(lines)
|
|
120
63
|
return lines;
|
|
121
64
|
}
|
|
122
|
-
// docCmdGroup: 2109
|
|
123
|
-
/**
|
|
124
|
-
* Determines if an element should be rendered within a paragraph context.
|
|
125
|
-
*
|
|
126
|
-
* @remarks
|
|
127
|
-
* Classifies documentation elements as either inline (paragraph content)
|
|
128
|
-
* or block-level elements. This classification controls whether elements
|
|
129
|
-
* are wrapped in paragraph tags or rendered as standalone blocks.
|
|
130
|
-
*
|
|
131
|
-
* @param element - The element to classify
|
|
132
|
-
* @returns True if the element should be rendered within a paragraph
|
|
133
|
-
*/
|
|
134
65
|
isParagraph(element) {
|
|
135
66
|
if (typeof element === 'string') {
|
|
136
67
|
return true;
|
|
137
68
|
}
|
|
138
69
|
else if (element instanceof HrulerDataModel) {
|
|
139
|
-
return false;
|
|
140
|
-
// } else if (element instanceof LineBreakDataModel) {
|
|
141
|
-
// return false // Explicitly not inside a paragraph.
|
|
70
|
+
return false;
|
|
142
71
|
}
|
|
143
72
|
else if (element instanceof AbstractDocHtmlOnlyType) {
|
|
144
|
-
return false;
|
|
73
|
+
return false;
|
|
145
74
|
}
|
|
146
75
|
else if (element instanceof ManOnlyDataModel) {
|
|
147
|
-
return false;
|
|
76
|
+
return false;
|
|
148
77
|
}
|
|
149
78
|
else if (element instanceof XmlOnlyDataModel) {
|
|
150
|
-
return false;
|
|
79
|
+
return false;
|
|
151
80
|
}
|
|
152
81
|
else if (element instanceof RtfOnlyDataModel) {
|
|
153
|
-
return false;
|
|
82
|
+
return false;
|
|
154
83
|
}
|
|
155
84
|
else if (element instanceof LatexOnlyDataModel) {
|
|
156
|
-
return false;
|
|
85
|
+
return false;
|
|
157
86
|
}
|
|
158
87
|
else if (element instanceof AbstractDocURLLink) {
|
|
159
88
|
return true;
|
|
@@ -163,10 +92,6 @@ export class DocParaTypeLinesRenderer extends ElementLinesRendererBase {
|
|
|
163
92
|
}
|
|
164
93
|
else if (element instanceof AbstractDocImageType) {
|
|
165
94
|
return true;
|
|
166
|
-
// Not defined yet.
|
|
167
|
-
// <xsd:element name="dot" type="docDotMscType" />
|
|
168
|
-
// <xsd:element name="msc" type="docDotMscType" />
|
|
169
|
-
// <xsd:element name="plantuml" type="docPlantumlType" />
|
|
170
95
|
}
|
|
171
96
|
else if (element instanceof AbstractDocAnchorType) {
|
|
172
97
|
return true;
|
|
@@ -183,36 +108,11 @@ export class DocParaTypeLinesRenderer extends ElementLinesRendererBase {
|
|
|
183
108
|
else if (element instanceof AbstractDocEmptyType) {
|
|
184
109
|
return true;
|
|
185
110
|
}
|
|
186
|
-
// The rest, from "programlisting" on, are not paragraphs.
|
|
187
111
|
return false;
|
|
188
112
|
}
|
|
189
113
|
}
|
|
190
|
-
// ----------------------------------------------------------------------------
|
|
191
|
-
/**
|
|
192
|
-
* Renderer for URL link elements in documentation.
|
|
193
|
-
*
|
|
194
|
-
* @remarks
|
|
195
|
-
* Converts Doxygen URL link elements to HTML anchor tags with proper
|
|
196
|
-
* href attributes. Processes child elements to generate the link text
|
|
197
|
-
* content while preserving formatting.
|
|
198
|
-
*
|
|
199
|
-
* @public
|
|
200
|
-
*/
|
|
201
114
|
export class DocURLLinkStringRenderer extends ElementStringRendererBase {
|
|
202
|
-
/**
|
|
203
|
-
* Renders a URL link element to a formatted HTML anchor string.
|
|
204
|
-
*
|
|
205
|
-
* @remarks
|
|
206
|
-
* Creates an HTML anchor element with the specified URL and renders
|
|
207
|
-
* child elements as the link text content. Maintains proper link
|
|
208
|
-
* structure for external and internal references.
|
|
209
|
-
*
|
|
210
|
-
* @param element - The URL link element to render
|
|
211
|
-
* @param type - The rendering context type
|
|
212
|
-
* @returns The formatted HTML anchor string
|
|
213
|
-
*/
|
|
214
115
|
renderToString(element, type) {
|
|
215
|
-
// console.log(util.inspect(element, { compact: false, depth: 999 }))
|
|
216
116
|
let text = '';
|
|
217
117
|
text += `<a href="${element.url}">`;
|
|
218
118
|
text += this.workspace.renderElementsArrayToString(element.children, type);
|
|
@@ -220,7 +120,6 @@ export class DocURLLinkStringRenderer extends ElementStringRendererBase {
|
|
|
220
120
|
return text;
|
|
221
121
|
}
|
|
222
122
|
}
|
|
223
|
-
// ----------------------------------------------------------------------------
|
|
224
123
|
const htmlElements = {
|
|
225
124
|
BoldDataModel: 'b',
|
|
226
125
|
EmphasisDataModel: 'em',
|
|
@@ -228,33 +127,9 @@ const htmlElements = {
|
|
|
228
127
|
SubscriptDataModel: 'sub',
|
|
229
128
|
SuperscriptDataModel: 'sup',
|
|
230
129
|
};
|
|
231
|
-
/**
|
|
232
|
-
* Renderer for text markup elements in documentation.
|
|
233
|
-
*
|
|
234
|
-
* @remarks
|
|
235
|
-
* Handles common text formatting elements such as bold, emphasis, underline,
|
|
236
|
-
* subscript, and superscript. Maps Doxygen markup types to appropriate
|
|
237
|
-
* HTML elements for consistent text formatting.
|
|
238
|
-
*
|
|
239
|
-
* @public
|
|
240
|
-
*/
|
|
241
130
|
export class DocMarkupTypeStringRenderer extends ElementStringRendererBase {
|
|
242
|
-
/**
|
|
243
|
-
* Renders a markup element to a formatted HTML string.
|
|
244
|
-
*
|
|
245
|
-
* @remarks
|
|
246
|
-
* Converts Doxygen markup elements to their corresponding HTML tags
|
|
247
|
-
* and processes child content. Supports standard formatting elements
|
|
248
|
-
* with error handling for unrecognised markup types.
|
|
249
|
-
*
|
|
250
|
-
* @param element - The markup element to render
|
|
251
|
-
* @param type - The rendering context type
|
|
252
|
-
* @returns The formatted HTML string with markup tags
|
|
253
|
-
*/
|
|
254
131
|
renderToString(element, type) {
|
|
255
|
-
// console.log(util.inspect(element, { compact: false, depth: 999 }))
|
|
256
132
|
const htmlElement = htmlElements[element.constructor.name];
|
|
257
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
258
133
|
if (htmlElement === undefined) {
|
|
259
134
|
console.error(util.inspect(element, { compact: false, depth: 999 }));
|
|
260
135
|
console.error(element.constructor.name, 'not yet rendered in', this.constructor.name);
|
|
@@ -267,69 +142,17 @@ export class DocMarkupTypeStringRenderer extends ElementStringRendererBase {
|
|
|
267
142
|
return text;
|
|
268
143
|
}
|
|
269
144
|
}
|
|
270
|
-
/**
|
|
271
|
-
* Renderer for computer output or code text elements.
|
|
272
|
-
*
|
|
273
|
-
* @remarks
|
|
274
|
-
* Formats text as computer output using CSS styling rather than code blocks.
|
|
275
|
-
* Handles inline code formatting that may contain HTML elements while
|
|
276
|
-
* maintaining compatibility with Docusaurus rendering.
|
|
277
|
-
*
|
|
278
|
-
* @public
|
|
279
|
-
*/
|
|
280
145
|
export class ComputerOutputDataModelStringRenderer extends ElementStringRendererBase {
|
|
281
|
-
/**
|
|
282
|
-
* Renders computer output text to a formatted HTML string.
|
|
283
|
-
*
|
|
284
|
-
* @remarks
|
|
285
|
-
* Wraps content in a styled span element for computer output formatting.
|
|
286
|
-
* Uses CSS classes instead of code blocks to handle mixed content
|
|
287
|
-
* including HTML elements like anchors.
|
|
288
|
-
*
|
|
289
|
-
* @param element - The computer output element to render
|
|
290
|
-
* @param type - The rendering context type
|
|
291
|
-
* @returns The formatted HTML string with computer output styling
|
|
292
|
-
*/
|
|
293
146
|
renderToString(element, type) {
|
|
294
|
-
// console.log(util.inspect(element, { compact: false, depth: 999 }))
|
|
295
147
|
let text = '';
|
|
296
|
-
// Cannot use `...` since it may include html code (like <a>).
|
|
297
|
-
// Cannot use <code> since Docusaurus renders it as a block if it includes
|
|
298
|
-
// other elements like <a>.
|
|
299
148
|
text += '<span class="doxyComputerOutput">';
|
|
300
|
-
// Inherit type, do not use 'html' since Docusaurus may parse
|
|
301
|
-
// it as markdown.
|
|
302
149
|
text += this.workspace.renderElementsArrayToString(element.children, type);
|
|
303
150
|
text += '</span>';
|
|
304
151
|
return text;
|
|
305
152
|
}
|
|
306
153
|
}
|
|
307
|
-
// ----------------------------------------------------------------------------
|
|
308
|
-
/**
|
|
309
|
-
* Renderer for reference text elements within descriptions.
|
|
310
|
-
*
|
|
311
|
-
* @remarks
|
|
312
|
-
* Handles cross-references to other documentation elements by generating
|
|
313
|
-
* appropriate links when permalinks are available. Provides fallback
|
|
314
|
-
* text rendering for unresolved references.
|
|
315
|
-
*
|
|
316
|
-
* @public
|
|
317
|
-
*/
|
|
318
154
|
export class DocRefTextTypeStringRenderer extends ElementStringRendererBase {
|
|
319
|
-
/**
|
|
320
|
-
* Renders a reference text element to a formatted string with linking.
|
|
321
|
-
*
|
|
322
|
-
* @remarks
|
|
323
|
-
* Creates HTML anchor tags for valid references with permalinks,
|
|
324
|
-
* otherwise renders as plain text. Logs warnings for unsupported
|
|
325
|
-
* external references that are not yet implemented.
|
|
326
|
-
*
|
|
327
|
-
* @param element - The reference text element to render
|
|
328
|
-
* @param type - The rendering context type
|
|
329
|
-
* @returns The formatted string with optional link
|
|
330
|
-
*/
|
|
331
155
|
renderToString(element, type) {
|
|
332
|
-
// console.log(util.inspect(element, { compact: false, depth: 999 }))
|
|
333
156
|
if (element.external !== undefined && element.external.length > 0) {
|
|
334
157
|
console.error('external ignored in', element.constructor.name);
|
|
335
158
|
}
|
|
@@ -352,56 +175,9 @@ export class DocRefTextTypeStringRenderer extends ElementStringRendererBase {
|
|
|
352
175
|
return text;
|
|
353
176
|
}
|
|
354
177
|
}
|
|
355
|
-
// ----------------------------------------------------------------------------
|
|
356
|
-
// <xsd:simpleType name="DoxSimpleSectKind">
|
|
357
|
-
// <xsd:restriction base="xsd:string">
|
|
358
|
-
// <xsd:enumeration value="see" />
|
|
359
|
-
// <xsd:enumeration value="return" />
|
|
360
|
-
// <xsd:enumeration value="author" />
|
|
361
|
-
// <xsd:enumeration value="authors" />
|
|
362
|
-
// <xsd:enumeration value="version" />
|
|
363
|
-
// <xsd:enumeration value="since" />
|
|
364
|
-
// <xsd:enumeration value="date" />
|
|
365
|
-
// <xsd:enumeration value="note" />
|
|
366
|
-
// <xsd:enumeration value="warning" />
|
|
367
|
-
// <xsd:enumeration value="pre" />
|
|
368
|
-
// <xsd:enumeration value="post" />
|
|
369
|
-
// <xsd:enumeration value="copyright" />
|
|
370
|
-
// <xsd:enumeration value="invariant" />
|
|
371
|
-
// <xsd:enumeration value="remark" />
|
|
372
|
-
// <xsd:enumeration value="attention" />
|
|
373
|
-
// <xsd:enumeration value="important" />
|
|
374
|
-
// <xsd:enumeration value="par" />
|
|
375
|
-
// <xsd:enumeration value="rcs" />
|
|
376
|
-
// </xsd:restriction>
|
|
377
|
-
// </xsd:simpleType>
|
|
378
|
-
/**
|
|
379
|
-
* Renderer for simple section elements in documentation.
|
|
380
|
-
*
|
|
381
|
-
* @remarks
|
|
382
|
-
* Handles various types of documentation sections including returns,
|
|
383
|
-
* authors, notes, warnings, and custom sections. Maps section types
|
|
384
|
-
* to appropriate HTML structures and Docusaurus admonitions.
|
|
385
|
-
*
|
|
386
|
-
* @public
|
|
387
|
-
*/
|
|
388
178
|
export class DocSimpleSectTypeLinesRenderer extends ElementLinesRendererBase {
|
|
389
|
-
/**
|
|
390
|
-
* Renders a simple section element to formatted output lines.
|
|
391
|
-
*
|
|
392
|
-
* @remarks
|
|
393
|
-
* Converts Doxygen simple sections to HTML definition lists or
|
|
394
|
-
* Docusaurus admonitions based on section type. Supports standard
|
|
395
|
-
* sections like returns and notes, plus custom paragraph sections.
|
|
396
|
-
*
|
|
397
|
-
* @param element - The simple section element to render
|
|
398
|
-
* @param type - The rendering context type
|
|
399
|
-
* @returns Array of formatted output lines for the section
|
|
400
|
-
*/
|
|
401
179
|
renderToLines(element, type) {
|
|
402
|
-
// console.log(util.inspect(element, { compact: false, depth: 999 }))
|
|
403
180
|
const lines = [];
|
|
404
|
-
// doxygen.git/src/translator_en.h
|
|
405
181
|
const DoxSimpleSectKind = {
|
|
406
182
|
see: 'See Also',
|
|
407
183
|
return: 'Returns',
|
|
@@ -410,20 +186,13 @@ export class DocSimpleSectTypeLinesRenderer extends ElementLinesRendererBase {
|
|
|
410
186
|
version: 'Version',
|
|
411
187
|
since: 'Since',
|
|
412
188
|
date: 'Date',
|
|
413
|
-
// note -> :::info (note is white in Docusaurus)
|
|
414
|
-
// warning -> :::warning
|
|
415
189
|
pre: 'Precondition',
|
|
416
190
|
post: 'Postcondition',
|
|
417
191
|
copyright: 'Copyright',
|
|
418
192
|
invariant: 'Invariant',
|
|
419
193
|
remark: 'Remarks',
|
|
420
|
-
// attention: -> :::danger
|
|
421
|
-
// important: -> :::tip
|
|
422
|
-
// par: - paragraph with custom title
|
|
423
|
-
// rcs: - apparently ignored
|
|
424
194
|
};
|
|
425
195
|
lines.push('');
|
|
426
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
427
196
|
if (DoxSimpleSectKind[element.kind] !== undefined) {
|
|
428
197
|
const { kind } = element;
|
|
429
198
|
const title = DoxSimpleSectKind[kind];
|
|
@@ -471,24 +240,18 @@ export class DocSimpleSectTypeLinesRenderer extends ElementLinesRendererBase {
|
|
|
471
240
|
lines.push('</dl>');
|
|
472
241
|
}
|
|
473
242
|
else if (element.kind === 'note') {
|
|
474
|
-
// https://docusaurus.io/docs/markdown-features/admonitions
|
|
475
243
|
lines.push('');
|
|
476
244
|
lines.push(':::info');
|
|
477
245
|
lines.push(this.workspace
|
|
478
|
-
.renderElementToString(element.children,
|
|
479
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
480
|
-
renderParagraphs ? 'html' : 'markdown')
|
|
246
|
+
.renderElementToString(element.children, renderParagraphs ? 'html' : 'markdown')
|
|
481
247
|
.trim());
|
|
482
248
|
lines.push(':::');
|
|
483
249
|
}
|
|
484
250
|
else if (element.kind === 'warning') {
|
|
485
251
|
lines.push('');
|
|
486
252
|
lines.push(':::warning');
|
|
487
|
-
// console.log(util.inspect(element, { compact: false, depth: 999 }))
|
|
488
253
|
lines.push(this.workspace
|
|
489
|
-
.renderElementToString(element.children,
|
|
490
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
491
|
-
renderParagraphs ? 'html' : 'markdown')
|
|
254
|
+
.renderElementToString(element.children, renderParagraphs ? 'html' : 'markdown')
|
|
492
255
|
.trim());
|
|
493
256
|
lines.push(':::');
|
|
494
257
|
}
|
|
@@ -496,9 +259,7 @@ export class DocSimpleSectTypeLinesRenderer extends ElementLinesRendererBase {
|
|
|
496
259
|
lines.push('');
|
|
497
260
|
lines.push(':::danger');
|
|
498
261
|
lines.push(this.workspace
|
|
499
|
-
.renderElementToString(element.children,
|
|
500
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
501
|
-
renderParagraphs ? 'html' : 'markdown')
|
|
262
|
+
.renderElementToString(element.children, renderParagraphs ? 'html' : 'markdown')
|
|
502
263
|
.trim());
|
|
503
264
|
lines.push(':::');
|
|
504
265
|
}
|
|
@@ -506,9 +267,7 @@ export class DocSimpleSectTypeLinesRenderer extends ElementLinesRendererBase {
|
|
|
506
267
|
lines.push('');
|
|
507
268
|
lines.push(':::tip');
|
|
508
269
|
lines.push(this.workspace
|
|
509
|
-
.renderElementToString(element.children,
|
|
510
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
511
|
-
renderParagraphs ? 'html' : 'markdown')
|
|
270
|
+
.renderElementToString(element.children, renderParagraphs ? 'html' : 'markdown')
|
|
512
271
|
.trim());
|
|
513
272
|
lines.push(':::');
|
|
514
273
|
}
|
|
@@ -520,32 +279,8 @@ export class DocSimpleSectTypeLinesRenderer extends ElementLinesRendererBase {
|
|
|
520
279
|
return lines;
|
|
521
280
|
}
|
|
522
281
|
}
|
|
523
|
-
// ----------------------------------------------------------------------------
|
|
524
|
-
/**
|
|
525
|
-
* Renderer for space elements in documentation.
|
|
526
|
-
*
|
|
527
|
-
* @remarks
|
|
528
|
-
* Handles spacing elements that insert a specified number of space
|
|
529
|
-
* characters into the output. Supports both single spaces and
|
|
530
|
-
* multiple space sequences for formatting control.
|
|
531
|
-
*
|
|
532
|
-
* @public
|
|
533
|
-
*/
|
|
534
282
|
export class SpTypeStringRenderer extends ElementStringRendererBase {
|
|
535
|
-
/**
|
|
536
|
-
* Renders a space element to a string of space characters.
|
|
537
|
-
*
|
|
538
|
-
* @remarks
|
|
539
|
-
* Generates the specified number of space characters based on the
|
|
540
|
-
* element's value attribute. Defaults to a single space if no
|
|
541
|
-
* value is specified.
|
|
542
|
-
*
|
|
543
|
-
* @param element - The space element to render
|
|
544
|
-
* @param type - The rendering context type (unused in implementation)
|
|
545
|
-
* @returns String containing the specified number of spaces
|
|
546
|
-
*/
|
|
547
283
|
renderToString(element, type) {
|
|
548
|
-
// console.log(util.inspect(element, { compact: false, depth: 999 }))
|
|
549
284
|
let text = '';
|
|
550
285
|
let spaces = 1;
|
|
551
286
|
if (element.value !== undefined && element.value.valueOf() > 1) {
|
|
@@ -557,32 +292,8 @@ export class SpTypeStringRenderer extends ElementStringRendererBase {
|
|
|
557
292
|
return text;
|
|
558
293
|
}
|
|
559
294
|
}
|
|
560
|
-
// ----------------------------------------------------------------------------
|
|
561
|
-
/**
|
|
562
|
-
* Renderer for empty or structural elements in documentation.
|
|
563
|
-
*
|
|
564
|
-
* @remarks
|
|
565
|
-
* Handles various empty elements that provide structural formatting
|
|
566
|
-
* including horizontal rules, line breaks, and non-breakable spaces.
|
|
567
|
-
* Maps element types to appropriate HTML equivalents.
|
|
568
|
-
*
|
|
569
|
-
* @public
|
|
570
|
-
*/
|
|
571
295
|
export class DocEmptyTypeStringRenderer extends ElementStringRendererBase {
|
|
572
|
-
/**
|
|
573
|
-
* Renders an empty element to its HTML equivalent.
|
|
574
|
-
*
|
|
575
|
-
* @remarks
|
|
576
|
-
* Converts structural elements like horizontal rules and line breaks
|
|
577
|
-
* to their corresponding HTML tags. Provides error handling for
|
|
578
|
-
* unrecognised empty element types.
|
|
579
|
-
*
|
|
580
|
-
* @param element - The empty element to render
|
|
581
|
-
* @param type - The rendering context type (unused in implementation)
|
|
582
|
-
* @returns The formatted HTML string for the structural element
|
|
583
|
-
*/
|
|
584
296
|
renderToString(element, type) {
|
|
585
|
-
// console.log(util.inspect(element, { compact: false, depth: 999 }))
|
|
586
297
|
let text = '';
|
|
587
298
|
switch (element.constructor.name) {
|
|
588
299
|
case 'HrulerDataModel':
|
|
@@ -604,32 +315,8 @@ export class DocEmptyTypeStringRenderer extends ElementStringRendererBase {
|
|
|
604
315
|
return text;
|
|
605
316
|
}
|
|
606
317
|
}
|
|
607
|
-
// ----------------------------------------------------------------------------
|
|
608
|
-
/**
|
|
609
|
-
* Renderer for parameter list elements in documentation.
|
|
610
|
-
*
|
|
611
|
-
* @remarks
|
|
612
|
-
* Handles complex parameter documentation including template parameters,
|
|
613
|
-
* function parameters, return values, and exceptions. Generates structured
|
|
614
|
-
* HTML tables for organised parameter presentation.
|
|
615
|
-
*
|
|
616
|
-
* @public
|
|
617
|
-
*/
|
|
618
318
|
export class DocParamListTypeLinesRenderer extends ElementLinesRendererBase {
|
|
619
|
-
/**
|
|
620
|
-
* Renders a parameter list element to formatted output lines.
|
|
621
|
-
*
|
|
622
|
-
* @remarks
|
|
623
|
-
* Creates HTML definition lists and tables for parameter documentation.
|
|
624
|
-
* Processes parameter names, types, directions, and descriptions to
|
|
625
|
-
* generate comprehensive parameter documentation with proper formatting.
|
|
626
|
-
*
|
|
627
|
-
* @param element - The parameter list element to render
|
|
628
|
-
* @param type - The rendering context type
|
|
629
|
-
* @returns Array of HTML strings forming the parameter documentation
|
|
630
|
-
*/
|
|
631
319
|
renderToLines(element, type) {
|
|
632
|
-
// console.log(util.inspect(element, { compact: false, depth: 999 }))
|
|
633
320
|
const lines = [];
|
|
634
321
|
if (element.parameterItems !== undefined) {
|
|
635
322
|
const titlesByKind = {
|
|
@@ -640,7 +327,6 @@ export class DocParamListTypeLinesRenderer extends ElementLinesRendererBase {
|
|
|
640
327
|
};
|
|
641
328
|
const { kind } = element;
|
|
642
329
|
const title = titlesByKind[kind];
|
|
643
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
644
330
|
if (title === undefined) {
|
|
645
331
|
console.error(util.inspect(element, { compact: false, depth: 999 }));
|
|
646
332
|
console.error(element.constructor.name, 'kind', kind, 'not yet rendered in', this.constructor.name);
|
|
@@ -653,13 +339,9 @@ export class DocParamListTypeLinesRenderer extends ElementLinesRendererBase {
|
|
|
653
339
|
lines.push('<dd>');
|
|
654
340
|
lines.push('<table class="doxyParamsTable">');
|
|
655
341
|
for (const parameterItem of element.parameterItems) {
|
|
656
|
-
// console.log(util.inspect(parameterItem,
|
|
657
|
-
// { compact: false, depth: 999 }))
|
|
658
342
|
const names = [];
|
|
659
343
|
if (parameterItem.parameterNameList !== undefined) {
|
|
660
344
|
for (const parameterName of parameterItem.parameterNameList) {
|
|
661
|
-
// console.log(util.inspect(parameterName.children,
|
|
662
|
-
// { compact: false, depth: 999 }))
|
|
663
345
|
assert(parameterName.children !== undefined);
|
|
664
346
|
for (const child of parameterName.children) {
|
|
665
347
|
assert(child instanceof AbstractDataModelBase);
|
|
@@ -718,180 +400,53 @@ export class DocParamListTypeLinesRenderer extends ElementLinesRendererBase {
|
|
|
718
400
|
return lines;
|
|
719
401
|
}
|
|
720
402
|
}
|
|
721
|
-
// ----------------------------------------------------------------------------
|
|
722
|
-
/**
|
|
723
|
-
* Renderer for anchor elements in documentation.
|
|
724
|
-
*
|
|
725
|
-
* @remarks
|
|
726
|
-
* Creates HTML anchor elements for cross-referencing within documents.
|
|
727
|
-
* Generates sanitised anchor IDs that can be used for permalink
|
|
728
|
-
* navigation and internal linking.
|
|
729
|
-
*
|
|
730
|
-
* @public
|
|
731
|
-
*/
|
|
732
403
|
export class DocAnchorTypeLinesRenderer extends ElementLinesRendererBase {
|
|
733
|
-
/**
|
|
734
|
-
* Renders an anchor element to formatted output lines.
|
|
735
|
-
*
|
|
736
|
-
* @remarks
|
|
737
|
-
* Creates an HTML anchor element with a sanitised ID attribute
|
|
738
|
-
* for use in permalink generation and cross-referencing within
|
|
739
|
-
* the documentation.
|
|
740
|
-
*
|
|
741
|
-
* @param element - The anchor element to render
|
|
742
|
-
* @param type - The rendering context type (unused in implementation)
|
|
743
|
-
* @returns Array containing the HTML anchor element
|
|
744
|
-
*/
|
|
745
404
|
renderToLines(element, type) {
|
|
746
|
-
// console.log(util.inspect(element, { compact: false, depth: 999 }))
|
|
747
405
|
const lines = [];
|
|
748
406
|
const anchor = getPermalinkAnchor(element.id);
|
|
749
407
|
lines.push(`<a id="${anchor}"></a>`);
|
|
750
408
|
return lines;
|
|
751
409
|
}
|
|
752
410
|
}
|
|
753
|
-
// ----------------------------------------------------------------------------
|
|
754
|
-
/**
|
|
755
|
-
* Renderer for verbatim text elements in documentation.
|
|
756
|
-
*
|
|
757
|
-
* @remarks
|
|
758
|
-
* Handles verbatim text blocks that should be displayed exactly as
|
|
759
|
-
* written without interpretation. Generates HTML pre and code elements
|
|
760
|
-
* with proper formatting for code snippets and literal text.
|
|
761
|
-
*
|
|
762
|
-
* @public
|
|
763
|
-
*/
|
|
764
411
|
export class VerbatimStringRenderer extends ElementStringRendererBase {
|
|
765
|
-
/**
|
|
766
|
-
* Renders a verbatim element to formatted HTML code block.
|
|
767
|
-
*
|
|
768
|
-
* @remarks
|
|
769
|
-
* Creates HTML pre and code elements for literal text display.
|
|
770
|
-
* Strips leading and trailing newlines while preserving internal
|
|
771
|
-
* formatting and enables copy functionality through Docusaurus.
|
|
772
|
-
*
|
|
773
|
-
* @param element - The verbatim element to render
|
|
774
|
-
* @param type - The rendering context type
|
|
775
|
-
* @returns The formatted HTML code block string
|
|
776
|
-
*/
|
|
777
412
|
renderToString(element, type) {
|
|
778
|
-
// console.log(util.inspect(element, { compact: false, depth: 999 }))
|
|
779
413
|
let text = '';
|
|
780
414
|
text += '\n';
|
|
781
|
-
// Docusaurus adds the copy button.
|
|
782
|
-
// The content must be on the same line.
|
|
783
415
|
text += '\n';
|
|
784
416
|
text += '<pre><code>';
|
|
785
417
|
text += stripLeadingAndTrailingNewLines(this.workspace.renderElementsArrayToString(element.children, 'html'));
|
|
786
418
|
text += '\n';
|
|
787
419
|
text += '</code></pre>';
|
|
788
420
|
text += '\n';
|
|
789
|
-
// text += '\n'
|
|
790
421
|
return text;
|
|
791
422
|
}
|
|
792
423
|
}
|
|
793
|
-
/**
|
|
794
|
-
* Renderer for preformatted text elements in documentation.
|
|
795
|
-
*
|
|
796
|
-
* @remarks
|
|
797
|
-
* Similar to verbatim rendering but specifically for preformatted content.
|
|
798
|
-
* Maintains exact spacing and formatting while providing HTML code block
|
|
799
|
-
* structure compatible with Docusaurus features.
|
|
800
|
-
*
|
|
801
|
-
* @public
|
|
802
|
-
*/
|
|
803
424
|
export class PreformattedStringRenderer extends ElementStringRendererBase {
|
|
804
|
-
/**
|
|
805
|
-
* Renders a preformatted element to formatted HTML code block.
|
|
806
|
-
*
|
|
807
|
-
* @remarks
|
|
808
|
-
* Creates HTML pre and code elements for preformatted text display.
|
|
809
|
-
* Preserves exact formatting while stripping unnecessary newlines
|
|
810
|
-
* and enabling Docusaurus copy button functionality.
|
|
811
|
-
*
|
|
812
|
-
* @param element - The preformatted element to render
|
|
813
|
-
* @param type - The rendering context type
|
|
814
|
-
* @returns The formatted HTML code block string
|
|
815
|
-
*/
|
|
816
425
|
renderToString(element, type) {
|
|
817
|
-
// console.log(util.inspect(element, { compact: false, depth: 999 }))
|
|
818
426
|
let text = '';
|
|
819
427
|
text += '\n';
|
|
820
|
-
// Docusaurus adds the copy button.
|
|
821
|
-
// The content must be on the same line.
|
|
822
428
|
text += '\n';
|
|
823
429
|
text += '<pre><code>';
|
|
824
430
|
text += stripLeadingAndTrailingNewLines(this.workspace.renderElementsArrayToString(element.children, 'html'));
|
|
825
431
|
text += '\n';
|
|
826
432
|
text += '</code></pre>';
|
|
827
433
|
text += '\n';
|
|
828
|
-
// text += '\n'
|
|
829
434
|
return text;
|
|
830
435
|
}
|
|
831
436
|
}
|
|
832
|
-
// ----------------------------------------------------------------------------
|
|
833
|
-
/**
|
|
834
|
-
* Renderer for mathematical formula elements in documentation.
|
|
835
|
-
*
|
|
836
|
-
* @remarks
|
|
837
|
-
* Handles LaTeX mathematical formulae by converting them to HTML code
|
|
838
|
-
* elements. Provides warnings for limited formula rendering capabilities
|
|
839
|
-
* and maintains formula content for basic display.
|
|
840
|
-
*
|
|
841
|
-
* @public
|
|
842
|
-
*/
|
|
843
437
|
export class FormulaStringRenderer extends ElementStringRendererBase {
|
|
844
|
-
/**
|
|
845
|
-
* Renders a formula element to formatted HTML code.
|
|
846
|
-
*
|
|
847
|
-
* @remarks
|
|
848
|
-
* Converts LaTeX formulae to HTML code elements with basic formatting.
|
|
849
|
-
* Logs warnings about limited rendering capabilities and ignores
|
|
850
|
-
* formula IDs while preserving mathematical content.
|
|
851
|
-
*
|
|
852
|
-
* @param element - The formula element to render
|
|
853
|
-
* @param type - The rendering context type
|
|
854
|
-
* @returns The formatted HTML code string containing the formula
|
|
855
|
-
*/
|
|
856
438
|
renderToString(element, type) {
|
|
857
|
-
// console.log(util.inspect(element, { compact: false, depth: 999 }))
|
|
858
439
|
let text = '';
|
|
859
440
|
const formula = this.workspace.renderString(element.text, 'html');
|
|
860
441
|
if (this.workspace.options.verbose) {
|
|
861
442
|
console.warn('LaTeX formula', formula, 'not rendered properly');
|
|
862
443
|
}
|
|
863
|
-
// element.id is ignored.
|
|
864
|
-
// Docusaurus renders it as a div with copy button.
|
|
865
444
|
text += `<code>${formula}</code>`;
|
|
866
445
|
return text;
|
|
867
446
|
}
|
|
868
447
|
}
|
|
869
|
-
// ----------------------------------------------------------------------------
|
|
870
|
-
/**
|
|
871
|
-
* Renderer for image elements in documentation.
|
|
872
|
-
*
|
|
873
|
-
* @remarks
|
|
874
|
-
* Handles image rendering with support for various attributes including
|
|
875
|
-
* dimensions, captions, and source URLs. Generates HTML figure elements
|
|
876
|
-
* with proper image handling for both local and remote sources.
|
|
877
|
-
*
|
|
878
|
-
* @public
|
|
879
|
-
*/
|
|
880
448
|
export class ImageStringRenderer extends ElementStringRendererBase {
|
|
881
|
-
/**
|
|
882
|
-
* Renders an image element to formatted HTML figure.
|
|
883
|
-
*
|
|
884
|
-
* @remarks
|
|
885
|
-
* Creates HTML figure and img elements with support for width, height,
|
|
886
|
-
* alt text, captions, and inline styling. Handles both URL and local
|
|
887
|
-
* image sources while skipping LaTeX-specific images.
|
|
888
|
-
*
|
|
889
|
-
* @param element - The image element to render
|
|
890
|
-
* @param type - The rendering context type (unused in implementation)
|
|
891
|
-
* @returns The formatted HTML figure string
|
|
892
|
-
*/
|
|
893
449
|
renderToString(element, type) {
|
|
894
|
-
// console.log(util.inspect(element, { compact: false, depth: 999 }))
|
|
895
450
|
let text = '';
|
|
896
451
|
if (element.type === 'html') {
|
|
897
452
|
text += '\n';
|
|
@@ -942,7 +497,6 @@ export class ImageStringRenderer extends ElementStringRendererBase {
|
|
|
942
497
|
text += '</figure>';
|
|
943
498
|
}
|
|
944
499
|
else if (element.type === 'latex') {
|
|
945
|
-
// Skipped, no LaTeX images rendered.
|
|
946
500
|
}
|
|
947
501
|
else {
|
|
948
502
|
console.error('Image type', element.type, 'not rendered in', this.constructor.name);
|
|
@@ -950,63 +504,15 @@ export class ImageStringRenderer extends ElementStringRendererBase {
|
|
|
950
504
|
return text;
|
|
951
505
|
}
|
|
952
506
|
}
|
|
953
|
-
// ----------------------------------------------------------------------------
|
|
954
|
-
/**
|
|
955
|
-
* Renderer for HTML-only content elements in documentation.
|
|
956
|
-
*
|
|
957
|
-
* @remarks
|
|
958
|
-
* Handles content that should only appear in HTML output formats.
|
|
959
|
-
* Processes HTML-specific markup while converting it to appropriate
|
|
960
|
-
* text format for cross-platform compatibility.
|
|
961
|
-
*
|
|
962
|
-
* @public
|
|
963
|
-
*/
|
|
964
507
|
export class HtmlOnlyStringRenderer extends ElementStringRendererBase {
|
|
965
|
-
/**
|
|
966
|
-
* Renders an HTML-only element to formatted text.
|
|
967
|
-
*
|
|
968
|
-
* @remarks
|
|
969
|
-
* Converts HTML-only content to plain text format for broader
|
|
970
|
-
* compatibility. Processes the element's text content through
|
|
971
|
-
* the workspace renderer with text formatting.
|
|
972
|
-
*
|
|
973
|
-
* @param element - The HTML-only element to render
|
|
974
|
-
* @param type - The rendering context type (unused in implementation)
|
|
975
|
-
* @returns The formatted text string
|
|
976
|
-
*/
|
|
977
508
|
renderToString(element, type) {
|
|
978
|
-
// console.log(util.inspect(element, { compact: false, depth: 999 }))
|
|
979
509
|
let text = '';
|
|
980
510
|
text += this.workspace.renderString(element.text, 'text');
|
|
981
511
|
return text;
|
|
982
512
|
}
|
|
983
513
|
}
|
|
984
|
-
// ----------------------------------------------------------------------------
|
|
985
|
-
/**
|
|
986
|
-
* Renderer for heading elements in documentation.
|
|
987
|
-
*
|
|
988
|
-
* @remarks
|
|
989
|
-
* Converts Doxygen heading elements to Markdown heading syntax.
|
|
990
|
-
* Supports multiple heading levels while providing warnings for
|
|
991
|
-
* potentially problematic heading configurations.
|
|
992
|
-
*
|
|
993
|
-
* @public
|
|
994
|
-
*/
|
|
995
514
|
export class HeadingLinesRenderer extends ElementLinesRendererBase {
|
|
996
|
-
/**
|
|
997
|
-
* Renders a heading element to formatted Markdown heading lines.
|
|
998
|
-
*
|
|
999
|
-
* @remarks
|
|
1000
|
-
* Creates Markdown-style headings with appropriate hash symbols
|
|
1001
|
-
* based on the heading level. Warns about level 1 headings that
|
|
1002
|
-
* may interfere with Docusaurus page structure.
|
|
1003
|
-
*
|
|
1004
|
-
* @param element - The heading element to render
|
|
1005
|
-
* @param type - The rendering context type
|
|
1006
|
-
* @returns Array containing the formatted Markdown heading
|
|
1007
|
-
*/
|
|
1008
515
|
renderToLines(element, type) {
|
|
1009
|
-
// console.log(util.inspect(element, { compact: false, depth: 999 }))
|
|
1010
516
|
const lines = [];
|
|
1011
517
|
if (element.level === 1) {
|
|
1012
518
|
if (this.workspace.options.verbose) {
|
|
@@ -1022,64 +528,15 @@ export class HeadingLinesRenderer extends ElementLinesRendererBase {
|
|
|
1022
528
|
return lines;
|
|
1023
529
|
}
|
|
1024
530
|
}
|
|
1025
|
-
// ----------------------------------------------------------------------------
|
|
1026
|
-
/**
|
|
1027
|
-
* Renderer for emoji elements in documentation.
|
|
1028
|
-
*
|
|
1029
|
-
* @remarks
|
|
1030
|
-
* Handles Unicode emoji characters by wrapping them in appropriate
|
|
1031
|
-
* HTML span elements with CSS styling. Provides consistent emoji
|
|
1032
|
-
* display across different platforms and browsers.
|
|
1033
|
-
*
|
|
1034
|
-
* @public
|
|
1035
|
-
*/
|
|
1036
531
|
export class EmojiStringRenderer extends ElementStringRendererBase {
|
|
1037
|
-
/**
|
|
1038
|
-
* Renders an emoji element to formatted HTML span.
|
|
1039
|
-
*
|
|
1040
|
-
* @remarks
|
|
1041
|
-
* Creates an HTML span element with CSS class for emoji styling
|
|
1042
|
-
* and includes the Unicode emoji character. Ensures consistent
|
|
1043
|
-
* emoji presentation in documentation output.
|
|
1044
|
-
*
|
|
1045
|
-
* @param element - The emoji element to render
|
|
1046
|
-
* @param type - The rendering context type (unused in implementation)
|
|
1047
|
-
* @returns The formatted HTML span string with emoji
|
|
1048
|
-
*/
|
|
1049
532
|
renderToString(element, type) {
|
|
1050
|
-
// console.log(util.inspect(element, { compact: false, depth: 999 }))
|
|
1051
533
|
let text = '';
|
|
1052
|
-
// <span class="emoji">😄</span>
|
|
1053
534
|
text += `<span class="doxyEmoji">${element.unicode}</span>}`;
|
|
1054
535
|
return text;
|
|
1055
536
|
}
|
|
1056
537
|
}
|
|
1057
|
-
// ----------------------------------------------------------------------------
|
|
1058
|
-
/**
|
|
1059
|
-
* Renderer for blockquote elements in documentation.
|
|
1060
|
-
*
|
|
1061
|
-
* @remarks
|
|
1062
|
-
* Handles blockquote formatting by wrapping content in HTML blockquote
|
|
1063
|
-
* elements with appropriate CSS styling. Processes child elements to
|
|
1064
|
-
* maintain proper content structure within quotes.
|
|
1065
|
-
*
|
|
1066
|
-
* @public
|
|
1067
|
-
*/
|
|
1068
538
|
export class BlockquoteLinesRenderer extends ElementLinesRendererBase {
|
|
1069
|
-
/**
|
|
1070
|
-
* Renders a blockquote element to formatted output lines.
|
|
1071
|
-
*
|
|
1072
|
-
* @remarks
|
|
1073
|
-
* Creates HTML blockquote elements with CSS styling and processes
|
|
1074
|
-
* child elements to generate properly formatted quoted content
|
|
1075
|
-
* with appropriate indentation and styling.
|
|
1076
|
-
*
|
|
1077
|
-
* @param element - The blockquote element to render
|
|
1078
|
-
* @param type - The rendering context type
|
|
1079
|
-
* @returns Array of HTML strings forming the blockquote structure
|
|
1080
|
-
*/
|
|
1081
539
|
renderToLines(element, type) {
|
|
1082
|
-
// console.log(util.inspect(element, { compact: false, depth: 999 }))
|
|
1083
540
|
const lines = [];
|
|
1084
541
|
lines.push('<blockquote class="doxyBlockQuote">');
|
|
1085
542
|
lines.push(...this.workspace.renderElementsArrayToLines(element.children, 'html'));
|
|
@@ -1087,5 +544,4 @@ export class BlockquoteLinesRenderer extends ElementLinesRendererBase {
|
|
|
1087
544
|
return lines;
|
|
1088
545
|
}
|
|
1089
546
|
}
|
|
1090
|
-
// ----------------------------------------------------------------------------
|
|
1091
547
|
//# sourceMappingURL=descriptiontype.js.map
|