@xpack/doxygen2docusaurus 1.0.2 → 2.0.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/README.md +3 -4
- package/dist/cli/main.d.ts +6 -0
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +29 -2
- package/dist/cli/main.js.map +1 -1
- package/dist/docusaurus/cli-options.d.ts +268 -39
- package/dist/docusaurus/cli-options.d.ts.map +1 -1
- package/dist/docusaurus/cli-options.js +267 -53
- package/dist/docusaurus/cli-options.js.map +1 -1
- package/dist/docusaurus/generator.d.ts +179 -4
- package/dist/docusaurus/generator.d.ts.map +1 -1
- package/dist/docusaurus/generator.js +215 -45
- package/dist/docusaurus/generator.js.map +1 -1
- package/dist/docusaurus/renderers/descriptiontype.d.ts +417 -0
- package/dist/docusaurus/renderers/descriptiontype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/descriptiontype.js +417 -0
- package/dist/docusaurus/renderers/descriptiontype.js.map +1 -1
- package/dist/docusaurus/renderers/docinternalstype.d.ts +132 -0
- package/dist/docusaurus/renderers/docinternalstype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/docinternalstype.js +132 -0
- package/dist/docusaurus/renderers/docinternalstype.js.map +1 -1
- package/dist/docusaurus/renderers/doclisttype.d.ts +22 -0
- package/dist/docusaurus/renderers/doclisttype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/doclisttype.js +22 -2
- package/dist/docusaurus/renderers/doclisttype.js.map +1 -1
- package/dist/docusaurus/renderers/doctabletype.d.ts +88 -0
- package/dist/docusaurus/renderers/doctabletype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/doctabletype.js +88 -0
- package/dist/docusaurus/renderers/doctabletype.js.map +1 -1
- package/dist/docusaurus/renderers/doctitletype.d.ts +22 -0
- package/dist/docusaurus/renderers/doctitletype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/doctitletype.js +22 -0
- package/dist/docusaurus/renderers/doctitletype.js.map +1 -1
- package/dist/docusaurus/renderers/docvariablelisttype.d.ts +44 -0
- package/dist/docusaurus/renderers/docvariablelisttype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/docvariablelisttype.js +44 -0
- package/dist/docusaurus/renderers/docvariablelisttype.js.map +1 -1
- package/dist/docusaurus/renderers/docxrefsecttype.d.ts +22 -0
- package/dist/docusaurus/renderers/docxrefsecttype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/docxrefsecttype.js +22 -0
- package/dist/docusaurus/renderers/docxrefsecttype.js.map +1 -1
- package/dist/docusaurus/renderers/element-renderer-base.d.ts +74 -0
- package/dist/docusaurus/renderers/element-renderer-base.d.ts.map +1 -1
- package/dist/docusaurus/renderers/element-renderer-base.js +52 -0
- package/dist/docusaurus/renderers/element-renderer-base.js.map +1 -1
- package/dist/docusaurus/renderers/inctype.d.ts +23 -0
- package/dist/docusaurus/renderers/inctype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/inctype.js +23 -0
- package/dist/docusaurus/renderers/inctype.js.map +1 -1
- package/dist/docusaurus/renderers/linkedtexttype.d.ts +22 -0
- package/dist/docusaurus/renderers/linkedtexttype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/linkedtexttype.js +22 -0
- package/dist/docusaurus/renderers/linkedtexttype.js.map +1 -1
- package/dist/docusaurus/renderers/listingtype.d.ts +52 -0
- package/dist/docusaurus/renderers/listingtype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/listingtype.js +66 -2
- package/dist/docusaurus/renderers/listingtype.js.map +1 -1
- package/dist/docusaurus/renderers/paramtype.d.ts +22 -0
- package/dist/docusaurus/renderers/paramtype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/paramtype.js +22 -0
- package/dist/docusaurus/renderers/paramtype.js.map +1 -1
- package/dist/docusaurus/renderers/referencetype.d.ts +23 -0
- package/dist/docusaurus/renderers/referencetype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/referencetype.js +23 -2
- package/dist/docusaurus/renderers/referencetype.js.map +1 -1
- package/dist/docusaurus/renderers/reftexttype.d.ts +22 -0
- package/dist/docusaurus/renderers/reftexttype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/reftexttype.js +22 -0
- package/dist/docusaurus/renderers/reftexttype.js.map +1 -1
- package/dist/docusaurus/renderers/reftype.d.ts +22 -0
- package/dist/docusaurus/renderers/reftype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/reftype.js +22 -0
- package/dist/docusaurus/renderers/reftype.js.map +1 -1
- package/dist/docusaurus/renderers/renderers.d.ts +151 -0
- package/dist/docusaurus/renderers/renderers.d.ts.map +1 -1
- package/dist/docusaurus/renderers/renderers.js +151 -0
- package/dist/docusaurus/renderers/renderers.js.map +1 -1
- package/dist/docusaurus/renderers/substringtype.d.ts +22 -0
- package/dist/docusaurus/renderers/substringtype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/substringtype.js +22 -0
- package/dist/docusaurus/renderers/substringtype.js.map +1 -1
- package/dist/docusaurus/renderers/tableofcontentstype.d.ts +22 -0
- package/dist/docusaurus/renderers/tableofcontentstype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/tableofcontentstype.js +22 -0
- package/dist/docusaurus/renderers/tableofcontentstype.js.map +1 -1
- package/dist/docusaurus/types.d.ts +114 -8
- package/dist/docusaurus/types.d.ts.map +1 -1
- package/dist/docusaurus/types.js.map +1 -1
- package/dist/docusaurus/utils.d.ts +214 -0
- package/dist/docusaurus/utils.d.ts.map +1 -1
- package/dist/docusaurus/utils.js +214 -0
- package/dist/docusaurus/utils.js.map +1 -1
- package/dist/docusaurus/view-model/classes-vm.d.ts +139 -2
- package/dist/docusaurus/view-model/classes-vm.d.ts.map +1 -1
- package/dist/docusaurus/view-model/classes-vm.js +147 -6
- package/dist/docusaurus/view-model/classes-vm.js.map +1 -1
- package/dist/docusaurus/view-model/collection-base.d.ts +122 -2
- package/dist/docusaurus/view-model/collection-base.d.ts.map +1 -1
- package/dist/docusaurus/view-model/collection-base.js +78 -0
- package/dist/docusaurus/view-model/collection-base.js.map +1 -1
- package/dist/docusaurus/view-model/compound-base-vm.d.ts +134 -19
- package/dist/docusaurus/view-model/compound-base-vm.d.ts.map +1 -1
- package/dist/docusaurus/view-model/compound-base-vm.js +122 -26
- package/dist/docusaurus/view-model/compound-base-vm.js.map +1 -1
- package/dist/docusaurus/view-model/description-anchors.d.ts +58 -0
- package/dist/docusaurus/view-model/description-anchors.d.ts.map +1 -1
- package/dist/docusaurus/view-model/description-anchors.js +58 -0
- package/dist/docusaurus/view-model/description-anchors.js.map +1 -1
- package/dist/docusaurus/view-model/files-and-folders-vm.d.ts +249 -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 +250 -4
- package/dist/docusaurus/view-model/files-and-folders-vm.js.map +1 -1
- package/dist/docusaurus/view-model/groups-vm.d.ts +150 -2
- package/dist/docusaurus/view-model/groups-vm.d.ts.map +1 -1
- package/dist/docusaurus/view-model/groups-vm.js +153 -5
- package/dist/docusaurus/view-model/groups-vm.js.map +1 -1
- package/dist/docusaurus/view-model/members-vm.d.ts +552 -0
- package/dist/docusaurus/view-model/members-vm.d.ts.map +1 -1
- package/dist/docusaurus/view-model/members-vm.js +552 -4
- package/dist/docusaurus/view-model/members-vm.js.map +1 -1
- package/dist/docusaurus/view-model/namespaces-vm.d.ts +201 -2
- package/dist/docusaurus/view-model/namespaces-vm.d.ts.map +1 -1
- package/dist/docusaurus/view-model/namespaces-vm.js +202 -4
- package/dist/docusaurus/view-model/namespaces-vm.js.map +1 -1
- package/dist/docusaurus/view-model/options.d.ts +43 -0
- package/dist/docusaurus/view-model/options.d.ts.map +1 -1
- package/dist/docusaurus/view-model/options.js +43 -0
- package/dist/docusaurus/view-model/options.js.map +1 -1
- package/dist/docusaurus/view-model/pages-vm.d.ts +117 -2
- package/dist/docusaurus/view-model/pages-vm.d.ts.map +1 -1
- package/dist/docusaurus/view-model/pages-vm.js +119 -4
- package/dist/docusaurus/view-model/pages-vm.js.map +1 -1
- package/dist/docusaurus/view-model/tree-entries-vm.d.ts +135 -15
- package/dist/docusaurus/view-model/tree-entries-vm.d.ts.map +1 -1
- package/dist/docusaurus/view-model/tree-entries-vm.js +136 -16
- package/dist/docusaurus/view-model/tree-entries-vm.js.map +1 -1
- package/dist/docusaurus/view-model/view-model.d.ts +119 -0
- package/dist/docusaurus/view-model/view-model.d.ts.map +1 -1
- package/dist/docusaurus/view-model/view-model.js +119 -0
- package/dist/docusaurus/view-model/view-model.js.map +1 -1
- package/dist/docusaurus/workspace.d.ts +106 -0
- package/dist/docusaurus/workspace.d.ts.map +1 -1
- package/dist/docusaurus/workspace.js +107 -1
- package/dist/docusaurus/workspace.js.map +1 -1
- package/dist/doxygen/data-model/compounds/compounddef-dm.d.ts +485 -0
- package/dist/doxygen/data-model/compounds/compounddef-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/compounddef-dm.js +485 -0
- package/dist/doxygen/data-model/compounds/compounddef-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/compoundreftype-dm.d.ts +120 -0
- package/dist/doxygen/data-model/compounds/compoundreftype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/compoundreftype-dm.js +98 -0
- package/dist/doxygen/data-model/compounds/compoundreftype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/descriptiontype-dm.d.ts +2705 -0
- package/dist/doxygen/data-model/compounds/descriptiontype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/descriptiontype-dm.js +2677 -47
- package/dist/doxygen/data-model/compounds/descriptiontype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/docvarlistentrytype-dm.d.ts +165 -0
- package/dist/doxygen/data-model/compounds/docvarlistentrytype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/docvarlistentrytype-dm.js +165 -0
- package/dist/doxygen/data-model/compounds/docvarlistentrytype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/doxygentype-dm.d.ts +70 -0
- package/dist/doxygen/data-model/compounds/doxygentype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/doxygentype-dm.js +70 -0
- package/dist/doxygen/data-model/compounds/doxygentype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/enumvaluetype-dm.d.ts +78 -0
- package/dist/doxygen/data-model/compounds/enumvaluetype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/enumvaluetype-dm.js +78 -0
- package/dist/doxygen/data-model/compounds/enumvaluetype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/inctype-dm.d.ts +107 -0
- package/dist/doxygen/data-model/compounds/inctype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/inctype-dm.js +107 -0
- package/dist/doxygen/data-model/compounds/inctype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/linkedtexttype-dm.d.ts +123 -0
- package/dist/doxygen/data-model/compounds/linkedtexttype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/linkedtexttype-dm.js +123 -0
- package/dist/doxygen/data-model/compounds/linkedtexttype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/listofallmemberstype-dm.d.ts +70 -0
- package/dist/doxygen/data-model/compounds/listofallmemberstype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/listofallmemberstype-dm.js +70 -1
- package/dist/doxygen/data-model/compounds/listofallmemberstype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/locationtype-dm.d.ts +156 -0
- package/dist/doxygen/data-model/compounds/locationtype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/locationtype-dm.js +156 -5
- package/dist/doxygen/data-model/compounds/locationtype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/memberdeftype-dm.d.ts +433 -0
- package/dist/doxygen/data-model/compounds/memberdeftype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/memberdeftype-dm.js +417 -6
- package/dist/doxygen/data-model/compounds/memberdeftype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/memberreftype-dm.d.ts +135 -0
- package/dist/doxygen/data-model/compounds/memberreftype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/memberreftype-dm.js +136 -4
- package/dist/doxygen/data-model/compounds/memberreftype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/membertype-dm.d.ts +95 -0
- package/dist/doxygen/data-model/compounds/membertype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/membertype-dm.js +76 -4
- package/dist/doxygen/data-model/compounds/membertype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/paramtype-dm.d.ts +158 -0
- package/dist/doxygen/data-model/compounds/paramtype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/paramtype-dm.js +158 -1
- package/dist/doxygen/data-model/compounds/paramtype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/referencetype-dm.d.ts +130 -0
- package/dist/doxygen/data-model/compounds/referencetype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/referencetype-dm.js +130 -2
- package/dist/doxygen/data-model/compounds/referencetype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/reftexttype-dm.d.ts +120 -0
- package/dist/doxygen/data-model/compounds/reftexttype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/reftexttype-dm.js +106 -3
- package/dist/doxygen/data-model/compounds/reftexttype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/reftype-dm.d.ts +247 -0
- package/dist/doxygen/data-model/compounds/reftype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/reftype-dm.js +247 -3
- package/dist/doxygen/data-model/compounds/reftype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/reimplementtype-dm.d.ts +99 -0
- package/dist/doxygen/data-model/compounds/reimplementtype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/reimplementtype-dm.js +99 -2
- package/dist/doxygen/data-model/compounds/reimplementtype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/sectiondeftype-dm.d.ts +159 -0
- package/dist/doxygen/data-model/compounds/sectiondeftype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/sectiondeftype-dm.js +159 -3
- package/dist/doxygen/data-model/compounds/sectiondeftype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/tableofcontentstype-dm.d.ts +255 -0
- package/dist/doxygen/data-model/compounds/tableofcontentstype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/tableofcontentstype-dm.js +255 -6
- package/dist/doxygen/data-model/compounds/tableofcontentstype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/templateparamlisttype-dm.d.ts +60 -0
- package/dist/doxygen/data-model/compounds/templateparamlisttype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/templateparamlisttype-dm.js +60 -1
- package/dist/doxygen/data-model/compounds/templateparamlisttype-dm.js.map +1 -1
- package/dist/doxygen/data-model/data-model.d.ts +86 -2
- package/dist/doxygen/data-model/data-model.d.ts.map +1 -1
- package/dist/doxygen/data-model/data-model.js +86 -4
- package/dist/doxygen/data-model/data-model.js.map +1 -1
- package/dist/doxygen/data-model/doxyfile/doxyfileoptiontype-dm.d.ts +109 -0
- package/dist/doxygen/data-model/doxyfile/doxyfileoptiontype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/doxyfile/doxyfileoptiontype-dm.js +84 -2
- package/dist/doxygen/data-model/doxyfile/doxyfileoptiontype-dm.js.map +1 -1
- package/dist/doxygen/data-model/doxyfile/doxyfiletype-dm.d.ts +81 -0
- package/dist/doxygen/data-model/doxyfile/doxyfiletype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/doxyfile/doxyfiletype-dm.js +81 -3
- package/dist/doxygen/data-model/doxyfile/doxyfiletype-dm.js.map +1 -1
- package/dist/doxygen/data-model/doxygen-xml-parser.d.ts +24 -7
- package/dist/doxygen/data-model/doxygen-xml-parser.d.ts.map +1 -1
- package/dist/doxygen/data-model/doxygen-xml-parser.js +24 -22
- package/dist/doxygen/data-model/doxygen-xml-parser.js.map +1 -1
- package/dist/doxygen/data-model/index/indexcompoundtype-dm.d.ts +92 -0
- package/dist/doxygen/data-model/index/indexcompoundtype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/index/indexcompoundtype-dm.js +79 -2
- package/dist/doxygen/data-model/index/indexcompoundtype-dm.js.map +1 -1
- package/dist/doxygen/data-model/index/indexdoxygentype-dm.d.ts +76 -0
- package/dist/doxygen/data-model/index/indexdoxygentype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/index/indexdoxygentype-dm.js +76 -3
- package/dist/doxygen/data-model/index/indexdoxygentype-dm.js.map +1 -1
- package/dist/doxygen/data-model/index/indexmembertype-dm.d.ts +79 -0
- package/dist/doxygen/data-model/index/indexmembertype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/index/indexmembertype-dm.js +66 -2
- package/dist/doxygen/data-model/index/indexmembertype-dm.js.map +1 -1
- package/dist/doxygen/data-model/types.d.ts +96 -1
- package/dist/doxygen/data-model/types.d.ts.map +1 -1
- package/dist/doxygen/data-model/types.js +37 -0
- package/dist/doxygen/data-model/types.js.map +1 -1
- package/dist/doxygen2docusaurus.d.ts +4774 -0
- package/dist/tsdoc-metadata.json +11 -0
- package/package.json +11 -7
- /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
|
@@ -1,6 +1,28 @@
|
|
|
1
1
|
import { ElementStringRendererBase } from './element-renderer-base.js';
|
|
2
2
|
import type { AbstractLinkedTextType } from '../../doxygen/data-model/compounds/linkedtexttype-dm.js';
|
|
3
|
+
/**
|
|
4
|
+
* Renderer for Doxygen linked text elements containing mixed content.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* Handles complex text structures that contain both character data and
|
|
8
|
+
* reference elements. Renders child elements recursively to build the
|
|
9
|
+
* complete text output with embedded links.
|
|
10
|
+
*
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
3
13
|
export declare class LinkedTextTypeStringRenderer extends ElementStringRendererBase {
|
|
14
|
+
/**
|
|
15
|
+
* Renders a linked text element to a formatted string.
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* Processes all child elements in sequence to generate the complete
|
|
19
|
+
* text output with embedded references and mixed content. Maintains
|
|
20
|
+
* the original order of text and reference elements.
|
|
21
|
+
*
|
|
22
|
+
* @param element - The linked text element to render
|
|
23
|
+
* @param type - The rendering context type
|
|
24
|
+
* @returns The formatted string with mixed content
|
|
25
|
+
*/
|
|
4
26
|
renderToString(element: AbstractLinkedTextType, type: string): string;
|
|
5
27
|
}
|
|
6
28
|
//# sourceMappingURL=linkedtexttype.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linkedtexttype.d.ts","sourceRoot":"","sources":["../../../src/docusaurus/renderers/linkedtexttype.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,yDAAyD,CAAA;AAYrG,qBAAa,4BAA6B,SAAQ,yBAAyB;IACzE,cAAc,CAAC,OAAO,EAAE,sBAAsB,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM;CAStE"}
|
|
1
|
+
{"version":3,"file":"linkedtexttype.d.ts","sourceRoot":"","sources":["../../../src/docusaurus/renderers/linkedtexttype.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,yDAAyD,CAAA;AAYrG;;;;;;;;;GASG;AACH,qBAAa,4BAA6B,SAAQ,yBAAyB;IACzE;;;;;;;;;;;OAWG;IACH,cAAc,CAAC,OAAO,EAAE,sBAAsB,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM;CAStE"}
|
|
@@ -20,7 +20,29 @@ import { ElementStringRendererBase } from './element-renderer-base.js';
|
|
|
20
20
|
// maxOccurs="unbounded" />
|
|
21
21
|
// </xsd:sequence>
|
|
22
22
|
// </xsd:complexType>
|
|
23
|
+
/**
|
|
24
|
+
* Renderer for Doxygen linked text elements containing mixed content.
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* Handles complex text structures that contain both character data and
|
|
28
|
+
* reference elements. Renders child elements recursively to build the
|
|
29
|
+
* complete text output with embedded links.
|
|
30
|
+
*
|
|
31
|
+
* @public
|
|
32
|
+
*/
|
|
23
33
|
export class LinkedTextTypeStringRenderer extends ElementStringRendererBase {
|
|
34
|
+
/**
|
|
35
|
+
* Renders a linked text element to a formatted string.
|
|
36
|
+
*
|
|
37
|
+
* @remarks
|
|
38
|
+
* Processes all child elements in sequence to generate the complete
|
|
39
|
+
* text output with embedded references and mixed content. Maintains
|
|
40
|
+
* the original order of text and reference elements.
|
|
41
|
+
*
|
|
42
|
+
* @param element - The linked text element to render
|
|
43
|
+
* @param type - The rendering context type
|
|
44
|
+
* @returns The formatted string with mixed content
|
|
45
|
+
*/
|
|
24
46
|
renderToString(element, type) {
|
|
25
47
|
// console.log(util.inspect(element, { compact: false, depth: 999 }))
|
|
26
48
|
let text = '';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linkedtexttype.js","sourceRoot":"","sources":["../../../src/docusaurus/renderers/linkedtexttype.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,+EAA+E;AAE/E,mCAAmC;AACnC,oCAAoC;AAEpC,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAA;AAGtE,+EAA+E;AAE/E,4EAA4E;AAC5E,oEAAoE;AACpE,mBAAmB;AACnB,6DAA6D;AAC7D,wEAAwE;AACxE,oBAAoB;AACpB,qBAAqB;AAErB,MAAM,OAAO,4BAA6B,SAAQ,yBAAyB;IACzE,cAAc,CAAC,OAA+B,EAAE,IAAY;QAC1D,qEAAqE;QAErE,IAAI,IAAI,GAAG,EAAE,CAAA;QAEb,IAAI,IAAI,IAAI,CAAC,SAAS,CAAC,2BAA2B,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAA;QAE1E,OAAO,IAAI,CAAA;IACb,CAAC;CACF;AAED,+EAA+E"}
|
|
1
|
+
{"version":3,"file":"linkedtexttype.js","sourceRoot":"","sources":["../../../src/docusaurus/renderers/linkedtexttype.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,+EAA+E;AAE/E,mCAAmC;AACnC,oCAAoC;AAEpC,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAA;AAGtE,+EAA+E;AAE/E,4EAA4E;AAC5E,oEAAoE;AACpE,mBAAmB;AACnB,6DAA6D;AAC7D,wEAAwE;AACxE,oBAAoB;AACpB,qBAAqB;AAErB;;;;;;;;;GASG;AACH,MAAM,OAAO,4BAA6B,SAAQ,yBAAyB;IACzE;;;;;;;;;;;OAWG;IACH,cAAc,CAAC,OAA+B,EAAE,IAAY;QAC1D,qEAAqE;QAErE,IAAI,IAAI,GAAG,EAAE,CAAA;QAEb,IAAI,IAAI,IAAI,CAAC,SAAS,CAAC,2BAA2B,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAA;QAE1E,OAAO,IAAI,CAAA;IACb,CAAC;CACF;AAED,+EAA+E"}
|
|
@@ -1,10 +1,62 @@
|
|
|
1
1
|
import { type AbstractHighlightType, type AbstractListingTypeBase } from '../../doxygen/data-model/compounds/descriptiontype-dm.js';
|
|
2
2
|
import { ElementLinesRendererBase } from './element-renderer-base.js';
|
|
3
|
+
/**
|
|
4
|
+
* Renderer for program listing elements in documentation.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* Handles the rendering of source code listings as parsed from Doxygen XML,
|
|
8
|
+
* converting them into formatted HTML output with syntax highlighting and
|
|
9
|
+
* line numbering. Supports both full program listings and member-specific
|
|
10
|
+
* code segments.
|
|
11
|
+
*
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
3
14
|
export declare class ListingTypeLinesRenderer extends ElementLinesRendererBase {
|
|
15
|
+
/**
|
|
16
|
+
* Renders a program listing element to formatted output lines.
|
|
17
|
+
*
|
|
18
|
+
* @remarks
|
|
19
|
+
* Converts Doxygen program listing elements into HTML with appropriate
|
|
20
|
+
* CSS classes, line numbers, and syntax highlighting. Handles anchor
|
|
21
|
+
* generation for navigation and cross-referencing.
|
|
22
|
+
*
|
|
23
|
+
* @param element - The listing element to render
|
|
24
|
+
* @param type - The rendering context type
|
|
25
|
+
* @returns Array of formatted output lines
|
|
26
|
+
*/
|
|
4
27
|
renderToLines(element: AbstractListingTypeBase, type: string): string[];
|
|
5
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* Renderer for syntax highlighting elements in code listings.
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Handles the rendering of syntax-highlighted code segments by converting
|
|
34
|
+
* Doxygen highlight elements into HTML spans with appropriate CSS classes.
|
|
35
|
+
* Optimised for direct HTML generation to improve build performance.
|
|
36
|
+
*
|
|
37
|
+
* @public
|
|
38
|
+
*/
|
|
6
39
|
export declare class HighlightTypeLinesRenderer extends ElementLinesRendererBase {
|
|
40
|
+
/**
|
|
41
|
+
* Mapping of Doxygen highlight classes to CSS class names.
|
|
42
|
+
*
|
|
43
|
+
* @remarks
|
|
44
|
+
* Maps Doxygen's built-in highlight types to corresponding CSS classes
|
|
45
|
+
* for consistent syntax highlighting across different code elements.
|
|
46
|
+
*/
|
|
7
47
|
knownClasses: Record<string, string>;
|
|
48
|
+
/**
|
|
49
|
+
* Renders a syntax highlight element to formatted output lines.
|
|
50
|
+
*
|
|
51
|
+
* @remarks
|
|
52
|
+
* Converts Doxygen highlight elements into HTML span elements with
|
|
53
|
+
* appropriate CSS classes for syntax highlighting. Handles unknown
|
|
54
|
+
* highlight types by falling back to a default class.
|
|
55
|
+
*
|
|
56
|
+
* @param element - The highlight element to render
|
|
57
|
+
* @param type - The rendering context type
|
|
58
|
+
* @returns Array containing the formatted HTML span
|
|
59
|
+
*/
|
|
8
60
|
renderToLines(element: AbstractHighlightType, type: string): string[];
|
|
9
61
|
}
|
|
10
62
|
//# sourceMappingURL=listingtype.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listingtype.d.ts","sourceRoot":"","sources":["../../../src/docusaurus/renderers/listingtype.ts"],"names":[],"mappings":"AAgBA,OAAO,EAGL,KAAK,qBAAqB,EAE1B,KAAK,uBAAuB,EAE7B,MAAM,0DAA0D,CAAA;AACjE,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAKrE,qBAAa,wBAAyB,SAAQ,wBAAwB;
|
|
1
|
+
{"version":3,"file":"listingtype.d.ts","sourceRoot":"","sources":["../../../src/docusaurus/renderers/listingtype.ts"],"names":[],"mappings":"AAgBA,OAAO,EAGL,KAAK,qBAAqB,EAE1B,KAAK,uBAAuB,EAE7B,MAAM,0DAA0D,CAAA;AACjE,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAKrE;;;;;;;;;;GAUG;AACH,qBAAa,wBAAyB,SAAQ,wBAAwB;IACpE;;;;;;;;;;;OAWG;IACM,aAAa,CACpB,OAAO,EAAE,uBAAuB,EAEhC,IAAI,EAAE,MAAM,GACX,MAAM,EAAE;CAgCZ;AAoED;;;;;;;;;GASG;AACH,qBAAa,0BAA2B,SAAQ,wBAAwB;IACtE;;;;;;OAMG;IACH,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAanC;IAED;;;;;;;;;;;OAWG;IACM,aAAa,CACpB,OAAO,EAAE,qBAAqB,EAC9B,IAAI,EAAE,MAAM,GACX,MAAM,EAAE;CA2BZ"}
|
|
@@ -14,7 +14,30 @@ import util from 'node:util';
|
|
|
14
14
|
import { CodeLineDataModel, HighlightDataModel, MemberProgramListingDataModel, } from '../../doxygen/data-model/compounds/descriptiontype-dm.js';
|
|
15
15
|
import { ElementLinesRendererBase } from './element-renderer-base.js';
|
|
16
16
|
// ----------------------------------------------------------------------------
|
|
17
|
+
/**
|
|
18
|
+
* Renderer for program listing elements in documentation.
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
* Handles the rendering of source code listings as parsed from Doxygen XML,
|
|
22
|
+
* converting them into formatted HTML output with syntax highlighting and
|
|
23
|
+
* line numbering. Supports both full program listings and member-specific
|
|
24
|
+
* code segments.
|
|
25
|
+
*
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
17
28
|
export class ListingTypeLinesRenderer extends ElementLinesRendererBase {
|
|
29
|
+
/**
|
|
30
|
+
* Renders a program listing element to formatted output lines.
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Converts Doxygen program listing elements into HTML with appropriate
|
|
34
|
+
* CSS classes, line numbers, and syntax highlighting. Handles anchor
|
|
35
|
+
* generation for navigation and cross-referencing.
|
|
36
|
+
*
|
|
37
|
+
* @param element - The listing element to render
|
|
38
|
+
* @param type - The rendering context type
|
|
39
|
+
* @returns Array of formatted output lines
|
|
40
|
+
*/
|
|
18
41
|
renderToLines(element,
|
|
19
42
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
20
43
|
type) {
|
|
@@ -41,6 +64,20 @@ export class ListingTypeLinesRenderer extends ElementLinesRendererBase {
|
|
|
41
64
|
return lines;
|
|
42
65
|
}
|
|
43
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* Renders individual code lines with syntax highlighting and line numbers.
|
|
69
|
+
*
|
|
70
|
+
* @remarks
|
|
71
|
+
* Converts a single code line element into HTML format with appropriate
|
|
72
|
+
* line numbering, anchors for navigation, and syntax highlighting support.
|
|
73
|
+
* Handles permalink generation for cross-references when available.
|
|
74
|
+
*
|
|
75
|
+
* @param workspace - The workspace instance for rendering utilities
|
|
76
|
+
* @param element - The code line element to render
|
|
77
|
+
* @param type - The rendering context type
|
|
78
|
+
* @param showAnchor - Whether to include anchor elements for navigation
|
|
79
|
+
* @returns Formatted HTML string for the code line
|
|
80
|
+
*/
|
|
44
81
|
function renderCodeLinesToString(workspace, element, type, showAnchor) {
|
|
45
82
|
// console.log(util.inspect(element, { compact: false, depth: 999 }))
|
|
46
83
|
assert(element instanceof CodeLineDataModel);
|
|
@@ -80,9 +117,24 @@ function renderCodeLinesToString(workspace, element, type, showAnchor) {
|
|
|
80
117
|
text += '</div>';
|
|
81
118
|
return text;
|
|
82
119
|
}
|
|
83
|
-
|
|
84
|
-
|
|
120
|
+
/**
|
|
121
|
+
* Renderer for syntax highlighting elements in code listings.
|
|
122
|
+
*
|
|
123
|
+
* @remarks
|
|
124
|
+
* Handles the rendering of syntax-highlighted code segments by converting
|
|
125
|
+
* Doxygen highlight elements into HTML spans with appropriate CSS classes.
|
|
126
|
+
* Optimised for direct HTML generation to improve build performance.
|
|
127
|
+
*
|
|
128
|
+
* @public
|
|
129
|
+
*/
|
|
85
130
|
export class HighlightTypeLinesRenderer extends ElementLinesRendererBase {
|
|
131
|
+
/**
|
|
132
|
+
* Mapping of Doxygen highlight classes to CSS class names.
|
|
133
|
+
*
|
|
134
|
+
* @remarks
|
|
135
|
+
* Maps Doxygen's built-in highlight types to corresponding CSS classes
|
|
136
|
+
* for consistent syntax highlighting across different code elements.
|
|
137
|
+
*/
|
|
86
138
|
knownClasses = {
|
|
87
139
|
normal: 'doxyHighlight',
|
|
88
140
|
charliteral: 'doxyHighlightCharLiteral',
|
|
@@ -97,6 +149,18 @@ export class HighlightTypeLinesRenderer extends ElementLinesRendererBase {
|
|
|
97
149
|
vhdlkeyword: 'doxyHighlightVhdlKeyword',
|
|
98
150
|
vhdllogic: 'doxyHighlightVhdlLogic',
|
|
99
151
|
};
|
|
152
|
+
/**
|
|
153
|
+
* Renders a syntax highlight element to formatted output lines.
|
|
154
|
+
*
|
|
155
|
+
* @remarks
|
|
156
|
+
* Converts Doxygen highlight elements into HTML span elements with
|
|
157
|
+
* appropriate CSS classes for syntax highlighting. Handles unknown
|
|
158
|
+
* highlight types by falling back to a default class.
|
|
159
|
+
*
|
|
160
|
+
* @param element - The highlight element to render
|
|
161
|
+
* @param type - The rendering context type
|
|
162
|
+
* @returns Array containing the formatted HTML span
|
|
163
|
+
*/
|
|
100
164
|
renderToLines(element, type) {
|
|
101
165
|
// console.log(util.inspect(element, { compact: false, depth: 999 }))
|
|
102
166
|
assert(element instanceof HighlightDataModel);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listingtype.js","sourceRoot":"","sources":["../../../src/docusaurus/renderers/listingtype.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,+EAA+E;AAE/E,OAAO,MAAM,MAAM,aAAa,CAAA;AAChC,OAAO,IAAI,MAAM,WAAW,CAAA;AAE5B,OAAO,EAEL,iBAAiB,EAEjB,kBAAkB,EAElB,6BAA6B,GAC9B,MAAM,0DAA0D,CAAA;AACjE,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAGrE,+EAA+E;AAE/E,MAAM,OAAO,wBAAyB,SAAQ,wBAAwB;
|
|
1
|
+
{"version":3,"file":"listingtype.js","sourceRoot":"","sources":["../../../src/docusaurus/renderers/listingtype.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,+EAA+E;AAE/E,OAAO,MAAM,MAAM,aAAa,CAAA;AAChC,OAAO,IAAI,MAAM,WAAW,CAAA;AAE5B,OAAO,EAEL,iBAAiB,EAEjB,kBAAkB,EAElB,6BAA6B,GAC9B,MAAM,0DAA0D,CAAA;AACjE,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAGrE,+EAA+E;AAE/E;;;;;;;;;;GAUG;AACH,MAAM,OAAO,wBAAyB,SAAQ,wBAAwB;IACpE;;;;;;;;;;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A;YAC1E,IAAI,IAAI,SAAS,CAAA;QACnB,CAAC;QAED,OAAO,CAAC,IAAI,CAAC,CAAA;IACf,CAAC;CACF;AAED,+EAA+E"}
|
|
@@ -1,6 +1,28 @@
|
|
|
1
1
|
import { ElementLinesRendererBase } from './element-renderer-base.js';
|
|
2
2
|
import type { AbstractParamType } from '../../doxygen/data-model/compounds/paramtype-dm.js';
|
|
3
|
+
/**
|
|
4
|
+
* Renderer for parameter type elements in function documentation.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* Handles the rendering of function and method parameters as parsed from
|
|
8
|
+
* Doxygen XML, converting them into formatted output that includes type
|
|
9
|
+
* information, parameter names, and default values when available.
|
|
10
|
+
*
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
3
13
|
export declare class ParamTypeLinesRenderer extends ElementLinesRendererBase {
|
|
14
|
+
/**
|
|
15
|
+
* Renders a parameter element to formatted output lines.
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* Converts Doxygen parameter elements into formatted text including
|
|
19
|
+
* type information, parameter names, array specifications, and default
|
|
20
|
+
* values. Handles both declaration and definition name variants.
|
|
21
|
+
*
|
|
22
|
+
* @param element - The parameter element to render
|
|
23
|
+
* @param type - The rendering context type
|
|
24
|
+
* @returns Array of formatted output lines
|
|
25
|
+
*/
|
|
4
26
|
renderToLines(element: AbstractParamType, type: string): string[];
|
|
5
27
|
}
|
|
6
28
|
//# sourceMappingURL=paramtype.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paramtype.d.ts","sourceRoot":"","sources":["../../../src/docusaurus/renderers/paramtype.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAkB3F,qBAAa,sBAAuB,SAAQ,wBAAwB;
|
|
1
|
+
{"version":3,"file":"paramtype.d.ts","sourceRoot":"","sources":["../../../src/docusaurus/renderers/paramtype.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAkB3F;;;;;;;;;GASG;AACH,qBAAa,sBAAuB,SAAQ,wBAAwB;IAClE;;;;;;;;;;;OAWG;IACM,aAAa,CAAC,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE;CAmD3E"}
|
|
@@ -26,7 +26,29 @@ import { ElementLinesRendererBase } from './element-renderer-base.js';
|
|
|
26
26
|
// minOccurs="0" />
|
|
27
27
|
// </xsd:sequence>
|
|
28
28
|
// </xsd:complexType>
|
|
29
|
+
/**
|
|
30
|
+
* Renderer for parameter type elements in function documentation.
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Handles the rendering of function and method parameters as parsed from
|
|
34
|
+
* Doxygen XML, converting them into formatted output that includes type
|
|
35
|
+
* information, parameter names, and default values when available.
|
|
36
|
+
*
|
|
37
|
+
* @public
|
|
38
|
+
*/
|
|
29
39
|
export class ParamTypeLinesRenderer extends ElementLinesRendererBase {
|
|
40
|
+
/**
|
|
41
|
+
* Renders a parameter element to formatted output lines.
|
|
42
|
+
*
|
|
43
|
+
* @remarks
|
|
44
|
+
* Converts Doxygen parameter elements into formatted text including
|
|
45
|
+
* type information, parameter names, array specifications, and default
|
|
46
|
+
* values. Handles both declaration and definition name variants.
|
|
47
|
+
*
|
|
48
|
+
* @param element - The parameter element to render
|
|
49
|
+
* @param type - The rendering context type
|
|
50
|
+
* @returns Array of formatted output lines
|
|
51
|
+
*/
|
|
30
52
|
renderToLines(element, type) {
|
|
31
53
|
// console.log(util.inspect(element, { compact: false, depth: 999 }))
|
|
32
54
|
if (element.attributes !== undefined) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paramtype.js","sourceRoot":"","sources":["../../../src/docusaurus/renderers/paramtype.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,+EAA+E;AAE/E,mCAAmC;AACnC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AAEjC,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAGrE,+EAA+E;AAE/E,qCAAqC;AACrC,mBAAmB;AACnB,wEAAwE;AACxE,sEAAsE;AACtE,sEAAsE;AACtE,qEAAqE;AACrE,mEAAmE;AACnE,wEAAwE;AACxE,gFAAgF;AAChF,kEAAkE;AAClE,0BAA0B;AAC1B,oBAAoB;AACpB,qBAAqB;AAErB,MAAM,OAAO,sBAAuB,SAAQ,wBAAwB;
|
|
1
|
+
{"version":3,"file":"paramtype.js","sourceRoot":"","sources":["../../../src/docusaurus/renderers/paramtype.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,+EAA+E;AAE/E,mCAAmC;AACnC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AAEjC,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAGrE,+EAA+E;AAE/E,qCAAqC;AACrC,mBAAmB;AACnB,wEAAwE;AACxE,sEAAsE;AACtE,sEAAsE;AACtE,qEAAqE;AACrE,mEAAmE;AACnE,wEAAwE;AACxE,gFAAgF;AAChF,kEAAkE;AAClE,0BAA0B;AAC1B,oBAAoB;AACpB,qBAAqB;AAErB;;;;;;;;;GASG;AACH,MAAM,OAAO,sBAAuB,SAAQ,wBAAwB;IAClE;;;;;;;;;;;OAWG;IACM,aAAa,CAAC,OAA0B,EAAE,IAAY;QAC7D,qEAAqE;QAErE,IAAI,OAAO,CAAC,UAAU,KAAK,SAAS,EAAE,CAAC;YACrC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC,CAAA;YACpE,OAAO,CAAC,KA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nC,IAAI,IAAI,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAA;YAC9B,IAAI,OAAO,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;gBAChC,IAAI,IAAI,IAAI,OAAO,CAAC,KAAK,EAAE,CAAA;YAC7B,CAAC;YACD,IAAI,OAAO,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;gBACjC,IAAI,IAAI,IAAI,IAAI,CAAC,SAAS,CAAC,qBAAqB,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,CAAA;YAC1E,CAAC;QACH,CAAC;QAED,OAAO,CAAC,IAAI,CAAC,CAAA;IACf,CAAC;CACF;AAED,+EAA+E"}
|
|
@@ -1,6 +1,29 @@
|
|
|
1
1
|
import { ElementStringRendererBase } from './element-renderer-base.js';
|
|
2
2
|
import { type AbstractReferenceType } from '../../doxygen/data-model/compounds/referencetype-dm.js';
|
|
3
|
+
/**
|
|
4
|
+
* Renderer for reference elements in documentation cross-references.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* Handles the rendering of cross-reference elements that link to other
|
|
8
|
+
* documented members, creating appropriate hyperlinks with proper
|
|
9
|
+
* permalinks for navigation within the documentation.
|
|
10
|
+
*
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
3
13
|
export declare class ReferenceTypeStringRenderer extends ElementStringRendererBase {
|
|
14
|
+
/**
|
|
15
|
+
* Renders a reference element to a formatted string with hyperlinks.
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* Converts Doxygen reference elements into HTML anchor tags with
|
|
19
|
+
* appropriate permalinks to the referenced members. Handles both
|
|
20
|
+
* forward references and reverse references whilst sanitising
|
|
21
|
+
* anonymous namespace names for display.
|
|
22
|
+
*
|
|
23
|
+
* @param element - The reference element to render
|
|
24
|
+
* @param type - The rendering context type
|
|
25
|
+
* @returns Formatted HTML string with hyperlink
|
|
26
|
+
*/
|
|
4
27
|
renderToString(element: AbstractReferenceType, type: string): string;
|
|
5
28
|
}
|
|
6
29
|
//# sourceMappingURL=referencetype.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"referencetype.d.ts","sourceRoot":"","sources":["../../../src/docusaurus/renderers/referencetype.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,EACL,KAAK,qBAAqB,EAG3B,MAAM,wDAAwD,CAAA;
|
|
1
|
+
{"version":3,"file":"referencetype.d.ts","sourceRoot":"","sources":["../../../src/docusaurus/renderers/referencetype.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,EACL,KAAK,qBAAqB,EAG3B,MAAM,wDAAwD,CAAA;AAK/D;;;;;;;;;GASG;AACH,qBAAa,2BAA4B,SAAQ,yBAAyB;IACxE;;;;;;;;;;;;OAYG;IACH,cAAc,CAAC,OAAO,EAAE,qBAAqB,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM;CA8BrE"}
|
|
@@ -15,9 +15,30 @@ import { ElementStringRendererBase } from './element-renderer-base.js';
|
|
|
15
15
|
import { ReferenceDataModel, ReferencedByDataModel, } from '../../doxygen/data-model/compounds/referencetype-dm.js';
|
|
16
16
|
import { sanitizeAnonymousNamespace } from '../utils.js';
|
|
17
17
|
// ----------------------------------------------------------------------------
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Renderer for reference elements in documentation cross-references.
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* Handles the rendering of cross-reference elements that link to other
|
|
23
|
+
* documented members, creating appropriate hyperlinks with proper
|
|
24
|
+
* permalinks for navigation within the documentation.
|
|
25
|
+
*
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
20
28
|
export class ReferenceTypeStringRenderer extends ElementStringRendererBase {
|
|
29
|
+
/**
|
|
30
|
+
* Renders a reference element to a formatted string with hyperlinks.
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Converts Doxygen reference elements into HTML anchor tags with
|
|
34
|
+
* appropriate permalinks to the referenced members. Handles both
|
|
35
|
+
* forward references and reverse references whilst sanitising
|
|
36
|
+
* anonymous namespace names for display.
|
|
37
|
+
*
|
|
38
|
+
* @param element - The reference element to render
|
|
39
|
+
* @param type - The rendering context type
|
|
40
|
+
* @returns Formatted HTML string with hyperlink
|
|
41
|
+
*/
|
|
21
42
|
renderToString(element, type) {
|
|
22
43
|
// console.log(util.inspect(element, { compact: false, depth: 999 }))
|
|
23
44
|
let text = '';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"referencetype.js","sourceRoot":"","sources":["../../../src/docusaurus/renderers/referencetype.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,+EAA+E;AAE/E,OAAO,MAAM,MAAM,aAAa,CAAA;AAChC,oCAAoC;AAEpC,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,EAEL,kBAAkB,EAClB,qBAAqB,GACtB,MAAM,wDAAwD,CAAA;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAA;AAExD,+EAA+E;AAE/E
|
|
1
|
+
{"version":3,"file":"referencetype.js","sourceRoot":"","sources":["../../../src/docusaurus/renderers/referencetype.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,+EAA+E;AAE/E,OAAO,MAAM,MAAM,aAAa,CAAA;AAChC,oCAAoC;AAEpC,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,EAEL,kBAAkB,EAClB,qBAAqB,GACtB,MAAM,wDAAwD,CAAA;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAA;AAExD,+EAA+E;AAE/E;;;;;;;;;GASG;AACH,MAAM,OAAO,2BAA4B,SAAQ,yBAAyB;IACxE;;;;;;;;;;;;OAYG;IACH,cAAc,CAAC,OAA8B,EAAE,IAAY;QACzD,qEAAqE;QAErE,IAAI,IAAI,GAAG,EAAE,CAAA;QAEb,IACE,OAAO,YAAY,qBAAqB;YACxC,OAAO,YAAY,kBAAkB,EACrC,CAAC;YACD,MAAM,eAAe,GAAG,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC;gBAClD,KAAK,EAAE,OAAO,CAAC,KAAK;gBACpB,OAAO,EAAE,QAAQ;aAClB,CAAC,CAAA;YACF,MAAM,CAAC,eAAe,KAAK,SAAS,CAAC,CAAA;YACrC,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,YAAY,CACtC,0BAA0B,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,EAC/C,IAAI,CACL,CAAA;YACD,IAAI,IAAI,YAAY,eAAe,KAAK,IAAI,MAAM,CAAA;QACpD,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,KAAK,CACX,OAAO,CAAC,WAAW,CAAC,IAAI,EACxB,oBAAoB,EACpB,IAAI,CAAC,WAAW,CAAC,IAAI,CACtB,CAAA;YACD,OAAO,EAAE,CAAA;QACX,CAAC;QAED,OAAO,IAAI,CAAA;IACb,CAAC;CACF;AAED,+EAA+E"}
|
|
@@ -1,6 +1,28 @@
|
|
|
1
1
|
import { ElementStringRendererBase } from './element-renderer-base.js';
|
|
2
2
|
import type { AbstractRefTextType } from '../../doxygen/data-model/compounds/reftexttype-dm.js';
|
|
3
|
+
/**
|
|
4
|
+
* Renderer for Doxygen reference text elements with linking functionality.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* Converts reference text elements into HTML anchor tags when a valid
|
|
8
|
+
* permalink is available, otherwise renders as plain text. Provides
|
|
9
|
+
* cross-reference functionality for Doxygen elements.
|
|
10
|
+
*
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
3
13
|
export declare class RefTextTypeStringRenderer extends ElementStringRendererBase {
|
|
14
|
+
/**
|
|
15
|
+
* Renders a reference text element to a formatted string with linking.
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* Generates an HTML anchor tag when a valid permalink exists for the
|
|
19
|
+
* referenced element, otherwise renders the text content directly.
|
|
20
|
+
* Logs warnings for unsupported attributes that are not yet implemented.
|
|
21
|
+
*
|
|
22
|
+
* @param element - The reference text element to render
|
|
23
|
+
* @param type - The rendering context type
|
|
24
|
+
* @returns The formatted HTML string with optional link
|
|
25
|
+
*/
|
|
4
26
|
renderToString(element: AbstractRefTextType, type: string): string;
|
|
5
27
|
}
|
|
6
28
|
//# sourceMappingURL=reftexttype.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reftexttype.d.ts","sourceRoot":"","sources":["../../../src/docusaurus/renderers/reftexttype.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAA;AAI/F,qBAAa,yBAA0B,SAAQ,yBAAyB;IACtE,cAAc,CAAC,OAAO,EAAE,mBAAmB,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM;CAkCnE"}
|
|
1
|
+
{"version":3,"file":"reftexttype.d.ts","sourceRoot":"","sources":["../../../src/docusaurus/renderers/reftexttype.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAA;AAI/F;;;;;;;;;GASG;AACH,qBAAa,yBAA0B,SAAQ,yBAAyB;IACtE;;;;;;;;;;;OAWG;IACH,cAAc,CAAC,OAAO,EAAE,mBAAmB,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM;CAkCnE"}
|
|
@@ -13,7 +13,29 @@
|
|
|
13
13
|
// import * as util from 'node:util'
|
|
14
14
|
import { ElementStringRendererBase } from './element-renderer-base.js';
|
|
15
15
|
// ----------------------------------------------------------------------------
|
|
16
|
+
/**
|
|
17
|
+
* Renderer for Doxygen reference text elements with linking functionality.
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
* Converts reference text elements into HTML anchor tags when a valid
|
|
21
|
+
* permalink is available, otherwise renders as plain text. Provides
|
|
22
|
+
* cross-reference functionality for Doxygen elements.
|
|
23
|
+
*
|
|
24
|
+
* @public
|
|
25
|
+
*/
|
|
16
26
|
export class RefTextTypeStringRenderer extends ElementStringRendererBase {
|
|
27
|
+
/**
|
|
28
|
+
* Renders a reference text element to a formatted string with linking.
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* Generates an HTML anchor tag when a valid permalink exists for the
|
|
32
|
+
* referenced element, otherwise renders the text content directly.
|
|
33
|
+
* Logs warnings for unsupported attributes that are not yet implemented.
|
|
34
|
+
*
|
|
35
|
+
* @param element - The reference text element to render
|
|
36
|
+
* @param type - The rendering context type
|
|
37
|
+
* @returns The formatted HTML string with optional link
|
|
38
|
+
*/
|
|
17
39
|
renderToString(element, type) {
|
|
18
40
|
// console.log(util.inspect(element, { compact: false, depth: 999 }))
|
|
19
41
|
if (element.external !== undefined) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reftexttype.js","sourceRoot":"","sources":["../../../src/docusaurus/renderers/reftexttype.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,+EAA+E;AAE/E,mCAAmC;AACnC,oCAAoC;AAEpC,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAA;AAGtE,+EAA+E;AAE/E,MAAM,OAAO,yBAA0B,SAAQ,yBAAyB;IACtE,cAAc,CAAC,OAA4B,EAAE,IAAY;QACvD,qEAAqE;QAErE,IAAI,OAAO,CAAC,QAAQ,KAAK,SAAS,EAAE,CAAC;YACnC,OAAO,CAAC,KAAK,CACX,OAAO,CAAC,WAAW,EACnB,wCAAwC,EACxC,IAAI,CAAC,WAAW,CAAC,IAAI,CACtB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ACxC,IAAI,CAAC,WAAW,CAAC,IAAI,CACtB,CAAA;QACH,CAAC;QACD,IAAI,OAAO,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;YAClC,OAAO,CAAC,KAAK,CACX,OAAO,CAAC,WAAW,EACnB,uCAAuC,EACvC,IAAI,CAAC,WAAW,CAAC,IAAI,CACtB,CAAA;QACH,CAAC;QAED,IAAI,IAAI,GAAG,EAAE,CAAA;QAEb,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC;YAC5C,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,OAAO,EAAE,OAAO,CAAC,OAAO;SACzB,CAAC,CAAA;QAEF,MAAM,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,IAAI,CAAC,CAAA;QACtE,IAAI,SAAS,KAAK,SAAS,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACpD,IAAI,IAAI,YAAY,SAAS,KAAK,OAAO,MAAM,CAAA;QACjD,CAAC;aAAM,CAAC;YACN,IAAI,IAAI,OAAO,CAAA;QACjB,CAAC;QAED,OAAO,IAAI,CAAA;IACb,CAAC;CACF;AAED,+EAA+E"}
|
|
@@ -1,6 +1,28 @@
|
|
|
1
1
|
import { ElementLinesRendererBase } from './element-renderer-base.js';
|
|
2
2
|
import type { AbstractRefType } from '../../doxygen/data-model/compounds/reftype-dm.js';
|
|
3
|
+
/**
|
|
4
|
+
* Renderer for reference type elements in documentation cross-references.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* Handles the rendering of reference elements that link to other documented
|
|
8
|
+
* entities, creating appropriate hyperlinks with permalinks when targets
|
|
9
|
+
* are available. Used for cross-referencing between documentation elements.
|
|
10
|
+
*
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
3
13
|
export declare class RefTypeLinesRenderer extends ElementLinesRendererBase {
|
|
14
|
+
/**
|
|
15
|
+
* Renders a reference element to formatted output lines.
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* Converts Doxygen reference elements into HTML anchor tags with
|
|
19
|
+
* appropriate permalinks to the referenced entities. Falls back to
|
|
20
|
+
* plain text when no permalink is available for the target.
|
|
21
|
+
*
|
|
22
|
+
* @param element - The reference element to render
|
|
23
|
+
* @param type - The rendering context type
|
|
24
|
+
* @returns Array of formatted output lines
|
|
25
|
+
*/
|
|
4
26
|
renderToLines(element: AbstractRefType, type: string): string[];
|
|
5
27
|
}
|
|
6
28
|
//# sourceMappingURL=reftype.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reftype.d.ts","sourceRoot":"","sources":["../../../src/docusaurus/renderers/reftype.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAA;AAIvF,qBAAa,oBAAqB,SAAQ,wBAAwB;
|
|
1
|
+
{"version":3,"file":"reftype.d.ts","sourceRoot":"","sources":["../../../src/docusaurus/renderers/reftype.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAA;AAIvF;;;;;;;;;GASG;AACH,qBAAa,oBAAqB,SAAQ,wBAAwB;IAChE;;;;;;;;;;;OAWG;IACM,aAAa,CAAC,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE;CA8BzE"}
|
|
@@ -13,7 +13,29 @@
|
|
|
13
13
|
// import * as util from 'node:util'
|
|
14
14
|
import { ElementLinesRendererBase } from './element-renderer-base.js';
|
|
15
15
|
// ----------------------------------------------------------------------------
|
|
16
|
+
/**
|
|
17
|
+
* Renderer for reference type elements in documentation cross-references.
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
* Handles the rendering of reference elements that link to other documented
|
|
21
|
+
* entities, creating appropriate hyperlinks with permalinks when targets
|
|
22
|
+
* are available. Used for cross-referencing between documentation elements.
|
|
23
|
+
*
|
|
24
|
+
* @public
|
|
25
|
+
*/
|
|
16
26
|
export class RefTypeLinesRenderer extends ElementLinesRendererBase {
|
|
27
|
+
/**
|
|
28
|
+
* Renders a reference element to formatted output lines.
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* Converts Doxygen reference elements into HTML anchor tags with
|
|
32
|
+
* appropriate permalinks to the referenced entities. Falls back to
|
|
33
|
+
* plain text when no permalink is available for the target.
|
|
34
|
+
*
|
|
35
|
+
* @param element - The reference element to render
|
|
36
|
+
* @param type - The rendering context type
|
|
37
|
+
* @returns Array of formatted output lines
|
|
38
|
+
*/
|
|
17
39
|
renderToLines(element, type) {
|
|
18
40
|
// console.log(util.inspect(element, { compact: false, depth: 999 }))
|
|
19
41
|
if (element.prot !== undefined) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reftype.js","sourceRoot":"","sources":["../../../src/docusaurus/renderers/reftype.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,+EAA+E;AAE/E,mCAAmC;AACnC,oCAAoC;AAEpC,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAGrE,+EAA+E;AAE/E,MAAM,OAAO,oBAAqB,SAAQ,wBAAwB;
|
|
1
|
+
{"version":3,"file":"reftype.js","sourceRoot":"","sources":["../../../src/docusaurus/renderers/reftype.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,+EAA+E;AAE/E,mCAAmC;AACnC,oCAAoC;AAEpC,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAGrE,+EAA+E;AAE/E;;;;;;;;;GASG;AACH,MAAM,OAAO,oBAAqB,SAAQ,wBAAwB;IAChE;;;;;;;;;;;OAWG;IACM,aAAa,CAA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