@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.
Files changed (365) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +3 -1
  3. package/bin/doxygen2docusaurus.js +5 -5
  4. package/dist/cli/main.d.ts +0 -14
  5. package/dist/cli/main.d.ts.map +1 -1
  6. package/dist/cli/main.js +0 -34
  7. package/dist/cli/main.js.map +1 -1
  8. package/dist/docusaurus/cli-options.d.ts +3 -292
  9. package/dist/docusaurus/cli-options.d.ts.map +1 -1
  10. package/dist/docusaurus/cli-options.js +6 -290
  11. package/dist/docusaurus/cli-options.js.map +1 -1
  12. package/dist/docusaurus/generator.d.ts +0 -172
  13. package/dist/docusaurus/generator.d.ts.map +1 -1
  14. package/dist/docusaurus/generator.js +20 -280
  15. package/dist/docusaurus/generator.js.map +1 -1
  16. package/dist/docusaurus/renderers/conceptparts.d.ts +9 -0
  17. package/dist/docusaurus/renderers/conceptparts.d.ts.map +1 -0
  18. package/dist/docusaurus/renderers/conceptparts.js +21 -0
  19. package/dist/docusaurus/renderers/conceptparts.js.map +1 -0
  20. package/dist/docusaurus/renderers/descriptiontype.d.ts +0 -417
  21. package/dist/docusaurus/renderers/descriptiontype.d.ts.map +1 -1
  22. package/dist/docusaurus/renderers/descriptiontype.js +11 -555
  23. package/dist/docusaurus/renderers/descriptiontype.js.map +1 -1
  24. package/dist/docusaurus/renderers/docinternalstype.d.ts +0 -132
  25. package/dist/docusaurus/renderers/docinternalstype.d.ts.map +1 -1
  26. package/dist/docusaurus/renderers/docinternalstype.js +0 -156
  27. package/dist/docusaurus/renderers/docinternalstype.js.map +1 -1
  28. package/dist/docusaurus/renderers/doclisttype.d.ts +0 -22
  29. package/dist/docusaurus/renderers/doclisttype.d.ts.map +1 -1
  30. package/dist/docusaurus/renderers/doclisttype.js +0 -42
  31. package/dist/docusaurus/renderers/doclisttype.js.map +1 -1
  32. package/dist/docusaurus/renderers/doctabletype.d.ts +0 -88
  33. package/dist/docusaurus/renderers/doctabletype.d.ts.map +1 -1
  34. package/dist/docusaurus/renderers/doctabletype.js +1 -113
  35. package/dist/docusaurus/renderers/doctabletype.js.map +1 -1
  36. package/dist/docusaurus/renderers/doctitletype.d.ts +0 -22
  37. package/dist/docusaurus/renderers/doctitletype.d.ts.map +1 -1
  38. package/dist/docusaurus/renderers/doctitletype.js +0 -42
  39. package/dist/docusaurus/renderers/doctitletype.js.map +1 -1
  40. package/dist/docusaurus/renderers/docvariablelisttype.d.ts +0 -44
  41. package/dist/docusaurus/renderers/docvariablelisttype.d.ts.map +1 -1
  42. package/dist/docusaurus/renderers/docvariablelisttype.js +1 -69
  43. package/dist/docusaurus/renderers/docvariablelisttype.js.map +1 -1
  44. package/dist/docusaurus/renderers/docxrefsecttype.d.ts +0 -22
  45. package/dist/docusaurus/renderers/docxrefsecttype.d.ts.map +1 -1
  46. package/dist/docusaurus/renderers/docxrefsecttype.js +0 -38
  47. package/dist/docusaurus/renderers/docxrefsecttype.js.map +1 -1
  48. package/dist/docusaurus/renderers/element-renderer-base.d.ts +0 -74
  49. package/dist/docusaurus/renderers/element-renderer-base.d.ts.map +1 -1
  50. package/dist/docusaurus/renderers/element-renderer-base.js +0 -64
  51. package/dist/docusaurus/renderers/element-renderer-base.js.map +1 -1
  52. package/dist/docusaurus/renderers/inctype.d.ts +0 -23
  53. package/dist/docusaurus/renderers/inctype.d.ts.map +1 -1
  54. package/dist/docusaurus/renderers/inctype.js +0 -41
  55. package/dist/docusaurus/renderers/inctype.js.map +1 -1
  56. package/dist/docusaurus/renderers/linkedtexttype.d.ts +0 -22
  57. package/dist/docusaurus/renderers/linkedtexttype.d.ts.map +1 -1
  58. package/dist/docusaurus/renderers/linkedtexttype.js +0 -45
  59. package/dist/docusaurus/renderers/linkedtexttype.js.map +1 -1
  60. package/dist/docusaurus/renderers/listingtype.d.ts +0 -52
  61. package/dist/docusaurus/renderers/listingtype.d.ts.map +1 -1
  62. package/dist/docusaurus/renderers/listingtype.js +1 -88
  63. package/dist/docusaurus/renderers/listingtype.js.map +1 -1
  64. package/dist/docusaurus/renderers/paramtype.d.ts +0 -22
  65. package/dist/docusaurus/renderers/paramtype.d.ts.map +1 -1
  66. package/dist/docusaurus/renderers/paramtype.js +2 -51
  67. package/dist/docusaurus/renderers/paramtype.js.map +1 -1
  68. package/dist/docusaurus/renderers/referencetype.d.ts +0 -23
  69. package/dist/docusaurus/renderers/referencetype.d.ts.map +1 -1
  70. package/dist/docusaurus/renderers/referencetype.js +0 -38
  71. package/dist/docusaurus/renderers/referencetype.js.map +1 -1
  72. package/dist/docusaurus/renderers/reftexttype.d.ts +0 -22
  73. package/dist/docusaurus/renderers/reftexttype.d.ts.map +1 -1
  74. package/dist/docusaurus/renderers/reftexttype.js +0 -38
  75. package/dist/docusaurus/renderers/reftexttype.js.map +1 -1
  76. package/dist/docusaurus/renderers/reftype.d.ts +0 -22
  77. package/dist/docusaurus/renderers/reftype.d.ts.map +1 -1
  78. package/dist/docusaurus/renderers/reftype.js +0 -38
  79. package/dist/docusaurus/renderers/reftype.js.map +1 -1
  80. package/dist/docusaurus/renderers/renderers.d.ts +0 -151
  81. package/dist/docusaurus/renderers/renderers.d.ts.map +1 -1
  82. package/dist/docusaurus/renderers/renderers.js +15 -186
  83. package/dist/docusaurus/renderers/renderers.js.map +1 -1
  84. package/dist/docusaurus/renderers/substringtype.d.ts +0 -22
  85. package/dist/docusaurus/renderers/substringtype.d.ts.map +1 -1
  86. package/dist/docusaurus/renderers/substringtype.js +0 -39
  87. package/dist/docusaurus/renderers/substringtype.js.map +1 -1
  88. package/dist/docusaurus/renderers/tableofcontentstype.d.ts +0 -22
  89. package/dist/docusaurus/renderers/tableofcontentstype.d.ts.map +1 -1
  90. package/dist/docusaurus/renderers/tableofcontentstype.js +0 -39
  91. package/dist/docusaurus/renderers/tableofcontentstype.js.map +1 -1
  92. package/dist/docusaurus/types.d.ts +0 -110
  93. package/dist/docusaurus/types.d.ts.map +1 -1
  94. package/dist/docusaurus/types.js +0 -11
  95. package/dist/docusaurus/types.js.map +1 -1
  96. package/dist/docusaurus/utils.d.ts +0 -214
  97. package/dist/docusaurus/utils.d.ts.map +1 -1
  98. package/dist/docusaurus/utils.js +0 -296
  99. package/dist/docusaurus/utils.js.map +1 -1
  100. package/dist/docusaurus/view-model/classes-vm.d.ts +0 -137
  101. package/dist/docusaurus/view-model/classes-vm.d.ts.map +1 -1
  102. package/dist/docusaurus/view-model/classes-vm.js +9 -225
  103. package/dist/docusaurus/view-model/classes-vm.js.map +1 -1
  104. package/dist/docusaurus/view-model/collection-base.d.ts +0 -120
  105. package/dist/docusaurus/view-model/collection-base.d.ts.map +1 -1
  106. package/dist/docusaurus/view-model/collection-base.js +11 -101
  107. package/dist/docusaurus/view-model/collection-base.js.map +1 -1
  108. package/dist/docusaurus/view-model/compound-base-vm.d.ts +2 -147
  109. package/dist/docusaurus/view-model/compound-base-vm.d.ts.map +1 -1
  110. package/dist/docusaurus/view-model/compound-base-vm.js +47 -225
  111. package/dist/docusaurus/view-model/compound-base-vm.js.map +1 -1
  112. package/dist/docusaurus/view-model/concepts-vm.d.ts +27 -0
  113. package/dist/docusaurus/view-model/concepts-vm.d.ts.map +1 -0
  114. package/dist/docusaurus/view-model/concepts-vm.js +337 -0
  115. package/dist/docusaurus/view-model/concepts-vm.js.map +1 -0
  116. package/dist/docusaurus/view-model/description-anchors.d.ts +0 -58
  117. package/dist/docusaurus/view-model/description-anchors.d.ts.map +1 -1
  118. package/dist/docusaurus/view-model/description-anchors.js +0 -71
  119. package/dist/docusaurus/view-model/description-anchors.js.map +1 -1
  120. package/dist/docusaurus/view-model/files-and-folders-vm.d.ts +0 -247
  121. package/dist/docusaurus/view-model/files-and-folders-vm.d.ts.map +1 -1
  122. package/dist/docusaurus/view-model/files-and-folders-vm.js +61 -353
  123. package/dist/docusaurus/view-model/files-and-folders-vm.js.map +1 -1
  124. package/dist/docusaurus/view-model/groups-vm.d.ts +0 -148
  125. package/dist/docusaurus/view-model/groups-vm.d.ts.map +1 -1
  126. package/dist/docusaurus/view-model/groups-vm.js +2 -223
  127. package/dist/docusaurus/view-model/groups-vm.js.map +1 -1
  128. package/dist/docusaurus/view-model/members-vm.d.ts +0 -552
  129. package/dist/docusaurus/view-model/members-vm.d.ts.map +1 -1
  130. package/dist/docusaurus/view-model/members-vm.js +17 -702
  131. package/dist/docusaurus/view-model/members-vm.js.map +1 -1
  132. package/dist/docusaurus/view-model/namespaces-vm.d.ts +5 -199
  133. package/dist/docusaurus/view-model/namespaces-vm.d.ts.map +1 -1
  134. package/dist/docusaurus/view-model/namespaces-vm.js +85 -284
  135. package/dist/docusaurus/view-model/namespaces-vm.js.map +1 -1
  136. package/dist/docusaurus/view-model/options.d.ts +0 -43
  137. package/dist/docusaurus/view-model/options.d.ts.map +1 -1
  138. package/dist/docusaurus/view-model/options.js +0 -57
  139. package/dist/docusaurus/view-model/options.js.map +1 -1
  140. package/dist/docusaurus/view-model/pages-vm.d.ts +0 -115
  141. package/dist/docusaurus/view-model/pages-vm.d.ts.map +1 -1
  142. package/dist/docusaurus/view-model/pages-vm.js +39 -162
  143. package/dist/docusaurus/view-model/pages-vm.js.map +1 -1
  144. package/dist/docusaurus/view-model/tree-entries-vm.d.ts +8 -142
  145. package/dist/docusaurus/view-model/tree-entries-vm.d.ts.map +1 -1
  146. package/dist/docusaurus/view-model/tree-entries-vm.js +54 -174
  147. package/dist/docusaurus/view-model/tree-entries-vm.js.map +1 -1
  148. package/dist/docusaurus/view-model/view-model.d.ts +0 -125
  149. package/dist/docusaurus/view-model/view-model.d.ts.map +1 -1
  150. package/dist/docusaurus/view-model/view-model.js +20 -182
  151. package/dist/docusaurus/view-model/view-model.js.map +1 -1
  152. package/dist/docusaurus/workspace.d.ts +1 -126
  153. package/dist/docusaurus/workspace.d.ts.map +1 -1
  154. package/dist/docusaurus/workspace.js +8 -221
  155. package/dist/docusaurus/workspace.js.map +1 -1
  156. package/dist/doxygen/data-model/compounds/compounddef-dm.d.ts +7 -492
  157. package/dist/doxygen/data-model/compounds/compounddef-dm.d.ts.map +1 -1
  158. package/dist/doxygen/data-model/compounds/compounddef-dm.js +28 -672
  159. package/dist/doxygen/data-model/compounds/compounddef-dm.js.map +1 -1
  160. package/dist/doxygen/data-model/compounds/compoundreftype-dm.d.ts +0 -129
  161. package/dist/doxygen/data-model/compounds/compoundreftype-dm.d.ts.map +1 -1
  162. package/dist/doxygen/data-model/compounds/compoundreftype-dm.js +1 -145
  163. package/dist/doxygen/data-model/compounds/compoundreftype-dm.js.map +1 -1
  164. package/dist/doxygen/data-model/compounds/concepts-dm.d.ts +23 -0
  165. package/dist/doxygen/data-model/compounds/concepts-dm.d.ts.map +1 -0
  166. package/dist/doxygen/data-model/compounds/concepts-dm.js +94 -0
  167. package/dist/doxygen/data-model/compounds/concepts-dm.js.map +1 -0
  168. package/dist/doxygen/data-model/compounds/descriptiontype-dm.d.ts +104 -2848
  169. package/dist/doxygen/data-model/compounds/descriptiontype-dm.d.ts.map +1 -1
  170. package/dist/doxygen/data-model/compounds/descriptiontype-dm.js +73 -3975
  171. package/dist/doxygen/data-model/compounds/descriptiontype-dm.js.map +1 -1
  172. package/dist/doxygen/data-model/compounds/docvarlistentrytype-dm.d.ts +0 -165
  173. package/dist/doxygen/data-model/compounds/docvarlistentrytype-dm.d.ts.map +1 -1
  174. package/dist/doxygen/data-model/compounds/docvarlistentrytype-dm.js +0 -229
  175. package/dist/doxygen/data-model/compounds/docvarlistentrytype-dm.js.map +1 -1
  176. package/dist/doxygen/data-model/compounds/doxygentype-dm.d.ts +0 -70
  177. package/dist/doxygen/data-model/compounds/doxygentype-dm.d.ts.map +1 -1
  178. package/dist/doxygen/data-model/compounds/doxygentype-dm.js +0 -105
  179. package/dist/doxygen/data-model/compounds/doxygentype-dm.js.map +1 -1
  180. package/dist/doxygen/data-model/compounds/enumvaluetype-dm.d.ts +0 -84
  181. package/dist/doxygen/data-model/compounds/enumvaluetype-dm.d.ts.map +1 -1
  182. package/dist/doxygen/data-model/compounds/enumvaluetype-dm.js +1 -122
  183. package/dist/doxygen/data-model/compounds/enumvaluetype-dm.js.map +1 -1
  184. package/dist/doxygen/data-model/compounds/inctype-dm.d.ts +0 -116
  185. package/dist/doxygen/data-model/compounds/inctype-dm.d.ts.map +1 -1
  186. package/dist/doxygen/data-model/compounds/inctype-dm.js +3 -155
  187. package/dist/doxygen/data-model/compounds/inctype-dm.js.map +1 -1
  188. package/dist/doxygen/data-model/compounds/linkedtexttype-dm.d.ts +3 -138
  189. package/dist/doxygen/data-model/compounds/linkedtexttype-dm.d.ts.map +1 -1
  190. package/dist/doxygen/data-model/compounds/linkedtexttype-dm.js +5 -180
  191. package/dist/doxygen/data-model/compounds/linkedtexttype-dm.js.map +1 -1
  192. package/dist/doxygen/data-model/compounds/listofallmemberstype-dm.d.ts +0 -76
  193. package/dist/doxygen/data-model/compounds/listofallmemberstype-dm.d.ts.map +1 -1
  194. package/dist/doxygen/data-model/compounds/listofallmemberstype-dm.js +0 -107
  195. package/dist/doxygen/data-model/compounds/listofallmemberstype-dm.js.map +1 -1
  196. package/dist/doxygen/data-model/compounds/locationtype-dm.d.ts +0 -162
  197. package/dist/doxygen/data-model/compounds/locationtype-dm.d.ts.map +1 -1
  198. package/dist/doxygen/data-model/compounds/locationtype-dm.js +4 -203
  199. package/dist/doxygen/data-model/compounds/locationtype-dm.js.map +1 -1
  200. package/dist/doxygen/data-model/compounds/memberdeftype-dm.d.ts +2 -443
  201. package/dist/doxygen/data-model/compounds/memberdeftype-dm.d.ts.map +1 -1
  202. package/dist/doxygen/data-model/compounds/memberdeftype-dm.js +19 -475
  203. package/dist/doxygen/data-model/compounds/memberdeftype-dm.js.map +1 -1
  204. package/dist/doxygen/data-model/compounds/memberreftype-dm.d.ts +0 -141
  205. package/dist/doxygen/data-model/compounds/memberreftype-dm.d.ts.map +1 -1
  206. package/dist/doxygen/data-model/compounds/memberreftype-dm.js +0 -176
  207. package/dist/doxygen/data-model/compounds/memberreftype-dm.js.map +1 -1
  208. package/dist/doxygen/data-model/compounds/membertype-dm.d.ts +0 -101
  209. package/dist/doxygen/data-model/compounds/membertype-dm.d.ts.map +1 -1
  210. package/dist/doxygen/data-model/compounds/membertype-dm.js +0 -115
  211. package/dist/doxygen/data-model/compounds/membertype-dm.js.map +1 -1
  212. package/dist/doxygen/data-model/compounds/paramtype-dm.d.ts +0 -164
  213. package/dist/doxygen/data-model/compounds/paramtype-dm.d.ts.map +1 -1
  214. package/dist/doxygen/data-model/compounds/paramtype-dm.js +0 -208
  215. package/dist/doxygen/data-model/compounds/paramtype-dm.js.map +1 -1
  216. package/dist/doxygen/data-model/compounds/referencetype-dm.d.ts +0 -139
  217. package/dist/doxygen/data-model/compounds/referencetype-dm.d.ts.map +1 -1
  218. package/dist/doxygen/data-model/compounds/referencetype-dm.js +2 -175
  219. package/dist/doxygen/data-model/compounds/referencetype-dm.js.map +1 -1
  220. package/dist/doxygen/data-model/compounds/reftexttype-dm.d.ts +0 -120
  221. package/dist/doxygen/data-model/compounds/reftexttype-dm.d.ts.map +1 -1
  222. package/dist/doxygen/data-model/compounds/reftexttype-dm.js +2 -141
  223. package/dist/doxygen/data-model/compounds/reftexttype-dm.js.map +1 -1
  224. package/dist/doxygen/data-model/compounds/reftype-dm.d.ts +0 -268
  225. package/dist/doxygen/data-model/compounds/reftype-dm.d.ts.map +1 -1
  226. package/dist/doxygen/data-model/compounds/reftype-dm.js +4 -326
  227. package/dist/doxygen/data-model/compounds/reftype-dm.js.map +1 -1
  228. package/dist/doxygen/data-model/compounds/reimplementtype-dm.d.ts +0 -105
  229. package/dist/doxygen/data-model/compounds/reimplementtype-dm.d.ts.map +1 -1
  230. package/dist/doxygen/data-model/compounds/reimplementtype-dm.js +1 -139
  231. package/dist/doxygen/data-model/compounds/reimplementtype-dm.js.map +1 -1
  232. package/dist/doxygen/data-model/compounds/requirements-dm.d.ts +2 -0
  233. package/dist/doxygen/data-model/compounds/requirements-dm.d.ts.map +1 -0
  234. package/dist/doxygen/data-model/compounds/requirements-dm.js +2 -0
  235. package/dist/doxygen/data-model/compounds/requirements-dm.js.map +1 -0
  236. package/dist/doxygen/data-model/compounds/sectiondeftype-dm.d.ts +0 -168
  237. package/dist/doxygen/data-model/compounds/sectiondeftype-dm.d.ts.map +1 -1
  238. package/dist/doxygen/data-model/compounds/sectiondeftype-dm.js +0 -209
  239. package/dist/doxygen/data-model/compounds/sectiondeftype-dm.js.map +1 -1
  240. package/dist/doxygen/data-model/compounds/tableofcontentstype-dm.d.ts +0 -267
  241. package/dist/doxygen/data-model/compounds/tableofcontentstype-dm.d.ts.map +1 -1
  242. package/dist/doxygen/data-model/compounds/tableofcontentstype-dm.js +0 -354
  243. package/dist/doxygen/data-model/compounds/tableofcontentstype-dm.js.map +1 -1
  244. package/dist/doxygen/data-model/compounds/templateparamlisttype-dm.d.ts +0 -66
  245. package/dist/doxygen/data-model/compounds/templateparamlisttype-dm.d.ts.map +1 -1
  246. package/dist/doxygen/data-model/compounds/templateparamlisttype-dm.js +0 -97
  247. package/dist/doxygen/data-model/compounds/templateparamlisttype-dm.js.map +1 -1
  248. package/dist/doxygen/data-model/data-model.d.ts +0 -149
  249. package/dist/doxygen/data-model/data-model.d.ts.map +1 -1
  250. package/dist/doxygen/data-model/data-model.js +8 -200
  251. package/dist/doxygen/data-model/data-model.js.map +1 -1
  252. package/dist/doxygen/data-model/doxyfile/doxyfileoptiontype-dm.d.ts +0 -115
  253. package/dist/doxygen/data-model/doxyfile/doxyfileoptiontype-dm.d.ts.map +1 -1
  254. package/dist/doxygen/data-model/doxyfile/doxyfileoptiontype-dm.js +4 -129
  255. package/dist/doxygen/data-model/doxyfile/doxyfileoptiontype-dm.js.map +1 -1
  256. package/dist/doxygen/data-model/doxyfile/doxyfiletype-dm.d.ts +0 -87
  257. package/dist/doxygen/data-model/doxyfile/doxyfiletype-dm.d.ts.map +1 -1
  258. package/dist/doxygen/data-model/doxyfile/doxyfiletype-dm.js +0 -118
  259. package/dist/doxygen/data-model/doxyfile/doxyfiletype-dm.js.map +1 -1
  260. package/dist/doxygen/data-model/doxygen-xml-parser.d.ts +0 -253
  261. package/dist/doxygen/data-model/doxygen-xml-parser.d.ts.map +1 -1
  262. package/dist/doxygen/data-model/doxygen-xml-parser.js +0 -291
  263. package/dist/doxygen/data-model/doxygen-xml-parser.js.map +1 -1
  264. package/dist/doxygen/data-model/index/indexcompoundtype-dm.d.ts +0 -98
  265. package/dist/doxygen/data-model/index/indexcompoundtype-dm.d.ts.map +1 -1
  266. package/dist/doxygen/data-model/index/indexcompoundtype-dm.js +2 -122
  267. package/dist/doxygen/data-model/index/indexcompoundtype-dm.js.map +1 -1
  268. package/dist/doxygen/data-model/index/indexdoxygentype-dm.d.ts +0 -82
  269. package/dist/doxygen/data-model/index/indexdoxygentype-dm.d.ts.map +1 -1
  270. package/dist/doxygen/data-model/index/indexdoxygentype-dm.js +0 -114
  271. package/dist/doxygen/data-model/index/indexdoxygentype-dm.js.map +1 -1
  272. package/dist/doxygen/data-model/index/indexmembertype-dm.d.ts +0 -85
  273. package/dist/doxygen/data-model/index/indexmembertype-dm.d.ts.map +1 -1
  274. package/dist/doxygen/data-model/index/indexmembertype-dm.js +1 -107
  275. package/dist/doxygen/data-model/index/indexmembertype-dm.js.map +1 -1
  276. package/dist/doxygen/data-model/types.d.ts +0 -104
  277. package/dist/doxygen/data-model/types.d.ts.map +1 -1
  278. package/dist/doxygen/data-model/types.js +0 -52
  279. package/dist/doxygen/data-model/types.js.map +1 -1
  280. package/dist/index.d.ts +5 -16
  281. package/dist/index.d.ts.map +1 -1
  282. package/dist/index.js +5 -42
  283. package/dist/index.js.map +1 -1
  284. package/package.json +49 -52
  285. package/src/cli/main.ts +122 -0
  286. package/src/docusaurus/cli-options.ts +560 -0
  287. package/src/docusaurus/generator.ts +788 -0
  288. package/src/docusaurus/renderers/conceptparts.ts +119 -0
  289. package/src/docusaurus/renderers/descriptiontype.ts +1299 -0
  290. package/src/docusaurus/renderers/docinternalstype.ts +354 -0
  291. package/src/docusaurus/renderers/doclisttype.ts +134 -0
  292. package/src/docusaurus/renderers/doctabletype.ts +220 -0
  293. package/src/docusaurus/renderers/doctitletype.ts +77 -0
  294. package/src/docusaurus/renderers/docvariablelisttype.ts +123 -0
  295. package/src/docusaurus/renderers/docxrefsecttype.ts +84 -0
  296. package/src/docusaurus/renderers/element-renderer-base.ts +112 -0
  297. package/src/docusaurus/renderers/inctype.ts +75 -0
  298. package/src/docusaurus/renderers/linkedtexttype.ts +64 -0
  299. package/src/docusaurus/renderers/listingtype.ts +235 -0
  300. package/src/docusaurus/renderers/paramtype.ts +116 -0
  301. package/src/docusaurus/renderers/referencetype.ts +83 -0
  302. package/src/docusaurus/renderers/reftexttype.ts +81 -0
  303. package/src/docusaurus/renderers/reftype.ts +77 -0
  304. package/src/docusaurus/renderers/renderers.ts +812 -0
  305. package/src/docusaurus/renderers/substringtype.ts +53 -0
  306. package/src/docusaurus/renderers/tableofcontentstype.ts +74 -0
  307. package/src/docusaurus/types.ts +187 -0
  308. package/src/docusaurus/utils.ts +409 -0
  309. package/src/docusaurus/view-model/README.md +12 -0
  310. package/src/docusaurus/view-model/classes-vm.ts +1088 -0
  311. package/src/docusaurus/view-model/collection-base.ts +352 -0
  312. package/src/docusaurus/view-model/compound-base-vm.ts +1340 -0
  313. package/src/docusaurus/view-model/concepts-vm.ts +749 -0
  314. package/src/docusaurus/view-model/description-anchors.ts +107 -0
  315. package/src/docusaurus/view-model/files-and-folders-vm.ts +1293 -0
  316. package/src/docusaurus/view-model/groups-vm.ts +548 -0
  317. package/src/docusaurus/view-model/members-vm.ts +1943 -0
  318. package/src/docusaurus/view-model/namespaces-vm.ts +1037 -0
  319. package/src/docusaurus/view-model/options.ts +95 -0
  320. package/src/docusaurus/view-model/pages-vm.ts +389 -0
  321. package/src/docusaurus/view-model/tree-entries-vm.ts +376 -0
  322. package/src/docusaurus/view-model/view-model.ts +513 -0
  323. package/src/docusaurus/workspace.ts +588 -0
  324. package/src/doxygen/data-model/README.md +13 -0
  325. package/src/doxygen/data-model/compounds/compounddef-dm.ts +1230 -0
  326. package/src/doxygen/data-model/compounds/compoundreftype-dm.ts +266 -0
  327. package/src/doxygen/data-model/compounds/concepts-dm.ts +362 -0
  328. package/src/doxygen/data-model/compounds/descriptiontype-dm.ts +10114 -0
  329. package/src/doxygen/data-model/compounds/docvarlistentrytype-dm.ts +354 -0
  330. package/src/doxygen/data-model/compounds/doxygentype-dm.ts +187 -0
  331. package/src/doxygen/data-model/compounds/enumvaluetype-dm.ts +218 -0
  332. package/src/doxygen/data-model/compounds/inctype-dm.ts +217 -0
  333. package/src/doxygen/data-model/compounds/linkedtexttype-dm.ts +288 -0
  334. package/src/doxygen/data-model/compounds/listofallmemberstype-dm.ts +160 -0
  335. package/src/doxygen/data-model/compounds/locationtype-dm.ts +284 -0
  336. package/src/doxygen/data-model/compounds/memberdeftype-dm.ts +881 -0
  337. package/src/doxygen/data-model/compounds/memberreftype-dm.ts +270 -0
  338. package/src/doxygen/data-model/compounds/membertype-dm.ts +239 -0
  339. package/src/doxygen/data-model/compounds/paramtype-dm.ts +302 -0
  340. package/src/doxygen/data-model/compounds/referencetype-dm.ts +248 -0
  341. package/src/doxygen/data-model/compounds/reftexttype-dm.ts +234 -0
  342. package/src/doxygen/data-model/compounds/reftype-dm.ts +430 -0
  343. package/src/doxygen/data-model/compounds/reimplementtype-dm.ts +201 -0
  344. package/src/doxygen/data-model/compounds/requirements-dm.ts +50 -0
  345. package/src/doxygen/data-model/compounds/sectiondeftype-dm.ts +330 -0
  346. package/src/doxygen/data-model/compounds/tableofcontentstype-dm.ts +564 -0
  347. package/src/doxygen/data-model/compounds/templateparamlisttype-dm.ts +150 -0
  348. package/src/doxygen/data-model/data-model.ts +378 -0
  349. package/src/doxygen/data-model/doxyfile/doxyfileoptiontype-dm.ts +271 -0
  350. package/src/doxygen/data-model/doxyfile/doxyfiletype-dm.ts +200 -0
  351. package/src/doxygen/data-model/doxygen-xml-parser.ts +522 -0
  352. package/src/doxygen/data-model/index/indexcompoundtype-dm.ts +256 -0
  353. package/src/doxygen/data-model/index/indexdoxygentype-dm.ts +196 -0
  354. package/src/doxygen/data-model/index/indexmembertype-dm.ts +230 -0
  355. package/src/doxygen/data-model/types.ts +175 -0
  356. package/src/doxygen/data-model/xsds/README.md +6 -0
  357. package/src/doxygen/data-model/xsds/compound.xsd +1788 -0
  358. package/src/doxygen/data-model/xsds/doxyfile.xsd +365 -0
  359. package/src/doxygen/data-model/xsds/index.xsd +74 -0
  360. package/src/doxygen/data-model/xsds/xml.xsd +23 -0
  361. package/src/index.ts +267 -0
  362. package/src/tsconfig.json +12 -0
  363. package/dist/doxygen2docusaurus.d.ts +0 -4774
  364. package/dist/tsconfig.tsbuildinfo +0 -1
  365. package/dist/tsdoc-metadata.json +0 -11
@@ -1,51 +1,36 @@
1
- /*
2
- * This file is part of the xPack project (http://xpack.github.io).
3
- * Copyright (c) 2025 Liviu Ionescu. All rights reserved.
4
- *
5
- * Permission to use, copy, modify, and/or distribute this software
6
- * for any purpose is hereby granted, under the terms of the MIT license.
7
- *
8
- * If a copy of the license was not distributed with this file, it can
9
- * be obtained from https://opensource.org/licenses/MIT.
10
- */
11
- // ----------------------------------------------------------------------------
12
1
  import * as util from 'node:util';
13
2
  import assert from 'node:assert';
14
3
  import { getPermalinkAnchor, sanitizeAnonymousNamespace } from '../utils.js';
15
4
  import { MemberProgramListingDataModel, ParaDataModel, } from '../../doxygen/data-model/compounds/descriptiontype-dm.js';
16
- // ----------------------------------------------------------------------------
17
5
  export const sectionHeaders = {
18
- typedef: ['Typedefs', 100], // DoxMemberKind too
6
+ typedef: ['Typedefs', 100],
19
7
  'public-type': ['Public Member Typedefs', 110],
20
8
  'protected-type': ['Protected Member Typedefs', 120],
21
9
  'private-type': ['Private Member Typedefs', 130],
22
10
  'package-type': ['Package Member Typedefs', 140],
23
- enum: ['Enumerations', 150], // DoxMemberKind too
24
- friend: ['Friends', 160], // DoxMemberKind too
25
- interface: ['Interfaces', 170], // DoxMemberKind only
26
- // Extra, not present in Doxygen.
11
+ enum: ['Enumerations', 150],
12
+ friend: ['Friends', 160],
13
+ interface: ['Interfaces', 170],
27
14
  constructorr: ['Constructors', 200],
28
15
  'public-constructorr': ['Public Constructors', 200],
29
16
  'protected-constructorr': ['Protected Constructors', 210],
30
17
  'private-constructorr': ['Private Constructors', 220],
31
- // Extra, not present in Doxygen.
32
18
  'public-destructor': ['Public Destructor', 230],
33
19
  'protected-destructor': ['Protected Destructor', 240],
34
20
  'private-destructor': ['Private Destructor', 250],
35
- // Extra, not present in Doxygen.
36
21
  operator: ['Operators', 300],
37
22
  'public-operator': ['Public Operators', 310],
38
23
  'protected-operator': ['Protected Operators', 320],
39
24
  'private-operator': ['Private Operators', 330],
40
25
  'package-operator': ['Package Operators', 340],
41
26
  func: ['Functions', 350],
42
- function: ['Functions', 350], // DoxMemberKind only
27
+ function: ['Functions', 350],
43
28
  'public-func': ['Public Member Functions', 360],
44
29
  'protected-func': ['Protected Member Functions', 370],
45
30
  'private-func': ['Private Member Functions', 380],
46
31
  'package-func': ['Package Member Functions', 390],
47
32
  var: ['Variables', 400],
48
- variable: ['Variables', 400], // DoxMemberKind only
33
+ variable: ['Variables', 400],
49
34
  'public-attrib': ['Public Member Attributes', 410],
50
35
  'protected-attrib': ['Protected Member Attributes', 420],
51
36
  'private-attrib': ['Private Member Attributes', 430],
@@ -62,108 +47,29 @@ export const sectionHeaders = {
62
47
  'protected-static-attrib': ['Protected Static Attributes', 610],
63
48
  'private-static-attrib': ['Private Static Attributes', 620],
64
49
  'package-static-attrib': ['Package Static Attributes', 630],
65
- slot: ['Slots', 700], // DoxMemberKind only
50
+ slot: ['Slots', 700],
66
51
  'public-slot': ['Public Slots', 700],
67
52
  'protected-slot': ['Protected Slot', 710],
68
53
  'private-slot': ['Private Slot', 720],
69
54
  related: ['Related', 800],
70
- define: ['Macro Definitions', 810], // DoxMemberKind too
71
- prototype: ['Prototypes', 820], // DoxMemberKind too
72
- signal: ['Signals', 830], // DoxMemberKind too
73
- // 'dcop-func': ['DCOP Functions', 840],
74
- dcop: ['DCOP Functions', 840], // DoxMemberKind only
75
- property: ['Properties', 850], // DoxMemberKind too
76
- event: ['Events', 860], // DoxMemberKind too
77
- service: ['Services', 870], // DoxMemberKind only
55
+ define: ['Macro Definitions', 810],
56
+ prototype: ['Prototypes', 820],
57
+ signal: ['Signals', 830],
58
+ dcop: ['DCOP Functions', 840],
59
+ property: ['Properties', 850],
60
+ event: ['Events', 860],
61
+ service: ['Services', 870],
78
62
  'user-defined': ['Definitions', 1000],
79
63
  };
80
- // ----------------------------------------------------------------------------
81
- /**
82
- * Represents a documentation section containing member definitions and
83
- * references.
84
- *
85
- * @remarks
86
- * Sections organise related members (functions, variables, types, etc.) within
87
- * compounds, providing structured grouping based on visibility, type, and
88
- * functionality. Each section manages both member definitions and references
89
- * to members defined elsewhere.
90
- *
91
- * @public
92
- */
93
64
  export class Section {
94
- /**
95
- * The parent compound containing this section.
96
- *
97
- * @remarks
98
- * References the compound (class, namespace, file, etc.) that owns
99
- * this section for context and rendering operations.
100
- */
101
65
  compound;
102
- /**
103
- * The section kind identifier from Doxygen.
104
- *
105
- * @remarks
106
- * Specifies the type of section (e.g., 'public-func', 'private-attrib',
107
- * 'typedef') which determines member organisation and display headers.
108
- */
109
66
  kind;
110
- /**
111
- * The display header name for this section.
112
- *
113
- * @remarks
114
- * Human-readable section title derived from the kind, used for
115
- * generating section headers in the documentation output.
116
- */
117
67
  headerName;
118
- /**
119
- * Optional section description lines in HTML format.
120
- *
121
- * @remarks
122
- * Contains processed description content for sections that include
123
- * additional explanatory text beyond the standard header.
124
- */
125
68
  descriptionLines;
126
- /**
127
- * All members in this section including references and definitions.
128
- *
129
- * @remarks
130
- * Contains both member definitions and member references in their
131
- * original order, used for generating member indices and overviews.
132
- */
133
69
  indexMembers = [];
134
- /**
135
- * Only member definitions in this section, sorted alphabetically.
136
- *
137
- * @remarks
138
- * Filtered collection containing only actual member definitions
139
- * (not references), sorted by name for detailed documentation rendering.
140
- */
141
70
  definitionMembers = [];
142
- /**
143
- * Private data available only during initialisation.
144
- *
145
- * @remarks
146
- * Temporary storage for section definition data that is cleared
147
- * after late initialisation to reduce memory usage.
148
- *
149
- * @internal
150
- */
151
71
  _private = {};
152
- /**
153
- * Initialises a new Section instance from section definition data.
154
- *
155
- * @remarks
156
- * Processes the section metadata, creates member instances, and organises
157
- * them into appropriate collections for index and definition rendering.
158
- * Members are sorted alphabetically for consistent documentation output.
159
- *
160
- * @param compound - The parent compound containing this section
161
- * @param sectionDef - The section definition containing member data
162
- *
163
- * @public
164
- */
165
72
  constructor(compound, sectionDef) {
166
- // console.log(compound.kind, compound.compoundName, sectionDef.kind)
167
73
  this._private._sectionDef = sectionDef;
168
74
  this.compound = compound;
169
75
  const { kind } = sectionDef;
@@ -175,8 +81,6 @@ export class Section {
175
81
  for (const memberDefDataModel of sectionDef.memberDefs) {
176
82
  const member = new Member(this, memberDefDataModel);
177
83
  members.push(member);
178
- // Do not add it to the global map since additional checks are needed
179
- // therefore the procedure is done in the global generator.
180
84
  }
181
85
  }
182
86
  if (sectionDef.members !== undefined) {
@@ -184,7 +88,6 @@ export class Section {
184
88
  members.push(new MemberRef(this, memberRef));
185
89
  }
186
90
  }
187
- // Original order.
188
91
  this.indexMembers = members;
189
92
  const definitionMembers = [];
190
93
  for (const member of this.indexMembers) {
@@ -192,100 +95,20 @@ export class Section {
192
95
  definitionMembers.push(member);
193
96
  }
194
97
  }
195
- // Sorted.
196
98
  this.definitionMembers = definitionMembers.sort((a, b) => a.name.localeCompare(b.name));
197
99
  }
198
- /**
199
- * Performs late initialisation for section descriptions.
200
- *
201
- * @remarks
202
- * Processes optional section descriptions into HTML format for rendering.
203
- * This method is called after all basic initialisation is complete to
204
- * ensure proper workspace context for description processing.
205
- *
206
- * @public
207
- */
208
100
  initializeLate() {
209
101
  const { workspace } = this.compound.collection;
210
102
  assert(this._private._sectionDef !== undefined);
211
103
  const { _sectionDef: sectionDef } = this._private;
212
104
  if (sectionDef.description !== undefined) {
213
105
  this.descriptionLines = workspace.renderElementToLines(sectionDef.description, 'html');
214
- // console.log(this.indexMembers, this.descriptionLines)
215
106
  }
216
107
  }
217
- /**
218
- * Determines if this section contains any member definitions.
219
- *
220
- * @remarks
221
- * Checks whether the section has actual member definitions (not just
222
- * references) that require detailed documentation rendering. Used to
223
- * filter sections for output generation.
224
- *
225
- * @returns True if the section contains member definitions, false otherwise
226
- *
227
- * @public
228
- */
229
108
  hasDefinitionMembers() {
230
109
  return this.definitionMembers.length > 0;
231
110
  }
232
- // --------------------------------------------------------------------------
233
- // <xsd:simpleType name="DoxSectionKind">
234
- // <xsd:restriction base="xsd:string">
235
- // <xsd:enumeration value="user-defined" />
236
- // <xsd:enumeration value="public-type" />
237
- // <xsd:enumeration value="public-func" />
238
- // <xsd:enumeration value="public-attrib" />
239
- // <xsd:enumeration value="public-slot" />
240
- // <xsd:enumeration value="signal" />
241
- // <xsd:enumeration value="dcop-func" />
242
- // <xsd:enumeration value="property" />
243
- // <xsd:enumeration value="event" />
244
- // <xsd:enumeration value="public-static-func" />
245
- // <xsd:enumeration value="public-static-attrib" />
246
- // <xsd:enumeration value="protected-type" />
247
- // <xsd:enumeration value="protected-func" />
248
- // <xsd:enumeration value="protected-attrib" />
249
- // <xsd:enumeration value="protected-slot" />
250
- // <xsd:enumeration value="protected-static-func" />
251
- // <xsd:enumeration value="protected-static-attrib" />
252
- // <xsd:enumeration value="package-type" />
253
- // <xsd:enumeration value="package-func" />
254
- // <xsd:enumeration value="package-attrib" />
255
- // <xsd:enumeration value="package-static-func" />
256
- // <xsd:enumeration value="package-static-attrib" />
257
- // <xsd:enumeration value="private-type" />
258
- // <xsd:enumeration value="private-func" />
259
- // <xsd:enumeration value="private-attrib" />
260
- // <xsd:enumeration value="private-slot" />
261
- // <xsd:enumeration value="private-static-func" />
262
- // <xsd:enumeration value="private-static-attrib" />
263
- // <xsd:enumeration value="friend" />
264
- // <xsd:enumeration value="related" />
265
- // <xsd:enumeration value="define" />
266
- // <xsd:enumeration value="prototype" />
267
- // <xsd:enumeration value="typedef" />
268
- // <xsd:enumeration value="enum" />
269
- // <xsd:enumeration value="func" />
270
- // <xsd:enumeration value="var" />
271
- // </xsd:restriction>
272
- // </xsd:simpleType>
273
- /**
274
- * Determines the display header name for a section based on its kind.
275
- *
276
- * @remarks
277
- * Maps Doxygen section kinds to human-readable header names, handling
278
- * both standard section types and user-defined sections with custom
279
- * headers. Falls back to predefined section headers from the global
280
- * mapping table.
281
- *
282
- * @param sectionDef - The section definition containing kind and header data
283
- * @returns The formatted header name for display
284
- *
285
- * @private
286
- */
287
111
  getHeaderNameByKind(sectionDef) {
288
- // User defined sections have their own header.
289
112
  const { header, kind } = sectionDef;
290
113
  if (kind === 'user-defined') {
291
114
  if (header !== undefined) {
@@ -297,9 +120,7 @@ export class Section {
297
120
  if (header !== undefined) {
298
121
  console.warn('header', header, 'ignored in sectionDef of kind', kind);
299
122
  }
300
- // ------------------------------------------------------------------------
301
123
  const sectionHeader = sectionHeaders[kind];
302
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
303
124
  if (sectionHeader === undefined) {
304
125
  console.error(util.inspect(sectionDef, { compact: false, depth: 999 }));
305
126
  console.error(sectionDef.constructor.name, 'kind', kind, 'not yet rendered in', this.constructor.name, 'getHeaderNameByKind');
@@ -307,45 +128,17 @@ export class Section {
307
128
  }
308
129
  return sectionHeader[0].trim();
309
130
  }
310
- /**
311
- * Determines the display order for this section based on its kind.
312
- *
313
- * @remarks
314
- * Returns a numeric order value used for sorting sections consistently
315
- * in documentation output. User-defined sections are placed at the end
316
- * with order 1000, while predefined sections use values from the global
317
- * mapping table.
318
- *
319
- * @returns Numeric order value for section sorting
320
- *
321
- * @public
322
- */
323
131
  getSectionOrderByKind() {
324
132
  const { kind } = this;
325
133
  if (kind === 'user-defined') {
326
- return 1000; // At the end.
134
+ return 1000;
327
135
  }
328
136
  const header = sectionHeaders[kind];
329
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
330
137
  assert(header !== undefined);
331
138
  return header[1];
332
139
  }
333
- // --------------------------------------------------------------------------
334
- /**
335
- * Renders the section index to HTML table lines.
336
- *
337
- * @remarks
338
- * Generates an HTML table containing all members in this section with
339
- * their signatures and brief descriptions. Both member definitions and
340
- * references are included in the index for comprehensive overview.
341
- *
342
- * @returns Array of HTML lines representing the section index
343
- *
344
- * @public
345
- */
346
140
  renderIndexToLines() {
347
141
  const lines = [];
348
- // console.log(sectionDef)
349
142
  if (this.indexMembers.length > 0) {
350
143
  lines.push('');
351
144
  lines.push(`## ${this.headerName} Index`);
@@ -366,25 +159,11 @@ export class Section {
366
159
  }
367
160
  return lines;
368
161
  }
369
- // --------------------------------------------------------------------------
370
- /**
371
- * Renders the complete section documentation to HTML lines.
372
- *
373
- * @remarks
374
- * Generates detailed section documentation including header, optional
375
- * description, and full member definitions. Only sections with member
376
- * definitions are rendered, ensuring meaningful content output.
377
- *
378
- * @returns Array of HTML lines representing the complete section
379
- *
380
- * @public
381
- */
382
162
  renderToLines() {
383
163
  const lines = [];
384
164
  if (!this.hasDefinitionMembers()) {
385
165
  return lines;
386
166
  }
387
- // TODO: filter out members defined in other compounds.
388
167
  lines.push('');
389
168
  lines.push('<div class="doxySectionDef">');
390
169
  lines.push('');
@@ -404,283 +183,40 @@ export class Section {
404
183
  return lines;
405
184
  }
406
185
  }
407
- // ----------------------------------------------------------------------------
408
- /**
409
- * Base class for member instances providing common functionality.
410
- *
411
- * @remarks
412
- * Provides shared properties and methods for both member definitions and
413
- * member references, establishing a common interface for member handling
414
- * throughout the documentation generation process.
415
- *
416
- * @internal
417
- */
418
186
  class MemberBase {
419
- /**
420
- * The parent section containing this member.
421
- *
422
- * @remarks
423
- * References the section that owns this member for context and
424
- * access to compound and workspace information.
425
- */
426
187
  section;
427
- /**
428
- * The member name identifier.
429
- *
430
- * @remarks
431
- * Base name of the member used for identification and documentation
432
- * generation across different member types.
433
- */
434
188
  name;
435
- /**
436
- * Initialises a new MemberBase instance.
437
- *
438
- * @remarks
439
- * Establishes the basic member properties required for all member types,
440
- * providing foundation for both definitions and references.
441
- *
442
- * @param section - The parent section containing this member
443
- * @param name - The member name identifier
444
- *
445
- * @protected
446
- */
447
189
  constructor(section, name) {
448
190
  this.section = section;
449
191
  this.name = name;
450
192
  }
451
- /**
452
- * Performs late initialisation for members.
453
- *
454
- * @remarks
455
- * Base implementation is intentionally empty, allowing subclasses to
456
- * override with specific initialisation logic as needed.
457
- *
458
- * @public
459
- */
460
- // Intentionally left blank for subclasses to override.
461
- // eslint-disable-next-line @typescript-eslint/no-empty-function
462
193
  initializeLate() { }
463
194
  }
464
- /**
465
- * Represents a complete member definition with full documentation.
466
- *
467
- * @remarks
468
- * Contains comprehensive member information including documentation,
469
- * signatures, location data, and rendering capabilities. Handles
470
- * various member types such as functions, variables, enums, and
471
- * typedefs with their specific documentation requirements.
472
- *
473
- * @public
474
- */
475
195
  export class Member extends MemberBase {
476
- /**
477
- * Unique identifier for this member.
478
- *
479
- * @remarks
480
- * Doxygen-generated unique ID used for cross-references, permalinks,
481
- * and member lookup operations throughout the documentation.
482
- */
483
196
  id;
484
- /**
485
- * The member kind from Doxygen classification.
486
- *
487
- * @remarks
488
- * Specifies the type of member (e.g., 'function', 'variable', 'enum',
489
- * 'typedef') which determines rendering and documentation behaviour.
490
- */
491
197
  kind;
492
- /**
493
- * Brief description in HTML format.
494
- *
495
- * @remarks
496
- * Optional short description of the member, processed into HTML for
497
- * display in indices and member overviews.
498
- */
499
198
  briefDescriptionHtmlString;
500
- /**
501
- * Detailed description lines in HTML format.
502
- *
503
- * @remarks
504
- * Comprehensive member documentation including parameters, return values,
505
- * examples, and detailed explanations processed into HTML lines.
506
- */
507
199
  detailedDescriptionHtmlLines;
508
- /**
509
- * Function argument string from Doxygen.
510
- *
511
- * @remarks
512
- * Contains the complete function signature arguments including types,
513
- * names, and default values for function-type members.
514
- */
515
200
  argsstring;
516
- /**
517
- * Fully qualified member name.
518
- *
519
- * @remarks
520
- * Complete qualified name including namespace and class scope,
521
- * used for accurate member identification and documentation.
522
- */
523
201
  qualifiedName;
524
- /**
525
- * Member definition string from Doxygen.
526
- *
527
- * @remarks
528
- * Complete member definition including type, qualifiers, and signature,
529
- * used for generating accurate member documentation and prototypes.
530
- */
531
202
  definition;
532
- /**
533
- * Member type information in HTML format.
534
- *
535
- * @remarks
536
- * Type specification for the member including template parameters and
537
- * qualifiers, processed into HTML for documentation display.
538
- */
539
203
  type;
540
- /**
541
- * Member initialiser lines in HTML format.
542
- *
543
- * @remarks
544
- * Variable or constant initialisation values, processed into HTML lines
545
- * for display in member documentation and indices.
546
- */
547
204
  initializerHtmlLines;
548
- /**
549
- * Location information in Markdown format.
550
- *
551
- * @remarks
552
- * File and line number information for the member definition,
553
- * formatted as Markdown for documentation display.
554
- */
555
205
  locationMarkdownLines;
556
- /**
557
- * Template parameters string.
558
- *
559
- * @remarks
560
- * Template parameter specification for template members, formatted
561
- * for display in member documentation headers.
562
- */
563
206
  templateParameters;
564
- /**
565
- * Enumeration values in HTML format.
566
- *
567
- * @remarks
568
- * For enum members, contains the formatted enumeration values table
569
- * with descriptions, processed into HTML lines.
570
- */
571
207
  enumHtmlLines;
572
- /**
573
- * Function parameters in HTML format.
574
- *
575
- * @remarks
576
- * For function members, contains the processed parameter list with
577
- * types and names formatted as HTML string.
578
- */
579
208
  parametersHtmlString;
580
- /**
581
- * Program listing for inline code display.
582
- *
583
- * @remarks
584
- * When enabled, contains the source code excerpt for the member
585
- * definition for inline documentation display.
586
- */
587
209
  programListing;
588
- /**
589
- * Cross-references to members that reference this member.
590
- *
591
- * @remarks
592
- * Markdown-formatted list of members and locations that reference
593
- * this member, providing reverse lookup capabilities.
594
- */
595
210
  referencedByMarkdownString;
596
- /**
597
- * Cross-references to members referenced by this member.
598
- *
599
- * @remarks
600
- * Markdown-formatted list of members and locations referenced by
601
- * this member, providing forward lookup capabilities.
602
- */
603
211
  referencesMarkdownString;
604
- /**
605
- * Enumeration values for enum members.
606
- *
607
- * @remarks
608
- * For enumeration members, contains the collection of enum values
609
- * with their documentation and initialiser values.
610
- */
611
212
  enumValues;
612
- /**
613
- * Collection of member attribute labels.
614
- *
615
- * @remarks
616
- * Contains labels such as 'static', 'inline', 'virtual', 'const' that
617
- * are displayed as badges in the member documentation.
618
- */
619
213
  labels = [];
620
- /**
621
- * Indicates if the member uses trailing return type syntax.
622
- *
623
- * @remarks
624
- * For C++ functions with trailing return types (auto func() -> Type),
625
- * affects how the member signature is formatted in documentation.
626
- */
627
214
  isTrailingType = false;
628
- /**
629
- * Indicates if the member is declared as constexpr.
630
- *
631
- * @remarks
632
- * True for constexpr members, affects display formatting and
633
- * documentation generation for compile-time constants.
634
- */
635
215
  isConstexpr = false;
636
- /**
637
- * Indicates if the member is a strong enum.
638
- *
639
- * @remarks
640
- * True for enum class declarations, affects how enumeration
641
- * documentation is formatted and displayed.
642
- */
643
216
  isStrong = false;
644
- /**
645
- * Indicates if the member is declared as const.
646
- *
647
- * @remarks
648
- * True for const members, affects member signature display
649
- * and documentation formatting.
650
- */
651
217
  isConst = false;
652
- /**
653
- * Indicates if the member is declared as static.
654
- *
655
- * @remarks
656
- * True for static members, affects member organisation,
657
- * display formatting, and section classification.
658
- */
659
218
  isStatic = false;
660
- /**
661
- * Private data available only during initialisation.
662
- *
663
- * @remarks
664
- * Temporary storage for member definition data that is cleared
665
- * after late initialisation to reduce memory usage.
666
- *
667
- * @internal
668
- */
669
219
  _private = {};
670
- /**
671
- * Initialises a new Member instance from member definition data.
672
- *
673
- * @remarks
674
- * Creates a member instance with basic identification information.
675
- * Full initialisation occurs later during the initializeLate phase
676
- * when workspace context is available for processing descriptions
677
- * and cross-references.
678
- *
679
- * @param section - The parent section containing this member
680
- * @param memberDef - The member definition containing member metadata
681
- *
682
- * @public
683
- */
684
220
  constructor(section, memberDef) {
685
221
  super(section, memberDef.name);
686
222
  this._private._memberDef = memberDef;
@@ -688,24 +224,12 @@ export class Member extends MemberBase {
688
224
  this.id = id;
689
225
  this.kind = kind;
690
226
  }
691
- /**
692
- * Performs comprehensive late initialisation for member documentation.
693
- *
694
- * @remarks
695
- * Processes member descriptions, signatures, location data, cross-references,
696
- * and rendering properties. This method transforms raw Doxygen data into
697
- * formatted HTML content ready for documentation generation. It handles
698
- * template parameters, enumeration values, and various member attributes.
699
- *
700
- * @public
701
- */
702
227
  initializeLate() {
703
228
  super.initializeLate();
704
229
  const { _memberDef: memberDef } = this._private;
705
230
  assert(memberDef !== undefined);
706
231
  const { workspace } = this.section.compound.collection;
707
232
  if (memberDef.briefDescription !== undefined) {
708
- // console.log(memberDef.briefDescription)
709
233
  assert(memberDef.briefDescription.children !== undefined);
710
234
  for (const child of memberDef.briefDescription.children) {
711
235
  if (child instanceof ParaDataModel) {
@@ -767,11 +291,9 @@ export class Member extends MemberBase {
767
291
  if (memberDef.virt !== undefined && memberDef.virt === 'virtual') {
768
292
  labels.push('virtual');
769
293
  }
770
- // WARNING: there is no explicit attribute for 'delete'.
771
294
  if (memberDef.argsstring?.endsWith('=delete') ?? false) {
772
295
  labels.push('delete');
773
296
  }
774
- // WARNING: there is no explicit attribute for 'default'.
775
297
  if (memberDef.argsstring?.endsWith('=default') ?? false) {
776
298
  labels.push('default');
777
299
  }
@@ -781,7 +303,6 @@ export class Member extends MemberBase {
781
303
  if (memberDef.mutable?.valueOf() ?? false) {
782
304
  labels.push('mutable');
783
305
  }
784
- // WARNING: could not find how to generate 'inherited'.
785
306
  this.labels = labels;
786
307
  const type = this.type ?? '';
787
308
  const templateParamList = memberDef.templateparamlist ??
@@ -828,24 +349,9 @@ export class Member extends MemberBase {
828
349
  }
829
350
  this.isStrong = memberDef.strong?.valueOf() ?? false;
830
351
  this.isConst = memberDef.constt?.valueOf() ?? false;
831
- // Clear the reference, it is no longer needed.
832
352
  this._private._memberDef = undefined;
833
353
  }
834
- /**
835
- * Filters program listing content for a specific member location.
836
- *
837
- * @remarks
838
- * Extracts relevant source code lines from file program listings based on
839
- * member location data. Creates a filtered program listing containing only
840
- * the code relevant to this specific member for inline documentation display.
841
- *
842
- * @param location - The location data containing file and line information
843
- * @returns Filtered program listing or undefined if unavailable
844
- *
845
- * @private
846
- */
847
354
  filterProgramListingForLocation(location) {
848
- // console.log(location)
849
355
  const { workspace } = this.section.compound.collection;
850
356
  if (location === undefined) {
851
357
  return undefined;
@@ -876,48 +382,14 @@ export class Member extends MemberBase {
876
382
  else {
877
383
  return undefined;
878
384
  }
879
- // console.log(definitionFile.indexName, startLine, endLine)
880
385
  programListing = new MemberProgramListingDataModel(definitionFile.programListing, startLine, endLine);
881
- // } else if (location.file !== undefined) {
882
- // definitionFile = workspace.filesByPath.get(location.file)
883
- // if (definitionFile === undefined) {
884
- // console.log('no definition')
885
- // return undefined
886
- // }
887
- // if (definitionFile.programListing === undefined) {
888
- // console.log('no listing')
889
- // return undefined
890
- // }
891
- // if (location.line !== undefined) {
892
- // startLine = location.line.valueOf()
893
- // endLine = startLine
894
- // } else {
895
- // return undefined
896
- // }
897
386
  }
898
387
  if (definitionFile?.programListing !== undefined) {
899
- // console.log(definitionFile.indexName, startLine, endLine)
900
388
  programListing = new MemberProgramListingDataModel(definitionFile.programListing, startLine, endLine);
901
389
  }
902
- // console.log(programListing)
903
390
  return programListing;
904
391
  }
905
- // --------------------------------------------------------------------------
906
- /**
907
- * Renders the member index entry to HTML table lines.
908
- *
909
- * @remarks
910
- * Generates a formatted HTML table row for member index display, including
911
- * member signature, type information, template parameters, and brief
912
- * description. The format varies based on member kind (function, variable,
913
- * enum, typedef, etc.) to provide appropriate representation.
914
- *
915
- * @returns Array of HTML lines representing the member index entry
916
- *
917
- * @public
918
- */
919
392
  renderIndexToLines() {
920
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
921
393
  const lines = [];
922
394
  const workspace = this.section.compound.collection.workspace;
923
395
  const permalink = workspace.getPermalink({
@@ -961,10 +433,6 @@ export class Member extends MemberBase {
961
433
  break;
962
434
  case 'function':
963
435
  {
964
- // WARNING: the rule to decide which type is trailing is not
965
- // in the XMLs.
966
- // https://github.com/doxygen/doxygen/discussions/11568
967
- // TODO: improve.
968
436
  const type = this.type ?? '';
969
437
  if (this.isStatic) {
970
438
  itemType += 'static ';
@@ -980,7 +448,6 @@ export class Member extends MemberBase {
980
448
  if (!itemType.includes('auto')) {
981
449
  itemType += 'auto ';
982
450
  }
983
- // WARNING: Doxygen shows this, but the resulting line is too long.
984
451
  itemName += workspace.renderString(' -> ', 'html');
985
452
  itemName += type;
986
453
  }
@@ -988,7 +455,6 @@ export class Member extends MemberBase {
988
455
  itemType += type;
989
456
  }
990
457
  if (this.initializerHtmlLines !== undefined) {
991
- // Show only short initializers in the index.
992
458
  itemName += ' ';
993
459
  if (this.initializerHtmlLines.length === 1) {
994
460
  itemName += this.initializerHtmlLines[0];
@@ -1018,7 +484,6 @@ export class Member extends MemberBase {
1018
484
  itemName += this.argsstring;
1019
485
  }
1020
486
  if (this.initializerHtmlLines !== undefined) {
1021
- // Show only short initializers in the index.
1022
487
  itemName += ' ';
1023
488
  if (this.initializerHtmlLines.length === 1) {
1024
489
  itemName += this.initializerHtmlLines[0];
@@ -1029,7 +494,6 @@ export class Member extends MemberBase {
1029
494
  }
1030
495
  break;
1031
496
  case 'enum':
1032
- // console.log(this)
1033
497
  itemType = '';
1034
498
  if (this.name.length === 0) {
1035
499
  itemType += 'anonymous ';
@@ -1047,11 +511,9 @@ export class Member extends MemberBase {
1047
511
  itemName += workspace.renderString(' }', 'html');
1048
512
  break;
1049
513
  case 'friend':
1050
- // console.log(this)
1051
514
  itemType = this.type ?? 'class';
1052
515
  break;
1053
516
  case 'define':
1054
- // console.log(this)
1055
517
  itemType = '#define';
1056
518
  if (this.parametersHtmlString !== undefined) {
1057
519
  itemName += `(${this.parametersHtmlString})`;
@@ -1082,7 +544,7 @@ export class Member extends MemberBase {
1082
544
  briefDescriptionString.length > 0) {
1083
545
  childrenLines.push(this.section.compound.renderBriefDescriptionToHtmlString({
1084
546
  briefDescriptionHtmlString: briefDescriptionString,
1085
- morePermalink: permalink, // No #details, it is already an anchor.
547
+ morePermalink: permalink,
1086
548
  }));
1087
549
  }
1088
550
  lines.push(...workspace.renderMembersIndexItemToHtmlLines({
@@ -1093,20 +555,6 @@ export class Member extends MemberBase {
1093
555
  }));
1094
556
  return lines;
1095
557
  }
1096
- // --------------------------------------------------------------------------
1097
- /**
1098
- * Renders the complete member documentation to HTML lines.
1099
- *
1100
- * @remarks
1101
- * Generates comprehensive member documentation including header, signature,
1102
- * template parameters, descriptions, initialisers, and cross-references.
1103
- * The output format varies based on member type to provide appropriate
1104
- * documentation structure for functions, variables, enums, and other members.
1105
- *
1106
- * @returns Array of HTML lines representing the complete member documentation
1107
- *
1108
- * @public
1109
- */
1110
558
  renderToLines() {
1111
559
  const lines = [];
1112
560
  const workspace = this.section.compound.collection.workspace;
@@ -1125,17 +573,13 @@ export class Member extends MemberBase {
1125
573
  let prototype = undefined;
1126
574
  const { labels } = this;
1127
575
  const childrenLines = [];
1128
- // console.log(memberDef.kind)
1129
576
  switch (this.kind) {
1130
577
  case 'function':
1131
578
  case 'typedef':
1132
579
  case 'variable':
1133
- // WARNING: the rule to decide which type is trailing is not in XMLs.
1134
- // TODO: improve.
1135
580
  assert(this.definition !== undefined);
1136
581
  prototype = workspace.renderString(this.definition, 'html');
1137
582
  if (this.isStatic) {
1138
- // The html pages show `static` only as a label; strip it.
1139
583
  prototype = prototype.replace(/^static /, '');
1140
584
  }
1141
585
  if (this.kind === 'function') {
@@ -1173,8 +617,6 @@ export class Member extends MemberBase {
1173
617
  for (const initializerLine of this.initializerHtmlLines.slice(1)) {
1174
618
  if (initializerLine.trim().length > 0) {
1175
619
  childrenLines.push(initializerLine);
1176
- // } else {
1177
- // childrenLines.push('&nbsp;')
1178
620
  }
1179
621
  }
1180
622
  childrenLines.push('</div>');
@@ -1233,7 +675,6 @@ export class Member extends MemberBase {
1233
675
  }
1234
676
  break;
1235
677
  case 'friend':
1236
- // console.log(this)
1237
678
  assert(this.type !== undefined);
1238
679
  prototype = `friend ${this.type}`;
1239
680
  if (this.parametersHtmlString !== undefined) {
@@ -1249,7 +690,6 @@ export class Member extends MemberBase {
1249
690
  }
1250
691
  break;
1251
692
  case 'define':
1252
- // console.log(this)
1253
693
  prototype = `#define ${name}`;
1254
694
  if (this.parametersHtmlString !== undefined) {
1255
695
  prototype += `(${this.parametersHtmlString})`;
@@ -1282,8 +722,6 @@ export class Member extends MemberBase {
1282
722
  for (const initializerLine of this.initializerHtmlLines.slice(1)) {
1283
723
  if (initializerLine.trim().length > 0) {
1284
724
  childrenLines.push(initializerLine);
1285
- // } else {
1286
- // childrenLines.push('&nbsp;')
1287
725
  }
1288
726
  }
1289
727
  childrenLines.push('</div>');
@@ -1327,20 +765,6 @@ export class Member extends MemberBase {
1327
765
  }
1328
766
  return lines;
1329
767
  }
1330
- /**
1331
- * Renders a member definition with prototype and documentation.
1332
- *
1333
- * @remarks
1334
- * Generates the HTML structure for displaying member definitions including
1335
- * template parameters, prototype signature, attribute labels, and detailed
1336
- * documentation content. Uses Doxygen-compatible CSS classes for styling.
1337
- *
1338
- * @param options - Rendering options including template, prototype, labels,
1339
- * and content
1340
- * @returns Array of HTML lines representing the member definition
1341
- *
1342
- * @private
1343
- */
1344
768
  renderMemberDefinitionToLines({ template, prototype, labels, childrenLines, }) {
1345
769
  const lines = [];
1346
770
  lines.push('<div class="doxyMemberItem">');
@@ -1370,26 +794,12 @@ export class Member extends MemberBase {
1370
794
  lines.push('</table>');
1371
795
  lines.push('</div>');
1372
796
  lines.push('<div class="doxyMemberDoc">');
1373
- lines.push(''); // Required to make the first line a separate paragraph.
797
+ lines.push('');
1374
798
  lines.push(...childrenLines);
1375
799
  lines.push('</div>');
1376
800
  lines.push('</div>');
1377
801
  return lines;
1378
802
  }
1379
- // --------------------------------------------------------------------------
1380
- /**
1381
- * Renders enumeration values to HTML table lines.
1382
- *
1383
- * @remarks
1384
- * Generates a formatted HTML table displaying all enumeration values with
1385
- * their names, descriptions, and initialiser values. Each enum value
1386
- * includes an anchor for direct linking and proper formatting for
1387
- * documentation display.
1388
- *
1389
- * @returns Array of HTML lines representing the enumeration values table
1390
- *
1391
- * @private
1392
- */
1393
803
  renderEnumToLines() {
1394
804
  const lines = [];
1395
805
  lines.push('');
@@ -1401,18 +811,14 @@ export class Member extends MemberBase {
1401
811
  for (const enumValue of this.enumValues) {
1402
812
  const anchor = getPermalinkAnchor(enumValue.id);
1403
813
  let enumBriefDescriptionHtmlString = (enumValue.briefDescriptionHtmlString ?? '').replace(/[.]$/, '');
1404
- // console.log(`|${enumBriefDescription}|`)
1405
814
  const { initializerHtmlString: value } = enumValue;
1406
815
  if (value !== undefined && value.length > 0) {
1407
816
  enumBriefDescriptionHtmlString += ` (${value})`;
1408
817
  }
1409
818
  lines.push('');
1410
- // lines.push(`<a id="${anchor}"></a>`)
1411
819
  lines.push('<tr class="doxyEnumItem">');
1412
820
  lines.push(`<td class="doxyEnumItemName">${enumValue.name}` +
1413
821
  `<a id="${anchor}"></a></td>`);
1414
- // lines.push(`<td class="doxyEnumItemDescription">`+
1415
- // `<p>${enumBriefDescription}</p></td>`)
1416
822
  if (!enumBriefDescriptionHtmlString.includes('\n')) {
1417
823
  lines.push(`<td class="doxyEnumItemDescription">` +
1418
824
  `${enumBriefDescriptionHtmlString}</td>`);
@@ -1432,109 +838,20 @@ export class Member extends MemberBase {
1432
838
  return lines;
1433
839
  }
1434
840
  }
1435
- // ----------------------------------------------------------------------------
1436
- /**
1437
- * Represents a reference to a member defined elsewhere.
1438
- *
1439
- * @remarks
1440
- * Member references point to actual member definitions in other compounds,
1441
- * allowing for cross-referencing and inclusion in multiple contexts without
1442
- * duplicating the complete member definition data.
1443
- *
1444
- * @public
1445
- */
1446
841
  export class MemberRef extends MemberBase {
1447
- /**
1448
- * Reference ID pointing to the actual member definition.
1449
- *
1450
- * @remarks
1451
- * Unique identifier used to locate the referenced member definition
1452
- * in the global members collection for rendering and cross-referencing.
1453
- */
1454
842
  refid;
1455
- /**
1456
- * Initialises a new MemberRef instance from member reference data.
1457
- *
1458
- * @remarks
1459
- * Creates a lightweight reference to a member defined elsewhere, storing
1460
- * only the essential information needed for lookups and cross-references.
1461
- *
1462
- * @param section - The parent section containing this member reference
1463
- * @param memberRef - The member reference data containing reference ID
1464
- *
1465
- * @public
1466
- */
1467
843
  constructor(section, memberRef) {
1468
844
  super(section, memberRef.name);
1469
- // this.memberRef = memberRef
1470
845
  const { refid } = memberRef;
1471
846
  this.refid = refid;
1472
847
  }
1473
848
  }
1474
- // ----------------------------------------------------------------------------
1475
- /**
1476
- * Represents an individual enumeration value with documentation.
1477
- *
1478
- * @remarks
1479
- * Contains the name, description, and initialiser value for enumeration
1480
- * entries, providing complete documentation support for enum constants
1481
- * including cross-referencing and detailed descriptions.
1482
- *
1483
- * @public
1484
- */
1485
849
  export class EnumValue {
1486
- /**
1487
- * The enumeration value name.
1488
- *
1489
- * @remarks
1490
- * Identifier name of the enumeration constant as declared in the source code.
1491
- */
1492
850
  name;
1493
- /**
1494
- * Unique identifier for this enumeration value.
1495
- *
1496
- * @remarks
1497
- * Doxygen-generated unique ID used for cross-references and anchor
1498
- * generation in the documentation.
1499
- */
1500
851
  id;
1501
- /**
1502
- * Brief description in HTML format.
1503
- *
1504
- * @remarks
1505
- * Optional description of the enumeration value, processed into HTML
1506
- * for display in enumeration tables and documentation.
1507
- */
1508
852
  briefDescriptionHtmlString;
1509
- /**
1510
- * Initialiser value in HTML format.
1511
- *
1512
- * @remarks
1513
- * The assigned value for the enumeration constant, if explicitly specified,
1514
- * formatted as HTML for documentation display.
1515
- */
1516
853
  initializerHtmlString;
1517
- /**
1518
- * Reference to the parent enumeration member.
1519
- *
1520
- * @remarks
1521
- * Back-reference to the Member instance that contains this enumeration
1522
- * value, providing access to parent context and workspace information.
1523
- */
1524
854
  member;
1525
- /**
1526
- * Initialises a new EnumValue instance from enumeration value data.
1527
- *
1528
- * @remarks
1529
- * Processes the enumeration value metadata including name, description,
1530
- * and initialiser value, converting them into appropriate HTML format
1531
- * for documentation rendering.
1532
- *
1533
- * @param member - The parent enumeration member
1534
- * @param enumValue - The enumeration value data from Doxygen
1535
- *
1536
- * @public
1537
- */
1538
855
  constructor(member, enumValue) {
1539
856
  this.member = member;
1540
857
  this.name = enumValue.name.trim();
@@ -1558,8 +875,6 @@ export class EnumValue {
1558
875
  if (enumValue.initializer !== undefined) {
1559
876
  this.initializerHtmlString = workspace.renderElementToString(enumValue.initializer, 'html');
1560
877
  }
1561
- // console.log(this)
1562
878
  }
1563
879
  }
1564
- // ----------------------------------------------------------------------------
1565
880
  //# sourceMappingURL=members-vm.js.map