@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.
Files changed (267) hide show
  1. package/README.md +3 -4
  2. package/dist/cli/main.d.ts +6 -0
  3. package/dist/cli/main.d.ts.map +1 -1
  4. package/dist/cli/main.js +29 -2
  5. package/dist/cli/main.js.map +1 -1
  6. package/dist/docusaurus/cli-options.d.ts +268 -39
  7. package/dist/docusaurus/cli-options.d.ts.map +1 -1
  8. package/dist/docusaurus/cli-options.js +267 -53
  9. package/dist/docusaurus/cli-options.js.map +1 -1
  10. package/dist/docusaurus/generator.d.ts +179 -4
  11. package/dist/docusaurus/generator.d.ts.map +1 -1
  12. package/dist/docusaurus/generator.js +215 -45
  13. package/dist/docusaurus/generator.js.map +1 -1
  14. package/dist/docusaurus/renderers/descriptiontype.d.ts +417 -0
  15. package/dist/docusaurus/renderers/descriptiontype.d.ts.map +1 -1
  16. package/dist/docusaurus/renderers/descriptiontype.js +417 -0
  17. package/dist/docusaurus/renderers/descriptiontype.js.map +1 -1
  18. package/dist/docusaurus/renderers/docinternalstype.d.ts +132 -0
  19. package/dist/docusaurus/renderers/docinternalstype.d.ts.map +1 -1
  20. package/dist/docusaurus/renderers/docinternalstype.js +132 -0
  21. package/dist/docusaurus/renderers/docinternalstype.js.map +1 -1
  22. package/dist/docusaurus/renderers/doclisttype.d.ts +22 -0
  23. package/dist/docusaurus/renderers/doclisttype.d.ts.map +1 -1
  24. package/dist/docusaurus/renderers/doclisttype.js +22 -2
  25. package/dist/docusaurus/renderers/doclisttype.js.map +1 -1
  26. package/dist/docusaurus/renderers/doctabletype.d.ts +88 -0
  27. package/dist/docusaurus/renderers/doctabletype.d.ts.map +1 -1
  28. package/dist/docusaurus/renderers/doctabletype.js +88 -0
  29. package/dist/docusaurus/renderers/doctabletype.js.map +1 -1
  30. package/dist/docusaurus/renderers/doctitletype.d.ts +22 -0
  31. package/dist/docusaurus/renderers/doctitletype.d.ts.map +1 -1
  32. package/dist/docusaurus/renderers/doctitletype.js +22 -0
  33. package/dist/docusaurus/renderers/doctitletype.js.map +1 -1
  34. package/dist/docusaurus/renderers/docvariablelisttype.d.ts +44 -0
  35. package/dist/docusaurus/renderers/docvariablelisttype.d.ts.map +1 -1
  36. package/dist/docusaurus/renderers/docvariablelisttype.js +44 -0
  37. package/dist/docusaurus/renderers/docvariablelisttype.js.map +1 -1
  38. package/dist/docusaurus/renderers/docxrefsecttype.d.ts +22 -0
  39. package/dist/docusaurus/renderers/docxrefsecttype.d.ts.map +1 -1
  40. package/dist/docusaurus/renderers/docxrefsecttype.js +22 -0
  41. package/dist/docusaurus/renderers/docxrefsecttype.js.map +1 -1
  42. package/dist/docusaurus/renderers/element-renderer-base.d.ts +74 -0
  43. package/dist/docusaurus/renderers/element-renderer-base.d.ts.map +1 -1
  44. package/dist/docusaurus/renderers/element-renderer-base.js +52 -0
  45. package/dist/docusaurus/renderers/element-renderer-base.js.map +1 -1
  46. package/dist/docusaurus/renderers/inctype.d.ts +23 -0
  47. package/dist/docusaurus/renderers/inctype.d.ts.map +1 -1
  48. package/dist/docusaurus/renderers/inctype.js +23 -0
  49. package/dist/docusaurus/renderers/inctype.js.map +1 -1
  50. package/dist/docusaurus/renderers/linkedtexttype.d.ts +22 -0
  51. package/dist/docusaurus/renderers/linkedtexttype.d.ts.map +1 -1
  52. package/dist/docusaurus/renderers/linkedtexttype.js +22 -0
  53. package/dist/docusaurus/renderers/linkedtexttype.js.map +1 -1
  54. package/dist/docusaurus/renderers/listingtype.d.ts +52 -0
  55. package/dist/docusaurus/renderers/listingtype.d.ts.map +1 -1
  56. package/dist/docusaurus/renderers/listingtype.js +66 -2
  57. package/dist/docusaurus/renderers/listingtype.js.map +1 -1
  58. package/dist/docusaurus/renderers/paramtype.d.ts +22 -0
  59. package/dist/docusaurus/renderers/paramtype.d.ts.map +1 -1
  60. package/dist/docusaurus/renderers/paramtype.js +22 -0
  61. package/dist/docusaurus/renderers/paramtype.js.map +1 -1
  62. package/dist/docusaurus/renderers/referencetype.d.ts +23 -0
  63. package/dist/docusaurus/renderers/referencetype.d.ts.map +1 -1
  64. package/dist/docusaurus/renderers/referencetype.js +23 -2
  65. package/dist/docusaurus/renderers/referencetype.js.map +1 -1
  66. package/dist/docusaurus/renderers/reftexttype.d.ts +22 -0
  67. package/dist/docusaurus/renderers/reftexttype.d.ts.map +1 -1
  68. package/dist/docusaurus/renderers/reftexttype.js +22 -0
  69. package/dist/docusaurus/renderers/reftexttype.js.map +1 -1
  70. package/dist/docusaurus/renderers/reftype.d.ts +22 -0
  71. package/dist/docusaurus/renderers/reftype.d.ts.map +1 -1
  72. package/dist/docusaurus/renderers/reftype.js +22 -0
  73. package/dist/docusaurus/renderers/reftype.js.map +1 -1
  74. package/dist/docusaurus/renderers/renderers.d.ts +151 -0
  75. package/dist/docusaurus/renderers/renderers.d.ts.map +1 -1
  76. package/dist/docusaurus/renderers/renderers.js +151 -0
  77. package/dist/docusaurus/renderers/renderers.js.map +1 -1
  78. package/dist/docusaurus/renderers/substringtype.d.ts +22 -0
  79. package/dist/docusaurus/renderers/substringtype.d.ts.map +1 -1
  80. package/dist/docusaurus/renderers/substringtype.js +22 -0
  81. package/dist/docusaurus/renderers/substringtype.js.map +1 -1
  82. package/dist/docusaurus/renderers/tableofcontentstype.d.ts +22 -0
  83. package/dist/docusaurus/renderers/tableofcontentstype.d.ts.map +1 -1
  84. package/dist/docusaurus/renderers/tableofcontentstype.js +22 -0
  85. package/dist/docusaurus/renderers/tableofcontentstype.js.map +1 -1
  86. package/dist/docusaurus/types.d.ts +114 -8
  87. package/dist/docusaurus/types.d.ts.map +1 -1
  88. package/dist/docusaurus/types.js.map +1 -1
  89. package/dist/docusaurus/utils.d.ts +214 -0
  90. package/dist/docusaurus/utils.d.ts.map +1 -1
  91. package/dist/docusaurus/utils.js +214 -0
  92. package/dist/docusaurus/utils.js.map +1 -1
  93. package/dist/docusaurus/view-model/classes-vm.d.ts +139 -2
  94. package/dist/docusaurus/view-model/classes-vm.d.ts.map +1 -1
  95. package/dist/docusaurus/view-model/classes-vm.js +147 -6
  96. package/dist/docusaurus/view-model/classes-vm.js.map +1 -1
  97. package/dist/docusaurus/view-model/collection-base.d.ts +122 -2
  98. package/dist/docusaurus/view-model/collection-base.d.ts.map +1 -1
  99. package/dist/docusaurus/view-model/collection-base.js +78 -0
  100. package/dist/docusaurus/view-model/collection-base.js.map +1 -1
  101. package/dist/docusaurus/view-model/compound-base-vm.d.ts +134 -19
  102. package/dist/docusaurus/view-model/compound-base-vm.d.ts.map +1 -1
  103. package/dist/docusaurus/view-model/compound-base-vm.js +122 -26
  104. package/dist/docusaurus/view-model/compound-base-vm.js.map +1 -1
  105. package/dist/docusaurus/view-model/description-anchors.d.ts +58 -0
  106. package/dist/docusaurus/view-model/description-anchors.d.ts.map +1 -1
  107. package/dist/docusaurus/view-model/description-anchors.js +58 -0
  108. package/dist/docusaurus/view-model/description-anchors.js.map +1 -1
  109. package/dist/docusaurus/view-model/files-and-folders-vm.d.ts +249 -2
  110. package/dist/docusaurus/view-model/files-and-folders-vm.d.ts.map +1 -1
  111. package/dist/docusaurus/view-model/files-and-folders-vm.js +250 -4
  112. package/dist/docusaurus/view-model/files-and-folders-vm.js.map +1 -1
  113. package/dist/docusaurus/view-model/groups-vm.d.ts +150 -2
  114. package/dist/docusaurus/view-model/groups-vm.d.ts.map +1 -1
  115. package/dist/docusaurus/view-model/groups-vm.js +153 -5
  116. package/dist/docusaurus/view-model/groups-vm.js.map +1 -1
  117. package/dist/docusaurus/view-model/members-vm.d.ts +552 -0
  118. package/dist/docusaurus/view-model/members-vm.d.ts.map +1 -1
  119. package/dist/docusaurus/view-model/members-vm.js +552 -4
  120. package/dist/docusaurus/view-model/members-vm.js.map +1 -1
  121. package/dist/docusaurus/view-model/namespaces-vm.d.ts +201 -2
  122. package/dist/docusaurus/view-model/namespaces-vm.d.ts.map +1 -1
  123. package/dist/docusaurus/view-model/namespaces-vm.js +202 -4
  124. package/dist/docusaurus/view-model/namespaces-vm.js.map +1 -1
  125. package/dist/docusaurus/view-model/options.d.ts +43 -0
  126. package/dist/docusaurus/view-model/options.d.ts.map +1 -1
  127. package/dist/docusaurus/view-model/options.js +43 -0
  128. package/dist/docusaurus/view-model/options.js.map +1 -1
  129. package/dist/docusaurus/view-model/pages-vm.d.ts +117 -2
  130. package/dist/docusaurus/view-model/pages-vm.d.ts.map +1 -1
  131. package/dist/docusaurus/view-model/pages-vm.js +119 -4
  132. package/dist/docusaurus/view-model/pages-vm.js.map +1 -1
  133. package/dist/docusaurus/view-model/tree-entries-vm.d.ts +135 -15
  134. package/dist/docusaurus/view-model/tree-entries-vm.d.ts.map +1 -1
  135. package/dist/docusaurus/view-model/tree-entries-vm.js +136 -16
  136. package/dist/docusaurus/view-model/tree-entries-vm.js.map +1 -1
  137. package/dist/docusaurus/view-model/view-model.d.ts +119 -0
  138. package/dist/docusaurus/view-model/view-model.d.ts.map +1 -1
  139. package/dist/docusaurus/view-model/view-model.js +119 -0
  140. package/dist/docusaurus/view-model/view-model.js.map +1 -1
  141. package/dist/docusaurus/workspace.d.ts +106 -0
  142. package/dist/docusaurus/workspace.d.ts.map +1 -1
  143. package/dist/docusaurus/workspace.js +107 -1
  144. package/dist/docusaurus/workspace.js.map +1 -1
  145. package/dist/doxygen/data-model/compounds/compounddef-dm.d.ts +485 -0
  146. package/dist/doxygen/data-model/compounds/compounddef-dm.d.ts.map +1 -1
  147. package/dist/doxygen/data-model/compounds/compounddef-dm.js +485 -0
  148. package/dist/doxygen/data-model/compounds/compounddef-dm.js.map +1 -1
  149. package/dist/doxygen/data-model/compounds/compoundreftype-dm.d.ts +120 -0
  150. package/dist/doxygen/data-model/compounds/compoundreftype-dm.d.ts.map +1 -1
  151. package/dist/doxygen/data-model/compounds/compoundreftype-dm.js +98 -0
  152. package/dist/doxygen/data-model/compounds/compoundreftype-dm.js.map +1 -1
  153. package/dist/doxygen/data-model/compounds/descriptiontype-dm.d.ts +2705 -0
  154. package/dist/doxygen/data-model/compounds/descriptiontype-dm.d.ts.map +1 -1
  155. package/dist/doxygen/data-model/compounds/descriptiontype-dm.js +2677 -47
  156. package/dist/doxygen/data-model/compounds/descriptiontype-dm.js.map +1 -1
  157. package/dist/doxygen/data-model/compounds/docvarlistentrytype-dm.d.ts +165 -0
  158. package/dist/doxygen/data-model/compounds/docvarlistentrytype-dm.d.ts.map +1 -1
  159. package/dist/doxygen/data-model/compounds/docvarlistentrytype-dm.js +165 -0
  160. package/dist/doxygen/data-model/compounds/docvarlistentrytype-dm.js.map +1 -1
  161. package/dist/doxygen/data-model/compounds/doxygentype-dm.d.ts +70 -0
  162. package/dist/doxygen/data-model/compounds/doxygentype-dm.d.ts.map +1 -1
  163. package/dist/doxygen/data-model/compounds/doxygentype-dm.js +70 -0
  164. package/dist/doxygen/data-model/compounds/doxygentype-dm.js.map +1 -1
  165. package/dist/doxygen/data-model/compounds/enumvaluetype-dm.d.ts +78 -0
  166. package/dist/doxygen/data-model/compounds/enumvaluetype-dm.d.ts.map +1 -1
  167. package/dist/doxygen/data-model/compounds/enumvaluetype-dm.js +78 -0
  168. package/dist/doxygen/data-model/compounds/enumvaluetype-dm.js.map +1 -1
  169. package/dist/doxygen/data-model/compounds/inctype-dm.d.ts +107 -0
  170. package/dist/doxygen/data-model/compounds/inctype-dm.d.ts.map +1 -1
  171. package/dist/doxygen/data-model/compounds/inctype-dm.js +107 -0
  172. package/dist/doxygen/data-model/compounds/inctype-dm.js.map +1 -1
  173. package/dist/doxygen/data-model/compounds/linkedtexttype-dm.d.ts +123 -0
  174. package/dist/doxygen/data-model/compounds/linkedtexttype-dm.d.ts.map +1 -1
  175. package/dist/doxygen/data-model/compounds/linkedtexttype-dm.js +123 -0
  176. package/dist/doxygen/data-model/compounds/linkedtexttype-dm.js.map +1 -1
  177. package/dist/doxygen/data-model/compounds/listofallmemberstype-dm.d.ts +70 -0
  178. package/dist/doxygen/data-model/compounds/listofallmemberstype-dm.d.ts.map +1 -1
  179. package/dist/doxygen/data-model/compounds/listofallmemberstype-dm.js +70 -1
  180. package/dist/doxygen/data-model/compounds/listofallmemberstype-dm.js.map +1 -1
  181. package/dist/doxygen/data-model/compounds/locationtype-dm.d.ts +156 -0
  182. package/dist/doxygen/data-model/compounds/locationtype-dm.d.ts.map +1 -1
  183. package/dist/doxygen/data-model/compounds/locationtype-dm.js +156 -5
  184. package/dist/doxygen/data-model/compounds/locationtype-dm.js.map +1 -1
  185. package/dist/doxygen/data-model/compounds/memberdeftype-dm.d.ts +433 -0
  186. package/dist/doxygen/data-model/compounds/memberdeftype-dm.d.ts.map +1 -1
  187. package/dist/doxygen/data-model/compounds/memberdeftype-dm.js +417 -6
  188. package/dist/doxygen/data-model/compounds/memberdeftype-dm.js.map +1 -1
  189. package/dist/doxygen/data-model/compounds/memberreftype-dm.d.ts +135 -0
  190. package/dist/doxygen/data-model/compounds/memberreftype-dm.d.ts.map +1 -1
  191. package/dist/doxygen/data-model/compounds/memberreftype-dm.js +136 -4
  192. package/dist/doxygen/data-model/compounds/memberreftype-dm.js.map +1 -1
  193. package/dist/doxygen/data-model/compounds/membertype-dm.d.ts +95 -0
  194. package/dist/doxygen/data-model/compounds/membertype-dm.d.ts.map +1 -1
  195. package/dist/doxygen/data-model/compounds/membertype-dm.js +76 -4
  196. package/dist/doxygen/data-model/compounds/membertype-dm.js.map +1 -1
  197. package/dist/doxygen/data-model/compounds/paramtype-dm.d.ts +158 -0
  198. package/dist/doxygen/data-model/compounds/paramtype-dm.d.ts.map +1 -1
  199. package/dist/doxygen/data-model/compounds/paramtype-dm.js +158 -1
  200. package/dist/doxygen/data-model/compounds/paramtype-dm.js.map +1 -1
  201. package/dist/doxygen/data-model/compounds/referencetype-dm.d.ts +130 -0
  202. package/dist/doxygen/data-model/compounds/referencetype-dm.d.ts.map +1 -1
  203. package/dist/doxygen/data-model/compounds/referencetype-dm.js +130 -2
  204. package/dist/doxygen/data-model/compounds/referencetype-dm.js.map +1 -1
  205. package/dist/doxygen/data-model/compounds/reftexttype-dm.d.ts +120 -0
  206. package/dist/doxygen/data-model/compounds/reftexttype-dm.d.ts.map +1 -1
  207. package/dist/doxygen/data-model/compounds/reftexttype-dm.js +106 -3
  208. package/dist/doxygen/data-model/compounds/reftexttype-dm.js.map +1 -1
  209. package/dist/doxygen/data-model/compounds/reftype-dm.d.ts +247 -0
  210. package/dist/doxygen/data-model/compounds/reftype-dm.d.ts.map +1 -1
  211. package/dist/doxygen/data-model/compounds/reftype-dm.js +247 -3
  212. package/dist/doxygen/data-model/compounds/reftype-dm.js.map +1 -1
  213. package/dist/doxygen/data-model/compounds/reimplementtype-dm.d.ts +99 -0
  214. package/dist/doxygen/data-model/compounds/reimplementtype-dm.d.ts.map +1 -1
  215. package/dist/doxygen/data-model/compounds/reimplementtype-dm.js +99 -2
  216. package/dist/doxygen/data-model/compounds/reimplementtype-dm.js.map +1 -1
  217. package/dist/doxygen/data-model/compounds/sectiondeftype-dm.d.ts +159 -0
  218. package/dist/doxygen/data-model/compounds/sectiondeftype-dm.d.ts.map +1 -1
  219. package/dist/doxygen/data-model/compounds/sectiondeftype-dm.js +159 -3
  220. package/dist/doxygen/data-model/compounds/sectiondeftype-dm.js.map +1 -1
  221. package/dist/doxygen/data-model/compounds/tableofcontentstype-dm.d.ts +255 -0
  222. package/dist/doxygen/data-model/compounds/tableofcontentstype-dm.d.ts.map +1 -1
  223. package/dist/doxygen/data-model/compounds/tableofcontentstype-dm.js +255 -6
  224. package/dist/doxygen/data-model/compounds/tableofcontentstype-dm.js.map +1 -1
  225. package/dist/doxygen/data-model/compounds/templateparamlisttype-dm.d.ts +60 -0
  226. package/dist/doxygen/data-model/compounds/templateparamlisttype-dm.d.ts.map +1 -1
  227. package/dist/doxygen/data-model/compounds/templateparamlisttype-dm.js +60 -1
  228. package/dist/doxygen/data-model/compounds/templateparamlisttype-dm.js.map +1 -1
  229. package/dist/doxygen/data-model/data-model.d.ts +86 -2
  230. package/dist/doxygen/data-model/data-model.d.ts.map +1 -1
  231. package/dist/doxygen/data-model/data-model.js +86 -4
  232. package/dist/doxygen/data-model/data-model.js.map +1 -1
  233. package/dist/doxygen/data-model/doxyfile/doxyfileoptiontype-dm.d.ts +109 -0
  234. package/dist/doxygen/data-model/doxyfile/doxyfileoptiontype-dm.d.ts.map +1 -1
  235. package/dist/doxygen/data-model/doxyfile/doxyfileoptiontype-dm.js +84 -2
  236. package/dist/doxygen/data-model/doxyfile/doxyfileoptiontype-dm.js.map +1 -1
  237. package/dist/doxygen/data-model/doxyfile/doxyfiletype-dm.d.ts +81 -0
  238. package/dist/doxygen/data-model/doxyfile/doxyfiletype-dm.d.ts.map +1 -1
  239. package/dist/doxygen/data-model/doxyfile/doxyfiletype-dm.js +81 -3
  240. package/dist/doxygen/data-model/doxyfile/doxyfiletype-dm.js.map +1 -1
  241. package/dist/doxygen/data-model/doxygen-xml-parser.d.ts +24 -7
  242. package/dist/doxygen/data-model/doxygen-xml-parser.d.ts.map +1 -1
  243. package/dist/doxygen/data-model/doxygen-xml-parser.js +24 -22
  244. package/dist/doxygen/data-model/doxygen-xml-parser.js.map +1 -1
  245. package/dist/doxygen/data-model/index/indexcompoundtype-dm.d.ts +92 -0
  246. package/dist/doxygen/data-model/index/indexcompoundtype-dm.d.ts.map +1 -1
  247. package/dist/doxygen/data-model/index/indexcompoundtype-dm.js +79 -2
  248. package/dist/doxygen/data-model/index/indexcompoundtype-dm.js.map +1 -1
  249. package/dist/doxygen/data-model/index/indexdoxygentype-dm.d.ts +76 -0
  250. package/dist/doxygen/data-model/index/indexdoxygentype-dm.d.ts.map +1 -1
  251. package/dist/doxygen/data-model/index/indexdoxygentype-dm.js +76 -3
  252. package/dist/doxygen/data-model/index/indexdoxygentype-dm.js.map +1 -1
  253. package/dist/doxygen/data-model/index/indexmembertype-dm.d.ts +79 -0
  254. package/dist/doxygen/data-model/index/indexmembertype-dm.d.ts.map +1 -1
  255. package/dist/doxygen/data-model/index/indexmembertype-dm.js +66 -2
  256. package/dist/doxygen/data-model/index/indexmembertype-dm.js.map +1 -1
  257. package/dist/doxygen/data-model/types.d.ts +96 -1
  258. package/dist/doxygen/data-model/types.d.ts.map +1 -1
  259. package/dist/doxygen/data-model/types.js +37 -0
  260. package/dist/doxygen/data-model/types.js.map +1 -1
  261. package/dist/doxygen2docusaurus.d.ts +4774 -0
  262. package/dist/tsdoc-metadata.json +11 -0
  263. package/package.json +11 -7
  264. /package/{template → templates}/css/custom.css +0 -0
  265. /package/{template → templates}/img/README.md +0 -0
  266. /package/{template → templates}/img/document-svgrepo-com.svg +0 -0
  267. /package/{template → templates}/img/folder-svgrepo-com.svg +0 -0
@@ -9,25 +9,83 @@
9
9
  * be obtained from https://opensource.org/licenses/MIT.
10
10
  */
11
11
  // ----------------------------------------------------------------------------
12
+ /**
13
+ * Represents an anchor within a description section for cross-referencing.
14
+ *
15
+ * @remarks
16
+ * Used to create navigable links within documentation pages, allowing
17
+ * users to jump to specific sections or content areas within compound
18
+ * descriptions.
19
+ *
20
+ * @public
21
+ */
12
22
  export class DescriptionAnchor {
13
23
  compound;
14
24
  id;
25
+ /**
26
+ * Creates a new description anchor instance.
27
+ *
28
+ * @remarks
29
+ * Associates an anchor identifier with a specific compound to enable
30
+ * targeted navigation within the documentation structure.
31
+ *
32
+ * @param compound - The compound that contains this anchor
33
+ * @param id - Unique identifier for the anchor
34
+ */
15
35
  constructor(compound, id) {
16
36
  this.compound = compound;
17
37
  this.id = id;
18
38
  }
19
39
  }
20
40
  // ----------------------------------------------------------------------------
41
+ /**
42
+ * Manages a table of contents list for a compound's description.
43
+ *
44
+ * @remarks
45
+ * Organises the hierarchical structure of content within a compound
46
+ * description, providing navigation aids for users browsing complex
47
+ * documentation sections.
48
+ *
49
+ * @public
50
+ */
21
51
  export class DescriptionTocList {
22
52
  compound;
23
53
  tocItems = [];
54
+ /**
55
+ * Creates a new description table of contents list.
56
+ *
57
+ * @remarks
58
+ * Initialises an empty collection of TOC items for the specified
59
+ * compound, ready to be populated with navigational entries.
60
+ *
61
+ * @param compound - The compound that owns this table of contents
62
+ */
24
63
  constructor(compound) {
25
64
  this.compound = compound;
26
65
  }
27
66
  }
67
+ /**
68
+ * Represents an individual item within a description table of contents.
69
+ *
70
+ * @remarks
71
+ * Each TOC item corresponds to a specific section or anchor within the
72
+ * compound description, providing structured navigation capabilities.
73
+ *
74
+ * @public
75
+ */
28
76
  export class DescriptionTocItem {
29
77
  id;
30
78
  tocList;
79
+ /**
80
+ * Creates a new table of contents item.
81
+ *
82
+ * @remarks
83
+ * Links a specific identifier to its parent TOC list, establishing
84
+ * the hierarchical relationship between content sections.
85
+ *
86
+ * @param id - Unique identifier for this TOC item
87
+ * @param tocList - The parent table of contents list
88
+ */
31
89
  constructor(id, tocList) {
32
90
  this.id = id;
33
91
  this.tocList = tocList;
@@ -1 +1 @@
1
- {"version":3,"file":"description-anchors.js","sourceRoot":"","sources":["../../../src/docusaurus/view-model/description-anchors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAMH,+EAA+E;AAE/E,MAAM,OAAO,iBAAiB;IAC5B,QAAQ,CAAc;IACtB,EAAE,CAAQ;IAEV,YAAY,QAAsB,EAAE,EAAU;QAC5C,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;QACxB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAA;IACd,CAAC;CACF;AAED,+EAA+E;AAE/E,MAAM,OAAO,kBAAkB;IAC7B,QAAQ,CAAc;IACtB,QAAQ,GAAyB,EAAE,CAAA;IAEnC,YAAY,QAAsB;QAChC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;IAC1B,CAAC;CACF;AAED,MAAM,OAAO,kBAAkB;IAC7B,EAAE,CAAQ;IACV,OAAO,CAAoB;IAE3B,YAAY,EAAU,EAAE,OAA2B;QACjD,IAAI,CAAC,EAAE,GAAG,EAAE,CAAA;QACZ,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,CAAC;CACF;AAED,+EAA+E"}
1
+ {"version":3,"file":"description-anchors.js","sourceRoot":"","sources":["../../../src/docusaurus/view-model/description-anchors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAMH,+EAA+E;AAE/E;;;;;;;;;GASG;AACH,MAAM,OAAO,iBAAiB;IAC5B,QAAQ,CAAc;IACtB,EAAE,CAAQ;IAEV;;;;;;;;;OASG;IACH,YAAY,QAAsB,EAAE,EAAU;QAC5C,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;QACxB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAA;IACd,CAAC;CACF;AAED,+EAA+E;AAE/E;;;;;;;;;GASG;AACH,MAAM,OAAO,kBAAkB;IAC7B,QAAQ,CAAc;IACtB,QAAQ,GAAyB,EAAE,CAAA;IAEnC;;;;;;;;OAQG;IACH,YAAY,QAAsB;QAChC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;IAC1B,CAAC;CACF;AAED;;;;;;;;GAQG;AACH,MAAM,OAAO,kBAAkB;IAC7B,EAAE,CAAQ;IACV,OAAO,CAAoB;IAE3B;;;;;;;;;OASG;IACH,YAAY,EAAU,EAAE,OAA2B;QACjD,IAAI,CAAC,EAAE,GAAG,EAAE,CAAA;QACZ,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,CAAC;CACF;AAED,+EAA+E"}
@@ -1,45 +1,292 @@
1
1
  import { CompoundBase } from './compound-base-vm.js';
2
2
  import type { CompoundDefDataModel } from '../../doxygen/data-model/compounds/compounddef-dm.js';
3
3
  import { CollectionBase } from './collection-base.js';
4
- import type { MenuItem, SidebarCategory, FrontMatter } from '../types.js';
4
+ import type { NavbarItem, SidebarCategory, FrontMatter } from '../types.js';
5
5
  import type { Workspace } from '../workspace.js';
6
6
  import type { ProgramListingDataModel } from '../../doxygen/data-model/compounds/descriptiontype-dm.js';
7
+ /**
8
+ * Manages the collection of file and folder documentation compounds.
9
+ *
10
+ * @remarks
11
+ * Handles the organisation and generation of file-based documentation,
12
+ * including folder hierarchies, file listings, sidebar generation, and
13
+ * index file creation. Provides a structured view of the source code
14
+ * organisation with proper navigation support.
15
+ *
16
+ * @public
17
+ */
7
18
  export declare class FilesAndFolders extends CollectionBase {
19
+ /**
20
+ * Map of folder compounds indexed by identifier.
21
+ *
22
+ * @remarks
23
+ * Stores all folder instances for efficient lookup and hierarchy
24
+ * construction, separate from the main compounds collection.
25
+ */
8
26
  compoundFoldersById: Map<string, Folder>;
27
+ /**
28
+ * Map of file compounds indexed by identifier.
29
+ *
30
+ * @remarks
31
+ * Stores all file instances for efficient lookup and organisation,
32
+ * separate from the main compounds collection.
33
+ */
9
34
  compoundFilesById: Map<string, File>;
35
+ /**
36
+ * Array of top-level folders without parent folders.
37
+ *
38
+ * @remarks
39
+ * Contains folders that are at the root level of the documentation
40
+ * hierarchy, used for organising hierarchical displays.
41
+ */
10
42
  topLevelFolders: Folder[];
43
+ /**
44
+ * Array of top-level files without parent folders.
45
+ *
46
+ * @remarks
47
+ * Contains files that are at the root level of the documentation
48
+ * hierarchy, not contained within any documented folder.
49
+ */
11
50
  topLevelFiles: File[];
51
+ /**
52
+ * Creates a new files and folders collection.
53
+ *
54
+ * @remarks
55
+ * Initialises the collection with separate maps for folders and files
56
+ * to enable efficient organisation and hierarchy construction.
57
+ *
58
+ * @param workspace - The workspace instance
59
+ */
12
60
  constructor(workspace: Workspace);
61
+ /**
62
+ * Adds a file or folder compound to the collection.
63
+ *
64
+ * @remarks
65
+ * Creates either a File or Folder instance based on the compound kind,
66
+ * registers it in the appropriate collections, and returns the created
67
+ * instance for further processing.
68
+ *
69
+ * @param compoundDef - The compound definition for the file or folder
70
+ * @returns The created File or Folder instance
71
+ * @throws Error if compound kind is not 'file' or 'dir'
72
+ */
13
73
  addChild(compoundDef: CompoundDefDataModel): CompoundBase;
74
+ /**
75
+ * Creates hierarchical relationships between file and folder compounds.
76
+ *
77
+ * @remarks
78
+ * Establishes parent-child relationships for folders and files,
79
+ * builds the complete file hierarchy, and generates relative paths
80
+ * and permalinks for all compounds. Registers files in the workspace
81
+ * for global lookup and identifies top-level entities.
82
+ */
14
83
  createCompoundsHierarchies(): void;
84
+ /**
85
+ * Recursively builds the relative path for a folder from root.
86
+ *
87
+ * @remarks
88
+ * Traverses the folder hierarchy upwards to construct the complete
89
+ * relative path by concatenating parent folder names. Used for
90
+ * generating proper folder permalinks and navigation structures.
91
+ *
92
+ * @param folder - The folder to build the path for
93
+ * @returns The complete relative path from root to the folder
94
+ */
15
95
  private getRelativePathRecursively;
16
96
  addSidebarItems(sidebarCategory: SidebarCategory): void;
97
+ /**
98
+ * Creates sidebar items for folder hierarchies recursively.
99
+ *
100
+ * @remarks
101
+ * Generates hierarchical sidebar structures for folder trees,
102
+ * creating category items with nested children for subfolders
103
+ * and files. Processes folders first, then files within each
104
+ * folder level.
105
+ *
106
+ * @param folder - The folder to create sidebar items for
107
+ * @returns The sidebar category item or undefined if folder lacks data
108
+ */
17
109
  private createFolderSidebarItemRecursively;
110
+ /**
111
+ * Creates a sidebar document item for a file.
112
+ *
113
+ * @remarks
114
+ * Generates a simple document sidebar item for individual files
115
+ * with appropriate CSS classes and navigation links. Used for
116
+ * leaf nodes in the file hierarchy sidebar.
117
+ *
118
+ * @param file - The file to create a sidebar item for
119
+ * @returns The sidebar document item or undefined if file lacks data
120
+ */
18
121
  private createFileSidebarItem;
19
- createMenuItems(): MenuItem[];
122
+ createNavbarItems(): NavbarItem[];
20
123
  generateIndexDotMdFile(): Promise<void>;
124
+ /**
125
+ * Generates hierarchical index content for folders recursively.
126
+ *
127
+ * @remarks
128
+ * Creates HTML tree table rows for folder hierarchies with proper
129
+ * indentation and folder icons. Processes subfolders first, then
130
+ * files within each folder level to maintain organised structure.
131
+ *
132
+ * @param folder - The folder to generate index content for
133
+ * @param depth - The current depth level in the hierarchy (0-based)
134
+ * @returns Array of HTML strings representing the tree table rows
135
+ */
21
136
  private generateIndexMdFileRecursively;
137
+ /**
138
+ * Generates index content for individual files.
139
+ *
140
+ * @remarks
141
+ * Creates HTML tree table rows for file entries with appropriate
142
+ * file icons, labels, and descriptions. Generates consistent
143
+ * formatting for file documentation links within hierarchical
144
+ * index structures.
145
+ *
146
+ * @param file - The file to generate index content for
147
+ * @param depth - The current depth level in the hierarchy (0-based)
148
+ * @returns Array of HTML strings representing the file table row
149
+ */
22
150
  private generateFileIndexMd;
23
151
  isVisibleInSidebar(): boolean;
24
152
  generatePerInitialsIndexMdFiles(): Promise<void>;
25
153
  }
154
+ /**
155
+ * Represents a folder compound for directory documentation.
156
+ *
157
+ * @remarks
158
+ * Manages folder-specific functionality including child file and folder
159
+ * tracking, hierarchy construction, and documentation generation. Provides
160
+ * structured organisation for file system hierarchies within the
161
+ * documentation.
162
+ *
163
+ * @public
164
+ */
26
165
  export declare class Folder extends CompoundBase {
166
+ /** Array of child file identifiers contained in this folder. */
27
167
  childrenFileIds: string[];
168
+ /** Array of child folder identifiers contained in this folder. */
28
169
  childrenFolderIds: string[];
170
+ /** Relative path from root to this folder. */
29
171
  relativePath: string;
172
+ /**
173
+ * Creates a new Folder instance from compound definition data.
174
+ *
175
+ * @remarks
176
+ * Initialises folder metadata including child file and folder
177
+ * references, display labels, and page titles. Sets up the
178
+ * folder structure for hierarchy construction and documentation
179
+ * generation.
180
+ *
181
+ * @param collection - The parent FilesAndFolders collection
182
+ * @param compoundDef - The Doxygen compound definition for the folder
183
+ */
30
184
  constructor(collection: FilesAndFolders, compoundDef: CompoundDefDataModel);
185
+ /**
186
+ * Determines if the folder has any children worth displaying.
187
+ *
188
+ * @remarks
189
+ * Recursively checks for files or non-empty subfolders to determine
190
+ * if the folder should be included in documentation. Empty folders
191
+ * without content are typically excluded from navigation.
192
+ *
193
+ * @returns True if the folder contains files or non-empty subfolders
194
+ */
31
195
  hasChildren(): boolean;
32
196
  hasAnyContent(): boolean;
197
+ /**
198
+ * Renders the complete folder documentation to markdown lines.
199
+ *
200
+ * @remarks
201
+ * Generates the full documentation page including brief descriptions,
202
+ * inner directory and file indices, member sections, and detailed
203
+ * descriptions. Creates structured folder documentation with proper
204
+ * navigation and content organisation.
205
+ *
206
+ * @param frontMatter - The frontmatter configuration for the page
207
+ * @returns Array of markdown strings representing the complete documentation
208
+ */
33
209
  renderToLines(frontMatter: FrontMatter): string[];
210
+ /**
211
+ * Performs late initialisation for folders with content validation.
212
+ *
213
+ * @remarks
214
+ * Validates folder content and conditionally disables sidebar generation for
215
+ * empty folders. This ensures that folders without meaningful documentation
216
+ * do not appear in the generated sidebar navigation.
217
+ *
218
+ * @public
219
+ */
34
220
  initializeLate(): void;
35
221
  }
222
+ /**
223
+ * Represents a file compound for source code documentation.
224
+ *
225
+ * @remarks
226
+ * Manages file-specific functionality including program listings,
227
+ * line number tracking, and source code documentation generation.
228
+ * Provides structured representation of source files within the
229
+ * documentation hierarchy.
230
+ *
231
+ * @public
232
+ */
36
233
  export declare class File extends CompoundBase {
234
+ /** Relative path from root to this file. */
37
235
  relativePath: string;
236
+ /** Set of line numbers available in the program listing. */
38
237
  listingLineNumbers: Set<number>;
238
+ /** Program listing data for source code display. */
39
239
  programListing: ProgramListingDataModel | undefined;
240
+ /**
241
+ * Creates a new File instance from compound definition data.
242
+ *
243
+ * @remarks
244
+ * Initialises file metadata including display labels, page titles,
245
+ * and member sections. Sets up the file structure for documentation
246
+ * generation and source code listing display.
247
+ *
248
+ * @param collection - The parent FilesAndFolders collection
249
+ * @param compoundDef - The Doxygen compound definition for the file
250
+ */
40
251
  constructor(collection: FilesAndFolders, compoundDef: CompoundDefDataModel);
252
+ /**
253
+ * Performs late initialisation for files with program listing setup.
254
+ *
255
+ * @remarks
256
+ * Processes the program listing for source code rendering and tracks valid
257
+ * line numbers for link validation. Also validates file content and
258
+ * conditionally disables sidebar generation for empty files.
259
+ *
260
+ * @public
261
+ */
41
262
  initializeLate(): void;
263
+ /**
264
+ * Determines if the file has any documentable content.
265
+ *
266
+ * @remarks
267
+ * Checks for children elements, inner compounds, and include relationships
268
+ * to determine content availability. This method helps filter empty files
269
+ * from the generated documentation.
270
+ *
271
+ * @returns True if the file contains documentable content, false otherwise.
272
+ *
273
+ * @public
274
+ */
42
275
  hasAnyContent(): boolean;
276
+ /**
277
+ * Renders the file documentation to Markdown lines.
278
+ *
279
+ * @remarks
280
+ * Generates comprehensive file documentation including brief description,
281
+ * includes index, inner compound indices, section indices, detailed
282
+ * description, and optionally the program listing. The output follows
283
+ * Docusaurus conventions for file documentation pages.
284
+ *
285
+ * @param frontMatter - The front matter configuration for the page
286
+ * @returns Array of Markdown lines representing the file documentation
287
+ *
288
+ * @public
289
+ */
43
290
  renderToLines(frontMatter: FrontMatter): string[];
44
291
  }
45
292
  //# sourceMappingURL=files-and-folders-vm.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"files-and-folders-vm.d.ts","sourceRoot":"","sources":["../../../src/docusaurus/view-model/files-and-folders-vm.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sDAAsD,CAAA;AAChG,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,KAAK,EACV,QAAQ,EACR,eAAe,EAIf,WAAW,EACZ,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAEhD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,0DAA0D,CAAA;AAQvG,qBAAa,eAAgB,SAAQ,cAAc;IAGjD,mBAAmB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAExC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;IAEpC,eAAe,EAAE,MAAM,EAAE,CAAK;IAC9B,aAAa,EAAE,IAAI,EAAE,CAAK;gBAMd,SAAS,EAAE,SAAS;IAUvB,QAAQ,CAAC,WAAW,EAAE,oBAAoB,GAAG,YAAY;IAoBzD,0BAA0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