@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,780 @@
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
+
3
+ exports[`Includes > Various include scenarios > filelist 1`] = `
4
+ "[
5
+ ".yfm",
6
+ "_assets/4.png",
7
+ "index.md",
8
+ "level1/level2/page2.md",
9
+ "level1/page1.md",
10
+ "toc-include.md",
11
+ "toc.yaml"
12
+ ]"
13
+ `;
14
+
15
+ exports[`Includes > Various include scenarios > filelist 2`] = `
16
+ "[
17
+ ".yfm",
18
+ "_assets/4.png",
19
+ "index.html",
20
+ "level1/level2/page2.html",
21
+ "level1/page1.html",
22
+ "toc-include.html",
23
+ "toc.js"
24
+ ]"
25
+ `;
26
+
27
+ exports[`Includes > Various include scenarios 1`] = `"projectTitle: Test Includes"`;
28
+
29
+ exports[`Includes > Various include scenarios 2`] = `
30
+ "---
31
+ metadata:
32
+ - name: generator
33
+ content: Diplodoc Platform vDIPLODOC-VERSION
34
+ vcsPath: index.md
35
+ ---
36
+ # Test Includes
37
+
38
+ This is a test page for various include scenarios.
39
+
40
+ ## Include from root level
41
+
42
+ <!-- source: includes/root-include.md -->
43
+ This is an include from the root level.
44
+
45
+ [Link to level1](level1/page1.md)
46
+
47
+ [Link to level2](level1/level2/page2.md)
48
+
49
+ [Link to index](index.md)
50
+
51
+ ## Include with anchor [→ level1](level1/page1.md) {#include-with-anchor}
52
+
53
+ <!-- source: includes/fragments.md -->
54
+ ## Section 2 {#section2}
55
+
56
+ This is content of section 2.
57
+
58
+ ### Subsection 2.1 {#subsection21}
59
+
60
+ This is content of subsection 2.1.
61
+ <!-- endsource: includes/fragments.md -->
62
+ <!-- endsource: includes/root-include.md -->
63
+
64
+ ## Include from level1
65
+
66
+ <!-- source: level1/includes/level1-include.md -->
67
+ This is an include from level 1.
68
+
69
+ [Link to page1](level1/page1.md)
70
+
71
+ [Link to index](index.md)
72
+
73
+ [Link to level2](level1/level2/page2.md)
74
+
75
+ ## Include with anchor [→ root](index.md) {#include-with-anchor}
76
+
77
+ <!-- source: includes/fragments.md -->
78
+ ### Subsection 2.1 {#subsection21}
79
+
80
+ This is content of subsection 2.1.
81
+
82
+ ## Section 3 {#section3}
83
+
84
+ This is content of section 3.
85
+
86
+ Some paragraph with anchor {#p1}
87
+
88
+ Some paragraph without anchor
89
+
90
+ Some paragraph with anchor {#p2}
91
+ <!-- endsource: includes/fragments.md -->
92
+ <!-- endsource: level1/includes/level1-include.md -->
93
+
94
+ ## Include from level2
95
+
96
+ <!-- source: level1/level2/includes/level2-include.md -->
97
+ This is an include from level 2.
98
+
99
+ [Link to page2](level1/level2/page2.md)
100
+
101
+ [Link to page1](level1/page1.md)
102
+
103
+ [Link to index](index.md)
104
+
105
+ ## Include with anchor [→ level1](level1/page1.md) {#include-with-anchor}
106
+
107
+ <!-- source: includes/fragments.md -->
108
+ ## Section 3 {#section3}
109
+
110
+ This is content of section 3.
111
+
112
+ Some paragraph with anchor {#p1}
113
+
114
+ Some paragraph without anchor
115
+
116
+ Some paragraph with anchor {#p2}
117
+ <!-- endsource: includes/fragments.md -->
118
+ <!-- endsource: level1/level2/includes/level2-include.md -->
119
+
120
+ ## Include with missing file
121
+
122
+ <!-- {% include [missing](includes/missing.md) %} -->
123
+
124
+ ## Include file that is in toc
125
+
126
+ [Link to toc-include](toc-include.md)
127
+
128
+ <!-- source: toc-include.md -->
129
+ # Toc Include
130
+
131
+ This file is included in the toc.
132
+
133
+ [Link to index](index.md)
134
+
135
+ [Link to page1](level1/page1.md)
136
+
137
+ [Link to page2](level1/level2/page2.md)
138
+
139
+ ## Include with anchor
140
+
141
+ <!-- source: includes/fragments.md -->
142
+ ## Section 1 {#section1}
143
+
144
+ This is content of section 1.
145
+ <!-- endsource: includes/fragments.md -->
146
+ <!-- endsource: toc-include.md -->
147
+
148
+ ## Links to different levels
149
+
150
+ [Link to level1](level1/page1.md)
151
+
152
+ [Link to level2](level1/level2/page2.md)
153
+
154
+ ## Include with anchor
155
+
156
+ <!-- source: includes/fragments.md -->
157
+ ## Section 1 {#section1}
158
+
159
+ This is content of section 1.
160
+ <!-- endsource: includes/fragments.md -->
161
+
162
+ ## Include with multiple anchors
163
+
164
+ <!-- source: includes/fragments.md -->
165
+ ## Section 2 {#section2}
166
+
167
+ This is content of section 2.
168
+
169
+ ### Subsection 2.1 {#subsection21}
170
+
171
+ This is content of subsection 2.1.
172
+ <!-- endsource: includes/fragments.md -->
173
+
174
+ ## Include with paragraph anchor
175
+
176
+ <!-- source: includes/fragments.md -->
177
+ Some paragraph with anchor {#p1}
178
+ <!-- endsource: includes/fragments.md -->
179
+
180
+ ## Nested includes
181
+
182
+ <!-- source: includes/nested-include.md -->
183
+ # Nested include [→ index](index.md) {#nested-include}
184
+
185
+ This is a nested include.
186
+
187
+ <!-- source: level1/includes/level1-include.md -->
188
+ This is an include from level 1.
189
+
190
+ [Link to page1](level1/page1.md)
191
+
192
+ [Link to index](index.md)
193
+
194
+ [Link to level2](level1/level2/page2.md)
195
+
196
+ ## Include with anchor [→ root](index.md) {#include-with-anchor}
197
+
198
+ <!-- source: includes/fragments.md -->
199
+ ### Subsection 2.1 {#subsection21}
200
+
201
+ This is content of subsection 2.1.
202
+
203
+ ## Section 3 {#section3}
204
+
205
+ This is content of section 3.
206
+
207
+ Some paragraph with anchor {#p1}
208
+
209
+ Some paragraph without anchor
210
+
211
+ Some paragraph with anchor {#p2}
212
+ <!-- endsource: includes/fragments.md -->
213
+ <!-- endsource: level1/includes/level1-include.md -->
214
+ <!-- endsource: includes/nested-include.md -->
215
+
216
+ ## Deep nested includes
217
+
218
+ <!-- source: includes/deep-include.md -->
219
+ # Deep nested include [→ index](index.md) {#deep-nested-include}
220
+
221
+ [Link to index](index.md)
222
+
223
+ [Link to level1 page1](level1/page1.md)
224
+
225
+ [Link to level2 page2](level1/level2/page2.md)
226
+
227
+ This is a deep nested include.
228
+
229
+ <!-- source: includes/user.md -->
230
+ # User include [→ index](index.md) {#user-include}
231
+
232
+ [Link to index](index.md)
233
+
234
+ This is a user include with variable substitution: Alice
235
+ <!-- endsource: includes/user.md -->
236
+
237
+ ![img 3](_assets/4.png)
238
+ <!-- endsource: includes/deep-include.md -->
239
+
240
+ ## Commented includes
241
+
242
+ <!-- {% include [commented](includes/commented-include.md) %} -->
243
+
244
+ ## Include with variable substitution
245
+
246
+ <!-- source: includes/user.md -->
247
+ # User include [→ index](index.md) {#user-include}
248
+
249
+ [Link to index](index.md)
250
+
251
+ This is a user include with variable substitution: Alice
252
+ <!-- endsource: includes/user.md -->
253
+ ## Include without title
254
+
255
+ <!-- source: includes/no-title-include.md -->
256
+ # Include without title [→ index](index.md) {#include-without-title}
257
+
258
+ [Link to index](index.md)
259
+
260
+ This is a test for include without title.
261
+
262
+ ## Include without title from the same directory
263
+
264
+ <!-- source: includes/user.md -->
265
+ [Link to index](index.md)
266
+
267
+ This is a user include with variable substitution: Alice
268
+ <!-- endsource: includes/user.md -->
269
+
270
+ ## Include without title with anchor
271
+
272
+ <!-- source: includes/fragments.md -->
273
+ This is content of section 1.
274
+ <!-- endsource: includes/fragments.md -->
275
+
276
+ ## Include without title with paragraph anchor
277
+
278
+ <!-- source: includes/fragments.md -->
279
+ Some paragraph with anchor {#p1}
280
+ <!-- endsource: includes/fragments.md -->
281
+
282
+ [Link to index](index.md)
283
+ <!-- endsource: includes/no-title-include.md -->
284
+
285
+ ## Include with anchor {#anchor}
286
+
287
+ {% include notitle [anchor](#anchor) %}
288
+ {% include [anchor](#anchor) %}
289
+
290
+ <!-- source: includes/no-title-include.md -->
291
+ # Include without title [→ index](index.md) {#include-without-title}
292
+
293
+ [Link to index](index.md)
294
+
295
+ This is a test for include without title.
296
+
297
+ ## Include without title from the same directory
298
+
299
+ <!-- source: includes/user.md -->
300
+ [Link to index](index.md)
301
+
302
+ This is a user include with variable substitution: Alice
303
+ <!-- endsource: includes/user.md -->
304
+
305
+ ## Include without title with anchor
306
+
307
+ <!-- source: includes/fragments.md -->
308
+ This is content of section 1.
309
+ <!-- endsource: includes/fragments.md -->
310
+
311
+ ## Include without title with paragraph anchor
312
+
313
+ <!-- source: includes/fragments.md -->
314
+ Some paragraph with anchor {#p1}
315
+ <!-- endsource: includes/fragments.md -->
316
+
317
+ [Link to index](index.md)
318
+ <!-- endsource: includes/no-title-include.md -->
319
+ "
320
+ `;
321
+
322
+ exports[`Includes > Various include scenarios 3`] = `
323
+ "---
324
+ metadata:
325
+ - name: generator
326
+ content: Diplodoc Platform vDIPLODOC-VERSION
327
+ vcsPath: level1/level2/page2.md
328
+ ---
329
+ # Page 2
330
+
331
+ This is page 2 at level 2.
332
+
333
+ ## Include from level2
334
+
335
+ <!-- source: level1/level2/includes/level2-include.md -->
336
+ This is an include from level 2.
337
+
338
+ [Link to page2](page2.md)
339
+
340
+ [Link to page1](../page1.md)
341
+
342
+ [Link to index](../../index.md)
343
+
344
+ ## Include with anchor [→ level1](../page1.md) {#include-with-anchor}
345
+
346
+ <!-- source: includes/fragments.md -->
347
+ ## Section 3 {#section3}
348
+
349
+ This is content of section 3.
350
+
351
+ Some paragraph with anchor {#p1}
352
+
353
+ Some paragraph without anchor
354
+
355
+ Some paragraph with anchor {#p2}
356
+ <!-- endsource: includes/fragments.md -->
357
+ <!-- endsource: level1/level2/includes/level2-include.md -->
358
+
359
+ ## Include from level1
360
+
361
+ <!-- source: level1/includes/level1-include.md -->
362
+ This is an include from level 1.
363
+
364
+ [Link to page1](../page1.md)
365
+
366
+ [Link to index](../../index.md)
367
+
368
+ [Link to level2](page2.md)
369
+
370
+ ## Include with anchor [→ root](../../index.md) {#include-with-anchor}
371
+
372
+ <!-- source: includes/fragments.md -->
373
+ ### Subsection 2.1 {#subsection21}
374
+
375
+ This is content of subsection 2.1.
376
+
377
+ ## Section 3 {#section3}
378
+
379
+ This is content of section 3.
380
+
381
+ Some paragraph with anchor {#p1}
382
+
383
+ Some paragraph without anchor
384
+
385
+ Some paragraph with anchor {#p2}
386
+ <!-- endsource: includes/fragments.md -->
387
+ <!-- endsource: level1/includes/level1-include.md -->
388
+
389
+ ## Include from root
390
+
391
+ <!-- source: includes/root-include.md -->
392
+ This is an include from the root level.
393
+
394
+ [Link to level1](../page1.md)
395
+
396
+ [Link to level2](page2.md)
397
+
398
+ [Link to index](../../index.md)
399
+
400
+ ## Include with anchor [→ level1](../page1.md) {#include-with-anchor}
401
+
402
+ <!-- source: includes/fragments.md -->
403
+ ## Section 2 {#section2}
404
+
405
+ This is content of section 2.
406
+
407
+ ### Subsection 2.1 {#subsection21}
408
+
409
+ This is content of subsection 2.1.
410
+ <!-- endsource: includes/fragments.md -->
411
+ <!-- endsource: includes/root-include.md -->
412
+
413
+ ## Links to different levels
414
+
415
+ [Link to index](../../index.md)
416
+
417
+ [Link to page1](../page1.md)
418
+
419
+ ## Nested include
420
+
421
+ <!-- source: includes/nested-include.md -->
422
+ # Nested include [→ index](../../index.md) {#nested-include}
423
+
424
+ This is a nested include.
425
+
426
+ <!-- source: level1/includes/level1-include.md -->
427
+ This is an include from level 1.
428
+
429
+ [Link to page1](../page1.md)
430
+
431
+ [Link to index](../../index.md)
432
+
433
+ [Link to level2](page2.md)
434
+
435
+ ## Include with anchor [→ root](../../index.md) {#include-with-anchor}
436
+
437
+ <!-- source: includes/fragments.md -->
438
+ ### Subsection 2.1 {#subsection21}
439
+
440
+ This is content of subsection 2.1.
441
+
442
+ ## Section 3 {#section3}
443
+
444
+ This is content of section 3.
445
+
446
+ Some paragraph with anchor {#p1}
447
+
448
+ Some paragraph without anchor
449
+
450
+ Some paragraph with anchor {#p2}
451
+ <!-- endsource: includes/fragments.md -->
452
+ <!-- endsource: level1/includes/level1-include.md -->
453
+ <!-- endsource: includes/nested-include.md -->
454
+
455
+ ## Include with anchor
456
+
457
+ <!-- source: includes/fragments.md -->
458
+ ## Section 3 {#section3}
459
+
460
+ This is content of section 3.
461
+
462
+ Some paragraph with anchor {#p1}
463
+
464
+ Some paragraph without anchor
465
+
466
+ Some paragraph with anchor {#p2}
467
+ <!-- endsource: includes/fragments.md -->"
468
+ `;
469
+
470
+ exports[`Includes > Various include scenarios 4`] = `
471
+ "---
472
+ metadata:
473
+ - name: generator
474
+ content: Diplodoc Platform vDIPLODOC-VERSION
475
+ vcsPath: level1/page1.md
476
+ ---
477
+ # Page 1
478
+
479
+ This is page 1 at level 1.
480
+
481
+ ## Include from level1
482
+
483
+ <!-- source: level1/includes/level1-include.md -->
484
+ This is an include from level 1.
485
+
486
+ [Link to page1](page1.md)
487
+
488
+ [Link to index](../index.md)
489
+
490
+ [Link to level2](level2/page2.md)
491
+
492
+ ## Include with anchor [→ root](../index.md) {#include-with-anchor}
493
+
494
+ <!-- source: includes/fragments.md -->
495
+ ### Subsection 2.1 {#subsection21}
496
+
497
+ This is content of subsection 2.1.
498
+
499
+ ## Section 3 {#section3}
500
+
501
+ This is content of section 3.
502
+
503
+ Some paragraph with anchor {#p1}
504
+
505
+ Some paragraph without anchor
506
+
507
+ Some paragraph with anchor {#p2}
508
+ <!-- endsource: includes/fragments.md -->
509
+ <!-- endsource: level1/includes/level1-include.md -->
510
+
511
+ ## Include from root
512
+
513
+ <!-- source: includes/root-include.md -->
514
+ This is an include from the root level.
515
+
516
+ [Link to level1](page1.md)
517
+
518
+ [Link to level2](level2/page2.md)
519
+
520
+ [Link to index](../index.md)
521
+
522
+ ## Include with anchor [→ level1](page1.md) {#include-with-anchor}
523
+
524
+ <!-- source: includes/fragments.md -->
525
+ ## Section 2 {#section2}
526
+
527
+ This is content of section 2.
528
+
529
+ ### Subsection 2.1 {#subsection21}
530
+
531
+ This is content of subsection 2.1.
532
+ <!-- endsource: includes/fragments.md -->
533
+ <!-- endsource: includes/root-include.md -->
534
+
535
+ ## Include from level2
536
+
537
+ <!-- source: level1/level2/includes/level2-include.md -->
538
+ This is an include from level 2.
539
+
540
+ [Link to page2](level2/page2.md)
541
+
542
+ [Link to page1](page1.md)
543
+
544
+ [Link to index](../index.md)
545
+
546
+ ## Include with anchor [→ level1](page1.md) {#include-with-anchor}
547
+
548
+ <!-- source: includes/fragments.md -->
549
+ ## Section 3 {#section3}
550
+
551
+ This is content of section 3.
552
+
553
+ Some paragraph with anchor {#p1}
554
+
555
+ Some paragraph without anchor
556
+
557
+ Some paragraph with anchor {#p2}
558
+ <!-- endsource: includes/fragments.md -->
559
+ <!-- endsource: level1/level2/includes/level2-include.md -->
560
+
561
+ ## Links to different levels
562
+
563
+ [Link to index](../index.md)
564
+
565
+ [Link to level2](level2/page2.md)
566
+
567
+ ## Nested include
568
+
569
+ <!-- source: includes/nested-include.md -->
570
+ # Nested include [→ index](../index.md) {#nested-include}
571
+
572
+ This is a nested include.
573
+
574
+ <!-- source: level1/includes/level1-include.md -->
575
+ This is an include from level 1.
576
+
577
+ [Link to page1](page1.md)
578
+
579
+ [Link to index](../index.md)
580
+
581
+ [Link to level2](level2/page2.md)
582
+
583
+ ## Include with anchor [→ root](../index.md) {#include-with-anchor}
584
+
585
+ <!-- source: includes/fragments.md -->
586
+ ### Subsection 2.1 {#subsection21}
587
+
588
+ This is content of subsection 2.1.
589
+
590
+ ## Section 3 {#section3}
591
+
592
+ This is content of section 3.
593
+
594
+ Some paragraph with anchor {#p1}
595
+
596
+ Some paragraph without anchor
597
+
598
+ Some paragraph with anchor {#p2}
599
+ <!-- endsource: includes/fragments.md -->
600
+ <!-- endsource: level1/includes/level1-include.md -->
601
+ <!-- endsource: includes/nested-include.md -->
602
+
603
+ ## Include with anchor
604
+
605
+ <!-- source: includes/fragments.md -->
606
+ ### Subsection 2.1 {#subsection21}
607
+
608
+ This is content of subsection 2.1.
609
+
610
+ ## Section 3 {#section3}
611
+
612
+ This is content of section 3.
613
+
614
+ Some paragraph with anchor {#p1}
615
+
616
+ Some paragraph without anchor
617
+
618
+ Some paragraph with anchor {#p2}
619
+ <!-- endsource: includes/fragments.md -->"
620
+ `;
621
+
622
+ exports[`Includes > Various include scenarios 5`] = `
623
+ "---
624
+ metadata:
625
+ - name: generator
626
+ content: Diplodoc Platform vDIPLODOC-VERSION
627
+ vcsPath: toc-include.md
628
+ ---
629
+ # Toc Include
630
+
631
+ This file is included in the toc.
632
+
633
+ [Link to index](index.md)
634
+
635
+ [Link to page1](level1/page1.md)
636
+
637
+ [Link to page2](level1/level2/page2.md)
638
+
639
+ ## Include with anchor
640
+
641
+ <!-- source: includes/fragments.md -->
642
+ ## Section 1 {#section1}
643
+
644
+ This is content of section 1.
645
+ <!-- endsource: includes/fragments.md -->"
646
+ `;
647
+
648
+ exports[`Includes > Various include scenarios 6`] = `
649
+ "items:
650
+ - name: Test Includes
651
+ href: index.md
652
+ - name: Toc Include
653
+ href: toc-include.md
654
+ - name: Level 1
655
+ items:
656
+ - name: Page 1
657
+ href: level1/page1.md
658
+ - name: Level 2
659
+ items:
660
+ - name: Page 2
661
+ href: level1/level2/page2.md
662
+ path: toc.yaml
663
+ "
664
+ `;
665
+
666
+ exports[`Includes > Various include scenarios 7`] = `"projectTitle: Test Includes"`;
667
+
668
+ exports[`Includes > Various include scenarios 8`] = `
669
+ "<!DOCTYPE html>
670
+ <html lang="ru" dir="ltr">
671
+ <head>
672
+ <meta charset="utf-8">
673
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
674
+ <base href="./" />
675
+ <title>Test Includes</title>
676
+ <meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
677
+ <style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
678
+ </head>
679
+ <body class="g-root g-root_theme_light">
680
+ <div id="root"></div>
681
+ <script type="application/json" id="diplodoc-state">
682
+ {"data":{"leading":false,"html":"&lt;p&gt;This is a test page for various include scenarios.&lt;/p&gt;/n&lt;h2 id=\\"include-from-root-level\\"&gt;&lt;a href=\\"index.html#include-from-root-level\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include from root level&lt;/span&gt;&lt;/a&gt;Include from root level&lt;/h2&gt;/n/n&lt;p&gt;This is an include from the root level.&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"level1/page1.html\\"&gt;Link to level1&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"level1/level2/page2.html\\"&gt;Link to level2&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"index.html\\"&gt;Link to index&lt;/a&gt;&lt;/p&gt;/n&lt;h2 id=\\"include-with-anchor\\"&gt;&lt;a href=\\"index.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include with anchor → level1&lt;/span&gt;&lt;/a&gt;Include with anchor &lt;a href=\\"level1/page1.html\\"&gt;→ level1&lt;/a&gt;&lt;/h2&gt;/n/n&lt;h2 id=\\"section2\\"&gt;&lt;a href=\\"index.html#section2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Section 2&lt;/span&gt;&lt;/a&gt;Section 2&lt;/h2&gt;/n&lt;p&gt;This is content of section 2.&lt;/p&gt;/n&lt;h3 id=\\"subsection21\\"&gt;&lt;a href=\\"index.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Subsection 2.1&lt;/span&gt;&lt;/a&gt;Subsection 2.1&lt;/h3&gt;/n&lt;p&gt;This is content of subsection 2.1.&lt;/p&gt;/n/n/n&lt;h2 id=\\"include-from-level1\\"&gt;&lt;a href=\\"index.html#include-from-level1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include from level1&lt;/span&gt;&lt;/a&gt;Include from level1&lt;/h2&gt;/n/n&lt;p&gt;This is an include from level 1.&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"level1/page1.html\\"&gt;Link to page1&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"index.html\\"&gt;Link to index&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"level1/level2/page2.html\\"&gt;Link to level2&lt;/a&gt;&lt;/p&gt;/n&lt;h2 id=\\"include-with-anchor1\\"&gt;&lt;a id=\\"include-with-anchor\\" href=\\"index.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include with anchor → root&lt;/span&gt;&lt;/a&gt;Include with anchor &lt;a href=\\"index.html\\"&gt;→ root&lt;/a&gt;&lt;/h2&gt;/n/n&lt;h3 id=\\"subsection211\\"&gt;&lt;a id=\\"subsection21\\" href=\\"index.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Subsection 2.1&lt;/span&gt;&lt;/a&gt;Subsection 2.1&lt;/h3&gt;/n&lt;p&gt;This is content of subsection 2.1.&lt;/p&gt;/n&lt;h2 id=\\"section3\\"&gt;&lt;a href=\\"index.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Section 3&lt;/span&gt;&lt;/a&gt;Section 3&lt;/h2&gt;/n&lt;p&gt;This is content of section 3.&lt;/p&gt;/n&lt;p id=\\"p1\\"&gt;Some paragraph with anchor&lt;/p&gt;/n&lt;p&gt;Some paragraph without anchor&lt;/p&gt;/n&lt;p id=\\"p2\\"&gt;Some paragraph with anchor&lt;/p&gt;/n/n/n&lt;h2 id=\\"include-from-level2\\"&gt;&lt;a href=\\"index.html#include-from-level2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include from level2&lt;/span&gt;&lt;/a&gt;Include from level2&lt;/h2&gt;/n/n&lt;p&gt;This is an include from level 2.&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"level1/level2/page2.html\\"&gt;Link to page2&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"level1/page1.html\\"&gt;Link to page1&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"index.html\\"&gt;Link to index&lt;/a&gt;&lt;/p&gt;/n&lt;h2 id=\\"include-with-anchor2\\"&gt;&lt;a id=\\"include-with-anchor\\" href=\\"index.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include with anchor → level1&lt;/span&gt;&lt;/a&gt;Include with anchor &lt;a href=\\"level1/page1.html\\"&gt;→ level1&lt;/a&gt;&lt;/h2&gt;/n/n&lt;h2 id=\\"section31\\"&gt;&lt;a id=\\"section3\\" href=\\"index.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Section 3&lt;/span&gt;&lt;/a&gt;Section 3&lt;/h2&gt;/n&lt;p&gt;This is content of section 3.&lt;/p&gt;/n&lt;p id=\\"p1\\"&gt;Some paragraph with anchor&lt;/p&gt;/n&lt;p&gt;Some paragraph without anchor&lt;/p&gt;/n&lt;p id=\\"p2\\"&gt;Some paragraph with anchor&lt;/p&gt;/n/n/n&lt;h2 id=\\"include-with-missing-file\\"&gt;&lt;a href=\\"index.html#include-with-missing-file\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include with missing file&lt;/span&gt;&lt;/a&gt;Include with missing file&lt;/h2&gt;/n/n&lt;h2 id=\\"include-file-that-is-in-toc\\"&gt;&lt;a href=\\"index.html#include-file-that-is-in-toc\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include file that is in toc&lt;/span&gt;&lt;/a&gt;Include file that is in toc&lt;/h2&gt;/n&lt;p&gt;&lt;a href=\\"toc-include.html\\"&gt;Link to toc-include&lt;/a&gt;&lt;/p&gt;/n/n&lt;h1&gt;Toc Include&lt;/h1&gt;/n&lt;p&gt;This file is included in the toc.&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"index.html\\"&gt;Link to index&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"level1/page1.html\\"&gt;Link to page1&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"level1/level2/page2.html\\"&gt;Link to page2&lt;/a&gt;&lt;/p&gt;/n&lt;h2 id=\\"include-with-anchor3\\"&gt;&lt;a href=\\"index.html#include-with-anchor3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include with anchor&lt;/span&gt;&lt;/a&gt;Include with anchor&lt;/h2&gt;/n/n&lt;h2 id=\\"section1\\"&gt;&lt;a href=\\"index.html#section1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Section 1&lt;/span&gt;&lt;/a&gt;Section 1&lt;/h2&gt;/n&lt;p&gt;This is content of section 1.&lt;/p&gt;/n/n/n&lt;h2 id=\\"links-to-different-levels\\"&gt;&lt;a href=\\"index.html#links-to-different-levels\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Links to different levels&lt;/span&gt;&lt;/a&gt;Links to different levels&lt;/h2&gt;/n&lt;p&gt;&lt;a href=\\"level1/page1.html\\"&gt;Link to level1&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"level1/level2/page2.html\\"&gt;Link to level2&lt;/a&gt;&lt;/p&gt;/n&lt;h2 id=\\"include-with-anchor4\\"&gt;&lt;a href=\\"index.html#include-with-anchor4\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include with anchor&lt;/span&gt;&lt;/a&gt;Include with anchor&lt;/h2&gt;/n/n&lt;h2 id=\\"section11\\"&gt;&lt;a id=\\"section1\\" href=\\"index.html#section1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Section 1&lt;/span&gt;&lt;/a&gt;Section 1&lt;/h2&gt;/n&lt;p&gt;This is content of section 1.&lt;/p&gt;/n/n&lt;h2 id=\\"include-with-multiple-anchors\\"&gt;&lt;a href=\\"index.html#include-with-multiple-anchors\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include with multiple anchors&lt;/span&gt;&lt;/a&gt;Include with multiple anchors&lt;/h2&gt;/n/n&lt;h2 id=\\"section21\\"&gt;&lt;a id=\\"section2\\" href=\\"index.html#section2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Section 2&lt;/span&gt;&lt;/a&gt;Section 2&lt;/h2&gt;/n&lt;p&gt;This is content of section 2.&lt;/p&gt;/n&lt;h3 id=\\"subsection212\\"&gt;&lt;a id=\\"subsection21\\" href=\\"index.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Subsection 2.1&lt;/span&gt;&lt;/a&gt;Subsection 2.1&lt;/h3&gt;/n&lt;p&gt;This is content of subsection 2.1.&lt;/p&gt;/n/n&lt;h2 id=\\"include-with-paragraph-anchor\\"&gt;&lt;a href=\\"index.html#include-with-paragraph-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include with paragraph anchor&lt;/span&gt;&lt;/a&gt;Include with paragraph anchor&lt;/h2&gt;/n/n&lt;p id=\\"p1\\"&gt;Some paragraph with anchor&lt;/p&gt;/n/n&lt;h2 id=\\"nested-includes\\"&gt;&lt;a href=\\"index.html#nested-includes\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Nested includes&lt;/span&gt;&lt;/a&gt;Nested includes&lt;/h2&gt;/n/n&lt;h1 id=\\"nested-include\\"&gt;Nested include &lt;a href=\\"index.html\\"&gt;→ index&lt;/a&gt;&lt;/h1&gt;/n&lt;p&gt;This is a nested include.&lt;/p&gt;/n/n&lt;p&gt;This is an include from level 1.&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"level1/page1.html\\"&gt;Link to page1&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"index.html\\"&gt;Link to index&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"level1/level2/page2.html\\"&gt;Link to level2&lt;/a&gt;&lt;/p&gt;/n&lt;h2 id=\\"include-with-anchor5\\"&gt;&lt;a id=\\"include-with-anchor\\" href=\\"index.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include with anchor → root&lt;/span&gt;&lt;/a&gt;Include with anchor &lt;a href=\\"index.html\\"&gt;→ root&lt;/a&gt;&lt;/h2&gt;/n/n&lt;h3 id=\\"subsection213\\"&gt;&lt;a id=\\"subsection21\\" href=\\"index.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Subsection 2.1&lt;/span&gt;&lt;/a&gt;Subsection 2.1&lt;/h3&gt;/n&lt;p&gt;This is content of subsection 2.1.&lt;/p&gt;/n&lt;h2 id=\\"section32\\"&gt;&lt;a id=\\"section3\\" href=\\"index.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Section 3&lt;/span&gt;&lt;/a&gt;Section 3&lt;/h2&gt;/n&lt;p&gt;This is content of section 3.&lt;/p&gt;/n&lt;p id=\\"p1\\"&gt;Some paragraph with anchor&lt;/p&gt;/n&lt;p&gt;Some paragraph without anchor&lt;/p&gt;/n&lt;p id=\\"p2\\"&gt;Some paragraph with anchor&lt;/p&gt;/n/n/n/n&lt;h2 id=\\"deep-nested-includes\\"&gt;&lt;a href=\\"index.html#deep-nested-includes\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Deep nested includes&lt;/span&gt;&lt;/a&gt;Deep nested includes&lt;/h2&gt;/n/n&lt;h1 id=\\"deep-nested-include\\"&gt;Deep nested include &lt;a href=\\"index.html\\"&gt;→ index&lt;/a&gt;&lt;/h1&gt;/n&lt;p&gt;&lt;a href=\\"index.html\\"&gt;Link to index&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"level1/page1.html\\"&gt;Link to level1 page1&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"level1/level2/page2.html\\"&gt;Link to level2 page2&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;This is a deep nested include.&lt;/p&gt;/n/n&lt;h1 id=\\"user-include\\"&gt;User include &lt;a href=\\"index.html\\"&gt;→ index&lt;/a&gt;&lt;/h1&gt;/n&lt;p&gt;&lt;a href=\\"index.html\\"&gt;Link to index&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;This is a user include with variable substitution: Alice&lt;/p&gt;/n/n&lt;p&gt;&lt;img src=\\"_assets/4.png\\" alt=\\"img 3\\" /&gt;&lt;/p&gt;/n/n&lt;h2 id=\\"commented-includes\\"&gt;&lt;a href=\\"index.html#commented-includes\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Commented includes&lt;/span&gt;&lt;/a&gt;Commented includes&lt;/h2&gt;/n/n&lt;h2 id=\\"include-with-variable-substitution\\"&gt;&lt;a href=\\"index.html#include-with-variable-substitution\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include with variable substitution&lt;/span&gt;&lt;/a&gt;Include with variable substitution&lt;/h2&gt;/n/n&lt;h1 id=\\"user-include\\"&gt;User include &lt;a href=\\"index.html\\"&gt;→ index&lt;/a&gt;&lt;/h1&gt;/n&lt;p&gt;&lt;a href=\\"index.html\\"&gt;Link to index&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;This is a user include with variable substitution: Alice&lt;/p&gt;/n/n&lt;h2 id=\\"include-without-title\\"&gt;&lt;a href=\\"index.html#include-without-title\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include without title&lt;/span&gt;&lt;/a&gt;Include without title&lt;/h2&gt;/n/n&lt;h1 id=\\"include-without-title\\"&gt;Include without title &lt;a href=\\"index.html\\"&gt;→ index&lt;/a&gt;&lt;/h1&gt;/n&lt;p&gt;&lt;a href=\\"index.html\\"&gt;Link to index&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;This is a test for include without title.&lt;/p&gt;/n&lt;h2 id=\\"include-without-title-from-the-same-directory\\"&gt;&lt;a href=\\"index.html#include-without-title-from-the-same-directory\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include without title from the same directory&lt;/span&gt;&lt;/a&gt;Include without title from the same directory&lt;/h2&gt;/n/n&lt;p&gt;&lt;a href=\\"index.html\\"&gt;Link to index&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;This is a user include with variable substitution: Alice&lt;/p&gt;/n/n&lt;h2 id=\\"include-without-title-with-anchor\\"&gt;&lt;a href=\\"index.html#include-without-title-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include without title with anchor&lt;/span&gt;&lt;/a&gt;Include without title with anchor&lt;/h2&gt;/n/n&lt;p&gt;This is content of section 1.&lt;/p&gt;/n/n&lt;h2 id=\\"include-without-title-with-paragraph-anchor\\"&gt;&lt;a href=\\"index.html#include-without-title-with-paragraph-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include without title with paragraph anchor&lt;/span&gt;&lt;/a&gt;Include without title with paragraph anchor&lt;/h2&gt;/n/n&lt;p id=\\"p1\\"&gt;Some paragraph with anchor&lt;/p&gt;/n/n&lt;p&gt;&lt;a href=\\"index.html\\"&gt;Link to index&lt;/a&gt;&lt;/p&gt;/n/n&lt;h2 id=\\"anchor\\"&gt;&lt;a href=\\"index.html#anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include with anchor&lt;/span&gt;&lt;/a&gt;Include with anchor&lt;/h2&gt;/n&lt;p&gt;{% include notitle &lt;a href=\\"index.html#anchor\\"&gt;anchor&lt;/a&gt; %}&lt;br /&gt;/n{% include &lt;a href=\\"index.html#anchor\\"&gt;anchor&lt;/a&gt; %}&lt;/p&gt;/n/n&lt;h1 id=\\"include-without-title\\"&gt;Include without title &lt;a href=\\"index.html\\"&gt;→ index&lt;/a&gt;&lt;/h1&gt;/n&lt;p&gt;&lt;a href=\\"index.html\\"&gt;Link to index&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;This is a test for include without title.&lt;/p&gt;/n&lt;h2 id=\\"include-without-title-from-the-same-directory1\\"&gt;&lt;a href=\\"index.html#include-without-title-from-the-same-directory1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include without title from the same directory&lt;/span&gt;&lt;/a&gt;Include without title from the same directory&lt;/h2&gt;/n/n&lt;p&gt;&lt;a href=\\"index.html\\"&gt;Link to index&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;This is a user include with variable substitution: Alice&lt;/p&gt;/n/n&lt;h2 id=\\"include-without-title-with-anchor1\\"&gt;&lt;a href=\\"index.html#include-without-title-with-anchor1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include without title with anchor&lt;/span&gt;&lt;/a&gt;Include without title with anchor&lt;/h2&gt;/n/n&lt;p&gt;This is content of section 1.&lt;/p&gt;/n/n&lt;h2 id=\\"include-without-title-with-paragraph-anchor1\\"&gt;&lt;a href=\\"index.html#include-without-title-with-paragraph-anchor1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include without title with paragraph anchor&lt;/span&gt;&lt;/a&gt;Include without title with paragraph anchor&lt;/h2&gt;/n/n&lt;p id=\\"p1\\"&gt;Some paragraph with anchor&lt;/p&gt;/n/n&lt;p&gt;&lt;a href=\\"index.html\\"&gt;Link to index&lt;/a&gt;&lt;/p&gt;/n/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"index.md"},"headings":[{"title":"Include from root level","href":"index.html#include-from-root-level","level":2},{"title":"Include with anchor → level1","href":"index.html#include-with-anchor","level":2},{"title":"Section 2","href":"index.html#section2","level":2,"items":[{"title":"Subsection 2.1","href":"index.html#subsection21","level":3}]},{"title":"Include from level1","href":"index.html#include-from-level1","level":2},{"title":"Include with anchor → root","href":"index.html#include-with-anchor1","level":2,"items":[{"title":"Subsection 2.1","href":"index.html#subsection211","level":3}]},{"title":"Section 3","href":"index.html#section3","level":2},{"title":"Include from level2","href":"index.html#include-from-level2","level":2},{"title":"Include with anchor → level1","href":"index.html#include-with-anchor2","level":2},{"title":"Section 3","href":"index.html#section31","level":2},{"title":"Include with missing file","href":"index.html#include-with-missing-file","level":2},{"title":"Include file that is in toc","href":"index.html#include-file-that-is-in-toc","level":2},{"title":"Include with anchor","href":"index.html#include-with-anchor3","level":2},{"title":"Section 1","href":"index.html#section1","level":2},{"title":"Links to different levels","href":"index.html#links-to-different-levels","level":2},{"title":"Include with anchor","href":"index.html#include-with-anchor4","level":2},{"title":"Section 1","href":"index.html#section11","level":2},{"title":"Include with multiple anchors","href":"index.html#include-with-multiple-anchors","level":2},{"title":"Section 2","href":"index.html#section21","level":2,"items":[{"title":"Subsection 2.1","href":"index.html#subsection212","level":3}]},{"title":"Include with paragraph anchor","href":"index.html#include-with-paragraph-anchor","level":2},{"title":"Nested includes","href":"index.html#nested-includes","level":2},{"title":"Include with anchor → root","href":"index.html#include-with-anchor5","level":2,"items":[{"title":"Subsection 2.1","href":"index.html#subsection213","level":3}]},{"title":"Section 3","href":"index.html#section32","level":2},{"title":"Deep nested includes","href":"index.html#deep-nested-includes","level":2},{"title":"Commented includes","href":"index.html#commented-includes","level":2},{"title":"Include with variable substitution","href":"index.html#include-with-variable-substitution","level":2},{"title":"Include without title","href":"index.html#include-without-title","level":2},{"title":"Include without title from the same directory","href":"index.html#include-without-title-from-the-same-directory","level":2},{"title":"Include without title with anchor","href":"index.html#include-without-title-with-anchor","level":2},{"title":"Include without title with paragraph anchor","href":"index.html#include-without-title-with-paragraph-anchor","level":2},{"title":"Include with anchor","href":"index.html#anchor","level":2},{"title":"Include without title from the same directory","href":"index.html#include-without-title-from-the-same-directory1","level":2},{"title":"Include without title with anchor","href":"index.html#include-without-title-with-anchor1","level":2},{"title":"Include without title with paragraph anchor","href":"index.html#include-without-title-with-paragraph-anchor1","level":2}],"title":"Test Includes"},"router":{"pathname":"index","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
683
+ </script>
684
+ <script type="application/javascript">
685
+ const data = document.querySelector('script#diplodoc-state');
686
+ window.__DATA__ = JSON.parse((function unescape(string) {
687
+ return string.replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&amp;/g, "&");
688
+ })(data.innerText));
689
+ window.STATIC_CONTENT = false;
690
+ </script>
691
+ <script type="application/javascript" defer src="toc.js"></script>
692
+ </body>
693
+ </html>"
694
+ `;
695
+
696
+ exports[`Includes > Various include scenarios 9`] = `
697
+ "<!DOCTYPE html>
698
+ <html lang="ru" dir="ltr">
699
+ <head>
700
+ <meta charset="utf-8">
701
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
702
+ <base href="../../" />
703
+ <title>Page 2</title>
704
+ <meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
705
+ <style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
706
+ </head>
707
+ <body class="g-root g-root_theme_light">
708
+ <div id="root"></div>
709
+ <script type="application/json" id="diplodoc-state">
710
+ {"data":{"leading":false,"html":"&lt;p&gt;This is page 2 at level 2.&lt;/p&gt;/n&lt;h2 id=\\"include-from-level2\\"&gt;&lt;a href=\\"level1/level2/page2.html#include-from-level2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include from level2&lt;/span&gt;&lt;/a&gt;Include from level2&lt;/h2&gt;/n/n&lt;p&gt;This is an include from level 2.&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"level1/level2/page2.html\\"&gt;Link to page2&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"level1/page1.html\\"&gt;Link to page1&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"index.html\\"&gt;Link to index&lt;/a&gt;&lt;/p&gt;/n&lt;h2 id=\\"include-with-anchor\\"&gt;&lt;a href=\\"level1/level2/page2.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include with anchor → level1&lt;/span&gt;&lt;/a&gt;Include with anchor &lt;a href=\\"level1/page1.html\\"&gt;→ level1&lt;/a&gt;&lt;/h2&gt;/n/n&lt;h2 id=\\"section3\\"&gt;&lt;a href=\\"level1/level2/page2.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Section 3&lt;/span&gt;&lt;/a&gt;Section 3&lt;/h2&gt;/n&lt;p&gt;This is content of section 3.&lt;/p&gt;/n&lt;p id=\\"p1\\"&gt;Some paragraph with anchor&lt;/p&gt;/n&lt;p&gt;Some paragraph without anchor&lt;/p&gt;/n&lt;p id=\\"p2\\"&gt;Some paragraph with anchor&lt;/p&gt;/n/n/n&lt;h2 id=\\"include-from-level1\\"&gt;&lt;a href=\\"level1/level2/page2.html#include-from-level1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include from level1&lt;/span&gt;&lt;/a&gt;Include from level1&lt;/h2&gt;/n/n&lt;p&gt;This is an include from level 1.&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"level1/page1.html\\"&gt;Link to page1&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"index.html\\"&gt;Link to index&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"level1/level2/page2.html\\"&gt;Link to level2&lt;/a&gt;&lt;/p&gt;/n&lt;h2 id=\\"include-with-anchor1\\"&gt;&lt;a id=\\"include-with-anchor\\" href=\\"level1/level2/page2.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include with anchor → root&lt;/span&gt;&lt;/a&gt;Include with anchor &lt;a href=\\"index.html\\"&gt;→ root&lt;/a&gt;&lt;/h2&gt;/n/n&lt;h3 id=\\"subsection21\\"&gt;&lt;a href=\\"level1/level2/page2.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Subsection 2.1&lt;/span&gt;&lt;/a&gt;Subsection 2.1&lt;/h3&gt;/n&lt;p&gt;This is content of subsection 2.1.&lt;/p&gt;/n&lt;h2 id=\\"section31\\"&gt;&lt;a id=\\"section3\\" href=\\"level1/level2/page2.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Section 3&lt;/span&gt;&lt;/a&gt;Section 3&lt;/h2&gt;/n&lt;p&gt;This is content of section 3.&lt;/p&gt;/n&lt;p id=\\"p1\\"&gt;Some paragraph with anchor&lt;/p&gt;/n&lt;p&gt;Some paragraph without anchor&lt;/p&gt;/n&lt;p id=\\"p2\\"&gt;Some paragraph with anchor&lt;/p&gt;/n/n/n&lt;h2 id=\\"include-from-root\\"&gt;&lt;a href=\\"level1/level2/page2.html#include-from-root\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include from root&lt;/span&gt;&lt;/a&gt;Include from root&lt;/h2&gt;/n/n&lt;p&gt;This is an include from the root level.&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"level1/page1.html\\"&gt;Link to level1&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"level1/level2/page2.html\\"&gt;Link to level2&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"index.html\\"&gt;Link to index&lt;/a&gt;&lt;/p&gt;/n&lt;h2 id=\\"include-with-anchor2\\"&gt;&lt;a id=\\"include-with-anchor\\" href=\\"level1/level2/page2.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include with anchor → level1&lt;/span&gt;&lt;/a&gt;Include with anchor &lt;a href=\\"level1/page1.html\\"&gt;→ level1&lt;/a&gt;&lt;/h2&gt;/n/n&lt;h2 id=\\"section2\\"&gt;&lt;a href=\\"level1/level2/page2.html#section2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Section 2&lt;/span&gt;&lt;/a&gt;Section 2&lt;/h2&gt;/n&lt;p&gt;This is content of section 2.&lt;/p&gt;/n&lt;h3 id=\\"subsection211\\"&gt;&lt;a id=\\"subsection21\\" href=\\"level1/level2/page2.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Subsection 2.1&lt;/span&gt;&lt;/a&gt;Subsection 2.1&lt;/h3&gt;/n&lt;p&gt;This is content of subsection 2.1.&lt;/p&gt;/n/n/n&lt;h2 id=\\"links-to-different-levels\\"&gt;&lt;a href=\\"level1/level2/page2.html#links-to-different-levels\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Links to different levels&lt;/span&gt;&lt;/a&gt;Links to different levels&lt;/h2&gt;/n&lt;p&gt;&lt;a href=\\"index.html\\"&gt;Link to index&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"level1/page1.html\\"&gt;Link to page1&lt;/a&gt;&lt;/p&gt;/n&lt;h2 id=\\"nested-include\\"&gt;&lt;a href=\\"level1/level2/page2.html#nested-include\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Nested include&lt;/span&gt;&lt;/a&gt;Nested include&lt;/h2&gt;/n/n&lt;h1 id=\\"nested-include\\"&gt;Nested include &lt;a href=\\"index.html\\"&gt;→ index&lt;/a&gt;&lt;/h1&gt;/n&lt;p&gt;This is a nested include.&lt;/p&gt;/n/n&lt;p&gt;This is an include from level 1.&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"level1/page1.html\\"&gt;Link to page1&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"index.html\\"&gt;Link to index&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"level1/level2/page2.html\\"&gt;Link to level2&lt;/a&gt;&lt;/p&gt;/n&lt;h2 id=\\"include-with-anchor3\\"&gt;&lt;a id=\\"include-with-anchor\\" href=\\"level1/level2/page2.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include with anchor → root&lt;/span&gt;&lt;/a&gt;Include with anchor &lt;a href=\\"index.html\\"&gt;→ root&lt;/a&gt;&lt;/h2&gt;/n/n&lt;h3 id=\\"subsection212\\"&gt;&lt;a id=\\"subsection21\\" href=\\"level1/level2/page2.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Subsection 2.1&lt;/span&gt;&lt;/a&gt;Subsection 2.1&lt;/h3&gt;/n&lt;p&gt;This is content of subsection 2.1.&lt;/p&gt;/n&lt;h2 id=\\"section32\\"&gt;&lt;a id=\\"section3\\" href=\\"level1/level2/page2.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Section 3&lt;/span&gt;&lt;/a&gt;Section 3&lt;/h2&gt;/n&lt;p&gt;This is content of section 3.&lt;/p&gt;/n&lt;p id=\\"p1\\"&gt;Some paragraph with anchor&lt;/p&gt;/n&lt;p&gt;Some paragraph without anchor&lt;/p&gt;/n&lt;p id=\\"p2\\"&gt;Some paragraph with anchor&lt;/p&gt;/n/n/n/n&lt;h2 id=\\"include-with-anchor4\\"&gt;&lt;a href=\\"level1/level2/page2.html#include-with-anchor4\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include with anchor&lt;/span&gt;&lt;/a&gt;Include with anchor&lt;/h2&gt;/n/n&lt;h2 id=\\"section33\\"&gt;&lt;a id=\\"section3\\" href=\\"level1/level2/page2.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Section 3&lt;/span&gt;&lt;/a&gt;Section 3&lt;/h2&gt;/n&lt;p&gt;This is content of section 3.&lt;/p&gt;/n&lt;p id=\\"p1\\"&gt;Some paragraph with anchor&lt;/p&gt;/n&lt;p&gt;Some paragraph without anchor&lt;/p&gt;/n&lt;p id=\\"p2\\"&gt;Some paragraph with anchor&lt;/p&gt;/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"level1/level2/page2.md"},"headings":[{"title":"Include from level2","href":"level1/level2/page2.html#include-from-level2","level":2},{"title":"Include with anchor → level1","href":"level1/level2/page2.html#include-with-anchor","level":2},{"title":"Section 3","href":"level1/level2/page2.html#section3","level":2},{"title":"Include from level1","href":"level1/level2/page2.html#include-from-level1","level":2},{"title":"Include with anchor → root","href":"level1/level2/page2.html#include-with-anchor1","level":2,"items":[{"title":"Subsection 2.1","href":"level1/level2/page2.html#subsection21","level":3}]},{"title":"Section 3","href":"level1/level2/page2.html#section31","level":2},{"title":"Include from root","href":"level1/level2/page2.html#include-from-root","level":2},{"title":"Include with anchor → level1","href":"level1/level2/page2.html#include-with-anchor2","level":2},{"title":"Section 2","href":"level1/level2/page2.html#section2","level":2,"items":[{"title":"Subsection 2.1","href":"level1/level2/page2.html#subsection211","level":3}]},{"title":"Links to different levels","href":"level1/level2/page2.html#links-to-different-levels","level":2},{"title":"Nested include","href":"level1/level2/page2.html#nested-include","level":2},{"title":"Include with anchor → root","href":"level1/level2/page2.html#include-with-anchor3","level":2,"items":[{"title":"Subsection 2.1","href":"level1/level2/page2.html#subsection212","level":3}]},{"title":"Section 3","href":"level1/level2/page2.html#section32","level":2},{"title":"Include with anchor","href":"level1/level2/page2.html#include-with-anchor4","level":2},{"title":"Section 3","href":"level1/level2/page2.html#section33","level":2}],"title":"Page 2"},"router":{"pathname":"level1/level2/page2","depth":3,"base":"../../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
711
+ </script>
712
+ <script type="application/javascript">
713
+ const data = document.querySelector('script#diplodoc-state');
714
+ window.__DATA__ = JSON.parse((function unescape(string) {
715
+ return string.replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&amp;/g, "&");
716
+ })(data.innerText));
717
+ window.STATIC_CONTENT = false;
718
+ </script>
719
+ <script type="application/javascript" defer src="toc.js"></script>
720
+ </body>
721
+ </html>"
722
+ `;
723
+
724
+ exports[`Includes > Various include scenarios 10`] = `
725
+ "<!DOCTYPE html>
726
+ <html lang="ru" dir="ltr">
727
+ <head>
728
+ <meta charset="utf-8">
729
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
730
+ <base href="../" />
731
+ <title>Page 1</title>
732
+ <meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
733
+ <style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
734
+ </head>
735
+ <body class="g-root g-root_theme_light">
736
+ <div id="root"></div>
737
+ <script type="application/json" id="diplodoc-state">
738
+ {"data":{"leading":false,"html":"&lt;p&gt;This is page 1 at level 1.&lt;/p&gt;/n&lt;h2 id=\\"include-from-level1\\"&gt;&lt;a href=\\"level1/page1.html#include-from-level1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include from level1&lt;/span&gt;&lt;/a&gt;Include from level1&lt;/h2&gt;/n/n&lt;p&gt;This is an include from level 1.&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"level1/page1.html\\"&gt;Link to page1&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"index.html\\"&gt;Link to index&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"level1/level2/page2.html\\"&gt;Link to level2&lt;/a&gt;&lt;/p&gt;/n&lt;h2 id=\\"include-with-anchor\\"&gt;&lt;a href=\\"level1/page1.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include with anchor → root&lt;/span&gt;&lt;/a&gt;Include with anchor &lt;a href=\\"index.html\\"&gt;→ root&lt;/a&gt;&lt;/h2&gt;/n/n&lt;h3 id=\\"subsection21\\"&gt;&lt;a href=\\"level1/page1.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Subsection 2.1&lt;/span&gt;&lt;/a&gt;Subsection 2.1&lt;/h3&gt;/n&lt;p&gt;This is content of subsection 2.1.&lt;/p&gt;/n&lt;h2 id=\\"section3\\"&gt;&lt;a href=\\"level1/page1.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Section 3&lt;/span&gt;&lt;/a&gt;Section 3&lt;/h2&gt;/n&lt;p&gt;This is content of section 3.&lt;/p&gt;/n&lt;p id=\\"p1\\"&gt;Some paragraph with anchor&lt;/p&gt;/n&lt;p&gt;Some paragraph without anchor&lt;/p&gt;/n&lt;p id=\\"p2\\"&gt;Some paragraph with anchor&lt;/p&gt;/n/n/n&lt;h2 id=\\"include-from-root\\"&gt;&lt;a href=\\"level1/page1.html#include-from-root\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include from root&lt;/span&gt;&lt;/a&gt;Include from root&lt;/h2&gt;/n/n&lt;p&gt;This is an include from the root level.&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"level1/page1.html\\"&gt;Link to level1&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"level1/level2/page2.html\\"&gt;Link to level2&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"index.html\\"&gt;Link to index&lt;/a&gt;&lt;/p&gt;/n&lt;h2 id=\\"include-with-anchor1\\"&gt;&lt;a id=\\"include-with-anchor\\" href=\\"level1/page1.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include with anchor → level1&lt;/span&gt;&lt;/a&gt;Include with anchor &lt;a href=\\"level1/page1.html\\"&gt;→ level1&lt;/a&gt;&lt;/h2&gt;/n/n&lt;h2 id=\\"section2\\"&gt;&lt;a href=\\"level1/page1.html#section2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Section 2&lt;/span&gt;&lt;/a&gt;Section 2&lt;/h2&gt;/n&lt;p&gt;This is content of section 2.&lt;/p&gt;/n&lt;h3 id=\\"subsection211\\"&gt;&lt;a id=\\"subsection21\\" href=\\"level1/page1.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Subsection 2.1&lt;/span&gt;&lt;/a&gt;Subsection 2.1&lt;/h3&gt;/n&lt;p&gt;This is content of subsection 2.1.&lt;/p&gt;/n/n/n&lt;h2 id=\\"include-from-level2\\"&gt;&lt;a href=\\"level1/page1.html#include-from-level2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include from level2&lt;/span&gt;&lt;/a&gt;Include from level2&lt;/h2&gt;/n/n&lt;p&gt;This is an include from level 2.&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"level1/level2/page2.html\\"&gt;Link to page2&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"level1/page1.html\\"&gt;Link to page1&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"index.html\\"&gt;Link to index&lt;/a&gt;&lt;/p&gt;/n&lt;h2 id=\\"include-with-anchor2\\"&gt;&lt;a id=\\"include-with-anchor\\" href=\\"level1/page1.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include with anchor → level1&lt;/span&gt;&lt;/a&gt;Include with anchor &lt;a href=\\"level1/page1.html\\"&gt;→ level1&lt;/a&gt;&lt;/h2&gt;/n/n&lt;h2 id=\\"section31\\"&gt;&lt;a id=\\"section3\\" href=\\"level1/page1.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Section 3&lt;/span&gt;&lt;/a&gt;Section 3&lt;/h2&gt;/n&lt;p&gt;This is content of section 3.&lt;/p&gt;/n&lt;p id=\\"p1\\"&gt;Some paragraph with anchor&lt;/p&gt;/n&lt;p&gt;Some paragraph without anchor&lt;/p&gt;/n&lt;p id=\\"p2\\"&gt;Some paragraph with anchor&lt;/p&gt;/n/n/n&lt;h2 id=\\"links-to-different-levels\\"&gt;&lt;a href=\\"level1/page1.html#links-to-different-levels\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Links to different levels&lt;/span&gt;&lt;/a&gt;Links to different levels&lt;/h2&gt;/n&lt;p&gt;&lt;a href=\\"index.html\\"&gt;Link to index&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"level1/level2/page2.html\\"&gt;Link to level2&lt;/a&gt;&lt;/p&gt;/n&lt;h2 id=\\"nested-include\\"&gt;&lt;a href=\\"level1/page1.html#nested-include\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Nested include&lt;/span&gt;&lt;/a&gt;Nested include&lt;/h2&gt;/n/n&lt;h1 id=\\"nested-include\\"&gt;Nested include &lt;a href=\\"index.html\\"&gt;→ index&lt;/a&gt;&lt;/h1&gt;/n&lt;p&gt;This is a nested include.&lt;/p&gt;/n/n&lt;p&gt;This is an include from level 1.&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"level1/page1.html\\"&gt;Link to page1&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"index.html\\"&gt;Link to index&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"level1/level2/page2.html\\"&gt;Link to level2&lt;/a&gt;&lt;/p&gt;/n&lt;h2 id=\\"include-with-anchor3\\"&gt;&lt;a id=\\"include-with-anchor\\" href=\\"level1/page1.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include with anchor → root&lt;/span&gt;&lt;/a&gt;Include with anchor &lt;a href=\\"index.html\\"&gt;→ root&lt;/a&gt;&lt;/h2&gt;/n/n&lt;h3 id=\\"subsection212\\"&gt;&lt;a id=\\"subsection21\\" href=\\"level1/page1.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Subsection 2.1&lt;/span&gt;&lt;/a&gt;Subsection 2.1&lt;/h3&gt;/n&lt;p&gt;This is content of subsection 2.1.&lt;/p&gt;/n&lt;h2 id=\\"section32\\"&gt;&lt;a id=\\"section3\\" href=\\"level1/page1.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Section 3&lt;/span&gt;&lt;/a&gt;Section 3&lt;/h2&gt;/n&lt;p&gt;This is content of section 3.&lt;/p&gt;/n&lt;p id=\\"p1\\"&gt;Some paragraph with anchor&lt;/p&gt;/n&lt;p&gt;Some paragraph without anchor&lt;/p&gt;/n&lt;p id=\\"p2\\"&gt;Some paragraph with anchor&lt;/p&gt;/n/n/n/n&lt;h2 id=\\"include-with-anchor4\\"&gt;&lt;a href=\\"level1/page1.html#include-with-anchor4\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include with anchor&lt;/span&gt;&lt;/a&gt;Include with anchor&lt;/h2&gt;/n/n&lt;h3 id=\\"subsection213\\"&gt;&lt;a id=\\"subsection21\\" href=\\"level1/page1.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Subsection 2.1&lt;/span&gt;&lt;/a&gt;Subsection 2.1&lt;/h3&gt;/n&lt;p&gt;This is content of subsection 2.1.&lt;/p&gt;/n&lt;h2 id=\\"section33\\"&gt;&lt;a id=\\"section3\\" href=\\"level1/page1.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Section 3&lt;/span&gt;&lt;/a&gt;Section 3&lt;/h2&gt;/n&lt;p&gt;This is content of section 3.&lt;/p&gt;/n&lt;p id=\\"p1\\"&gt;Some paragraph with anchor&lt;/p&gt;/n&lt;p&gt;Some paragraph without anchor&lt;/p&gt;/n&lt;p id=\\"p2\\"&gt;Some paragraph with anchor&lt;/p&gt;/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"level1/page1.md"},"headings":[{"title":"Include from level1","href":"level1/page1.html#include-from-level1","level":2},{"title":"Include with anchor → root","href":"level1/page1.html#include-with-anchor","level":2,"items":[{"title":"Subsection 2.1","href":"level1/page1.html#subsection21","level":3}]},{"title":"Section 3","href":"level1/page1.html#section3","level":2},{"title":"Include from root","href":"level1/page1.html#include-from-root","level":2},{"title":"Include with anchor → level1","href":"level1/page1.html#include-with-anchor1","level":2},{"title":"Section 2","href":"level1/page1.html#section2","level":2,"items":[{"title":"Subsection 2.1","href":"level1/page1.html#subsection211","level":3}]},{"title":"Include from level2","href":"level1/page1.html#include-from-level2","level":2},{"title":"Include with anchor → level1","href":"level1/page1.html#include-with-anchor2","level":2},{"title":"Section 3","href":"level1/page1.html#section31","level":2},{"title":"Links to different levels","href":"level1/page1.html#links-to-different-levels","level":2},{"title":"Nested include","href":"level1/page1.html#nested-include","level":2},{"title":"Include with anchor → root","href":"level1/page1.html#include-with-anchor3","level":2,"items":[{"title":"Subsection 2.1","href":"level1/page1.html#subsection212","level":3}]},{"title":"Section 3","href":"level1/page1.html#section32","level":2},{"title":"Include with anchor","href":"level1/page1.html#include-with-anchor4","level":2,"items":[{"title":"Subsection 2.1","href":"level1/page1.html#subsection213","level":3}]},{"title":"Section 3","href":"level1/page1.html#section33","level":2}],"title":"Page 1"},"router":{"pathname":"level1/page1","depth":2,"base":"../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
739
+ </script>
740
+ <script type="application/javascript">
741
+ const data = document.querySelector('script#diplodoc-state');
742
+ window.__DATA__ = JSON.parse((function unescape(string) {
743
+ return string.replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&amp;/g, "&");
744
+ })(data.innerText));
745
+ window.STATIC_CONTENT = false;
746
+ </script>
747
+ <script type="application/javascript" defer src="toc.js"></script>
748
+ </body>
749
+ </html>"
750
+ `;
751
+
752
+ exports[`Includes > Various include scenarios 11`] = `
753
+ "<!DOCTYPE html>
754
+ <html lang="ru" dir="ltr">
755
+ <head>
756
+ <meta charset="utf-8">
757
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
758
+ <base href="./" />
759
+ <title>Toc Include</title>
760
+ <meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
761
+ <style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
762
+ </head>
763
+ <body class="g-root g-root_theme_light">
764
+ <div id="root"></div>
765
+ <script type="application/json" id="diplodoc-state">
766
+ {"data":{"leading":false,"html":"&lt;p&gt;This file is included in the toc.&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"index.html\\"&gt;Link to index&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"level1/page1.html\\"&gt;Link to page1&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"level1/level2/page2.html\\"&gt;Link to page2&lt;/a&gt;&lt;/p&gt;/n&lt;h2 id=\\"include-with-anchor\\"&gt;&lt;a href=\\"toc-include.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include with anchor&lt;/span&gt;&lt;/a&gt;Include with anchor&lt;/h2&gt;/n/n&lt;h2 id=\\"section1\\"&gt;&lt;a href=\\"toc-include.html#section1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Section 1&lt;/span&gt;&lt;/a&gt;Section 1&lt;/h2&gt;/n&lt;p&gt;This is content of section 1.&lt;/p&gt;/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"toc-include.md"},"headings":[{"title":"Include with anchor","href":"toc-include.html#include-with-anchor","level":2},{"title":"Section 1","href":"toc-include.html#section1","level":2}],"title":"Toc Include"},"router":{"pathname":"toc-include","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
767
+ </script>
768
+ <script type="application/javascript">
769
+ const data = document.querySelector('script#diplodoc-state');
770
+ window.__DATA__ = JSON.parse((function unescape(string) {
771
+ return string.replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&amp;/g, "&");
772
+ })(data.innerText));
773
+ window.STATIC_CONTENT = false;
774
+ </script>
775
+ <script type="application/javascript" defer src="toc.js"></script>
776
+ </body>
777
+ </html>"
778
+ `;
779
+
780
+ exports[`Includes > Various include scenarios 12`] = `"window.__DATA__.data.toc = {"items":[{"name":"Test Includes","href":"index.html","id":"UUID"},{"name":"Toc Include","href":"toc-include.html","id":"UUID"},{"name":"Level 1","items":[{"name":"Page 1","href":"level1/page1.html","id":"UUID"},{"name":"Level 2","items":[{"name":"Page 2","href":"level1/level2/page2.html","id":"UUID"}],"id":"UUID"}],"id":"UUID"}],"path":"toc.yaml","id":"UUID"};"`;