@diplodoc/cli 5.46.1 → 5.47.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 (852) hide show
  1. package/build/index.js +3 -3
  2. package/build/index.mjs +3 -3
  3. package/package.json +24 -8
  4. package/tests/.eslintrc.js +9 -0
  5. package/tests/e2e/__snapshots__/alternates.test.ts.snap +1199 -0
  6. package/tests/e2e/__snapshots__/assets.spec.ts.snap +0 -0
  7. package/tests/e2e/__snapshots__/build-content-map.spec.ts.snap +329 -0
  8. package/tests/e2e/__snapshots__/bundles.spec.ts.snap +172 -0
  9. package/tests/e2e/__snapshots__/cleanup-empty-dirs.spec.ts.snap +65 -0
  10. package/tests/e2e/__snapshots__/crawler-manifest.spec.ts.snap +28 -0
  11. package/tests/e2e/__snapshots__/files.spec.ts.snap +164 -0
  12. package/tests/e2e/__snapshots__/files.test.ts.snap +146 -0
  13. package/tests/e2e/__snapshots__/generate-map.spec.ts.snap +408 -0
  14. package/tests/e2e/__snapshots__/include-toc.test.ts.snap +797 -0
  15. package/tests/e2e/__snapshots__/include-with-meta.test.ts.snap +67 -0
  16. package/tests/e2e/__snapshots__/includes-conditions.test.ts.snap +78 -0
  17. package/tests/e2e/__snapshots__/includes.test.ts.snap +780 -0
  18. package/tests/e2e/__snapshots__/init.test.ts.snap +283 -0
  19. package/tests/e2e/__snapshots__/llms.spec.ts.snap +257 -0
  20. package/tests/e2e/__snapshots__/load-custom-resources.spec.ts.snap +362 -0
  21. package/tests/e2e/__snapshots__/markdown-options.spec.ts.snap +209 -0
  22. package/tests/e2e/__snapshots__/merge-includes.spec.ts.snap +1058 -0
  23. package/tests/e2e/__snapshots__/metadata.spec.ts.snap +200 -0
  24. package/tests/e2e/__snapshots__/neuro-expert.test.ts.snap +625 -0
  25. package/tests/e2e/__snapshots__/pdf-page.spec.ts.snap +341 -0
  26. package/tests/e2e/__snapshots__/plugin-corner-cases.spec.ts.snap +0 -0
  27. package/tests/e2e/__snapshots__/preprocess.test.ts.snap +1558 -0
  28. package/tests/e2e/__snapshots__/regression.test.ts.snap +2033 -0
  29. package/tests/e2e/__snapshots__/restricted-access.test.ts.snap +244 -0
  30. package/tests/e2e/__snapshots__/rtl.spec.ts.snap +234 -0
  31. package/tests/e2e/__snapshots__/search.test.ts.snap +56 -0
  32. package/tests/e2e/__snapshots__/single-page.spec.ts.snap +163 -0
  33. package/tests/e2e/__snapshots__/skip-html-extension.spec.ts.snap +519 -0
  34. package/tests/e2e/__snapshots__/toc-label.test.ts.snap +127 -0
  35. package/tests/e2e/__snapshots__/translation.spec.ts.snap +2386 -0
  36. package/tests/e2e/__snapshots__/vars-conditions.spec.ts.snap +131 -0
  37. package/tests/e2e/alternates.test.ts +49 -0
  38. package/tests/e2e/assets.spec.ts +31 -0
  39. package/tests/e2e/autotitles.spec.ts +37 -0
  40. package/tests/e2e/build-content-map.spec.ts +220 -0
  41. package/tests/e2e/bundles.spec.ts +16 -0
  42. package/tests/e2e/cleanup-empty-dirs.spec.ts +59 -0
  43. package/tests/e2e/crawler-manifest.spec.ts +129 -0
  44. package/tests/e2e/disable-csp.spec.ts +55 -0
  45. package/tests/e2e/empty-presets.spec.ts +32 -0
  46. package/tests/e2e/errors.spec.ts +158 -0
  47. package/tests/e2e/files.spec.ts +21 -0
  48. package/tests/e2e/generate-map.spec.ts +47 -0
  49. package/tests/e2e/include-toc.test.ts +73 -0
  50. package/tests/e2e/include-with-meta.test.ts +20 -0
  51. package/tests/e2e/includes-conditions.test.ts +23 -0
  52. package/tests/e2e/includes.test.ts +52 -0
  53. package/tests/e2e/init.test.ts +105 -0
  54. package/tests/e2e/llms.spec.ts +24 -0
  55. package/tests/e2e/load-custom-resources.spec.ts +23 -0
  56. package/tests/e2e/markdown-options.spec.ts +17 -0
  57. package/tests/e2e/merge-includes.spec.ts +196 -0
  58. package/tests/e2e/metadata.spec.ts +79 -0
  59. package/tests/e2e/nested-include-links.spec.ts +26 -0
  60. package/tests/e2e/neuro-expert.test.ts +16 -0
  61. package/tests/e2e/openapi-companion.spec.ts +213 -0
  62. package/tests/e2e/openapi-include-size.spec.ts +55 -0
  63. package/tests/e2e/pdf-page.spec.ts +127 -0
  64. package/tests/e2e/plugin-corner-cases.spec.ts +14 -0
  65. package/tests/e2e/preprocess.test.ts +40 -0
  66. package/tests/e2e/redirects-validation.spec.ts +62 -0
  67. package/tests/e2e/regression.test.ts +39 -0
  68. package/tests/e2e/restricted-access.test.ts +19 -0
  69. package/tests/e2e/rtl.spec.ts +17 -0
  70. package/tests/e2e/search.test.ts +16 -0
  71. package/tests/e2e/single-page.spec.ts +23 -0
  72. package/tests/e2e/skip-html-extension.spec.ts +17 -0
  73. package/tests/e2e/themer.test.ts +307 -0
  74. package/tests/e2e/toc-label.test.ts +23 -0
  75. package/tests/e2e/translation.spec.ts +221 -0
  76. package/tests/e2e/vars-conditions.spec.ts +16 -0
  77. package/tests/e2e/vars-ignore.test.ts +168 -0
  78. package/tests/fixtures/cli.ts +103 -0
  79. package/tests/fixtures/file.ts +148 -0
  80. package/tests/fixtures/globals.d.ts +4 -0
  81. package/tests/fixtures/index.ts +4 -0
  82. package/tests/fixtures/runner.ts +49 -0
  83. package/tests/fixtures/test.ts +210 -0
  84. package/tests/mocks/alternates/input/.yfm +1 -0
  85. package/tests/mocks/alternates/input/az/about.md +3 -0
  86. package/tests/mocks/alternates/input/az/deep/test.md +3 -0
  87. package/tests/mocks/alternates/input/az/index.yaml +3 -0
  88. package/tests/mocks/alternates/input/az/toc.yaml +6 -0
  89. package/tests/mocks/alternates/input/en/about.md +3 -0
  90. package/tests/mocks/alternates/input/en/deep/test.md +3 -0
  91. package/tests/mocks/alternates/input/en/index.yaml +3 -0
  92. package/tests/mocks/alternates/input/en/toc.yaml +6 -0
  93. package/tests/mocks/alternates/input/ru/about.md +8 -0
  94. package/tests/mocks/alternates/input/ru/deep/test.md +3 -0
  95. package/tests/mocks/alternates/input/ru/index.yaml +3 -0
  96. package/tests/mocks/alternates/input/ru/toc.yaml +6 -0
  97. package/tests/mocks/assets/input/.yfm +1 -0
  98. package/tests/mocks/assets/input/_images/camera.svg +1 -0
  99. package/tests/mocks/assets/input/_images/icons/bulb.svg +1 -0
  100. package/tests/mocks/assets/input/_images/mountain.jpg +0 -0
  101. package/tests/mocks/assets/input/_images/versions.png +0 -0
  102. package/tests/mocks/assets/input/index.md +18 -0
  103. package/tests/mocks/assets/input/page.yaml +7 -0
  104. package/tests/mocks/assets/input/toc.yaml +7 -0
  105. package/tests/mocks/autotitles/input/docs/index.md +3 -0
  106. package/tests/mocks/autotitles/input/docs/target.md +3 -0
  107. package/tests/mocks/autotitles/input/toc.yaml +5 -0
  108. package/tests/mocks/build-content-map/autotitle-chain/input/.yfm +0 -0
  109. package/tests/mocks/build-content-map/autotitle-chain/input/a.md +3 -0
  110. package/tests/mocks/build-content-map/autotitle-chain/input/b.md +3 -0
  111. package/tests/mocks/build-content-map/autotitle-chain/input/c.md +3 -0
  112. package/tests/mocks/build-content-map/autotitle-chain/input/toc.yaml +9 -0
  113. package/tests/mocks/build-content-map/autotitle-target-with-include/input/.yfm +0 -0
  114. package/tests/mocks/build-content-map/autotitle-target-with-include/input/_includes/snippet.md +3 -0
  115. package/tests/mocks/build-content-map/autotitle-target-with-include/input/a.md +3 -0
  116. package/tests/mocks/build-content-map/autotitle-target-with-include/input/b.md +3 -0
  117. package/tests/mocks/build-content-map/autotitle-target-with-include/input/toc.yaml +7 -0
  118. package/tests/mocks/build-content-map/diamond-includes/input/.yfm +0 -0
  119. package/tests/mocks/build-content-map/diamond-includes/input/_includes/branch-a.md +5 -0
  120. package/tests/mocks/build-content-map/diamond-includes/input/_includes/branch-b.md +5 -0
  121. package/tests/mocks/build-content-map/diamond-includes/input/_includes/shared.md +3 -0
  122. package/tests/mocks/build-content-map/diamond-includes/input/index.md +7 -0
  123. package/tests/mocks/build-content-map/diamond-includes/input/toc.yaml +5 -0
  124. package/tests/mocks/build-content-map/nested-includes/input/.yfm +0 -0
  125. package/tests/mocks/build-content-map/nested-includes/input/_includes/level1.md +5 -0
  126. package/tests/mocks/build-content-map/nested-includes/input/_includes/level2.md +3 -0
  127. package/tests/mocks/build-content-map/nested-includes/input/index.md +5 -0
  128. package/tests/mocks/build-content-map/nested-includes/input/toc.yaml +5 -0
  129. package/tests/mocks/build-content-map/with-autotitles/input/.yfm +0 -0
  130. package/tests/mocks/build-content-map/with-autotitles/input/index.md +3 -0
  131. package/tests/mocks/build-content-map/with-autotitles/input/other.md +3 -0
  132. package/tests/mocks/build-content-map/with-autotitles/input/toc.yaml +7 -0
  133. package/tests/mocks/build-content-map/with-includes/input/.yfm +0 -0
  134. package/tests/mocks/build-content-map/with-includes/input/_includes/snippet.md +1 -0
  135. package/tests/mocks/build-content-map/with-includes/input/index.md +5 -0
  136. package/tests/mocks/build-content-map/with-includes/input/logo.svg +1 -0
  137. package/tests/mocks/build-content-map/with-includes/input/toc.yaml +5 -0
  138. package/tests/mocks/bundles/input/.yfm +13 -0
  139. package/tests/mocks/bundles/input/index.md +12 -0
  140. package/tests/mocks/bundles/input/page1.md +3 -0
  141. package/tests/mocks/bundles/input/page2.md +5 -0
  142. package/tests/mocks/bundles/input/toc.yaml +9 -0
  143. package/tests/mocks/cleanup-empty-dirs/input/.yfm +2 -0
  144. package/tests/mocks/cleanup-empty-dirs/input/active/page.md +5 -0
  145. package/tests/mocks/cleanup-empty-dirs/input/active/presets.yaml +2 -0
  146. package/tests/mocks/cleanup-empty-dirs/input/active/toc.yaml +4 -0
  147. package/tests/mocks/cleanup-empty-dirs/input/empty-section/page.md +5 -0
  148. package/tests/mocks/cleanup-empty-dirs/input/empty-section/presets.yaml +2 -0
  149. package/tests/mocks/cleanup-empty-dirs/input/empty-section/toc.yaml +5 -0
  150. package/tests/mocks/cleanup-empty-dirs/input/index.md +5 -0
  151. package/tests/mocks/cleanup-empty-dirs/input/presets.yaml +2 -0
  152. package/tests/mocks/cleanup-empty-dirs/input/toc.yaml +5 -0
  153. package/tests/mocks/crawler-manifest/config/input/.yfm +1 -0
  154. package/tests/mocks/crawler-manifest/config/input/index.md +3 -0
  155. package/tests/mocks/crawler-manifest/config/input/toc.yaml +4 -0
  156. package/tests/mocks/crawler-manifest/exclude/input/.yfm +9 -0
  157. package/tests/mocks/crawler-manifest/exclude/input/index.md +5 -0
  158. package/tests/mocks/crawler-manifest/exclude/input/toc.yaml +4 -0
  159. package/tests/mocks/crawler-manifest/no-links/input/index.md +5 -0
  160. package/tests/mocks/crawler-manifest/no-links/input/toc.yaml +4 -0
  161. package/tests/mocks/crawler-manifest/notifications-docs-viewer/input/.yfm +8 -0
  162. package/tests/mocks/crawler-manifest/notifications-docs-viewer/input/index.md +3 -0
  163. package/tests/mocks/crawler-manifest/notifications-docs-viewer/input/toc.yaml +4 -0
  164. package/tests/mocks/crawler-manifest/notifications-no-receivers/input/.yfm +5 -0
  165. package/tests/mocks/crawler-manifest/notifications-no-receivers/input/index.md +3 -0
  166. package/tests/mocks/crawler-manifest/notifications-no-receivers/input/toc.yaml +4 -0
  167. package/tests/mocks/crawler-manifest/notifications-root/input/.yfm +11 -0
  168. package/tests/mocks/crawler-manifest/notifications-root/input/index.md +3 -0
  169. package/tests/mocks/crawler-manifest/notifications-root/input/toc.yaml +4 -0
  170. package/tests/mocks/crawler-manifest/with-links/input/redirects.yaml +5 -0
  171. package/tests/mocks/crawler-manifest/with-links/input/ru/_includes/snippet.md +1 -0
  172. package/tests/mocks/crawler-manifest/with-links/input/ru/index.md +35 -0
  173. package/tests/mocks/crawler-manifest/with-links/input/ru/leading.yaml +5 -0
  174. package/tests/mocks/crawler-manifest/with-links/input/ru/no-links.md +3 -0
  175. package/tests/mocks/crawler-manifest/with-links/input/ru/references.md +5 -0
  176. package/tests/mocks/crawler-manifest/with-links/input/toc.yaml +12 -0
  177. package/tests/mocks/disable-csp/input/.yfm +8 -0
  178. package/tests/mocks/disable-csp/input/en/index.md +3 -0
  179. package/tests/mocks/disable-csp/input/en/page.md +3 -0
  180. package/tests/mocks/disable-csp/input/en/toc.yaml +5 -0
  181. package/tests/mocks/docs-viewer-interface/input/.yfm +6 -0
  182. package/tests/mocks/docs-viewer-interface/input/index.md +3 -0
  183. package/tests/mocks/docs-viewer-interface/input/toc.yaml +5 -0
  184. package/tests/mocks/empty-presets/input/.yfm +1 -0
  185. package/tests/mocks/empty-presets/input/index.md +3 -0
  186. package/tests/mocks/empty-presets/input/presets.yaml +3 -0
  187. package/tests/mocks/empty-presets/input/subfolder/presets.yaml +3 -0
  188. package/tests/mocks/empty-presets/input/subfolder/subpage.md +3 -0
  189. package/tests/mocks/empty-presets/input/subfolder/toc.yaml +4 -0
  190. package/tests/mocks/empty-presets/input/toc.yaml +4 -0
  191. package/tests/mocks/errors/extract-filtered-link/input/filtered.md +1 -0
  192. package/tests/mocks/errors/extract-filtered-link/input/filtered2.md +0 -0
  193. package/tests/mocks/errors/extract-filtered-link/input/index.md +7 -0
  194. package/tests/mocks/errors/extract-filtered-link/input/toc.yaml +1 -0
  195. package/tests/mocks/errors/invalid-frontmatter/input/index.md +9 -0
  196. package/tests/mocks/errors/invalid-frontmatter/input/toc.yaml +1 -0
  197. package/tests/mocks/errors/invalid-toc-entry-href/input/.yfm +1 -0
  198. package/tests/mocks/errors/invalid-toc-entry-href/input/ru/toc.yaml +3 -0
  199. package/tests/mocks/errors/invalid-toc-root-array/input/.yfm +1 -0
  200. package/tests/mocks/errors/invalid-toc-root-array/input/ru/toc.yaml +2 -0
  201. package/tests/mocks/errors/max-asset-size/input/_images/large-image.png +0 -0
  202. package/tests/mocks/errors/max-asset-size/input/index.md +5 -0
  203. package/tests/mocks/errors/max-asset-size/input/toc.yaml +1 -0
  204. package/tests/mocks/errors/object-validation/input/index.md +3 -0
  205. package/tests/mocks/errors/object-validation/input/toc.yaml +14 -0
  206. package/tests/mocks/errors/unreachable-link/input/exists.md +1 -0
  207. package/tests/mocks/errors/unreachable-link/input/index.md +2 -0
  208. package/tests/mocks/errors/unreachable-link/input/toc.yaml +1 -0
  209. package/tests/mocks/errors/unreachable-link-in-include/input/_includes/chapter.md +1 -0
  210. package/tests/mocks/errors/unreachable-link-in-include/input/index.md +5 -0
  211. package/tests/mocks/errors/unreachable-link-in-include/input/toc.yaml +1 -0
  212. package/tests/mocks/errors/unreachable-link-in-nested-include/input/_includes/chapter.md +3 -0
  213. package/tests/mocks/errors/unreachable-link-in-nested-include/input/_includes/details.md +1 -0
  214. package/tests/mocks/errors/unreachable-link-in-nested-include/input/index.md +3 -0
  215. package/tests/mocks/errors/unreachable-link-in-nested-include/input/toc.yaml +1 -0
  216. package/tests/mocks/errors/valid-link-in-include/input/_includes/content.md +1 -0
  217. package/tests/mocks/errors/valid-link-in-include/input/index.md +3 -0
  218. package/tests/mocks/errors/valid-link-in-include/input/page.md +3 -0
  219. package/tests/mocks/errors/valid-link-in-include/input/toc.yaml +4 -0
  220. package/tests/mocks/fileContent/metadata/authorAliasInMetadata.md +7 -0
  221. package/tests/mocks/fileContent/metadata/fullAuthorInMetadata.md +10 -0
  222. package/tests/mocks/fileContent/metadata/includesContent/firstIncludeFile.md +7 -0
  223. package/tests/mocks/fileContent/metadata/includesContent/secondIncludeFile.md +5 -0
  224. package/tests/mocks/fileContent/metadata/includesContent/withIncludes.md +7 -0
  225. package/tests/mocks/fileContent/metadata/keywordsInMetadata.md +9 -0
  226. package/tests/mocks/fileContent/metadata/simpleMetadata.md +6 -0
  227. package/tests/mocks/fileContent/metadata/substitutionsInMetadataPropertyKeys.md +7 -0
  228. package/tests/mocks/fileContent/metadata/substitutionsInMetadataPropertyValues.md +11 -0
  229. package/tests/mocks/fileContent/metadata/substitutionsWithEmptyString.md +7 -0
  230. package/tests/mocks/fileContent/metadata/variableInMetadata.md +7 -0
  231. package/tests/mocks/fileContent/metadata/withAdditionalSeparatorsInContent.md +9 -0
  232. package/tests/mocks/fileContent/metadata/withoutMetadata.md +2 -0
  233. package/tests/mocks/fileContent/metadata/withoutMetadataWithAdditionalSeparatorsInContent.md +6 -0
  234. package/tests/mocks/files/input/_assets/test.csv +0 -0
  235. package/tests/mocks/files/input/_assets/test.docx +0 -0
  236. package/tests/mocks/files/input/_assets/test.pdf +0 -0
  237. package/tests/mocks/files/input/_assets/test.pptx +0 -0
  238. package/tests/mocks/files/input/_assets/test.txt +0 -0
  239. package/tests/mocks/files/input/_assets/test.xlsx +0 -0
  240. package/tests/mocks/files/input/_assets/test.yaml +50 -0
  241. package/tests/mocks/files/input/index.md +17 -0
  242. package/tests/mocks/files/input/pc-index.yaml +70 -0
  243. package/tests/mocks/files/input/toc.yaml +6 -0
  244. package/tests/mocks/generate-map/test1/input/.yfm +0 -0
  245. package/tests/mocks/generate-map/test1/input/ru/_includes/file.md +0 -0
  246. package/tests/mocks/generate-map/test1/input/ru/_includes/plugins.md +0 -0
  247. package/tests/mocks/generate-map/test1/input/ru/folder1/a1.md +1 -0
  248. package/tests/mocks/generate-map/test1/input/ru/folder1/folder2/a1.md +1 -0
  249. package/tests/mocks/generate-map/test1/input/ru/folder1/folder2/toc.yaml +5 -0
  250. package/tests/mocks/generate-map/test1/input/ru/folder1/toc.yaml +7 -0
  251. package/tests/mocks/generate-map/test1/input/ru/index.md +0 -0
  252. package/tests/mocks/generate-map/test1/input/ru/plugins/import.md +0 -0
  253. package/tests/mocks/generate-map/test1/input/ru/plugins/index.md +0 -0
  254. package/tests/mocks/generate-map/test1/input/ru/project/config.md +0 -0
  255. package/tests/mocks/generate-map/test1/input/ru/project/index.md +0 -0
  256. package/tests/mocks/generate-map/test1/input/ru/settings.md +0 -0
  257. package/tests/mocks/generate-map/test1/input/ru/toc.yaml +22 -0
  258. package/tests/mocks/generate-map/test2/input/en/_includes/file.md +0 -0
  259. package/tests/mocks/generate-map/test2/input/en/_includes/plugins.md +0 -0
  260. package/tests/mocks/generate-map/test2/input/en/index.md +0 -0
  261. package/tests/mocks/generate-map/test2/input/en/plugins/import.md +0 -0
  262. package/tests/mocks/generate-map/test2/input/en/plugins/index.md +0 -0
  263. package/tests/mocks/generate-map/test2/input/en/project/config.md +0 -0
  264. package/tests/mocks/generate-map/test2/input/en/project/index.md +0 -0
  265. package/tests/mocks/generate-map/test2/input/en/settings.md +0 -0
  266. package/tests/mocks/generate-map/test2/input/en/toc.yaml +18 -0
  267. package/tests/mocks/generate-map/test2/input/ru/_includes/file.md +0 -0
  268. package/tests/mocks/generate-map/test2/input/ru/_includes/plugins.md +0 -0
  269. package/tests/mocks/generate-map/test2/input/ru/index.md +0 -0
  270. package/tests/mocks/generate-map/test2/input/ru/plugins/import.md +0 -0
  271. package/tests/mocks/generate-map/test2/input/ru/plugins/index.md +0 -0
  272. package/tests/mocks/generate-map/test2/input/ru/project/config.md +0 -0
  273. package/tests/mocks/generate-map/test2/input/ru/project/index.md +0 -0
  274. package/tests/mocks/generate-map/test2/input/ru/settings.md +0 -0
  275. package/tests/mocks/generate-map/test2/input/ru/toc.yaml +18 -0
  276. package/tests/mocks/generate-map/test3/input/.yfm +0 -0
  277. package/tests/mocks/generate-map/test3/input/ru/_includes/file.md +0 -0
  278. package/tests/mocks/generate-map/test3/input/ru/_includes/plugins.md +0 -0
  279. package/tests/mocks/generate-map/test3/input/ru/folder1/a1.md +1 -0
  280. package/tests/mocks/generate-map/test3/input/ru/folder1/folder2/a1.md +1 -0
  281. package/tests/mocks/generate-map/test3/input/ru/folder1/folder2/toc.yaml +5 -0
  282. package/tests/mocks/generate-map/test3/input/ru/folder1/toc.yaml +7 -0
  283. package/tests/mocks/generate-map/test3/input/ru/index.md +0 -0
  284. package/tests/mocks/generate-map/test3/input/ru/plugins/import.md +0 -0
  285. package/tests/mocks/generate-map/test3/input/ru/plugins/index.md +0 -0
  286. package/tests/mocks/generate-map/test3/input/ru/project/config.md +0 -0
  287. package/tests/mocks/generate-map/test3/input/ru/project/index.md +0 -0
  288. package/tests/mocks/generate-map/test3/input/ru/settings.md +0 -0
  289. package/tests/mocks/generate-map/test3/input/ru/toc.yaml +22 -0
  290. package/tests/mocks/include-skip/test1/input/includes/missing.md +1 -0
  291. package/tests/mocks/include-skip/test1/input/index.md +3 -0
  292. package/tests/mocks/include-skip/test1/input/toc.yaml +3 -0
  293. package/tests/mocks/include-skip/test2/input/includes/missing.md +1 -0
  294. package/tests/mocks/include-skip/test2/input/includes/valid.md +4 -0
  295. package/tests/mocks/include-skip/test2/input/index.md +4 -0
  296. package/tests/mocks/include-skip/test2/input/toc.yaml +4 -0
  297. package/tests/mocks/include-toc/test1/input/a1.md +1 -0
  298. package/tests/mocks/include-toc/test1/input/folder1/a1.md +1 -0
  299. package/tests/mocks/include-toc/test1/input/folder1/folder2/a1.md +1 -0
  300. package/tests/mocks/include-toc/test1/input/folder1/folder2/toc.yaml +5 -0
  301. package/tests/mocks/include-toc/test1/input/folder1/toc.yaml +7 -0
  302. package/tests/mocks/include-toc/test1/input/toc.yaml +9 -0
  303. package/tests/mocks/include-toc/test10/input/test/index.md +4 -0
  304. package/tests/mocks/include-toc/test10/input/test/sub/index.md +1 -0
  305. package/tests/mocks/include-toc/test10/input/test/sub/sub/sub-3.md +1 -0
  306. package/tests/mocks/include-toc/test10/input/test/sub/sub-1.md +5 -0
  307. package/tests/mocks/include-toc/test10/input/test/sub/sub-2.md +1 -0
  308. package/tests/mocks/include-toc/test10/input/test/test.md +1 -0
  309. package/tests/mocks/include-toc/test10/input/toc.yaml +9 -0
  310. package/tests/mocks/include-toc/test2/input/.yfm +1 -0
  311. package/tests/mocks/include-toc/test2/input/file1.md +1 -0
  312. package/tests/mocks/include-toc/test2/input/fileX.md +1 -0
  313. package/tests/mocks/include-toc/test2/input/folder/fileA.md +11 -0
  314. package/tests/mocks/include-toc/test2/input/folder/fileB.md +9 -0
  315. package/tests/mocks/include-toc/test2/input/folder/folder/fileC.md +1 -0
  316. package/tests/mocks/include-toc/test2/input/folder/folder/toc.yaml +3 -0
  317. package/tests/mocks/include-toc/test2/input/folder/toc.yaml +6 -0
  318. package/tests/mocks/include-toc/test2/input/presets.yaml +2 -0
  319. package/tests/mocks/include-toc/test2/input/toc.yaml +6 -0
  320. package/tests/mocks/include-toc/test3/input/product1/core/_includes/inc.md +1 -0
  321. package/tests/mocks/include-toc/test3/input/product1/core/article1.md +3 -0
  322. package/tests/mocks/include-toc/test3/input/product1/core/toc_m.yaml +2 -0
  323. package/tests/mocks/include-toc/test3/input/product1/product/toc_p.yaml +3 -0
  324. package/tests/mocks/include-toc/test3/input/product1/toc.yaml +3 -0
  325. package/tests/mocks/include-toc/test3/input/product2/core/_includes/inc.md +1 -0
  326. package/tests/mocks/include-toc/test3/input/product2/core/article1.md +3 -0
  327. package/tests/mocks/include-toc/test3/input/product2/core/toc_m.yaml +2 -0
  328. package/tests/mocks/include-toc/test3/input/product2/overlay1/product/article1.md +3 -0
  329. package/tests/mocks/include-toc/test3/input/product2/overlay1/product/toc_p.yaml +3 -0
  330. package/tests/mocks/include-toc/test3/input/product2/overlay1/toc.yaml +2 -0
  331. package/tests/mocks/include-toc/test3/input/product2/overlay2/product/article1.md +3 -0
  332. package/tests/mocks/include-toc/test3/input/product2/overlay2/product/toc_p.yaml +3 -0
  333. package/tests/mocks/include-toc/test3/input/product2/overlay2/toc.yaml +2 -0
  334. package/tests/mocks/include-toc/test3/input/product2/overlay3/product/toc_p.yaml +3 -0
  335. package/tests/mocks/include-toc/test3/input/product2/overlay3/toc.yaml +2 -0
  336. package/tests/mocks/include-toc/test3/input/product2/p2.md +4 -0
  337. package/tests/mocks/include-toc/test3/input/product2/toc.yaml +10 -0
  338. package/tests/mocks/include-toc/test4/input/a1.md +1 -0
  339. package/tests/mocks/include-toc/test4/input/index.yaml +20 -0
  340. package/tests/mocks/include-toc/test4/input/toc.yaml +9 -0
  341. package/tests/mocks/include-toc/test5/input/core/concepts/toc_i.yaml +2 -0
  342. package/tests/mocks/include-toc/test5/input/core/concepts/toc_p.yaml +3 -0
  343. package/tests/mocks/include-toc/test5/input/core/toc_i.yaml +6 -0
  344. package/tests/mocks/include-toc/test5/input/core/toc_m.yaml +3 -0
  345. package/tests/mocks/include-toc/test5/input/core/toc_p.yaml +5 -0
  346. package/tests/mocks/include-toc/test5/input/overlay/toc_p.yaml +3 -0
  347. package/tests/mocks/include-toc/test5/input/toc.yaml +4 -0
  348. package/tests/mocks/include-toc/test6/input/test/index.md +4 -0
  349. package/tests/mocks/include-toc/test6/input/test/sub/sub/sub-3.md +1 -0
  350. package/tests/mocks/include-toc/test6/input/test/sub/sub-1.md +5 -0
  351. package/tests/mocks/include-toc/test6/input/test/sub/sub-2.md +1 -0
  352. package/tests/mocks/include-toc/test6/input/test/test.md +1 -0
  353. package/tests/mocks/include-toc/test6/input/toc.yaml +8 -0
  354. package/tests/mocks/include-toc/test7/input/.yfm +1 -0
  355. package/tests/mocks/include-toc/test7/input/ru/presets.yaml +2 -0
  356. package/tests/mocks/include-toc/test7/input/ru/sub/folder/index.yaml +4 -0
  357. package/tests/mocks/include-toc/test7/input/ru/sub/folder/toc.yaml +3 -0
  358. package/tests/mocks/include-toc/test7/input/ru/toc.yaml +3 -0
  359. package/tests/mocks/include-toc/test8/input/test/index.md +4 -0
  360. package/tests/mocks/include-toc/test8/input/test/sub/index.md +1 -0
  361. package/tests/mocks/include-toc/test8/input/test/sub/sub/sub-3.md +1 -0
  362. package/tests/mocks/include-toc/test8/input/test/sub/sub-1.md +5 -0
  363. package/tests/mocks/include-toc/test8/input/test/sub/sub-2.md +1 -0
  364. package/tests/mocks/include-toc/test8/input/test/test.md +1 -0
  365. package/tests/mocks/include-toc/test8/input/toc.yaml +9 -0
  366. package/tests/mocks/include-toc/test9/input/test/index.md +4 -0
  367. package/tests/mocks/include-toc/test9/input/test/sub/index.md +1 -0
  368. package/tests/mocks/include-toc/test9/input/test/sub/sub/sub-3.md +1 -0
  369. package/tests/mocks/include-toc/test9/input/test/sub/sub-1.md +5 -0
  370. package/tests/mocks/include-toc/test9/input/test/sub/sub-2.md +1 -0
  371. package/tests/mocks/include-toc/test9/input/test/test.md +1 -0
  372. package/tests/mocks/include-toc/test9/input/toc.yaml +8 -0
  373. package/tests/mocks/include-with-meta/input/included.md +16 -0
  374. package/tests/mocks/include-with-meta/input/index.md +15 -0
  375. package/tests/mocks/include-with-meta/input/toc.yaml +6 -0
  376. package/tests/mocks/includes/input/.yfm +1 -0
  377. package/tests/mocks/includes/input/_assets/4.png +0 -0
  378. package/tests/mocks/includes/input/includes/commented-include.md +5 -0
  379. package/tests/mocks/includes/input/includes/deep-include.md +13 -0
  380. package/tests/mocks/includes/input/includes/fragments.md +23 -0
  381. package/tests/mocks/includes/input/includes/nested-include.md +5 -0
  382. package/tests/mocks/includes/input/includes/no-title-include.md +19 -0
  383. package/tests/mocks/includes/input/includes/root-include.md +11 -0
  384. package/tests/mocks/includes/input/includes/user.md +5 -0
  385. package/tests/mocks/includes/input/index.md +69 -0
  386. package/tests/mocks/includes/input/level1/includes/level1-include.md +11 -0
  387. package/tests/mocks/includes/input/level1/level2/includes/level2-include.md +11 -0
  388. package/tests/mocks/includes/input/level1/level2/page2.md +29 -0
  389. package/tests/mocks/includes/input/level1/page1.md +29 -0
  390. package/tests/mocks/includes/input/presets.yaml +3 -0
  391. package/tests/mocks/includes/input/toc-include.md +13 -0
  392. package/tests/mocks/includes/input/toc.yaml +13 -0
  393. package/tests/mocks/includes-conditions/input/includes/first.md +5 -0
  394. package/tests/mocks/includes-conditions/input/includes/second.md +5 -0
  395. package/tests/mocks/includes-conditions/input/includes/third.md +1 -0
  396. package/tests/mocks/includes-conditions/input/index.md +7 -0
  397. package/tests/mocks/includes-conditions/input/presets.yaml +2 -0
  398. package/tests/mocks/includes-conditions/input/toc.yaml +3 -0
  399. package/tests/mocks/includes-missing/input/index.md +7 -0
  400. package/tests/mocks/includes-missing/input/toc.yaml +3 -0
  401. package/tests/mocks/llms/input/.yfm +1 -0
  402. package/tests/mocks/llms/input/_includes/requirements.md +4 -0
  403. package/tests/mocks/llms/input/api.md +9 -0
  404. package/tests/mocks/llms/input/beta.md +4 -0
  405. package/tests/mocks/llms/input/index.md +8 -0
  406. package/tests/mocks/llms/input/presets.yaml +2 -0
  407. package/tests/mocks/llms/input/start.md +9 -0
  408. package/tests/mocks/llms/input/toc.yaml +11 -0
  409. package/tests/mocks/load-custom-resources/md2html-with-resources/input/.yfm +5 -0
  410. package/tests/mocks/load-custom-resources/md2html-with-resources/input/_assets/script/test1.js +0 -0
  411. package/tests/mocks/load-custom-resources/md2html-with-resources/input/_assets/style/test.css +13 -0
  412. package/tests/mocks/load-custom-resources/md2html-with-resources/input/index.yaml +9 -0
  413. package/tests/mocks/load-custom-resources/md2html-with-resources/input/page.md +14 -0
  414. package/tests/mocks/load-custom-resources/md2html-with-resources/input/project/config.md +1 -0
  415. package/tests/mocks/load-custom-resources/md2html-with-resources/input/toc.yaml +7 -0
  416. package/tests/mocks/load-custom-resources/md2md-with-resources/input/.yfm +5 -0
  417. package/tests/mocks/load-custom-resources/md2md-with-resources/input/_assets/script/test1.js +0 -0
  418. package/tests/mocks/load-custom-resources/md2md-with-resources/input/_assets/style/test.css +13 -0
  419. package/tests/mocks/load-custom-resources/md2md-with-resources/input/index.yaml +9 -0
  420. package/tests/mocks/load-custom-resources/md2md-with-resources/input/page.md +14 -0
  421. package/tests/mocks/load-custom-resources/md2md-with-resources/input/project/config.md +1 -0
  422. package/tests/mocks/load-custom-resources/md2md-with-resources/input/toc.yaml +7 -0
  423. package/tests/mocks/load-custom-resources/single-page-with-resources/input/.yfm +5 -0
  424. package/tests/mocks/load-custom-resources/single-page-with-resources/input/_assets/script/test1.js +0 -0
  425. package/tests/mocks/load-custom-resources/single-page-with-resources/input/_assets/style/test.css +13 -0
  426. package/tests/mocks/load-custom-resources/single-page-with-resources/input/index.yaml +9 -0
  427. package/tests/mocks/load-custom-resources/single-page-with-resources/input/page.md +14 -0
  428. package/tests/mocks/load-custom-resources/single-page-with-resources/input/project/config.md +1 -0
  429. package/tests/mocks/load-custom-resources/single-page-with-resources/input/toc.yaml +7 -0
  430. package/tests/mocks/markdown-options/example-1/input/.yfm +5 -0
  431. package/tests/mocks/markdown-options/example-1/input/breaks.md +5 -0
  432. package/tests/mocks/markdown-options/example-1/input/linkify-tlds.md +7 -0
  433. package/tests/mocks/markdown-options/example-1/input/linkify.md +3 -0
  434. package/tests/mocks/markdown-options/example-1/input/toc.yaml +7 -0
  435. package/tests/mocks/markdown-options/example-2/input/.yfm +3 -0
  436. package/tests/mocks/markdown-options/example-2/input/breaks.md +5 -0
  437. package/tests/mocks/markdown-options/example-2/input/linkify-tlds.md +7 -0
  438. package/tests/mocks/markdown-options/example-2/input/linkify.md +3 -0
  439. package/tests/mocks/markdown-options/example-2/input/toc.yaml +7 -0
  440. package/tests/mocks/merge-includes/basic/input/_includes/simple.md +3 -0
  441. package/tests/mocks/merge-includes/basic/input/index.md +3 -0
  442. package/tests/mocks/merge-includes/basic/input/main.md +7 -0
  443. package/tests/mocks/merge-includes/basic/input/toc.yaml +5 -0
  444. package/tests/mocks/merge-includes/hash-fallback/input/_includes/sections.md +19 -0
  445. package/tests/mocks/merge-includes/hash-fallback/input/index.md +1 -0
  446. package/tests/mocks/merge-includes/hash-fallback/input/main.md +5 -0
  447. package/tests/mocks/merge-includes/hash-fallback/input/toc.yaml +5 -0
  448. package/tests/mocks/merge-includes/hash-section-html/input/_includes/mixed.md +11 -0
  449. package/tests/mocks/merge-includes/hash-section-html/input/index.md +3 -0
  450. package/tests/mocks/merge-includes/hash-section-html/input/main.md +13 -0
  451. package/tests/mocks/merge-includes/hash-section-html/input/toc.yaml +5 -0
  452. package/tests/mocks/merge-includes/html-comment-blanks/input/_includes/examples.md +27 -0
  453. package/tests/mocks/merge-includes/html-comment-blanks/input/index.md +3 -0
  454. package/tests/mocks/merge-includes/html-comment-blanks/input/main.md +15 -0
  455. package/tests/mocks/merge-includes/html-comment-blanks/input/toc.yaml +5 -0
  456. package/tests/mocks/merge-includes/html-in-list/input/_includes/styles.md +7 -0
  457. package/tests/mocks/merge-includes/html-in-list/input/index.md +3 -0
  458. package/tests/mocks/merge-includes/html-in-list/input/main.md +11 -0
  459. package/tests/mocks/merge-includes/html-in-list/input/toc.yaml +5 -0
  460. package/tests/mocks/merge-includes/include-after-fence/input/_includes/chat-button.md +1 -0
  461. package/tests/mocks/merge-includes/include-after-fence/input/_includes/footer.md +1 -0
  462. package/tests/mocks/merge-includes/include-after-fence/input/index.md +3 -0
  463. package/tests/mocks/merge-includes/include-after-fence/input/main.md +14 -0
  464. package/tests/mocks/merge-includes/include-after-fence/input/toc.yaml +5 -0
  465. package/tests/mocks/merge-includes/include-in-code-block/input/_includes/glossary.md +1 -0
  466. package/tests/mocks/merge-includes/include-in-code-block/input/index.md +3 -0
  467. package/tests/mocks/merge-includes/include-in-code-block/input/main.md +19 -0
  468. package/tests/mocks/merge-includes/include-in-code-block/input/toc.yaml +5 -0
  469. package/tests/mocks/merge-includes/indent-paragraph-in-include/input/_includes/requirements.md +9 -0
  470. package/tests/mocks/merge-includes/indent-paragraph-in-include/input/index.md +3 -0
  471. package/tests/mocks/merge-includes/indent-paragraph-in-include/input/main.md +12 -0
  472. package/tests/mocks/merge-includes/indent-paragraph-in-include/input/toc.yaml +5 -0
  473. package/tests/mocks/merge-includes/inline-context/input/_includes/snippet.md +12 -0
  474. package/tests/mocks/merge-includes/inline-context/input/index.md +3 -0
  475. package/tests/mocks/merge-includes/inline-context/input/main.md +11 -0
  476. package/tests/mocks/merge-includes/inline-context/input/toc.yaml +5 -0
  477. package/tests/mocks/merge-includes/nested/input/_includes/inner.md +3 -0
  478. package/tests/mocks/merge-includes/nested/input/_includes/outer.md +7 -0
  479. package/tests/mocks/merge-includes/nested/input/index.md +3 -0
  480. package/tests/mocks/merge-includes/nested/input/main.md +7 -0
  481. package/tests/mocks/merge-includes/nested/input/toc.yaml +5 -0
  482. package/tests/mocks/merge-includes/relative-paths/input/_includes/sub/with-links.md +7 -0
  483. package/tests/mocks/merge-includes/relative-paths/input/index.md +3 -0
  484. package/tests/mocks/merge-includes/relative-paths/input/main.md +3 -0
  485. package/tests/mocks/merge-includes/relative-paths/input/toc.yaml +5 -0
  486. package/tests/mocks/merge-includes/term-extract/input/_includes/chapter.md +7 -0
  487. package/tests/mocks/merge-includes/term-extract/input/index.md +3 -0
  488. package/tests/mocks/merge-includes/term-extract/input/main.md +7 -0
  489. package/tests/mocks/merge-includes/term-extract/input/toc.yaml +5 -0
  490. package/tests/mocks/merge-includes/term-inline/input/_includes/defs.md +20 -0
  491. package/tests/mocks/merge-includes/term-inline/input/index.md +3 -0
  492. package/tests/mocks/merge-includes/term-inline/input/main.md +19 -0
  493. package/tests/mocks/merge-includes/term-inline/input/toc.yaml +5 -0
  494. package/tests/mocks/merge-includes/yfm-table/input/_includes/cell-content.md +1 -0
  495. package/tests/mocks/merge-includes/yfm-table/input/index.md +3 -0
  496. package/tests/mocks/merge-includes/yfm-table/input/main.md +12 -0
  497. package/tests/mocks/merge-includes/yfm-table/input/toc.yaml +5 -0
  498. package/tests/mocks/merge-includes/yfm-table-html-block/input/_includes/button.md +8 -0
  499. package/tests/mocks/merge-includes/yfm-table-html-block/input/index.md +3 -0
  500. package/tests/mocks/merge-includes/yfm-table-html-block/input/main.md +12 -0
  501. package/tests/mocks/merge-includes/yfm-table-html-block/input/toc.yaml +5 -0
  502. package/tests/mocks/merge-includes/yfm-table-pipe-in-content/input/_includes/example.md +1 -0
  503. package/tests/mocks/merge-includes/yfm-table-pipe-in-content/input/index.md +3 -0
  504. package/tests/mocks/merge-includes/yfm-table-pipe-in-content/input/main.md +22 -0
  505. package/tests/mocks/merge-includes/yfm-table-pipe-in-content/input/toc.yaml +5 -0
  506. package/tests/mocks/metadata/include-with-csp-meta/input/.yfm +8 -0
  507. package/tests/mocks/metadata/include-with-csp-meta/input/_includes/support.md +1 -0
  508. package/tests/mocks/metadata/include-with-csp-meta/input/page.md +7 -0
  509. package/tests/mocks/metadata/include-with-csp-meta/input/toc.yaml +4 -0
  510. package/tests/mocks/metadata/md2html-with-metadata/input/.yfm +1 -0
  511. package/tests/mocks/metadata/md2html-with-metadata/input/index.yaml +9 -0
  512. package/tests/mocks/metadata/md2html-with-metadata/input/page.md +16 -0
  513. package/tests/mocks/metadata/md2html-with-metadata/input/presets.yaml +6 -0
  514. package/tests/mocks/metadata/md2html-with-metadata/input/project/config.md +7 -0
  515. package/tests/mocks/metadata/md2html-with-metadata/input/toc.yaml +7 -0
  516. package/tests/mocks/metadata/md2md-with-metadata/input/index.yaml +9 -0
  517. package/tests/mocks/metadata/md2md-with-metadata/input/page.md +14 -0
  518. package/tests/mocks/metadata/md2md-with-metadata/input/presets.yaml +6 -0
  519. package/tests/mocks/metadata/md2md-with-metadata/input/project/config.md +7 -0
  520. package/tests/mocks/metadata/md2md-with-metadata/input/toc.yaml +7 -0
  521. package/tests/mocks/nested-docs/input/.yfm +1 -0
  522. package/tests/mocks/nested-docs/input/.yfm-subdoc +5 -0
  523. package/tests/mocks/nested-docs/input/index.md +5 -0
  524. package/tests/mocks/nested-docs/input/presets.yaml +3 -0
  525. package/tests/mocks/nested-docs/input/subdoc/.yfm +0 -0
  526. package/tests/mocks/nested-docs/input/subdoc/index.md +5 -0
  527. package/tests/mocks/nested-docs/input/subdoc/presets.yaml +3 -0
  528. package/tests/mocks/nested-docs/input/subdoc/toc.yaml +4 -0
  529. package/tests/mocks/nested-docs/input/toc.yaml +6 -0
  530. package/tests/mocks/nested-include-links/input/includes/middle.md +4 -0
  531. package/tests/mocks/nested-include-links/input/other/page.md +4 -0
  532. package/tests/mocks/nested-include-links/input/sub/deep/entry.md +8 -0
  533. package/tests/mocks/nested-include-links/input/target.md +4 -0
  534. package/tests/mocks/nested-include-links/input/toc.yaml +6 -0
  535. package/tests/mocks/neuro-expert/input/.yfm +14 -0
  536. package/tests/mocks/neuro-expert/input/en/folder/index.md +1 -0
  537. package/tests/mocks/neuro-expert/input/en/index-test-html/index.md +4 -0
  538. package/tests/mocks/neuro-expert/input/en/index.md +11 -0
  539. package/tests/mocks/neuro-expert/input/en/page1.md +8 -0
  540. package/tests/mocks/neuro-expert/input/en/page2.md +6 -0
  541. package/tests/mocks/neuro-expert/input/en/toc.yaml +13 -0
  542. package/tests/mocks/neuro-expert/input/ru/folder/index.md +1 -0
  543. package/tests/mocks/neuro-expert/input/ru/index-test-html/index.md +4 -0
  544. package/tests/mocks/neuro-expert/input/ru/index.md +5 -0
  545. package/tests/mocks/neuro-expert/input/ru/page1.md +3 -0
  546. package/tests/mocks/neuro-expert/input/ru/page2.md +11 -0
  547. package/tests/mocks/neuro-expert/input/ru/toc.yaml +12 -0
  548. package/tests/mocks/openapi-companion/input/petstore.yaml +29 -0
  549. package/tests/mocks/openapi-companion/input/toc.yaml +9 -0
  550. package/tests/mocks/openapi-companion-disabled/input/.yfm +2 -0
  551. package/tests/mocks/openapi-companion-disabled/input/petstore.yaml +29 -0
  552. package/tests/mocks/openapi-companion-disabled/input/toc.yaml +9 -0
  553. package/tests/mocks/openapi-companion-link/input/petstore.yaml +29 -0
  554. package/tests/mocks/openapi-companion-link/input/toc.yaml +12 -0
  555. package/tests/mocks/openapi-include-size-exceeds/input/openapi-spec.yaml +190 -0
  556. package/tests/mocks/openapi-include-size-exceeds/input/toc.yaml +9 -0
  557. package/tests/mocks/openapi-include-size-within/input/openapi-spec.yaml +16 -0
  558. package/tests/mocks/openapi-include-size-within/input/toc.yaml +9 -0
  559. package/tests/mocks/pdf-page/custom-pdf-icon/input/.yfm +6 -0
  560. package/tests/mocks/pdf-page/custom-pdf-icon/input/_assets/custom-pdf-icon.svg +1 -0
  561. package/tests/mocks/pdf-page/custom-pdf-icon/input/index.md +1 -0
  562. package/tests/mocks/pdf-page/custom-pdf-icon/input/pdf/output.pdf +0 -0
  563. package/tests/mocks/pdf-page/custom-pdf-icon/input/toc.yaml +2 -0
  564. package/tests/mocks/pdf-page/flag-enabled/input/__includes/include1.md +3 -0
  565. package/tests/mocks/pdf-page/flag-enabled/input/index.md +7 -0
  566. package/tests/mocks/pdf-page/flag-enabled/input/page1.md +6 -0
  567. package/tests/mocks/pdf-page/flag-enabled/input/page2.md +7 -0
  568. package/tests/mocks/pdf-page/flag-enabled/input/page3.md +1 -0
  569. package/tests/mocks/pdf-page/flag-enabled/input/syntax/test.md +1 -0
  570. package/tests/mocks/pdf-page/flag-enabled/input/toc.yaml +17 -0
  571. package/tests/mocks/pdf-page/multiple-tocs/input/.yfm +2 -0
  572. package/tests/mocks/pdf-page/multiple-tocs/input/section1/index.md +5 -0
  573. package/tests/mocks/pdf-page/multiple-tocs/input/section1/page1.md +3 -0
  574. package/tests/mocks/pdf-page/multiple-tocs/input/section1/toc.yaml +6 -0
  575. package/tests/mocks/pdf-page/multiple-tocs/input/section2/index.md +5 -0
  576. package/tests/mocks/pdf-page/multiple-tocs/input/section2/page1.md +3 -0
  577. package/tests/mocks/pdf-page/multiple-tocs/input/section2/toc.yaml +6 -0
  578. package/tests/mocks/pdf-page/pc-page/input/__images/mountain.jpg +0 -0
  579. package/tests/mocks/pdf-page/pc-page/input/__includes/include1.md +1 -0
  580. package/tests/mocks/pdf-page/pc-page/input/index.md +1 -0
  581. package/tests/mocks/pdf-page/pc-page/input/index.yaml +87 -0
  582. package/tests/mocks/pdf-page/pc-page/input/index2.yaml +135 -0
  583. package/tests/mocks/pdf-page/pc-page/input/page1.md +3 -0
  584. package/tests/mocks/pdf-page/pc-page/input/page2.md +3 -0
  585. package/tests/mocks/pdf-page/pc-page/input/pdf-titles/pdf-title-page1.md +13 -0
  586. package/tests/mocks/pdf-page/pc-page/input/pdf-titles/pdf-title-page2.md +5 -0
  587. package/tests/mocks/pdf-page/pc-page/input/presets.yaml +2 -0
  588. package/tests/mocks/pdf-page/pc-page/input/toc.yaml +13 -0
  589. package/tests/mocks/pdf-page/pc-page/input/with-pc-page.md +363 -0
  590. package/tests/mocks/pdf-page/title-pages/input/.yfm +6 -0
  591. package/tests/mocks/pdf-page/title-pages/input/__assets/start-page.css +16 -0
  592. package/tests/mocks/pdf-page/title-pages/input/__images/mountain.jpg +0 -0
  593. package/tests/mocks/pdf-page/title-pages/input/__includes/include1.md +1 -0
  594. package/tests/mocks/pdf-page/title-pages/input/index.md +1 -0
  595. package/tests/mocks/pdf-page/title-pages/input/page1.md +3 -0
  596. package/tests/mocks/pdf-page/title-pages/input/page2.md +3 -0
  597. package/tests/mocks/pdf-page/title-pages/input/pdf-endings/pdf-ending-page1.md +13 -0
  598. package/tests/mocks/pdf-page/title-pages/input/pdf-endings/pdf-ending-page2.md +3 -0
  599. package/tests/mocks/pdf-page/title-pages/input/pdf-titles/pdf-title-page1.md +13 -0
  600. package/tests/mocks/pdf-page/title-pages/input/pdf-titles/pdf-title-page2.md +3 -0
  601. package/tests/mocks/pdf-page/title-pages/input/presets.yaml +2 -0
  602. package/tests/mocks/pdf-page/title-pages/input/toc.yaml +15 -0
  603. package/tests/mocks/pdf-page/yfm-config/input/.yfm +5 -0
  604. package/tests/mocks/pdf-page/yfm-config/input/index.md +6 -0
  605. package/tests/mocks/pdf-page/yfm-config/input/page1.md +3 -0
  606. package/tests/mocks/pdf-page/yfm-config/input/page2.md +7 -0
  607. package/tests/mocks/pdf-page/yfm-config/input/page3.md +1 -0
  608. package/tests/mocks/pdf-page/yfm-config/input/toc.yaml +15 -0
  609. package/tests/mocks/plugin-corner-cases/images-in-deflists/input/image.jpeg +0 -0
  610. package/tests/mocks/plugin-corner-cases/images-in-deflists/input/index.md +5 -0
  611. package/tests/mocks/plugin-corner-cases/images-in-deflists/input/toc.yaml +4 -0
  612. package/tests/mocks/preprocess/input/.yfm +1 -0
  613. package/tests/mocks/preprocess/input/1.md +29 -0
  614. package/tests/mocks/preprocess/input/_assets/1.png +0 -0
  615. package/tests/mocks/preprocess/input/_assets/1.svg +15 -0
  616. package/tests/mocks/preprocess/input/_assets/2.svg +19 -0
  617. package/tests/mocks/preprocess/input/autotitle.md +39 -0
  618. package/tests/mocks/preprocess/input/commented-include.md +3 -0
  619. package/tests/mocks/preprocess/input/images.md +163 -0
  620. package/tests/mocks/preprocess/input/included-item.md +12 -0
  621. package/tests/mocks/preprocess/input/includes/deep.md +1 -0
  622. package/tests/mocks/preprocess/input/includes/deepWithIndent.md +6 -0
  623. package/tests/mocks/preprocess/input/includes/level1.md +9 -0
  624. package/tests/mocks/preprocess/input/includes/level11.md +1 -0
  625. package/tests/mocks/preprocess/input/includes/presets.yaml +2 -0
  626. package/tests/mocks/preprocess/input/includes/sub/level2.md +7 -0
  627. package/tests/mocks/preprocess/input/includes/sub/user.md +1 -0
  628. package/tests/mocks/preprocess/input/includes/sub/userWithIndent.md +5 -0
  629. package/tests/mocks/preprocess/input/includes/test.md +1 -0
  630. package/tests/mocks/preprocess/input/includes/user.md +1 -0
  631. package/tests/mocks/preprocess/input/includes.md +18 -0
  632. package/tests/mocks/preprocess/input/latex.md +3 -0
  633. package/tests/mocks/preprocess/input/level0.md +7 -0
  634. package/tests/mocks/preprocess/input/level1/level1.md +7 -0
  635. package/tests/mocks/preprocess/input/level1/level2/level2.md +6 -0
  636. package/tests/mocks/preprocess/input/level1/toc.yaml +5 -0
  637. package/tests/mocks/preprocess/input/mermaid.md +13 -0
  638. package/tests/mocks/preprocess/input/presets.yaml +8 -0
  639. package/tests/mocks/preprocess/input/sub/folder/item-1.md +7 -0
  640. package/tests/mocks/preprocess/input/sub/toc.yaml +5 -0
  641. package/tests/mocks/preprocess/input/toc-i.yaml +3 -0
  642. package/tests/mocks/preprocess/input/toc.yaml +24 -0
  643. package/tests/mocks/redirects-validation/extensions-deprecation/input/blah.md +0 -0
  644. package/tests/mocks/redirects-validation/extensions-deprecation/input/redirects.yaml +5 -0
  645. package/tests/mocks/redirects-validation/extensions-deprecation/input/toc.yaml +4 -0
  646. package/tests/mocks/redirects-validation/invalid-regex/input/blah.md +0 -0
  647. package/tests/mocks/redirects-validation/invalid-regex/input/redirects.yaml +3 -0
  648. package/tests/mocks/redirects-validation/invalid-regex/input/toc.yaml +4 -0
  649. package/tests/mocks/redirects-validation/malformed-redirect/input/blah.md +0 -0
  650. package/tests/mocks/redirects-validation/malformed-redirect/input/redirects.yaml +6 -0
  651. package/tests/mocks/redirects-validation/malformed-redirect/input/toc.yaml +4 -0
  652. package/tests/mocks/redirects-validation/same-path/input/blah.md +0 -0
  653. package/tests/mocks/redirects-validation/same-path/input/redirects.yaml +3 -0
  654. package/tests/mocks/redirects-validation/same-path/input/toc.yaml +4 -0
  655. package/tests/mocks/redirects-validation/unparseable/input/blah.md +0 -0
  656. package/tests/mocks/redirects-validation/unparseable/input/redirects.yaml +11 -0
  657. package/tests/mocks/redirects-validation/unparseable/input/toc.yaml +4 -0
  658. package/tests/mocks/regression/input/.yfm +2 -0
  659. package/tests/mocks/regression/input/1.md +29 -0
  660. package/tests/mocks/regression/input/_assets/1.png +0 -0
  661. package/tests/mocks/regression/input/_assets/2.png +0 -0
  662. package/tests/mocks/regression/input/_assets/3.png +0 -0
  663. package/tests/mocks/regression/input/_assets/4.png +0 -0
  664. package/tests/mocks/regression/input/_assets/5_1.png +0 -0
  665. package/tests/mocks/regression/input/_assets/empty.pdf +0 -0
  666. package/tests/mocks/regression/input/autotitle.md +58 -0
  667. package/tests/mocks/regression/input/commented-include.md +3 -0
  668. package/tests/mocks/regression/input/entry-as-include.md +3 -0
  669. package/tests/mocks/regression/input/generic/1.md +3 -0
  670. package/tests/mocks/regression/input/generic/2.md +3 -0
  671. package/tests/mocks/regression/input/generic/3.md +1 -0
  672. package/tests/mocks/regression/input/generic/Sub notes/1.md +3 -0
  673. package/tests/mocks/regression/input/generic/Sub notes/2.md +3 -0
  674. package/tests/mocks/regression/input/images.md +13 -0
  675. package/tests/mocks/regression/input/included-item.md +13 -0
  676. package/tests/mocks/regression/input/includer-of-entry.md +5 -0
  677. package/tests/mocks/regression/input/includes/deep.md +3 -0
  678. package/tests/mocks/regression/input/includes/fragments.md +41 -0
  679. package/tests/mocks/regression/input/includes/presets.yaml +3 -0
  680. package/tests/mocks/regression/input/includes/styles.md +8 -0
  681. package/tests/mocks/regression/input/includes/test.md +1 -0
  682. package/tests/mocks/regression/input/includes/tools.md +1 -0
  683. package/tests/mocks/regression/input/includes/user.md +1 -0
  684. package/tests/mocks/regression/input/includes.md +33 -0
  685. package/tests/mocks/regression/input/index.yaml +9 -0
  686. package/tests/mocks/regression/input/latex.md +3 -0
  687. package/tests/mocks/regression/input/merge/merge.md +5 -0
  688. package/tests/mocks/regression/input/merge/presets.yaml +3 -0
  689. package/tests/mocks/regression/input/merge/toc.yaml +6 -0
  690. package/tests/mocks/regression/input/merge-source/merged.md +3 -0
  691. package/tests/mocks/regression/input/merge-source/toc-m.yaml +4 -0
  692. package/tests/mocks/regression/input/mermaid.md +13 -0
  693. package/tests/mocks/regression/input/openapi-spec.yaml +111 -0
  694. package/tests/mocks/regression/input/presets.yaml +12 -0
  695. package/tests/mocks/regression/input/redirects.yaml +6 -0
  696. package/tests/mocks/regression/input/sub/folder/item-1.md +5 -0
  697. package/tests/mocks/regression/input/sub/toc.yaml +5 -0
  698. package/tests/mocks/regression/input/toc-i.yaml +3 -0
  699. package/tests/mocks/regression/input/toc.yaml +43 -0
  700. package/tests/mocks/restricted-access/test1/input/index.md +0 -0
  701. package/tests/mocks/restricted-access/test1/input/plugins/index.md +0 -0
  702. package/tests/mocks/restricted-access/test1/input/plugins/index2.md +0 -0
  703. package/tests/mocks/restricted-access/test1/input/plugins/index3.md +0 -0
  704. package/tests/mocks/restricted-access/test1/input/plugins/index4.md +4 -0
  705. package/tests/mocks/restricted-access/test1/input/toc.yaml +28 -0
  706. package/tests/mocks/restricted-access/test2/input/index.md +0 -0
  707. package/tests/mocks/restricted-access/test2/input/plugins/index.md +0 -0
  708. package/tests/mocks/restricted-access/test2/input/project/index.md +0 -0
  709. package/tests/mocks/restricted-access/test2/input/toc.yaml +21 -0
  710. package/tests/mocks/restricted-access/test3/input/a1.md +1 -0
  711. package/tests/mocks/restricted-access/test3/input/folder1/a1.md +1 -0
  712. package/tests/mocks/restricted-access/test3/input/folder1/folder2/a1.md +1 -0
  713. package/tests/mocks/restricted-access/test3/input/folder1/folder2/toc.yaml +8 -0
  714. package/tests/mocks/restricted-access/test3/input/folder1/toc.yaml +10 -0
  715. package/tests/mocks/restricted-access/test3/input/index.md +0 -0
  716. package/tests/mocks/restricted-access/test3/input/toc.yaml +16 -0
  717. package/tests/mocks/rtl/multidirectional-languages/input/.yfm +1 -0
  718. package/tests/mocks/rtl/multidirectional-languages/input/ar/index.yaml +4 -0
  719. package/tests/mocks/rtl/multidirectional-languages/input/ar/page.md +1 -0
  720. package/tests/mocks/rtl/multidirectional-languages/input/ar/toc.yaml +5 -0
  721. package/tests/mocks/rtl/multidirectional-languages/input/en/index.yaml +9 -0
  722. package/tests/mocks/rtl/multidirectional-languages/input/en/page.md +7 -0
  723. package/tests/mocks/rtl/multidirectional-languages/input/en/toc.yaml +5 -0
  724. package/tests/mocks/rtl/rtl-language/input/.yfm +1 -0
  725. package/tests/mocks/rtl/rtl-language/input/index.yaml +4 -0
  726. package/tests/mocks/rtl/rtl-language/input/page.md +1 -0
  727. package/tests/mocks/rtl/rtl-language/input/toc.yaml +5 -0
  728. package/tests/mocks/search/input/.yfm +12 -0
  729. package/tests/mocks/search/input/index.md +3 -0
  730. package/tests/mocks/search/input/toc.yaml +1 -0
  731. package/tests/mocks/single-page/input/ru/index.yaml +9 -0
  732. package/tests/mocks/single-page/input/ru/page.md +14 -0
  733. package/tests/mocks/single-page/input/ru/project/config.md +1 -0
  734. package/tests/mocks/single-page/input/ru/toc.yaml +7 -0
  735. package/tests/mocks/skip-html-extension/monolingual/input/.yfm +1 -0
  736. package/tests/mocks/skip-html-extension/monolingual/input/folder/index.md +1 -0
  737. package/tests/mocks/skip-html-extension/monolingual/input/index-test-html/index.md +4 -0
  738. package/tests/mocks/skip-html-extension/monolingual/input/index.md +6 -0
  739. package/tests/mocks/skip-html-extension/monolingual/input/page1.md +3 -0
  740. package/tests/mocks/skip-html-extension/monolingual/input/page2.md +6 -0
  741. package/tests/mocks/skip-html-extension/monolingual/input/toc.yaml +13 -0
  742. package/tests/mocks/skip-html-extension/multilingual/input/.yfm +2 -0
  743. package/tests/mocks/skip-html-extension/multilingual/input/en/folder/index.md +1 -0
  744. package/tests/mocks/skip-html-extension/multilingual/input/en/index-test-html/index.md +4 -0
  745. package/tests/mocks/skip-html-extension/multilingual/input/en/index.md +6 -0
  746. package/tests/mocks/skip-html-extension/multilingual/input/en/page1.md +3 -0
  747. package/tests/mocks/skip-html-extension/multilingual/input/en/page2.md +6 -0
  748. package/tests/mocks/skip-html-extension/multilingual/input/en/toc.yaml +13 -0
  749. package/tests/mocks/skip-html-extension/multilingual/input/ru/folder/index.md +1 -0
  750. package/tests/mocks/skip-html-extension/multilingual/input/ru/index-test-html/index.md +4 -0
  751. package/tests/mocks/skip-html-extension/multilingual/input/ru/index.md +5 -0
  752. package/tests/mocks/skip-html-extension/multilingual/input/ru/page1.md +3 -0
  753. package/tests/mocks/skip-html-extension/multilingual/input/ru/page2.md +6 -0
  754. package/tests/mocks/skip-html-extension/multilingual/input/ru/toc.yaml +12 -0
  755. package/tests/mocks/themer/test1/input/.yfm +3 -0
  756. package/tests/mocks/themer/test1/input/_assets/style/custom.css +3 -0
  757. package/tests/mocks/themer/test1/input/index.md +1 -0
  758. package/tests/mocks/themer/test1/input/theme.yaml +14 -0
  759. package/tests/mocks/themer/test1/input/toc.yaml +3 -0
  760. package/tests/mocks/themer/test2/input/index.md +1 -0
  761. package/tests/mocks/themer/test2/input/theme.yaml +8 -0
  762. package/tests/mocks/themer/test2/input/toc.yaml +3 -0
  763. package/tests/mocks/themer/test3/input/index.md +1 -0
  764. package/tests/mocks/themer/test3/input/toc.yaml +3 -0
  765. package/tests/mocks/themer/test4/input/index.md +1 -0
  766. package/tests/mocks/themer/test4/input/theme.yaml +3 -0
  767. package/tests/mocks/themer/test4/input/toc.yaml +3 -0
  768. package/tests/mocks/themer/test5/input/.yfm +1 -0
  769. package/tests/mocks/themer/test5/input/index.md +1 -0
  770. package/tests/mocks/themer/test5/input/toc.yaml +3 -0
  771. package/tests/mocks/themer/test6/input/.yfm +3 -0
  772. package/tests/mocks/themer/test6/input/index.md +11 -0
  773. package/tests/mocks/themer/test6/input/toc.yaml +5 -0
  774. package/tests/mocks/themer/test7/input/.yfm +3 -0
  775. package/tests/mocks/themer/test7/input/index.md +5 -0
  776. package/tests/mocks/themer/test7/input/theme.yaml +7 -0
  777. package/tests/mocks/themer/test7/input/toc.yaml +5 -0
  778. package/tests/mocks/themer/test8/input/.yfm +3 -0
  779. package/tests/mocks/themer/test8/input/index.md +5 -0
  780. package/tests/mocks/themer/test8/input/toc.yaml +5 -0
  781. package/tests/mocks/toc-label/input/.yfm +1 -0
  782. package/tests/mocks/toc-label/input/index.md +3 -0
  783. package/tests/mocks/toc-label/input/page1.md +3 -0
  784. package/tests/mocks/toc-label/input/toc.yaml +10 -0
  785. package/tests/mocks/translation/compose/input/openapi-spec.yaml.skl +41 -0
  786. package/tests/mocks/translation/compose/input/openapi-spec.yaml.xliff +52 -0
  787. package/tests/mocks/translation/compose/input/toc.yaml.skl +8 -0
  788. package/tests/mocks/translation/compose/input/toc.yaml.xliff +16 -0
  789. package/tests/mocks/translation/conditions/input/index.md +37 -0
  790. package/tests/mocks/translation/conditions/input/toc.yaml +5 -0
  791. package/tests/mocks/translation/custom-schema/custom-openapi-schema-30.yaml +1054 -0
  792. package/tests/mocks/translation/dir-files/input/.yfm +6 -0
  793. package/tests/mocks/translation/dir-files/input/ru/_includes/test.md +1 -0
  794. package/tests/mocks/translation/dir-files/input/ru/_no-translate/exclude.md +1 -0
  795. package/tests/mocks/translation/dir-files/input/ru/aboba.md +5 -0
  796. package/tests/mocks/translation/dir-files/input/ru/index.md +3 -0
  797. package/tests/mocks/translation/dir-files/input/ru/nested/a1.md +3 -0
  798. package/tests/mocks/translation/dir-files/input/ru/nested/folder1/a1.md +3 -0
  799. package/tests/mocks/translation/dir-files/input/ru/nested/folder1/toc-i.yaml +3 -0
  800. package/tests/mocks/translation/dir-files/input/ru/nested/index-yfm.md +2 -0
  801. package/tests/mocks/translation/dir-files/input/ru/nested/index.yaml +24 -0
  802. package/tests/mocks/translation/dir-files/input/ru/nested/not-in-toc.md +20 -0
  803. package/tests/mocks/translation/dir-files/input/ru/nested/syntax/base.md +3 -0
  804. package/tests/mocks/translation/dir-files/input/ru/nested/syntax/index.md +2 -0
  805. package/tests/mocks/translation/dir-files/input/ru/nested/syntax/lists.md +1 -0
  806. package/tests/mocks/translation/dir-files/input/ru/nested/toc.yaml +19 -0
  807. package/tests/mocks/translation/dir-files/input/ru/nested/use_filtered_above.md +4 -0
  808. package/tests/mocks/translation/dir-files/input/ru/no-var-page.md +3 -0
  809. package/tests/mocks/translation/dir-files/input/ru/not-in-toc.md +20 -0
  810. package/tests/mocks/translation/dir-files/input/ru/to-be-excluded.md +1 -0
  811. package/tests/mocks/translation/dir-files/input/ru/toc.yaml +13 -0
  812. package/tests/mocks/translation/no-translate/input/index.md +7 -0
  813. package/tests/mocks/translation/no-translate/input/no-translate.md +57 -0
  814. package/tests/mocks/translation/no-translate/input/openapi-spec.yaml +37 -0
  815. package/tests/mocks/translation/no-translate/input/toc.yaml +11 -0
  816. package/tests/mocks/translation/openapi/input/openapi-spec.yaml +50 -0
  817. package/tests/mocks/translation/openapi/input/toc.yaml +8 -0
  818. package/tests/mocks/translation/toc-include/input/included-toc/merged-included-toc-item.md +1 -0
  819. package/tests/mocks/translation/toc-include/input/included-toc/toc.yaml +3 -0
  820. package/tests/mocks/translation/toc-include/input/included-toc.md +1 -0
  821. package/tests/mocks/translation/toc-include/input/index.md +7 -0
  822. package/tests/mocks/translation/toc-include/input/merged-included-toc-item.md +1 -0
  823. package/tests/mocks/translation/toc-include/input/no-translate.md +57 -0
  824. package/tests/mocks/translation/toc-include/input/openapi-spec.yaml +37 -0
  825. package/tests/mocks/translation/toc-include/input/toc.yaml +14 -0
  826. package/tests/mocks/translation/yaml-scheme/input/ru/.yfm +1 -0
  827. package/tests/mocks/translation/yaml-scheme/input/ru/index-direct.yaml +133 -0
  828. package/tests/mocks/translation/yaml-scheme/input/ru/index.yaml +32 -0
  829. package/tests/mocks/translation/yaml-scheme/input/ru/toc.yaml +19 -0
  830. package/tests/mocks/vars-conditions/input/.yfm +1 -0
  831. package/tests/mocks/vars-conditions/input/index.md +3 -0
  832. package/tests/mocks/vars-conditions/input/page1.yaml +13 -0
  833. package/tests/mocks/vars-conditions/input/page2.md +24 -0
  834. package/tests/mocks/vars-conditions/input/page3.md +1 -0
  835. package/tests/mocks/vars-conditions/input/page4.md +1 -0
  836. package/tests/mocks/vars-conditions/input/page5.yaml +10 -0
  837. package/tests/mocks/vars-conditions/input/presets.yaml +9 -0
  838. package/tests/mocks/vars-conditions/input/toc.yaml +51 -0
  839. package/tests/mocks/vars-ignore/input/.yfm +1 -0
  840. package/tests/mocks/vars-ignore/input/data/data-test.md +4 -0
  841. package/tests/mocks/vars-ignore/input/data/presets.yaml +3 -0
  842. package/tests/mocks/vars-ignore/input/data/temp-test.md +4 -0
  843. package/tests/mocks/vars-ignore/input/ignored/ignored-test.md +4 -0
  844. package/tests/mocks/vars-ignore/input/ignored/presets.yaml +3 -0
  845. package/tests/mocks/vars-ignore/input/presets.yaml +3 -0
  846. package/tests/mocks/vars-ignore/input/test.md +6 -0
  847. package/tests/mocks/vars-ignore/input/toc.yaml +8 -0
  848. package/tests/mocks/warning/unreachable-autotitle/input/index.md +1 -0
  849. package/tests/mocks/warning/unreachable-autotitle/input/link.md +0 -0
  850. package/tests/mocks/warning/unreachable-autotitle/input/toc.yaml +4 -0
  851. package/tests/tsconfig.json +13 -0
  852. package/vitest.integration.config.ts +26 -0
@@ -0,0 +1,797 @@
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
+
3
+ exports[`Include toc > Nested toc inclusions with mixed including modes > filelist 1`] = `
4
+ "[
5
+ "product1/article1.md",
6
+ "product1/toc.yaml",
7
+ "product2/overlay1/article1.md",
8
+ "product2/overlay2/article1.md",
9
+ "product2/overlay3/article1.md",
10
+ "product2/p2.md",
11
+ "product2/toc.yaml"
12
+ ]"
13
+ `;
14
+
15
+ exports[`Include toc > Nested toc inclusions with mixed including modes 1`] = `
16
+ "---
17
+ metadata:
18
+ - name: generator
19
+ content: Diplodoc Platform vDIPLODOC-VERSION
20
+ sourcePath: product1/core/article1.md
21
+ vcsPath: product1/core/article1.md
22
+ ---
23
+ This is the core content of Article 1.
24
+
25
+ <!-- source: product1/_includes/inc.md -->
26
+ This is the core include.
27
+ <!-- endsource: product1/_includes/inc.md -->
28
+ "
29
+ `;
30
+
31
+ exports[`Include toc > Nested toc inclusions with mixed including modes 2`] = `
32
+ "title: Product 1 title
33
+ items:
34
+ - name: Article1
35
+ href: article1.md
36
+ path: product1/toc.yaml
37
+ "
38
+ `;
39
+
40
+ exports[`Include toc > Nested toc inclusions with mixed including modes 2 > filelist 1`] = `
41
+ "[
42
+ "toc.yaml"
43
+ ]"
44
+ `;
45
+
46
+ exports[`Include toc > Nested toc inclusions with mixed including modes 2 1`] = `
47
+ "title: main
48
+ items:
49
+ - name: toc_i/item
50
+ - name: core/toc_m/item
51
+ - name: overlay/toc_p/item
52
+ - name: core/toc_i/item
53
+ - name: test
54
+ items:
55
+ - name: core/concepts/toc_i/item
56
+ - name: core/concepts/toc_p/item
57
+ path: toc.yaml
58
+ "
59
+ `;
60
+
61
+ exports[`Include toc > Nested toc inclusions with mixed including modes 3`] = `
62
+ "---
63
+ metadata:
64
+ - name: generator
65
+ content: Diplodoc Platform vDIPLODOC-VERSION
66
+ sourcePath: product2/overlay1/product/article1.md
67
+ vcsPath: product2/overlay1/product/article1.md
68
+ ---
69
+ This is the overlay content of Article 1 for product 2.
70
+
71
+ <!-- source: product2/overlay1/_includes/inc.md -->
72
+ This is the core include.
73
+ <!-- endsource: product2/overlay1/_includes/inc.md -->
74
+ "
75
+ `;
76
+
77
+ exports[`Include toc > Nested toc inclusions with mixed including modes 4`] = `
78
+ "---
79
+ metadata:
80
+ - name: generator
81
+ content: Diplodoc Platform vDIPLODOC-VERSION
82
+ sourcePath: product2/overlay2/product/article1.md
83
+ vcsPath: product2/overlay2/product/article1.md
84
+ ---
85
+ This is the overlay number #2 of Article 1 content for product 2.
86
+
87
+ <!-- source: product2/overlay2/_includes/inc.md -->
88
+ This is the core include.
89
+ <!-- endsource: product2/overlay2/_includes/inc.md -->
90
+ "
91
+ `;
92
+
93
+ exports[`Include toc > Nested toc inclusions with mixed including modes 5`] = `
94
+ "---
95
+ metadata:
96
+ - name: generator
97
+ content: Diplodoc Platform vDIPLODOC-VERSION
98
+ sourcePath: product2/core/article1.md
99
+ vcsPath: product2/core/article1.md
100
+ ---
101
+ This is the core content of Article 1.
102
+
103
+ <!-- source: product2/overlay3/_includes/inc.md -->
104
+ This is the core include.
105
+ <!-- endsource: product2/overlay3/_includes/inc.md -->
106
+ "
107
+ `;
108
+
109
+ exports[`Include toc > Nested toc inclusions with mixed including modes 6`] = `
110
+ "---
111
+ metadata:
112
+ - name: generator
113
+ content: Diplodoc Platform vDIPLODOC-VERSION
114
+ vcsPath: product2/p2.md
115
+ ---
116
+ This is the product 2 specific article.
117
+
118
+ Check here link to [Article1 overlay 1](overlay1/article1.md)
119
+ Check here link to [Article1 overlay 2](overlay2/article1.md)"
120
+ `;
121
+
122
+ exports[`Include toc > Nested toc inclusions with mixed including modes 7`] = `
123
+ "title: Product 2 title
124
+ items:
125
+ - name: P2 Article
126
+ href: p2.md
127
+ - name: Overlay1
128
+ items:
129
+ - name: Article1
130
+ href: overlay1/article1.md
131
+ - name: Overlay 2
132
+ items:
133
+ - name: Article1
134
+ href: overlay2/article1.md
135
+ - name: Overlay 3
136
+ items:
137
+ - name: Article1
138
+ href: overlay3/article1.md
139
+ path: product2/toc.yaml
140
+ "
141
+ `;
142
+
143
+ exports[`Include toc > Toc is included in link mode > filelist 1`] = `
144
+ "[
145
+ "a1.md",
146
+ "folder1/a1.md",
147
+ "folder1/folder2/a1.md",
148
+ "toc.yaml"
149
+ ]"
150
+ `;
151
+
152
+ exports[`Include toc > Toc is included in link mode 1`] = `
153
+ "---
154
+ metadata:
155
+ - name: generator
156
+ content: Diplodoc Platform vDIPLODOC-VERSION
157
+ vcsPath: a1.md
158
+ ---
159
+ This is the /a1.md file content.
160
+ "
161
+ `;
162
+
163
+ exports[`Include toc > Toc is included in link mode 2`] = `
164
+ "---
165
+ metadata:
166
+ - name: generator
167
+ content: Diplodoc Platform vDIPLODOC-VERSION
168
+ vcsPath: folder1/a1.md
169
+ ---
170
+ This is the /folder1/a1.md file content.
171
+ "
172
+ `;
173
+
174
+ exports[`Include toc > Toc is included in link mode 3`] = `
175
+ "---
176
+ metadata:
177
+ - name: generator
178
+ content: Diplodoc Platform vDIPLODOC-VERSION
179
+ vcsPath: folder1/folder2/a1.md
180
+ ---
181
+ This is the /folder1/folder1/a1.md file content.
182
+ "
183
+ `;
184
+
185
+ exports[`Include toc > Toc is included in link mode 4`] = `
186
+ "items:
187
+ - name: A1
188
+ href: a1.md
189
+ - name: folder1
190
+ items:
191
+ - name: A1
192
+ href: folder1/a1.md
193
+ - name: folder1
194
+ items:
195
+ - name: A1
196
+ href: folder1/folder2/a1.md
197
+ path: toc.yaml
198
+ "
199
+ `;
200
+
201
+ exports[`Include toc > Toc is included inline, not as a new section > filelist 1`] = `
202
+ "[
203
+ ".yfm",
204
+ "file1.md",
205
+ "fileA.md",
206
+ "fileB.md",
207
+ "fileC.md",
208
+ "fileX.md",
209
+ "toc.yaml"
210
+ ]"
211
+ `;
212
+
213
+ exports[`Include toc > Toc is included inline, not as a new section 1`] = `
214
+ "applyPresets: true
215
+ "
216
+ `;
217
+
218
+ exports[`Include toc > Toc is included inline, not as a new section 2`] = `
219
+ "---
220
+ metadata:
221
+ - name: generator
222
+ content: Diplodoc Platform vDIPLODOC-VERSION
223
+ vcsPath: file1.md
224
+ ---
225
+ # File 1
226
+ "
227
+ `;
228
+
229
+ exports[`Include toc > Toc is included inline, not as a new section 3`] = `
230
+ "---
231
+ metadata:
232
+ - name: generator
233
+ content: Diplodoc Platform vDIPLODOC-VERSION
234
+ sourcePath: folder/fileA.md
235
+ title: File A
236
+ description: YFM description
237
+ vcsPath: folder/fileA.md
238
+ ---
239
+ # File A
240
+
241
+ ---
242
+
243
+ Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
244
+
245
+ ---
246
+ "
247
+ `;
248
+
249
+ exports[`Include toc > Toc is included inline, not as a new section 4`] = `
250
+ "---
251
+ metadata:
252
+ - name: generator
253
+ content: Diplodoc Platform vDIPLODOC-VERSION
254
+ sourcePath: folder/fileB.md
255
+ vcsPath: folder/fileB.md
256
+ ---
257
+ # File B
258
+
259
+ Lorem Ipsum is simply dummy text of the printing and typesetting industry.
260
+
261
+ ---
262
+
263
+ Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
264
+
265
+ ---
266
+ "
267
+ `;
268
+
269
+ exports[`Include toc > Toc is included inline, not as a new section 5`] = `
270
+ "---
271
+ metadata:
272
+ - name: generator
273
+ content: Diplodoc Platform vDIPLODOC-VERSION
274
+ sourcePath: folder/folder/fileC.md
275
+ vcsPath: folder/folder/fileC.md
276
+ ---
277
+ # File C
278
+ "
279
+ `;
280
+
281
+ exports[`Include toc > Toc is included inline, not as a new section 6`] = `
282
+ "---
283
+ metadata:
284
+ - name: generator
285
+ content: Diplodoc Platform vDIPLODOC-VERSION
286
+ vcsPath: fileX.md
287
+ ---
288
+ # File X
289
+ "
290
+ `;
291
+
292
+ exports[`Include toc > Toc is included inline, not as a new section 7`] = `
293
+ "items:
294
+ - name: Name1
295
+ href: file1.md
296
+ - name: NameA
297
+ href: fileA.md
298
+ - name: NameB
299
+ href: fileB.md
300
+ - name: NameC
301
+ href: fileC.md
302
+ - name: NameX
303
+ href: fileX.md
304
+ path: toc.yaml
305
+ "
306
+ `;
307
+
308
+ exports[`Include toc > Toc root merge on non root dir > filelist 1`] = `
309
+ "[
310
+ ".yfm",
311
+ "ru/index.yaml",
312
+ "ru/toc.yaml"
313
+ ]"
314
+ `;
315
+
316
+ exports[`Include toc > Toc root merge on non root dir 1`] = `
317
+ "allowHtml: true
318
+ "
319
+ `;
320
+
321
+ exports[`Include toc > Toc root merge on non root dir 2`] = `
322
+ "blocks:
323
+ - type: header-block
324
+ title: Title
325
+ description: Description
326
+ links: []
327
+ meta:
328
+ metadata:
329
+ - name: generator
330
+ content: Diplodoc Platform vDIPLODOC-VERSION
331
+ alternate:
332
+ - ru/
333
+ sourcePath: ru/sub/folder/index.yaml
334
+ canonical: ru/index.html
335
+ vcsPath: ru/sub/folder/index.yaml
336
+ "
337
+ `;
338
+
339
+ exports[`Include toc > Toc root merge on non root dir 3`] = `
340
+ "title: Toc
341
+ items:
342
+ - name: sub-page
343
+ href: index.yaml
344
+ path: ru/toc.yaml
345
+ "
346
+ `;
347
+
348
+ exports[`Include toc > Toc with expressions > filelist 1`] = `
349
+ "[
350
+ "a1.md",
351
+ "index.yaml",
352
+ "toc.yaml"
353
+ ]"
354
+ `;
355
+
356
+ exports[`Include toc > Toc with expressions 1`] = `
357
+ "---
358
+ metadata:
359
+ - name: generator
360
+ content: Diplodoc Platform vDIPLODOC-VERSION
361
+ vcsPath: a1.md
362
+ ---
363
+ This is the /a1.md file content.
364
+ "
365
+ `;
366
+
367
+ exports[`Include toc > Toc with expressions 2`] = `
368
+ "title: Title A
369
+ description:
370
+ - Desc A
371
+ meta:
372
+ metadata:
373
+ - name: generator
374
+ content: Diplodoc Platform vDIPLODOC-VERSION
375
+ title: Meta A
376
+ vcsPath: index.yaml
377
+ links:
378
+ - title: A1
379
+ description: A1 desc
380
+ href: a1
381
+ "
382
+ `;
383
+
384
+ exports[`Include toc > Toc with expressions 3`] = `
385
+ "title: Title A
386
+ href: index.yaml
387
+ items:
388
+ - name: A1
389
+ href: a1.md
390
+ path: toc.yaml
391
+ "
392
+ `;
393
+
394
+ exports[`Include toc > Toc with generic includer > filelist 1`] = `
395
+ "[
396
+ "test/index.md",
397
+ "test/sub/sub-1.md",
398
+ "test/sub/sub-2.md",
399
+ "test/sub/sub/sub-3.md",
400
+ "test/test.md",
401
+ "toc.yaml"
402
+ ]"
403
+ `;
404
+
405
+ exports[`Include toc > Toc with generic includer 1`] = `
406
+ "---
407
+ metadata:
408
+ - name: generator
409
+ content: Diplodoc Platform vDIPLODOC-VERSION
410
+ vcsPath: test/index.md
411
+ ---
412
+ # H1
413
+
414
+ [same level link](./test.md)
415
+ [inner link](./sub/sub-1.md)
416
+ "
417
+ `;
418
+
419
+ exports[`Include toc > Toc with generic includer 2`] = `
420
+ "---
421
+ metadata:
422
+ - name: generator
423
+ content: Diplodoc Platform vDIPLODOC-VERSION
424
+ vcsPath: test/sub/sub-1.md
425
+ ---
426
+ # H1
427
+
428
+ [same level link](./sub-2.md)
429
+ [outer link](../test.md)
430
+ [inner link](./sub/sub-3.md)
431
+ "
432
+ `;
433
+
434
+ exports[`Include toc > Toc with generic includer 3`] = `
435
+ "---
436
+ metadata:
437
+ - name: generator
438
+ content: Diplodoc Platform vDIPLODOC-VERSION
439
+ vcsPath: test/sub/sub-2.md
440
+ ---
441
+ # H1"
442
+ `;
443
+
444
+ exports[`Include toc > Toc with generic includer 4`] = `
445
+ "---
446
+ metadata:
447
+ - name: generator
448
+ content: Diplodoc Platform vDIPLODOC-VERSION
449
+ vcsPath: test/sub/sub/sub-3.md
450
+ ---
451
+ # H1"
452
+ `;
453
+
454
+ exports[`Include toc > Toc with generic includer 5`] = `
455
+ "---
456
+ metadata:
457
+ - name: generator
458
+ content: Diplodoc Platform vDIPLODOC-VERSION
459
+ vcsPath: test/test.md
460
+ ---
461
+ # H1"
462
+ `;
463
+
464
+ exports[`Include toc > Toc with generic includer 6`] = `
465
+ "title: main
466
+ items:
467
+ - name: test
468
+ href: test/test.md
469
+ - name: index
470
+ href: test/index.md
471
+ - name: sub
472
+ items:
473
+ - name: sub-2
474
+ href: test/sub/sub-2.md
475
+ - name: sub-1
476
+ href: test/sub/sub-1.md
477
+ - name: sub
478
+ items:
479
+ - name: sub-3
480
+ href: test/sub/sub/sub-3.md
481
+ path: toc.yaml
482
+ "
483
+ `;
484
+
485
+ exports[`Include toc > Toc with generic includer and linkIndex option > filelist 1`] = `
486
+ "[
487
+ "test/index.md",
488
+ "test/sub/index.md",
489
+ "test/sub/sub-1.md",
490
+ "test/sub/sub-2.md",
491
+ "test/sub/sub/sub-3.md",
492
+ "test/test.md",
493
+ "toc.yaml"
494
+ ]"
495
+ `;
496
+
497
+ exports[`Include toc > Toc with generic includer and linkIndex option 1`] = `
498
+ "---
499
+ metadata:
500
+ - name: generator
501
+ content: Diplodoc Platform vDIPLODOC-VERSION
502
+ vcsPath: test/index.md
503
+ ---
504
+ # H1
505
+
506
+ [same level link](./test.md)
507
+ [inner link](./sub/sub-1.md)
508
+ "
509
+ `;
510
+
511
+ exports[`Include toc > Toc with generic includer and linkIndex option 2`] = `
512
+ "---
513
+ metadata:
514
+ - name: generator
515
+ content: Diplodoc Platform vDIPLODOC-VERSION
516
+ vcsPath: test/sub/index.md
517
+ ---
518
+ # Sub index"
519
+ `;
520
+
521
+ exports[`Include toc > Toc with generic includer and linkIndex option 3`] = `
522
+ "---
523
+ metadata:
524
+ - name: generator
525
+ content: Diplodoc Platform vDIPLODOC-VERSION
526
+ vcsPath: test/sub/sub-1.md
527
+ ---
528
+ # H1
529
+
530
+ [same level link](./sub-2.md)
531
+ [outer link](../test.md)
532
+ [inner link](./sub/sub-3.md)
533
+ "
534
+ `;
535
+
536
+ exports[`Include toc > Toc with generic includer and linkIndex option 4`] = `
537
+ "---
538
+ metadata:
539
+ - name: generator
540
+ content: Diplodoc Platform vDIPLODOC-VERSION
541
+ vcsPath: test/sub/sub-2.md
542
+ ---
543
+ # H1"
544
+ `;
545
+
546
+ exports[`Include toc > Toc with generic includer and linkIndex option 5`] = `
547
+ "---
548
+ metadata:
549
+ - name: generator
550
+ content: Diplodoc Platform vDIPLODOC-VERSION
551
+ vcsPath: test/sub/sub/sub-3.md
552
+ ---
553
+ # H1"
554
+ `;
555
+
556
+ exports[`Include toc > Toc with generic includer and linkIndex option 6`] = `
557
+ "---
558
+ metadata:
559
+ - name: generator
560
+ content: Diplodoc Platform vDIPLODOC-VERSION
561
+ vcsPath: test/test.md
562
+ ---
563
+ # H1"
564
+ `;
565
+
566
+ exports[`Include toc > Toc with generic includer and linkIndex option 7`] = `
567
+ "title: main
568
+ items:
569
+ - name: test
570
+ href: test/test.md
571
+ - name: index
572
+ href: test/index.md
573
+ - name: sub
574
+ href: test/sub/index.md
575
+ items:
576
+ - name: sub-2
577
+ href: test/sub/sub-2.md
578
+ - name: sub-1
579
+ href: test/sub/sub-1.md
580
+ - name: sub
581
+ items:
582
+ - name: sub-3
583
+ href: test/sub/sub/sub-3.md
584
+ path: toc.yaml
585
+ "
586
+ `;
587
+
588
+ exports[`Include toc > Toc with generic includer keeps index.md as child item by default > filelist 1`] = `
589
+ "[
590
+ "test/index.md",
591
+ "test/sub/index.md",
592
+ "test/sub/sub-1.md",
593
+ "test/sub/sub-2.md",
594
+ "test/sub/sub/sub-3.md",
595
+ "test/test.md",
596
+ "toc.yaml"
597
+ ]"
598
+ `;
599
+
600
+ exports[`Include toc > Toc with generic includer keeps index.md as child item by default 1`] = `
601
+ "---
602
+ metadata:
603
+ - name: generator
604
+ content: Diplodoc Platform vDIPLODOC-VERSION
605
+ vcsPath: test/index.md
606
+ ---
607
+ # H1
608
+
609
+ [same level link](./test.md)
610
+ [inner link](./sub/sub-1.md)
611
+ "
612
+ `;
613
+
614
+ exports[`Include toc > Toc with generic includer keeps index.md as child item by default 2`] = `
615
+ "---
616
+ metadata:
617
+ - name: generator
618
+ content: Diplodoc Platform vDIPLODOC-VERSION
619
+ vcsPath: test/sub/index.md
620
+ ---
621
+ # Sub index"
622
+ `;
623
+
624
+ exports[`Include toc > Toc with generic includer keeps index.md as child item by default 3`] = `
625
+ "---
626
+ metadata:
627
+ - name: generator
628
+ content: Diplodoc Platform vDIPLODOC-VERSION
629
+ vcsPath: test/sub/sub-1.md
630
+ ---
631
+ # H1
632
+
633
+ [same level link](./sub-2.md)
634
+ [outer link](../test.md)
635
+ [inner link](./sub/sub-3.md)
636
+ "
637
+ `;
638
+
639
+ exports[`Include toc > Toc with generic includer keeps index.md as child item by default 4`] = `
640
+ "---
641
+ metadata:
642
+ - name: generator
643
+ content: Diplodoc Platform vDIPLODOC-VERSION
644
+ vcsPath: test/sub/sub-2.md
645
+ ---
646
+ # H1"
647
+ `;
648
+
649
+ exports[`Include toc > Toc with generic includer keeps index.md as child item by default 5`] = `
650
+ "---
651
+ metadata:
652
+ - name: generator
653
+ content: Diplodoc Platform vDIPLODOC-VERSION
654
+ vcsPath: test/sub/sub/sub-3.md
655
+ ---
656
+ # H1"
657
+ `;
658
+
659
+ exports[`Include toc > Toc with generic includer keeps index.md as child item by default 6`] = `
660
+ "---
661
+ metadata:
662
+ - name: generator
663
+ content: Diplodoc Platform vDIPLODOC-VERSION
664
+ vcsPath: test/test.md
665
+ ---
666
+ # H1"
667
+ `;
668
+
669
+ exports[`Include toc > Toc with generic includer keeps index.md as child item by default 7`] = `
670
+ "title: main
671
+ items:
672
+ - name: test
673
+ href: test/test.md
674
+ - name: index
675
+ href: test/index.md
676
+ - name: sub
677
+ items:
678
+ - name: sub-2
679
+ href: test/sub/sub-2.md
680
+ - name: sub-1
681
+ href: test/sub/sub-1.md
682
+ - name: index
683
+ href: test/sub/index.md
684
+ - name: sub
685
+ items:
686
+ - name: sub-3
687
+ href: test/sub/sub/sub-3.md
688
+ path: toc.yaml
689
+ "
690
+ `;
691
+
692
+ exports[`Include toc > Toc with generic includer linkIndexAutotitle uses index.md heading for directory > filelist 1`] = `
693
+ "[
694
+ "test/index.md",
695
+ "test/sub/index.md",
696
+ "test/sub/sub-1.md",
697
+ "test/sub/sub-2.md",
698
+ "test/sub/sub/sub-3.md",
699
+ "test/test.md",
700
+ "toc.yaml"
701
+ ]"
702
+ `;
703
+
704
+ exports[`Include toc > Toc with generic includer linkIndexAutotitle uses index.md heading for directory 1`] = `
705
+ "---
706
+ metadata:
707
+ - name: generator
708
+ content: Diplodoc Platform vDIPLODOC-VERSION
709
+ vcsPath: test/index.md
710
+ ---
711
+ # Root index
712
+
713
+ [same level link](./test.md)
714
+ [inner link](./sub/sub-1.md)
715
+ "
716
+ `;
717
+
718
+ exports[`Include toc > Toc with generic includer linkIndexAutotitle uses index.md heading for directory 2`] = `
719
+ "---
720
+ metadata:
721
+ - name: generator
722
+ content: Diplodoc Platform vDIPLODOC-VERSION
723
+ vcsPath: test/sub/index.md
724
+ ---
725
+ # Sub section
726
+ "
727
+ `;
728
+
729
+ exports[`Include toc > Toc with generic includer linkIndexAutotitle uses index.md heading for directory 3`] = `
730
+ "---
731
+ metadata:
732
+ - name: generator
733
+ content: Diplodoc Platform vDIPLODOC-VERSION
734
+ vcsPath: test/sub/sub-1.md
735
+ ---
736
+ # Sub one
737
+
738
+ [same level link](./sub-2.md)
739
+ [outer link](../test.md)
740
+ [inner link](./sub/sub-3.md)
741
+ "
742
+ `;
743
+
744
+ exports[`Include toc > Toc with generic includer linkIndexAutotitle uses index.md heading for directory 4`] = `
745
+ "---
746
+ metadata:
747
+ - name: generator
748
+ content: Diplodoc Platform vDIPLODOC-VERSION
749
+ vcsPath: test/sub/sub-2.md
750
+ ---
751
+ # Sub two
752
+ "
753
+ `;
754
+
755
+ exports[`Include toc > Toc with generic includer linkIndexAutotitle uses index.md heading for directory 5`] = `
756
+ "---
757
+ metadata:
758
+ - name: generator
759
+ content: Diplodoc Platform vDIPLODOC-VERSION
760
+ vcsPath: test/sub/sub/sub-3.md
761
+ ---
762
+ # Sub three
763
+ "
764
+ `;
765
+
766
+ exports[`Include toc > Toc with generic includer linkIndexAutotitle uses index.md heading for directory 6`] = `
767
+ "---
768
+ metadata:
769
+ - name: generator
770
+ content: Diplodoc Platform vDIPLODOC-VERSION
771
+ vcsPath: test/test.md
772
+ ---
773
+ # Test page
774
+ "
775
+ `;
776
+
777
+ exports[`Include toc > Toc with generic includer linkIndexAutotitle uses index.md heading for directory 7`] = `
778
+ "title: main
779
+ items:
780
+ - name: Test page
781
+ href: test/test.md
782
+ - name: Root index
783
+ href: test/index.md
784
+ - href: test/sub/index.md
785
+ items:
786
+ - name: Sub two
787
+ href: test/sub/sub-2.md
788
+ - name: Sub one
789
+ href: test/sub/sub-1.md
790
+ - name: sub
791
+ items:
792
+ - name: Sub three
793
+ href: test/sub/sub/sub-3.md
794
+ name: Sub section
795
+ path: toc.yaml
796
+ "
797
+ `;