@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,2386 @@
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
+
3
+ exports[`Translate command > build translated md files and remove no-translate directives > filelist 1`] = `
4
+ "[
5
+ "index.md",
6
+ "no-translate.md",
7
+ "openapi/index.md",
8
+ "openapi/test-controller/getWithPayloadResponse.md",
9
+ "openapi/test-controller/index.md",
10
+ "toc.yaml"
11
+ ]"
12
+ `;
13
+
14
+ exports[`Translate command > build translated md files and remove no-translate directives 1`] = `
15
+ "---
16
+ metadata:
17
+ - name: generator
18
+ content: Diplodoc Platform vDIPLODOC-VERSION
19
+ vcsPath: index.md
20
+ ---
21
+ ## Index header
22
+
23
+ adsfasdfasdfasdfasdf
24
+
25
+ lorem
26
+
27
+ asdfasdfasdf"
28
+ `;
29
+
30
+ exports[`Translate command > build translated md files and remove no-translate directives 2`] = `
31
+ "---
32
+ metadata:
33
+ - name: generator
34
+ content: Diplodoc Platform vDIPLODOC-VERSION
35
+ vcsPath: no-translate.md
36
+ ---
37
+ # No-translate directive
38
+
39
+ ## Block directive
40
+ ### No-translate header
41
+
42
+ :::html-block
43
+ testsetsets
44
+ :::
45
+
46
+ ::: any-other-directive
47
+ content test
48
+ :::
49
+
50
+ Should not be translated.
51
+ Can use **markup** inside.
52
+
53
+
54
+ ::: some-other-directive
55
+ content here
56
+ :::
57
+ content here
58
+ ::: some-other-directive
59
+ nested content
60
+ :::
61
+
62
+ ## Leaf directive
63
+
64
+ ## /usr/local/bin/application
65
+ **C:/Program Files/Application/config.ini**
66
+ ~/Documents/project/src/main.rs
67
+
68
+
69
+ - GET /api/v1/users — get all users
70
+ - POST /api/v1/auth/login — authorization
71
+ - PUT /api/v1/users/{id} — update users data
72
+
73
+ ## Simple case leaf
74
+ Install using command.
75
+ The default port is unless specified. Next sentence.
76
+ Set NODE_ENV=production for production builds.
77
+
78
+ ## Simple case inline
79
+ Install using npm install @company/package command.
80
+ The default port is 8080 unless specified.
81
+ Set NODE_ENV=production for production builds.
82
+
83
+ ## Few inline directives
84
+ Use **GET /api/v1/users** to list users and POST /api/v1/users to create.
85
+
86
+ ## Empty inline directive
87
+ This is text with empty directive.
88
+
89
+
90
+ "
91
+ `;
92
+
93
+ exports[`Translate command > build translated md files and remove no-translate directives 3`] = `
94
+ "---
95
+ metadata:
96
+ - name: generator
97
+ content: Diplodoc Platform vDIPLODOC-VERSION
98
+ vcsPath: openapi/index.md
99
+ ---
100
+ <!-- markdownlint-disable-file -->
101
+
102
+ # OpenAPI definition
103
+
104
+ ##version: v0##
105
+
106
+ ## Sections
107
+
108
+ - [test-controller](test-controller/index.md)
109
+
110
+
111
+ ## Specification
112
+
113
+ {% cut "Open API" %}
114
+
115
+ \`\`\`text translate=no
116
+ {
117
+ "openapi": "3.0.1",
118
+ "info": {
119
+ "title": "OpenAPI definition",
120
+ "version": "v0"
121
+ },
122
+ "servers": [
123
+ {
124
+ "url": "http://localhost:8080",
125
+ "description": "Generated server url"
126
+ }
127
+ ],
128
+ "paths": {
129
+ "/test": {
130
+ "get": {
131
+ "tags": [
132
+ "test-controller"
133
+ ],
134
+ "summary": "Simple get operation. тест новой верстки 3",
135
+ "description": "Defines a simple get skip this operation with no inputs and a complex",
136
+ "operationId": "getWithPayloadResponse",
137
+ "responses": {
138
+ "200": {
139
+ "description": "200!!!!",
140
+ "content": {
141
+ "application/json": {
142
+ "schema": {
143
+ "type": "object",
144
+ "properties": {
145
+ "A": {
146
+ "type": "string"
147
+ }
148
+ }
149
+ }
150
+ }
151
+ }
152
+ }
153
+ }
154
+ }
155
+ }
156
+ },
157
+ "components": {
158
+ "schemas": {
159
+ "RecurceTop": {
160
+ "type": "object",
161
+ "properties": {
162
+ "A": {
163
+ "type": "string"
164
+ }
165
+ }
166
+ },
167
+ "RecurceMiddle": {
168
+ "type": "object",
169
+ "properties": {
170
+ "B": {
171
+ "type": "array",
172
+ "items": {
173
+ "type": "object",
174
+ "properties": {
175
+ "A": {
176
+ "type": "string"
177
+ }
178
+ }
179
+ }
180
+ }
181
+ }
182
+ }
183
+ }
184
+ }
185
+ }
186
+ \`\`\`
187
+
188
+ {% endcut %}"
189
+ `;
190
+
191
+ exports[`Translate command > build translated md files and remove no-translate directives 4`] = `
192
+ "---
193
+ metadata:
194
+ - name: generator
195
+ content: Diplodoc Platform vDIPLODOC-VERSION
196
+ vcsPath: openapi/test-controller/getWithPayloadResponse.md
197
+ ---
198
+ <div class="openapi">
199
+
200
+ # Simple get operation. тест новой верстки 3
201
+
202
+ <!-- markdownlint-disable-file -->
203
+
204
+ Defines a simple get skip this operation with no inputs and a complex
205
+
206
+ ## Request
207
+
208
+ <div class="openapi__requests">
209
+
210
+ <div class="openapi__request__wrapper" style="--method: var(--dc-openapi-methods-get);margin-bottom: 12px">
211
+
212
+ <div class="openapi__request">
213
+
214
+ GET {.openapi__method}
215
+ \`\`\`text translate=no
216
+ http://localhost:8080/test
217
+ \`\`\`
218
+
219
+ </div>
220
+
221
+ Generated server url
222
+
223
+ </div>
224
+
225
+ </div>
226
+
227
+ ## Responses
228
+
229
+ <div class="openapi__response__code__200">
230
+
231
+ ## 200 OK
232
+
233
+ 200!!!!
234
+
235
+ <div class="openapi-entity">
236
+
237
+ ### Body
238
+
239
+ {% cut "application/json" %}
240
+
241
+ \`\`\`json translate=no
242
+ {
243
+ "A": "example"
244
+ }
245
+ \`\`\`
246
+
247
+ {% endcut %}
248
+
249
+ #|
250
+ || **Name** | **Description** ||
251
+ ||
252
+
253
+ _A_{.json-schema-reset .json-schema-property}
254
+ {.table-cell}|
255
+ **Type**: string
256
+
257
+ _Example:_{.json-schema-reset .json-schema-example} \`example\`
258
+ {.table-cell}
259
+ ||
260
+ |#{.json-schema-properties}
261
+
262
+ </div>
263
+
264
+ </div>
265
+
266
+ </div>
267
+
268
+ [*Deprecated]: No longer supported, please use an alternative and newer version."
269
+ `;
270
+
271
+ exports[`Translate command > build translated md files and remove no-translate directives 5`] = `
272
+ "---
273
+ metadata:
274
+ - name: generator
275
+ content: Diplodoc Platform vDIPLODOC-VERSION
276
+ vcsPath: openapi/test-controller/index.md
277
+ ---
278
+ # test-controller
279
+
280
+ <!-- markdownlint-disable-file -->
281
+
282
+ ## Endpoints
283
+
284
+ - [Simple get operation. тест новой верстки 3](getWithPayloadResponse.md)
285
+ "
286
+ `;
287
+
288
+ exports[`Translate command > build translated md files and remove no-translate directives 6`] = `
289
+ "title: Test123
290
+ href: index.md
291
+ items:
292
+ - name: Не переводить
293
+ href: no-translate.md
294
+ - name: openapi
295
+ items:
296
+ - name: Overview
297
+ href: openapi/index.md
298
+ - name: test-controller
299
+ items:
300
+ - name: Overview
301
+ href: openapi/test-controller/index.md
302
+ - href: openapi/test-controller/getWithPayloadResponse.md
303
+ name: Simple get operation. тест новой верстки 3
304
+ path: toc.yaml
305
+ "
306
+ `;
307
+
308
+ exports[`Translate command > build translated static files and remove no-translate directives > filelist 1`] = `
309
+ "[
310
+ "index.md",
311
+ "no-translate.md",
312
+ "openapi/index.md",
313
+ "openapi/test-controller/getWithPayloadResponse.md",
314
+ "openapi/test-controller/index.md",
315
+ "toc.yaml"
316
+ ]"
317
+ `;
318
+
319
+ exports[`Translate command > build translated static files and remove no-translate directives 1`] = `
320
+ "---
321
+ metadata:
322
+ - name: generator
323
+ content: Diplodoc Platform vDIPLODOC-VERSION
324
+ vcsPath: index.md
325
+ ---
326
+ ## Index header
327
+
328
+ adsfasdfasdfasdfasdf
329
+
330
+ lorem
331
+
332
+ asdfasdfasdf"
333
+ `;
334
+
335
+ exports[`Translate command > build translated static files and remove no-translate directives 2`] = `
336
+ "---
337
+ metadata:
338
+ - name: generator
339
+ content: Diplodoc Platform vDIPLODOC-VERSION
340
+ vcsPath: no-translate.md
341
+ ---
342
+ # No-translate directive
343
+
344
+ ## Block directive
345
+ ### No-translate header
346
+
347
+ :::html-block
348
+ testsetsets
349
+ :::
350
+
351
+ ::: any-other-directive
352
+ content test
353
+ :::
354
+
355
+ Should not be translated.
356
+ Can use **markup** inside.
357
+
358
+
359
+ ::: some-other-directive
360
+ content here
361
+ :::
362
+ content here
363
+ ::: some-other-directive
364
+ nested content
365
+ :::
366
+
367
+ ## Leaf directive
368
+
369
+ ## /usr/local/bin/application
370
+ **C:/Program Files/Application/config.ini**
371
+ ~/Documents/project/src/main.rs
372
+
373
+
374
+ - GET /api/v1/users — get all users
375
+ - POST /api/v1/auth/login — authorization
376
+ - PUT /api/v1/users/{id} — update users data
377
+
378
+ ## Simple case leaf
379
+ Install using command.
380
+ The default port is unless specified. Next sentence.
381
+ Set NODE_ENV=production for production builds.
382
+
383
+ ## Simple case inline
384
+ Install using npm install @company/package command.
385
+ The default port is 8080 unless specified.
386
+ Set NODE_ENV=production for production builds.
387
+
388
+ ## Few inline directives
389
+ Use **GET /api/v1/users** to list users and POST /api/v1/users to create.
390
+
391
+ ## Empty inline directive
392
+ This is text with empty directive.
393
+
394
+
395
+ "
396
+ `;
397
+
398
+ exports[`Translate command > build translated static files and remove no-translate directives 3`] = `
399
+ "---
400
+ metadata:
401
+ - name: generator
402
+ content: Diplodoc Platform vDIPLODOC-VERSION
403
+ vcsPath: openapi/index.md
404
+ ---
405
+ <!-- markdownlint-disable-file -->
406
+
407
+ # OpenAPI definition
408
+
409
+ ##version: v0##
410
+
411
+ ## Sections
412
+
413
+ - [test-controller](test-controller/index.md)
414
+
415
+
416
+ ## Specification
417
+
418
+ {% cut "Open API" %}
419
+
420
+ \`\`\`text translate=no
421
+ {
422
+ "openapi": "3.0.1",
423
+ "info": {
424
+ "title": "OpenAPI definition",
425
+ "version": "v0"
426
+ },
427
+ "servers": [
428
+ {
429
+ "url": "http://localhost:8080",
430
+ "description": "Generated server url"
431
+ }
432
+ ],
433
+ "paths": {
434
+ "/test": {
435
+ "get": {
436
+ "tags": [
437
+ "test-controller"
438
+ ],
439
+ "summary": "Simple get operation. тест новой верстки 3",
440
+ "description": "Defines a simple get skip this operation with no inputs and a complex",
441
+ "operationId": "getWithPayloadResponse",
442
+ "responses": {
443
+ "200": {
444
+ "description": "200!!!!",
445
+ "content": {
446
+ "application/json": {
447
+ "schema": {
448
+ "type": "object",
449
+ "properties": {
450
+ "A": {
451
+ "type": "string"
452
+ }
453
+ }
454
+ }
455
+ }
456
+ }
457
+ }
458
+ }
459
+ }
460
+ }
461
+ },
462
+ "components": {
463
+ "schemas": {
464
+ "RecurceTop": {
465
+ "type": "object",
466
+ "properties": {
467
+ "A": {
468
+ "type": "string"
469
+ }
470
+ }
471
+ },
472
+ "RecurceMiddle": {
473
+ "type": "object",
474
+ "properties": {
475
+ "B": {
476
+ "type": "array",
477
+ "items": {
478
+ "type": "object",
479
+ "properties": {
480
+ "A": {
481
+ "type": "string"
482
+ }
483
+ }
484
+ }
485
+ }
486
+ }
487
+ }
488
+ }
489
+ }
490
+ }
491
+ \`\`\`
492
+
493
+ {% endcut %}"
494
+ `;
495
+
496
+ exports[`Translate command > build translated static files and remove no-translate directives 4`] = `
497
+ "---
498
+ metadata:
499
+ - name: generator
500
+ content: Diplodoc Platform vDIPLODOC-VERSION
501
+ vcsPath: openapi/test-controller/getWithPayloadResponse.md
502
+ ---
503
+ <div class="openapi">
504
+
505
+ # Simple get operation. тест новой верстки 3
506
+
507
+ <!-- markdownlint-disable-file -->
508
+
509
+ Defines a simple get skip this operation with no inputs and a complex
510
+
511
+ ## Request
512
+
513
+ <div class="openapi__requests">
514
+
515
+ <div class="openapi__request__wrapper" style="--method: var(--dc-openapi-methods-get);margin-bottom: 12px">
516
+
517
+ <div class="openapi__request">
518
+
519
+ GET {.openapi__method}
520
+ \`\`\`text translate=no
521
+ http://localhost:8080/test
522
+ \`\`\`
523
+
524
+ </div>
525
+
526
+ Generated server url
527
+
528
+ </div>
529
+
530
+ </div>
531
+
532
+ ## Responses
533
+
534
+ <div class="openapi__response__code__200">
535
+
536
+ ## 200 OK
537
+
538
+ 200!!!!
539
+
540
+ <div class="openapi-entity">
541
+
542
+ ### Body
543
+
544
+ {% cut "application/json" %}
545
+
546
+ \`\`\`json translate=no
547
+ {
548
+ "A": "example"
549
+ }
550
+ \`\`\`
551
+
552
+ {% endcut %}
553
+
554
+ #|
555
+ || **Name** | **Description** ||
556
+ ||
557
+
558
+ _A_{.json-schema-reset .json-schema-property}
559
+ {.table-cell}|
560
+ **Type**: string
561
+
562
+ _Example:_{.json-schema-reset .json-schema-example} \`example\`
563
+ {.table-cell}
564
+ ||
565
+ |#{.json-schema-properties}
566
+
567
+ </div>
568
+
569
+ </div>
570
+
571
+ </div>
572
+
573
+ [*Deprecated]: No longer supported, please use an alternative and newer version."
574
+ `;
575
+
576
+ exports[`Translate command > build translated static files and remove no-translate directives 5`] = `
577
+ "---
578
+ metadata:
579
+ - name: generator
580
+ content: Diplodoc Platform vDIPLODOC-VERSION
581
+ vcsPath: openapi/test-controller/index.md
582
+ ---
583
+ # test-controller
584
+
585
+ <!-- markdownlint-disable-file -->
586
+
587
+ ## Endpoints
588
+
589
+ - [Simple get operation. тест новой верстки 3](getWithPayloadResponse.md)
590
+ "
591
+ `;
592
+
593
+ exports[`Translate command > build translated static files and remove no-translate directives 6`] = `
594
+ "title: Test123
595
+ href: index.md
596
+ items:
597
+ - name: Не переводить
598
+ href: no-translate.md
599
+ - name: openapi
600
+ items:
601
+ - name: Overview
602
+ href: openapi/index.md
603
+ - name: test-controller
604
+ items:
605
+ - name: Overview
606
+ href: openapi/test-controller/index.md
607
+ - href: openapi/test-controller/getWithPayloadResponse.md
608
+ name: Simple get operation. тест новой верстки 3
609
+ path: toc.yaml
610
+ "
611
+ `;
612
+
613
+ exports[`Translate command > compose openapi spec files > filelist 1`] = `
614
+ "[
615
+ "openapi-spec.yaml",
616
+ "toc.yaml"
617
+ ]"
618
+ `;
619
+
620
+ exports[`Translate command > compose openapi spec files 1`] = `
621
+ "openapi: 3.0.1
622
+ info:
623
+ title: Перевод 1
624
+ version: v0
625
+ servers:
626
+ - url: http://localhost:8080
627
+ description: Перевод 2
628
+ paths:
629
+ /test:
630
+ get:
631
+ tags:
632
+ - Перевод 3
633
+ summary: Перевод 4
634
+ description: Перевод 5
635
+ operationId: getWithPayloadResponse
636
+ responses:
637
+ '200':
638
+ description: Перевод 6
639
+ content:
640
+ application/json:
641
+ schema:
642
+ type: object
643
+ properties:
644
+ A:
645
+ type: string
646
+ description: |
647
+ Перевод 7
648
+ - Перевод 8
649
+ - Перевод 9
650
+ - Перевод 10
651
+ components:
652
+ schemas:
653
+ RecurceTop:
654
+ type: object
655
+ properties:
656
+ A:
657
+ type: string
658
+ description: |
659
+ Перевод 7
660
+ - Перевод 8
661
+ - Перевод 9
662
+ - Перевод 10
663
+ RecurceMiddle:
664
+ type: object
665
+ properties:
666
+ B:
667
+ type: array
668
+ items:
669
+ type: object
670
+ properties:
671
+ A:
672
+ type: string
673
+ description: |
674
+ Перевод 7
675
+ - Перевод 8
676
+ - Перевод 9
677
+ - Перевод 10
678
+ "
679
+ `;
680
+
681
+ exports[`Translate command > compose openapi spec files 2`] = `
682
+ "items:
683
+ - name: Перевод 1
684
+ include:
685
+ path: openapi
686
+ includers:
687
+ - name: openapi
688
+ input: openapi-spec.yaml
689
+ mode: link
690
+ "
691
+ `;
692
+
693
+ exports[`Translate command > do not filter files on extract > filelist 1`] = `
694
+ "[
695
+ "es/_includes/test.md.skl",
696
+ "es/_includes/test.md.xliff",
697
+ "es/_no-translate/exclude.md.skl",
698
+ "es/_no-translate/exclude.md.xliff",
699
+ "es/aboba.md.skl",
700
+ "es/aboba.md.xliff",
701
+ "es/index.md.skl",
702
+ "es/index.md.xliff",
703
+ "es/nested/a1.md.skl",
704
+ "es/nested/a1.md.xliff",
705
+ "es/nested/index-yfm.md.skl",
706
+ "es/nested/index-yfm.md.xliff",
707
+ "es/nested/index.yaml.skl",
708
+ "es/nested/index.yaml.xliff",
709
+ "es/nested/not-in-toc.md.skl",
710
+ "es/nested/not-in-toc.md.xliff",
711
+ "es/nested/syntax/base.md.skl",
712
+ "es/nested/syntax/base.md.xliff",
713
+ "es/nested/syntax/index.md.skl",
714
+ "es/nested/syntax/index.md.xliff",
715
+ "es/nested/syntax/lists.md.skl",
716
+ "es/nested/syntax/lists.md.xliff",
717
+ "es/nested/toc.yaml.skl",
718
+ "es/nested/toc.yaml.xliff",
719
+ "es/nested/use_filtered_above.md.skl",
720
+ "es/nested/use_filtered_above.md.xliff",
721
+ "es/no-var-page.md.skl",
722
+ "es/no-var-page.md.xliff",
723
+ "es/not-in-toc.md.skl",
724
+ "es/not-in-toc.md.xliff",
725
+ "es/to-be-excluded.md.skl",
726
+ "es/to-be-excluded.md.xliff",
727
+ "es/toc.yaml.skl",
728
+ "es/toc.yaml.xliff"
729
+ ]"
730
+ `;
731
+
732
+ exports[`Translate command > do not resolve liquid conditions if vars not specified and send content as is for extract > filelist 1`] = `
733
+ "[
734
+ "index.md.skl",
735
+ "index.md.xliff",
736
+ "toc.yaml.skl",
737
+ "toc.yaml.xliff"
738
+ ]"
739
+ `;
740
+
741
+ exports[`Translate command > do not resolve liquid conditions if vars not specified and send content as is for extract 1`] = `
742
+ "%%%0%%%
743
+ <!-- [missed file](./missed.md) -->
744
+ {% if prod == true %}%%%1%%%{% endif %}
745
+
746
+ {% if inner == true %}%%%2%%%{% endif %}
747
+
748
+ {% if prod == true %}%%%3%%%{% endif %}{% endif %}
749
+
750
+ {% if prod == true %}
751
+
752
+ {% if list contains "item" %}
753
+
754
+ %%%4%%%
755
+
756
+ {% if item == true %}%%%5%%% %%%6%%% {% endif %}
757
+
758
+ %%%7%%%
759
+
760
+ {% endif %}
761
+
762
+ {% endif %}
763
+
764
+ #### %%%8%%%
765
+
766
+ {% if list contains "item" %}
767
+
768
+ %%%9%%%
769
+
770
+ {% endif %}
771
+
772
+ #### %%%10%%%
773
+
774
+ {% if prod == true %}
775
+
776
+ %%%11%%% {% endif %}
777
+
778
+ {% endif %}
779
+ "
780
+ `;
781
+
782
+ exports[`Translate command > do not resolve liquid conditions if vars not specified and send content as is for extract 2`] = `
783
+ "<?xml version="1.0" encoding="UTF-8"?>
784
+ <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
785
+ <file original="file.ext" source-language="ru-RU" target-language="es-ES" datatype="markdown">
786
+ <header>
787
+ <skeleton>
788
+ <external-file href="file.skl"></external-file>
789
+ </skeleton>
790
+ </header>
791
+ <body>
792
+ <trans-unit id="0">
793
+ <source xml:space="preserve"><g ctype="link" equiv-text="[{{text}}](./exists.md)" id="g-1" x-begin="[" x-end="](./exists.md)">existing file</g></source>
794
+ </trans-unit>
795
+ <trans-unit id="1">
796
+ <source xml:space="preserve">Test text</source>
797
+ </trans-unit>
798
+ <trans-unit id="2">
799
+ <source xml:space="preserve">inner test text</source>
800
+ </trans-unit>
801
+ <trans-unit id="3">
802
+ <source xml:space="preserve">Test text<x ctype="liquid_Literal" equiv-text="{% if inner == true %}" id="x-1"/>inner test text</source>
803
+ </trans-unit>
804
+ <trans-unit id="4">
805
+ <source xml:space="preserve">#### List</source>
806
+ </trans-unit>
807
+ <trans-unit id="5">
808
+ <source xml:space="preserve">1.</source>
809
+ </trans-unit>
810
+ <trans-unit id="6">
811
+ <source xml:space="preserve">Item</source>
812
+ </trans-unit>
813
+ <trans-unit id="7">
814
+ <source xml:space="preserve">Some text</source>
815
+ </trans-unit>
816
+ <trans-unit id="8">
817
+ <source xml:space="preserve">Standalone contains condition</source>
818
+ </trans-unit>
819
+ <trans-unit id="9">
820
+ <source xml:space="preserve">#### List</source>
821
+ </trans-unit>
822
+ <trans-unit id="10">
823
+ <source xml:space="preserve">Inline contains condition</source>
824
+ </trans-unit>
825
+ <trans-unit id="11">
826
+ <source xml:space="preserve">#### List <x ctype="liquid_Literal" equiv-text="{% if list contains &quot;item&quot; %}" id="x-2"/> sub text</source>
827
+ </trans-unit>
828
+ </body>
829
+ </file>
830
+ </xliff>"
831
+ `;
832
+
833
+ exports[`Translate command > do not resolve liquid conditions if vars not specified and send content as is for extract 3`] = `
834
+ "title: '%%%0%%%'
835
+ href: index.md
836
+ items:
837
+ - name: '%%%1%%%'
838
+ href: index.md
839
+ "
840
+ `;
841
+
842
+ exports[`Translate command > do not resolve liquid conditions if vars not specified and send content as is for extract 4`] = `
843
+ "<?xml version="1.0" encoding="UTF-8"?>
844
+ <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
845
+ <file original="file.ext" source-language="ru-RU" target-language="es-ES" datatype="markdown">
846
+ <header>
847
+ <skeleton>
848
+ <external-file href="file.skl"></external-file>
849
+ </skeleton>
850
+ </header>
851
+ <body>
852
+ <trans-unit id="0">
853
+ <source xml:space="preserve">Conditions</source>
854
+ </trans-unit>
855
+ <trans-unit id="1">
856
+ <source xml:space="preserve">Example</source>
857
+ </trans-unit>
858
+ </body>
859
+ </file>
860
+ </xliff>"
861
+ `;
862
+
863
+ exports[`Translate command > do not translate merged entries with included toc > filelist 1`] = `
864
+ "[
865
+ "included-toc.md.skl",
866
+ "included-toc.md.xliff",
867
+ "index.md.skl",
868
+ "index.md.xliff",
869
+ "merged-included-toc-item.md.skl",
870
+ "merged-included-toc-item.md.xliff",
871
+ "no-translate.md.skl",
872
+ "no-translate.md.xliff",
873
+ "openapi-spec.yaml.skl",
874
+ "openapi-spec.yaml.xliff",
875
+ "toc.yaml.skl",
876
+ "toc.yaml.xliff"
877
+ ]"
878
+ `;
879
+
880
+ exports[`Translate command > extract openapi spec files > filelist 1`] = `
881
+ "[
882
+ "openapi-spec.yaml.skl",
883
+ "openapi-spec.yaml.xliff",
884
+ "toc.yaml.skl",
885
+ "toc.yaml.xliff"
886
+ ]"
887
+ `;
888
+
889
+ exports[`Translate command > extract openapi spec files 1`] = `
890
+ "openapi: 3.0.1
891
+ info:
892
+ title: '%%%0%%%'
893
+ version: v0
894
+ servers:
895
+ - url: http://localhost:8080
896
+ description: '%%%1%%%'
897
+ paths:
898
+ /test:
899
+ get:
900
+ tags:
901
+ - test-controller
902
+ summary: '%%%2%%%'
903
+ description: '%%%3%%%'
904
+ operationId: getWithPayloadResponse
905
+ responses:
906
+ '200':
907
+ description: '%%%4%%%'
908
+ content:
909
+ application/json:
910
+ schema:
911
+ $ref: '#/components/schemas/RecurceTop'
912
+ components:
913
+ schemas:
914
+ ResolvingCaseChild:
915
+ description: '%%%9%%%'
916
+ RecurceTop:
917
+ type: object
918
+ properties:
919
+ A:
920
+ type: string
921
+ description: |
922
+ %%%5%%%
923
+ - %%%6%%%
924
+ - %%%7%%%
925
+ - %%%8%%%
926
+ RecurceMiddle:
927
+ type: object
928
+ properties:
929
+ B:
930
+ type: array
931
+ items:
932
+ $ref: '#/components/schemas/RecurceTop'
933
+ ResolvingCase:
934
+ type: object
935
+ properties:
936
+ withrefprop:
937
+ description: Parent description
938
+ $ref: '#/components/schemas/ResolvingCaseChild'
939
+ "
940
+ `;
941
+
942
+ exports[`Translate command > extract openapi spec files 2`] = `
943
+ "<?xml version="1.0" encoding="UTF-8"?>
944
+ <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
945
+ <file original="file.ext" source-language="ru-RU" target-language="es-ES" datatype="markdown">
946
+ <header>
947
+ <skeleton>
948
+ <external-file href="file.skl"></external-file>
949
+ </skeleton>
950
+ </header>
951
+ <body>
952
+ <trans-unit id="0">
953
+ <source xml:space="preserve">OpenAPI definition</source>
954
+ </trans-unit>
955
+ <trans-unit id="1">
956
+ <source xml:space="preserve">Generated server url</source>
957
+ </trans-unit>
958
+ <trans-unit id="2">
959
+ <source xml:space="preserve">Simple get operation. тест новой верстки 3</source>
960
+ </trans-unit>
961
+ <trans-unit id="3">
962
+ <source xml:space="preserve">Defines a simple get operation with no inputs and a complex</source>
963
+ </trans-unit>
964
+ <trans-unit id="4">
965
+ <source xml:space="preserve">200!!!!</source>
966
+ </trans-unit>
967
+ <trans-unit id="5">
968
+ <source xml:space="preserve">Статус загрузки:</source>
969
+ </trans-unit>
970
+ <trans-unit id="6">
971
+ <source xml:space="preserve"><x ctype="code_open" equiv-text="\`" id="x-1"/>UPLOADED<x ctype="code_close" equiv-text="\`" id="x-2"/> — загрузка завершена.</source>
972
+ </trans-unit>
973
+ <trans-unit id="7">
974
+ <source xml:space="preserve"><x ctype="code_open" equiv-text="\`" id="x-3"/>IN_PROGRESS<x ctype="code_close" equiv-text="\`" id="x-4"/> — загрузка находится в процессе обработки.</source>
975
+ </trans-unit>
976
+ <trans-unit id="8">
977
+ <source xml:space="preserve"><x ctype="code_open" equiv-text="\`" id="x-5"/>PROCESSED<x ctype="code_close" equiv-text="\`" id="x-6"/> — загрузка успешно обработана.</source>
978
+ </trans-unit>
979
+ <trans-unit id="9">
980
+ <source xml:space="preserve">Child description</source>
981
+ </trans-unit>
982
+ </body>
983
+ </file>
984
+ </xliff>"
985
+ `;
986
+
987
+ exports[`Translate command > extract openapi spec files 3`] = `
988
+ "items:
989
+ - name: '%%%0%%%'
990
+ include:
991
+ path: openapi
992
+ includers:
993
+ - name: openapi
994
+ input: openapi-spec.yaml
995
+ mode: link
996
+ "
997
+ `;
998
+
999
+ exports[`Translate command > extract openapi spec files 4`] = `
1000
+ "<?xml version="1.0" encoding="UTF-8"?>
1001
+ <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
1002
+ <file original="file.ext" source-language="ru-RU" target-language="es-ES" datatype="markdown">
1003
+ <header>
1004
+ <skeleton>
1005
+ <external-file href="file.skl"></external-file>
1006
+ </skeleton>
1007
+ </header>
1008
+ <body>
1009
+ <trans-unit id="0">
1010
+ <source xml:space="preserve">openapi</source>
1011
+ </trans-unit>
1012
+ </body>
1013
+ </file>
1014
+ </xliff>"
1015
+ `;
1016
+
1017
+ exports[`Translate command > extract openapi spec files with --no-ref-resolve option > filelist 1`] = `
1018
+ "[
1019
+ "openapi-spec.yaml.skl",
1020
+ "openapi-spec.yaml.xliff",
1021
+ "toc.yaml.skl",
1022
+ "toc.yaml.xliff"
1023
+ ]"
1024
+ `;
1025
+
1026
+ exports[`Translate command > extract openapi spec files with --no-ref-resolve option 1`] = `
1027
+ "openapi: 3.0.1
1028
+ info:
1029
+ title: '%%%0%%%'
1030
+ version: v0
1031
+ servers:
1032
+ - url: http://localhost:8080
1033
+ description: '%%%1%%%'
1034
+ paths:
1035
+ /test:
1036
+ get:
1037
+ tags:
1038
+ - test-controller
1039
+ summary: '%%%2%%%'
1040
+ description: '%%%3%%%'
1041
+ operationId: getWithPayloadResponse
1042
+ responses:
1043
+ '200':
1044
+ description: '%%%4%%%'
1045
+ content:
1046
+ application/json:
1047
+ schema:
1048
+ $ref: '#/components/schemas/RecurceTop'
1049
+ components:
1050
+ schemas:
1051
+ ResolvingCaseChild:
1052
+ description: '%%%5%%%'
1053
+ RecurceTop:
1054
+ type: object
1055
+ properties:
1056
+ A:
1057
+ type: string
1058
+ description: |
1059
+ %%%6%%%
1060
+ - %%%7%%%
1061
+ - %%%8%%%
1062
+ - %%%9%%%
1063
+ RecurceMiddle:
1064
+ type: object
1065
+ properties:
1066
+ B:
1067
+ type: array
1068
+ items:
1069
+ $ref: '#/components/schemas/RecurceTop'
1070
+ ResolvingCase:
1071
+ type: object
1072
+ properties:
1073
+ withrefprop:
1074
+ description: '%%%10%%%'
1075
+ $ref: '#/components/schemas/ResolvingCaseChild'
1076
+ "
1077
+ `;
1078
+
1079
+ exports[`Translate command > extract openapi spec files with --no-ref-resolve option 2`] = `
1080
+ "<?xml version="1.0" encoding="UTF-8"?>
1081
+ <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
1082
+ <file original="file.ext" source-language="ru-RU" target-language="es-ES" datatype="markdown">
1083
+ <header>
1084
+ <skeleton>
1085
+ <external-file href="file.skl"></external-file>
1086
+ </skeleton>
1087
+ </header>
1088
+ <body>
1089
+ <trans-unit id="0">
1090
+ <source xml:space="preserve">OpenAPI definition</source>
1091
+ </trans-unit>
1092
+ <trans-unit id="1">
1093
+ <source xml:space="preserve">Generated server url</source>
1094
+ </trans-unit>
1095
+ <trans-unit id="2">
1096
+ <source xml:space="preserve">Simple get operation. тест новой верстки 3</source>
1097
+ </trans-unit>
1098
+ <trans-unit id="3">
1099
+ <source xml:space="preserve">Defines a simple get operation with no inputs and a complex</source>
1100
+ </trans-unit>
1101
+ <trans-unit id="4">
1102
+ <source xml:space="preserve">200!!!!</source>
1103
+ </trans-unit>
1104
+ <trans-unit id="5">
1105
+ <source xml:space="preserve">Child description</source>
1106
+ </trans-unit>
1107
+ <trans-unit id="6">
1108
+ <source xml:space="preserve">Статус загрузки:</source>
1109
+ </trans-unit>
1110
+ <trans-unit id="7">
1111
+ <source xml:space="preserve"><x ctype="code_open" equiv-text="\`" id="x-1"/>UPLOADED<x ctype="code_close" equiv-text="\`" id="x-2"/> — загрузка завершена.</source>
1112
+ </trans-unit>
1113
+ <trans-unit id="8">
1114
+ <source xml:space="preserve"><x ctype="code_open" equiv-text="\`" id="x-3"/>IN_PROGRESS<x ctype="code_close" equiv-text="\`" id="x-4"/> — загрузка находится в процессе обработки.</source>
1115
+ </trans-unit>
1116
+ <trans-unit id="9">
1117
+ <source xml:space="preserve"><x ctype="code_open" equiv-text="\`" id="x-5"/>PROCESSED<x ctype="code_close" equiv-text="\`" id="x-6"/> — загрузка успешно обработана.</source>
1118
+ </trans-unit>
1119
+ <trans-unit id="10">
1120
+ <source xml:space="preserve">Parent description</source>
1121
+ </trans-unit>
1122
+ </body>
1123
+ </file>
1124
+ </xliff>"
1125
+ `;
1126
+
1127
+ exports[`Translate command > extract openapi spec files with --no-ref-resolve option 3`] = `
1128
+ "items:
1129
+ - name: '%%%0%%%'
1130
+ include:
1131
+ path: openapi
1132
+ includers:
1133
+ - name: openapi
1134
+ input: openapi-spec.yaml
1135
+ mode: link
1136
+ "
1137
+ `;
1138
+
1139
+ exports[`Translate command > extract openapi spec files with --no-ref-resolve option 4`] = `
1140
+ "<?xml version="1.0" encoding="UTF-8"?>
1141
+ <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
1142
+ <file original="file.ext" source-language="ru-RU" target-language="es-ES" datatype="markdown">
1143
+ <header>
1144
+ <skeleton>
1145
+ <external-file href="file.skl"></external-file>
1146
+ </skeleton>
1147
+ </header>
1148
+ <body>
1149
+ <trans-unit id="0">
1150
+ <source xml:space="preserve">openapi</source>
1151
+ </trans-unit>
1152
+ </body>
1153
+ </file>
1154
+ </xliff>"
1155
+ `;
1156
+
1157
+ exports[`Translate command > extract openapi spec files with custom openapi schema provided 1`] = `
1158
+ "openapi: 3.0.1
1159
+ info:
1160
+ title: '%%%0%%%'
1161
+ version: v0
1162
+ servers:
1163
+ - url: http://localhost:8080
1164
+ description: '%%%1%%%'
1165
+ paths:
1166
+ /test:
1167
+ get:
1168
+ tags:
1169
+ - '%%%2%%%'
1170
+ summary: '%%%3%%%'
1171
+ description: '%%%4%%%'
1172
+ operationId: getWithPayloadResponse
1173
+ responses:
1174
+ '200':
1175
+ description: '%%%5%%%'
1176
+ content:
1177
+ application/json:
1178
+ schema:
1179
+ $ref: '#/components/schemas/RecurceTop'
1180
+ components:
1181
+ schemas:
1182
+ ResolvingCaseChild:
1183
+ description: '%%%10%%%'
1184
+ RecurceTop:
1185
+ type: object
1186
+ properties:
1187
+ A:
1188
+ type: string
1189
+ description: |
1190
+ %%%6%%%
1191
+ - %%%7%%%
1192
+ - %%%8%%%
1193
+ - %%%9%%%
1194
+ RecurceMiddle:
1195
+ type: object
1196
+ properties:
1197
+ B:
1198
+ type: array
1199
+ items:
1200
+ $ref: '#/components/schemas/RecurceTop'
1201
+ ResolvingCase:
1202
+ type: object
1203
+ properties:
1204
+ withrefprop:
1205
+ description: Parent description
1206
+ $ref: '#/components/schemas/ResolvingCaseChild'
1207
+ "
1208
+ `;
1209
+
1210
+ exports[`Translate command > extract openapi spec files with custom openapi schema provided 2`] = `
1211
+ "<?xml version="1.0" encoding="UTF-8"?>
1212
+ <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
1213
+ <file original="file.ext" source-language="ru-RU" target-language="es-ES" datatype="markdown">
1214
+ <header>
1215
+ <skeleton>
1216
+ <external-file href="file.skl"></external-file>
1217
+ </skeleton>
1218
+ </header>
1219
+ <body>
1220
+ <trans-unit id="0">
1221
+ <source xml:space="preserve">OpenAPI definition</source>
1222
+ </trans-unit>
1223
+ <trans-unit id="1">
1224
+ <source xml:space="preserve">Generated server url</source>
1225
+ </trans-unit>
1226
+ <trans-unit id="2">
1227
+ <source xml:space="preserve">test-controller</source>
1228
+ </trans-unit>
1229
+ <trans-unit id="3">
1230
+ <source xml:space="preserve">Simple get operation. тест новой верстки 3</source>
1231
+ </trans-unit>
1232
+ <trans-unit id="4">
1233
+ <source xml:space="preserve">Defines a simple get operation with no inputs and a complex</source>
1234
+ </trans-unit>
1235
+ <trans-unit id="5">
1236
+ <source xml:space="preserve">200!!!!</source>
1237
+ </trans-unit>
1238
+ <trans-unit id="6">
1239
+ <source xml:space="preserve">Статус загрузки:</source>
1240
+ </trans-unit>
1241
+ <trans-unit id="7">
1242
+ <source xml:space="preserve"><x ctype="code_open" equiv-text="\`" id="x-1"/>UPLOADED<x ctype="code_close" equiv-text="\`" id="x-2"/> — загрузка завершена.</source>
1243
+ </trans-unit>
1244
+ <trans-unit id="8">
1245
+ <source xml:space="preserve"><x ctype="code_open" equiv-text="\`" id="x-3"/>IN_PROGRESS<x ctype="code_close" equiv-text="\`" id="x-4"/> — загрузка находится в процессе обработки.</source>
1246
+ </trans-unit>
1247
+ <trans-unit id="9">
1248
+ <source xml:space="preserve"><x ctype="code_open" equiv-text="\`" id="x-5"/>PROCESSED<x ctype="code_close" equiv-text="\`" id="x-6"/> — загрузка успешно обработана.</source>
1249
+ </trans-unit>
1250
+ <trans-unit id="10">
1251
+ <source xml:space="preserve">Child description</source>
1252
+ </trans-unit>
1253
+ </body>
1254
+ </file>
1255
+ </xliff>"
1256
+ `;
1257
+
1258
+ exports[`Translate command > extract openapi spec files with custom openapi schema provided 3`] = `
1259
+ "items:
1260
+ - name: '%%%0%%%'
1261
+ include:
1262
+ path: openapi
1263
+ includers:
1264
+ - name: openapi
1265
+ input: openapi-spec.yaml
1266
+ mode: link
1267
+ "
1268
+ `;
1269
+
1270
+ exports[`Translate command > extract openapi spec files with custom openapi schema provided 4`] = `
1271
+ "<?xml version="1.0" encoding="UTF-8"?>
1272
+ <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
1273
+ <file original="file.ext" source-language="ru-RU" target-language="es-ES" datatype="markdown">
1274
+ <header>
1275
+ <skeleton>
1276
+ <external-file href="file.skl"></external-file>
1277
+ </skeleton>
1278
+ </header>
1279
+ <body>
1280
+ <trans-unit id="0">
1281
+ <source xml:space="preserve">openapi</source>
1282
+ </trans-unit>
1283
+ </body>
1284
+ </file>
1285
+ </xliff>"
1286
+ `;
1287
+
1288
+ exports[`Translate command > extract yaml scheme files > filelist 1`] = `
1289
+ "[
1290
+ "en/index-direct.yaml.skl",
1291
+ "en/index-direct.yaml.xliff",
1292
+ "en/index.yaml.skl",
1293
+ "en/index.yaml.xliff",
1294
+ "en/toc.yaml.skl",
1295
+ "en/toc.yaml.xliff"
1296
+ ]"
1297
+ `;
1298
+
1299
+ exports[`Translate command > extract yaml scheme files 1`] = `
1300
+ "meta:
1301
+ title: '%%%0%%%'
1302
+ description: '%%%1%%%'
1303
+ fullScreen: true
1304
+ blocks:
1305
+ - type: header-block
1306
+ title: <div class="u-breadcrumbs"></div>
1307
+ breadcrumbs:
1308
+ items:
1309
+ - text: '%%%2%%%'
1310
+ url: https://site.ru/support/
1311
+ - text: '%%%3%%%'
1312
+ url: https://site.ru/support/adv/
1313
+ - type: filter-block
1314
+ centered: false
1315
+ title:
1316
+ text: '%%%4%%%'
1317
+ tags:
1318
+ - id: one
1319
+ label: '%%%5%%%'
1320
+ - id: two
1321
+ label: '%%%6%%%'
1322
+ colSizes:
1323
+ all: 12
1324
+ xl: 4
1325
+ sm: 6
1326
+ md: 4
1327
+ items:
1328
+ - tags:
1329
+ - one
1330
+ card:
1331
+ type: image-card
1332
+ image: https://site.ru/img/orig
1333
+ title: '%%%7%%%'
1334
+ text: <div>%%%8%%%</div><div class="u-card__more">%%%9%%%
1335
+ margins: m
1336
+ border: shadow
1337
+ url: unified-performance-campaign/about.md
1338
+ urlTitle: '%%%10%%%'
1339
+ - tags:
1340
+ - one
1341
+ card:
1342
+ type: image-card
1343
+ image: https://site.ru/img2/orig
1344
+ title: '%%%11%%%'
1345
+ text: <div>%%%12%%%</div><div class="u-card__more">%%%13%%%
1346
+ margins: m
1347
+ border: shadow
1348
+ url: campaign-master/product-campaign.md
1349
+ urlTitle: '%%%14%%%'
1350
+ - tags:
1351
+ - one
1352
+ card:
1353
+ type: image-card
1354
+ image: https://site.ru/img2/orig
1355
+ title: '%%%15%%%'
1356
+ text: <div>%%%16%%%</div><div class="u-card__more">%%%17%%%
1357
+ margins: m
1358
+ border: shadow
1359
+ url: efficiency/telegram-ads.md
1360
+ urlTitle: '%%%18%%%'
1361
+ - tags:
1362
+ - one
1363
+ card:
1364
+ type: background-card
1365
+ title: '%%%19%%%'
1366
+ text: ''
1367
+ backgroundColor: '#F3F6FC'
1368
+ border: line
1369
+ links:
1370
+ - text: '%%%20%%%'
1371
+ url: statistics.md
1372
+ arrow: true
1373
+ theme: normal
1374
+ - text: '%%%21%%%'
1375
+ url: feeds/about.md
1376
+ arrow: true
1377
+ theme: normal
1378
+ - tags:
1379
+ - one
1380
+ card:
1381
+ type: background-card
1382
+ title: '%%%22%%%'
1383
+ text: ''
1384
+ backgroundColor: '#F3F6FC'
1385
+ border: line
1386
+ links:
1387
+ - text: '%%%23%%%'
1388
+ url: moderation/adv-rules.md
1389
+ arrow: true
1390
+ theme: normal
1391
+ - text: '%%%24%%%'
1392
+ url: technologies-and-services/technologies-and-services.md
1393
+ arrow: true
1394
+ theme: normal
1395
+ - text: '%%%25%%%'
1396
+ url: troubleshooting/other.md
1397
+ arrow: true
1398
+ theme: normal
1399
+ - tags:
1400
+ - one
1401
+ card:
1402
+ type: background-card
1403
+ title: '%%%26%%%'
1404
+ text: ''
1405
+ backgroundColor: '#F3F6FC'
1406
+ border: line
1407
+ links:
1408
+ - text: '%%%27%%%'
1409
+ url: glossary.md
1410
+ arrow: true
1411
+ theme: normal
1412
+ - tags:
1413
+ - two
1414
+ card:
1415
+ type: image-card
1416
+ image: https://site.ru/img4/orig
1417
+ title: '%%%28%%%'
1418
+ text: <div>%%%29%%%</div><div class="u-card__more">%%%30%%%
1419
+ margins: m
1420
+ border: shadow
1421
+ url: products-automatic/about.md
1422
+ urlTitle: '%%%31%%%'
1423
+ animated: false
1424
+ "
1425
+ `;
1426
+
1427
+ exports[`Translate command > extract yaml scheme files 2`] = `
1428
+ "<?xml version="1.0" encoding="UTF-8"?>
1429
+ <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
1430
+ <file original="file.ext" source-language="ru-RU" target-language="en-US" datatype="markdown">
1431
+ <header>
1432
+ <skeleton>
1433
+ <external-file href="file.skl"></external-file>
1434
+ </skeleton>
1435
+ </header>
1436
+ <body>
1437
+ <trans-unit id="0">
1438
+ <source xml:space="preserve">Справка Сервиса</source>
1439
+ </trans-unit>
1440
+ <trans-unit id="1">
1441
+ <source xml:space="preserve">В Справке Сервиса собрали всю необходимую информацию.</source>
1442
+ </trans-unit>
1443
+ <trans-unit id="2">
1444
+ <source xml:space="preserve">Справка</source>
1445
+ </trans-unit>
1446
+ <trans-unit id="3">
1447
+ <source xml:space="preserve">Реклама</source>
1448
+ </trans-unit>
1449
+ <trans-unit id="4">
1450
+ <source xml:space="preserve">Сервис</source>
1451
+ </trans-unit>
1452
+ <trans-unit id="5">
1453
+ <source xml:space="preserve">Для специалистов</source>
1454
+ </trans-unit>
1455
+ <trans-unit id="6">
1456
+ <source xml:space="preserve">Для предпринимателей</source>
1457
+ </trans-unit>
1458
+ <trans-unit id="7">
1459
+ <source xml:space="preserve">Единая перфоманс-кампания</source>
1460
+ </trans-unit>
1461
+ <trans-unit id="8">
1462
+ <source xml:space="preserve">Комплексно решайте любые перфоманс-задачи в рамках одной кампании</source>
1463
+ </trans-unit>
1464
+ <trans-unit id="9">
1465
+ <source xml:space="preserve">Подробнее&lt;/&gt;</source>
1466
+ </trans-unit>
1467
+ <trans-unit id="10">
1468
+ <source xml:space="preserve">Подробнее</source>
1469
+ </trans-unit>
1470
+ <trans-unit id="11">
1471
+ <source xml:space="preserve">Товарная кампания</source>
1472
+ </trans-unit>
1473
+ <trans-unit id="12">
1474
+ <source xml:space="preserve">Используйте простой инструмент для продвижения товаров интернете</source>
1475
+ </trans-unit>
1476
+ <trans-unit id="13">
1477
+ <source xml:space="preserve">Подробнее&lt;/&gt;</source>
1478
+ </trans-unit>
1479
+ <trans-unit id="14">
1480
+ <source xml:space="preserve">Подробнее</source>
1481
+ </trans-unit>
1482
+ <trans-unit id="15">
1483
+ <source xml:space="preserve">Реклама в Telegram</source>
1484
+ </trans-unit>
1485
+ <trans-unit id="16">
1486
+ <source xml:space="preserve">Покажите релевантную рекламу в телеграм-каналах партнеров РСЯ</source>
1487
+ </trans-unit>
1488
+ <trans-unit id="17">
1489
+ <source xml:space="preserve">Подробнее&lt;/&gt;</source>
1490
+ </trans-unit>
1491
+ <trans-unit id="18">
1492
+ <source xml:space="preserve">Подробнее</source>
1493
+ </trans-unit>
1494
+ <trans-unit id="19">
1495
+ <source xml:space="preserve">Часто ищут</source>
1496
+ </trans-unit>
1497
+ <trans-unit id="20">
1498
+ <source xml:space="preserve">Статистика</source>
1499
+ </trans-unit>
1500
+ <trans-unit id="21">
1501
+ <source xml:space="preserve">Управление фидами</source>
1502
+ </trans-unit>
1503
+ <trans-unit id="22">
1504
+ <source xml:space="preserve">Сервисные функции</source>
1505
+ </trans-unit>
1506
+ <trans-unit id="23">
1507
+ <source xml:space="preserve">Правила и модерация</source>
1508
+ </trans-unit>
1509
+ <trans-unit id="24">
1510
+ <source xml:space="preserve">Технологии и сервисы</source>
1511
+ </trans-unit>
1512
+ <trans-unit id="25">
1513
+ <source xml:space="preserve">Поддержка 24/7</source>
1514
+ </trans-unit>
1515
+ <trans-unit id="26">
1516
+ <source xml:space="preserve">Полезные ссылки</source>
1517
+ </trans-unit>
1518
+ <trans-unit id="27">
1519
+ <source xml:space="preserve">Глоссарий</source>
1520
+ </trans-unit>
1521
+ <trans-unit id="28">
1522
+ <source xml:space="preserve">Простой старт</source>
1523
+ </trans-unit>
1524
+ <trans-unit id="29">
1525
+ <source xml:space="preserve">Минимум ручных настроек: достаточно указать ссылку на сайт</source>
1526
+ </trans-unit>
1527
+ <trans-unit id="30">
1528
+ <source xml:space="preserve">Подробнее&lt;/&gt;</source>
1529
+ </trans-unit>
1530
+ <trans-unit id="31">
1531
+ <source xml:space="preserve">Подробнее</source>
1532
+ </trans-unit>
1533
+ </body>
1534
+ </file>
1535
+ </xliff>"
1536
+ `;
1537
+
1538
+ exports[`Translate command > extract yaml scheme files 3`] = `
1539
+ "blocks:
1540
+ - type: content-layout-block
1541
+ textWidth: l
1542
+ textContent:
1543
+ title: '%%%0%%%'
1544
+ text: |2-
1545
+ %%%1%%%
1546
+ - %%%2%%%
1547
+ - %%%3%%%
1548
+
1549
+ - type: card-layout-block
1550
+ colSizes:
1551
+ all: 12
1552
+ lg: 4
1553
+ md: 6
1554
+ sm: 12
1555
+ xl: 4
1556
+ indent:
1557
+ bottom: xs
1558
+ title: '%%%4%%%'
1559
+ animated: false
1560
+ children:
1561
+ - type: basic-card
1562
+ title: '%%%5%%%'
1563
+ text: '%%%6%%%'
1564
+ urlTitle: '%%%7%%%'
1565
+ border: shadow
1566
+ controlPosition: content
1567
+ url: management/index
1568
+ target: ''
1569
+ animated: false
1570
+ "
1571
+ `;
1572
+
1573
+ exports[`Translate command > extract yaml scheme files 4`] = `
1574
+ "<?xml version="1.0" encoding="UTF-8"?>
1575
+ <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
1576
+ <file original="file.ext" source-language="ru-RU" target-language="en-US" datatype="markdown">
1577
+ <header>
1578
+ <skeleton>
1579
+ <external-file href="file.skl"></external-file>
1580
+ </skeleton>
1581
+ </header>
1582
+ <body>
1583
+ <trans-unit id="0">
1584
+ <source xml:space="preserve">Введение</source>
1585
+ </trans-unit>
1586
+ <trans-unit id="1">
1587
+ <source xml:space="preserve">API сервиса: - Управлять счетчиками, их настройками и правами доступа, не используя веб-интерфейс.</source>
1588
+ </trans-unit>
1589
+ <trans-unit id="2">
1590
+ <source xml:space="preserve">Получать информацию о посещаемости сайта и другие данные.</source>
1591
+ </trans-unit>
1592
+ <trans-unit id="3">
1593
+ <source xml:space="preserve">Формировать отчеты, в том числе с помощью сегментации и параметризации.</source>
1594
+ </trans-unit>
1595
+ <trans-unit id="4">
1596
+ <source xml:space="preserve">Виды API</source>
1597
+ </trans-unit>
1598
+ <trans-unit id="5">
1599
+ <source xml:space="preserve">API управления</source>
1600
+ </trans-unit>
1601
+ <trans-unit id="6">
1602
+ <source xml:space="preserve">Управление счетчиками, целями, фильтрами и другими объектами Сервиса (например, создать счетчик, отредактировать его настройки, создать цель, выдать права доступа).</source>
1603
+ </trans-unit>
1604
+ <trans-unit id="7">
1605
+ <source xml:space="preserve">API управления</source>
1606
+ </trans-unit>
1607
+ </body>
1608
+ </file>
1609
+ </xliff>"
1610
+ `;
1611
+
1612
+ exports[`Translate command > extract yaml scheme files 5`] = `
1613
+ "title: '%%%0%%%'
1614
+ href: index.yaml
1615
+ items:
1616
+ - name: '%%%4%%%'
1617
+ - href: index-direct.yaml
1618
+ navigation:
1619
+ header:
1620
+ leftItems:
1621
+ - text: '%%%2%%%'
1622
+ type: dropdown
1623
+ items:
1624
+ - text: '%%%3%%%'
1625
+ type: link
1626
+ href: menu/item
1627
+ logo:
1628
+ light:
1629
+ icon: https://icon.link/logo.svg
1630
+ url: https://site.ru
1631
+ urlTitle: '%%%1%%%'
1632
+ "
1633
+ `;
1634
+
1635
+ exports[`Translate command > extract yaml scheme files 6`] = `
1636
+ "<?xml version="1.0" encoding="UTF-8"?>
1637
+ <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
1638
+ <file original="file.ext" source-language="ru-RU" target-language="en-US" datatype="markdown">
1639
+ <header>
1640
+ <skeleton>
1641
+ <external-file href="file.skl"></external-file>
1642
+ </skeleton>
1643
+ </header>
1644
+ <body>
1645
+ <trans-unit id="0">
1646
+ <source xml:space="preserve">Заголовок</source>
1647
+ </trans-unit>
1648
+ <trans-unit id="1">
1649
+ <source xml:space="preserve">На сайт сервиса</source>
1650
+ </trans-unit>
1651
+ <trans-unit id="2">
1652
+ <source xml:space="preserve">Инструменты</source>
1653
+ </trans-unit>
1654
+ <trans-unit id="3">
1655
+ <source xml:space="preserve">Пункт меню</source>
1656
+ </trans-unit>
1657
+ <trans-unit id="4">
1658
+ <source xml:space="preserve">Дочерняя страница</source>
1659
+ </trans-unit>
1660
+ </body>
1661
+ </file>
1662
+ </xliff>"
1663
+ `;
1664
+
1665
+ exports[`Translate command > filter files on extract > filelist 1`] = `
1666
+ "[
1667
+ "es/_includes/test.md.skl",
1668
+ "es/_includes/test.md.xliff",
1669
+ "es/aboba.md.skl",
1670
+ "es/aboba.md.xliff",
1671
+ "es/index.md.skl",
1672
+ "es/index.md.xliff",
1673
+ "es/nested/a1.md.skl",
1674
+ "es/nested/a1.md.xliff",
1675
+ "es/nested/index.yaml.skl",
1676
+ "es/nested/index.yaml.xliff",
1677
+ "es/nested/syntax/base.md.skl",
1678
+ "es/nested/syntax/base.md.xliff",
1679
+ "es/nested/syntax/index.md.skl",
1680
+ "es/nested/syntax/index.md.xliff",
1681
+ "es/nested/syntax/lists.md.skl",
1682
+ "es/nested/syntax/lists.md.xliff",
1683
+ "es/nested/toc.yaml.skl",
1684
+ "es/nested/toc.yaml.xliff",
1685
+ "es/nested/use_filtered_above.md.skl",
1686
+ "es/nested/use_filtered_above.md.xliff",
1687
+ "es/no-var-page.md.skl",
1688
+ "es/no-var-page.md.xliff",
1689
+ "es/to-be-excluded.md.skl",
1690
+ "es/to-be-excluded.md.xliff",
1691
+ "es/toc.yaml.skl",
1692
+ "es/toc.yaml.xliff"
1693
+ ]"
1694
+ `;
1695
+
1696
+ exports[`Translate command > filter files on extract with extra exclude option > filelist 1`] = `
1697
+ "[
1698
+ "es/_includes/test.md.skl",
1699
+ "es/_includes/test.md.xliff",
1700
+ "es/aboba.md.skl",
1701
+ "es/aboba.md.xliff",
1702
+ "es/index.md.skl",
1703
+ "es/index.md.xliff",
1704
+ "es/nested/a1.md.skl",
1705
+ "es/nested/a1.md.xliff",
1706
+ "es/nested/index.yaml.skl",
1707
+ "es/nested/index.yaml.xliff",
1708
+ "es/nested/syntax/base.md.skl",
1709
+ "es/nested/syntax/base.md.xliff",
1710
+ "es/nested/syntax/index.md.skl",
1711
+ "es/nested/syntax/index.md.xliff",
1712
+ "es/nested/syntax/lists.md.skl",
1713
+ "es/nested/syntax/lists.md.xliff",
1714
+ "es/nested/toc.yaml.skl",
1715
+ "es/nested/toc.yaml.xliff",
1716
+ "es/nested/use_filtered_above.md.skl",
1717
+ "es/nested/use_filtered_above.md.xliff",
1718
+ "es/no-var-page.md.skl",
1719
+ "es/no-var-page.md.xliff",
1720
+ "es/toc.yaml.skl",
1721
+ "es/toc.yaml.xliff"
1722
+ ]"
1723
+ `;
1724
+
1725
+ exports[`Translate command > filter files on extract with extra vars option > filelist 1`] = `
1726
+ "[
1727
+ "es/_includes/test.md.skl",
1728
+ "es/_includes/test.md.xliff",
1729
+ "es/_no-translate/exclude.md.skl",
1730
+ "es/_no-translate/exclude.md.xliff",
1731
+ "es/aboba.md.skl",
1732
+ "es/aboba.md.xliff",
1733
+ "es/index.md.skl",
1734
+ "es/index.md.xliff",
1735
+ "es/nested/a1.md.skl",
1736
+ "es/nested/a1.md.xliff",
1737
+ "es/nested/index.yaml.skl",
1738
+ "es/nested/index.yaml.xliff",
1739
+ "es/nested/syntax/base.md.skl",
1740
+ "es/nested/syntax/base.md.xliff",
1741
+ "es/nested/syntax/index.md.skl",
1742
+ "es/nested/syntax/index.md.xliff",
1743
+ "es/nested/syntax/lists.md.skl",
1744
+ "es/nested/syntax/lists.md.xliff",
1745
+ "es/nested/toc.yaml.skl",
1746
+ "es/nested/toc.yaml.xliff",
1747
+ "es/nested/use_filtered_above.md.skl",
1748
+ "es/nested/use_filtered_above.md.xliff",
1749
+ "es/no-var-page.md.skl",
1750
+ "es/no-var-page.md.xliff",
1751
+ "es/to-be-excluded.md.skl",
1752
+ "es/to-be-excluded.md.xliff",
1753
+ "es/toc.yaml.skl",
1754
+ "es/toc.yaml.xliff"
1755
+ ]"
1756
+ `;
1757
+
1758
+ exports[`Translate command > remove falsy liquid conditions structures > filelist 1`] = `
1759
+ "[
1760
+ "index.md.skl",
1761
+ "index.md.xliff",
1762
+ "toc.yaml.skl",
1763
+ "toc.yaml.xliff"
1764
+ ]"
1765
+ `;
1766
+
1767
+ exports[`Translate command > remove falsy liquid conditions structures 1`] = `
1768
+ "%%%0%%%
1769
+ <!-- [missed file](./missed.md) -->
1770
+
1771
+
1772
+
1773
+
1774
+ #### %%%1%%%
1775
+
1776
+ {% if list contains "item" %}
1777
+
1778
+ %%%2%%%
1779
+
1780
+ {% endif %}
1781
+
1782
+ #### %%%3%%%
1783
+
1784
+ "
1785
+ `;
1786
+
1787
+ exports[`Translate command > remove falsy liquid conditions structures 2`] = `
1788
+ "<?xml version="1.0" encoding="UTF-8"?>
1789
+ <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
1790
+ <file original="file.ext" source-language="ru-RU" target-language="es-ES" datatype="markdown">
1791
+ <header>
1792
+ <skeleton>
1793
+ <external-file href="file.skl"></external-file>
1794
+ </skeleton>
1795
+ </header>
1796
+ <body>
1797
+ <trans-unit id="0">
1798
+ <source xml:space="preserve"><g ctype="link" equiv-text="[{{text}}](./exists.md)" id="g-1" x-begin="[" x-end="](./exists.md)">existing file</g></source>
1799
+ </trans-unit>
1800
+ <trans-unit id="1">
1801
+ <source xml:space="preserve">Standalone contains condition</source>
1802
+ </trans-unit>
1803
+ <trans-unit id="2">
1804
+ <source xml:space="preserve">#### List</source>
1805
+ </trans-unit>
1806
+ <trans-unit id="3">
1807
+ <source xml:space="preserve">Inline contains condition</source>
1808
+ </trans-unit>
1809
+ </body>
1810
+ </file>
1811
+ </xliff>"
1812
+ `;
1813
+
1814
+ exports[`Translate command > remove falsy liquid conditions structures 3`] = `
1815
+ "title: '%%%0%%%'
1816
+ href: index.md
1817
+ items:
1818
+ - name: '%%%1%%%'
1819
+ href: index.md
1820
+ "
1821
+ `;
1822
+
1823
+ exports[`Translate command > remove falsy liquid conditions structures 4`] = `
1824
+ "<?xml version="1.0" encoding="UTF-8"?>
1825
+ <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
1826
+ <file original="file.ext" source-language="ru-RU" target-language="es-ES" datatype="markdown">
1827
+ <header>
1828
+ <skeleton>
1829
+ <external-file href="file.skl"></external-file>
1830
+ </skeleton>
1831
+ </header>
1832
+ <body>
1833
+ <trans-unit id="0">
1834
+ <source xml:space="preserve">Conditions</source>
1835
+ </trans-unit>
1836
+ <trans-unit id="1">
1837
+ <source xml:space="preserve">Example</source>
1838
+ </trans-unit>
1839
+ </body>
1840
+ </file>
1841
+ </xliff>"
1842
+ `;
1843
+
1844
+ exports[`Translate command > resolve liquid conditions if vars specified, liquid syntax will be deleted > filelist 1`] = `
1845
+ "[
1846
+ "index.md.skl",
1847
+ "index.md.xliff",
1848
+ "toc.yaml.skl",
1849
+ "toc.yaml.xliff"
1850
+ ]"
1851
+ `;
1852
+
1853
+ exports[`Translate command > resolve liquid conditions if vars specified, liquid syntax will be deleted 1`] = `
1854
+ "%%%0%%%
1855
+ <!-- [missed file](./missed.md) -->
1856
+ {% if prod == true %}%%%1%%%{% endif %}
1857
+
1858
+ {% if inner == true %}%%%2%%%{% endif %}
1859
+
1860
+ {% if prod == true %}%%%3%%%{% endif %}{% endif %}
1861
+
1862
+ {% if prod == true %}
1863
+
1864
+ {% if list contains "item" %}
1865
+
1866
+ %%%4%%%
1867
+
1868
+ {% if item == true %}%%%5%%% %%%6%%% {% endif %}
1869
+
1870
+ %%%7%%%
1871
+
1872
+ {% endif %}
1873
+
1874
+ {% endif %}
1875
+
1876
+ #### %%%8%%%
1877
+
1878
+ {% if list contains "item" %}
1879
+
1880
+ %%%9%%%
1881
+
1882
+ {% endif %}
1883
+
1884
+ #### %%%10%%%
1885
+
1886
+ {% if prod == true %}
1887
+
1888
+ %%%11%%% {% endif %}
1889
+
1890
+ {% endif %}
1891
+ "
1892
+ `;
1893
+
1894
+ exports[`Translate command > resolve liquid conditions if vars specified, liquid syntax will be deleted 2`] = `
1895
+ "<?xml version="1.0" encoding="UTF-8"?>
1896
+ <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
1897
+ <file original="file.ext" source-language="ru-RU" target-language="es-ES" datatype="markdown">
1898
+ <header>
1899
+ <skeleton>
1900
+ <external-file href="file.skl"></external-file>
1901
+ </skeleton>
1902
+ </header>
1903
+ <body>
1904
+ <trans-unit id="0">
1905
+ <source xml:space="preserve"><g ctype="link" equiv-text="[{{text}}](./exists.md)" id="g-1" x-begin="[" x-end="](./exists.md)">existing file</g></source>
1906
+ </trans-unit>
1907
+ <trans-unit id="1">
1908
+ <source xml:space="preserve">Test text</source>
1909
+ </trans-unit>
1910
+ <trans-unit id="2">
1911
+ <source xml:space="preserve">inner test text</source>
1912
+ </trans-unit>
1913
+ <trans-unit id="3">
1914
+ <source xml:space="preserve">Test text<x ctype="liquid_Literal" equiv-text="{% if inner == true %}" id="x-1"/>inner test text</source>
1915
+ </trans-unit>
1916
+ <trans-unit id="4">
1917
+ <source xml:space="preserve">#### List</source>
1918
+ </trans-unit>
1919
+ <trans-unit id="5">
1920
+ <source xml:space="preserve">1.</source>
1921
+ </trans-unit>
1922
+ <trans-unit id="6">
1923
+ <source xml:space="preserve">Item</source>
1924
+ </trans-unit>
1925
+ <trans-unit id="7">
1926
+ <source xml:space="preserve">Some text</source>
1927
+ </trans-unit>
1928
+ <trans-unit id="8">
1929
+ <source xml:space="preserve">Standalone contains condition</source>
1930
+ </trans-unit>
1931
+ <trans-unit id="9">
1932
+ <source xml:space="preserve">#### List</source>
1933
+ </trans-unit>
1934
+ <trans-unit id="10">
1935
+ <source xml:space="preserve">Inline contains condition</source>
1936
+ </trans-unit>
1937
+ <trans-unit id="11">
1938
+ <source xml:space="preserve">#### List <x ctype="liquid_Literal" equiv-text="{% if list contains &quot;item&quot; %}" id="x-2"/> sub text</source>
1939
+ </trans-unit>
1940
+ </body>
1941
+ </file>
1942
+ </xliff>"
1943
+ `;
1944
+
1945
+ exports[`Translate command > resolve liquid conditions if vars specified, liquid syntax will be deleted 3`] = `
1946
+ "title: '%%%0%%%'
1947
+ href: index.md
1948
+ items:
1949
+ - name: '%%%1%%%'
1950
+ href: index.md
1951
+ "
1952
+ `;
1953
+
1954
+ exports[`Translate command > resolve liquid conditions if vars specified, liquid syntax will be deleted 4`] = `
1955
+ "<?xml version="1.0" encoding="UTF-8"?>
1956
+ <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
1957
+ <file original="file.ext" source-language="ru-RU" target-language="es-ES" datatype="markdown">
1958
+ <header>
1959
+ <skeleton>
1960
+ <external-file href="file.skl"></external-file>
1961
+ </skeleton>
1962
+ </header>
1963
+ <body>
1964
+ <trans-unit id="0">
1965
+ <source xml:space="preserve">Conditions</source>
1966
+ </trans-unit>
1967
+ <trans-unit id="1">
1968
+ <source xml:space="preserve">Example</source>
1969
+ </trans-unit>
1970
+ </body>
1971
+ </file>
1972
+ </xliff>"
1973
+ `;
1974
+
1975
+ exports[`Translate command > save truthy liquid conditions structures > filelist 1`] = `
1976
+ "[
1977
+ "index.md.skl",
1978
+ "index.md.xliff",
1979
+ "toc.yaml.skl",
1980
+ "toc.yaml.xliff"
1981
+ ]"
1982
+ `;
1983
+
1984
+ exports[`Translate command > save truthy liquid conditions structures 1`] = `
1985
+ "%%%0%%%
1986
+ <!-- [missed file](./missed.md) -->
1987
+ {% if prod == true %}%%%1%%%{% endif %}
1988
+
1989
+ {% if inner == true %}%%%2%%%{% endif %}
1990
+
1991
+ {% if prod == true %}%%%3%%%{% endif %}{% endif %}
1992
+
1993
+ {% if prod == true %}
1994
+
1995
+ {% if list contains "item" %}
1996
+
1997
+ %%%4%%%
1998
+
1999
+ {% if item == true %}%%%5%%% %%%6%%% {% endif %}
2000
+
2001
+ %%%7%%%
2002
+
2003
+ {% endif %}
2004
+
2005
+ {% endif %}
2006
+
2007
+ #### %%%8%%%
2008
+
2009
+ {% if list contains "item" %}
2010
+
2011
+ %%%9%%%
2012
+
2013
+ {% endif %}
2014
+
2015
+ #### %%%10%%%
2016
+
2017
+ {% if prod == true %}
2018
+
2019
+ %%%11%%% {% endif %}
2020
+
2021
+ {% endif %}
2022
+ "
2023
+ `;
2024
+
2025
+ exports[`Translate command > save truthy liquid conditions structures 2`] = `
2026
+ "<?xml version="1.0" encoding="UTF-8"?>
2027
+ <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
2028
+ <file original="file.ext" source-language="ru-RU" target-language="es-ES" datatype="markdown">
2029
+ <header>
2030
+ <skeleton>
2031
+ <external-file href="file.skl"></external-file>
2032
+ </skeleton>
2033
+ </header>
2034
+ <body>
2035
+ <trans-unit id="0">
2036
+ <source xml:space="preserve"><g ctype="link" equiv-text="[{{text}}](./exists.md)" id="g-1" x-begin="[" x-end="](./exists.md)">existing file</g></source>
2037
+ </trans-unit>
2038
+ <trans-unit id="1">
2039
+ <source xml:space="preserve">Test text</source>
2040
+ </trans-unit>
2041
+ <trans-unit id="2">
2042
+ <source xml:space="preserve">inner test text</source>
2043
+ </trans-unit>
2044
+ <trans-unit id="3">
2045
+ <source xml:space="preserve">Test text<x ctype="liquid_Literal" equiv-text="{% if inner == true %}" id="x-1"/>inner test text</source>
2046
+ </trans-unit>
2047
+ <trans-unit id="4">
2048
+ <source xml:space="preserve">#### List</source>
2049
+ </trans-unit>
2050
+ <trans-unit id="5">
2051
+ <source xml:space="preserve">1.</source>
2052
+ </trans-unit>
2053
+ <trans-unit id="6">
2054
+ <source xml:space="preserve">Item</source>
2055
+ </trans-unit>
2056
+ <trans-unit id="7">
2057
+ <source xml:space="preserve">Some text</source>
2058
+ </trans-unit>
2059
+ <trans-unit id="8">
2060
+ <source xml:space="preserve">Standalone contains condition</source>
2061
+ </trans-unit>
2062
+ <trans-unit id="9">
2063
+ <source xml:space="preserve">#### List</source>
2064
+ </trans-unit>
2065
+ <trans-unit id="10">
2066
+ <source xml:space="preserve">Inline contains condition</source>
2067
+ </trans-unit>
2068
+ <trans-unit id="11">
2069
+ <source xml:space="preserve">#### List <x ctype="liquid_Literal" equiv-text="{% if list contains &quot;item&quot; %}" id="x-2"/> sub text</source>
2070
+ </trans-unit>
2071
+ </body>
2072
+ </file>
2073
+ </xliff>"
2074
+ `;
2075
+
2076
+ exports[`Translate command > save truthy liquid conditions structures 3`] = `
2077
+ "title: '%%%0%%%'
2078
+ href: index.md
2079
+ items:
2080
+ - name: '%%%1%%%'
2081
+ href: index.md
2082
+ "
2083
+ `;
2084
+
2085
+ exports[`Translate command > save truthy liquid conditions structures 4`] = `
2086
+ "<?xml version="1.0" encoding="UTF-8"?>
2087
+ <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
2088
+ <file original="file.ext" source-language="ru-RU" target-language="es-ES" datatype="markdown">
2089
+ <header>
2090
+ <skeleton>
2091
+ <external-file href="file.skl"></external-file>
2092
+ </skeleton>
2093
+ </header>
2094
+ <body>
2095
+ <trans-unit id="0">
2096
+ <source xml:space="preserve">Conditions</source>
2097
+ </trans-unit>
2098
+ <trans-unit id="1">
2099
+ <source xml:space="preserve">Example</source>
2100
+ </trans-unit>
2101
+ </body>
2102
+ </file>
2103
+ </xliff>"
2104
+ `;
2105
+
2106
+ exports[`Translate command > test no-translate directive > filelist 1`] = `
2107
+ "[
2108
+ "index.md.skl",
2109
+ "index.md.xliff",
2110
+ "no-translate.md.skl",
2111
+ "no-translate.md.xliff",
2112
+ "openapi-spec.yaml.skl",
2113
+ "openapi-spec.yaml.xliff",
2114
+ "toc.yaml.skl",
2115
+ "toc.yaml.xliff"
2116
+ ]"
2117
+ `;
2118
+
2119
+ exports[`Translate command > test no-translate directive 1`] = `
2120
+ "## %%%0%%%
2121
+
2122
+ ::no-translate [adsfasdfasdfasdfasdf]
2123
+
2124
+ %%%1%%%
2125
+
2126
+ %%%2%%%"
2127
+ `;
2128
+
2129
+ exports[`Translate command > test no-translate directive 2`] = `
2130
+ "<?xml version="1.0" encoding="UTF-8"?>
2131
+ <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
2132
+ <file original="file.ext" source-language="ru-RU" target-language="es-ES" datatype="markdown">
2133
+ <header>
2134
+ <skeleton>
2135
+ <external-file href="file.skl"></external-file>
2136
+ </skeleton>
2137
+ </header>
2138
+ <body>
2139
+ <trans-unit id="0">
2140
+ <source xml:space="preserve">Index header</source>
2141
+ </trans-unit>
2142
+ <trans-unit id="1">
2143
+ <source xml:space="preserve">lorem</source>
2144
+ </trans-unit>
2145
+ <trans-unit id="2">
2146
+ <source xml:space="preserve">asdfasdfasdf</source>
2147
+ </trans-unit>
2148
+ </body>
2149
+ </file>
2150
+ </xliff>"
2151
+ `;
2152
+
2153
+ exports[`Translate command > test no-translate directive 3`] = `
2154
+ "# %%%0%%%
2155
+
2156
+ ## %%%1%%%
2157
+ :::no-translate
2158
+ ### No-translate header
2159
+
2160
+ :::html-block
2161
+ testsetsets
2162
+ :::
2163
+
2164
+ ::: any-other-directive
2165
+ content test
2166
+ :::
2167
+
2168
+ Should not be translated.
2169
+ Can use **markup** inside.
2170
+ :::
2171
+
2172
+
2173
+ %%%2%%%
2174
+
2175
+ ## %%%3%%%
2176
+
2177
+ ::no-translate [## /usr/local/bin/application]
2178
+ ::no-translate[**C:/Program Files/Application/config.ini**]
2179
+ ::no-translate [~/Documents/project/src/main.rs]
2180
+
2181
+
2182
+ - :no-translate[GET /api/v1/users] %%%4%%%
2183
+ - :no-translate[POST /api/v1/auth/login] %%%5%%%
2184
+ - :no-translate[PUT /api/v1/users/{id}] %%%6%%%
2185
+
2186
+ ## %%%7%%%
2187
+ %%%8%%%
2188
+ :no-translate[The default port is unless specified.] %%%9%%%
2189
+ %%%10%%%
2190
+
2191
+ ## %%%11%%%
2192
+ %%%12%%%
2193
+ %%%13%%%
2194
+ %%%14%%%
2195
+
2196
+ ## %%%15%%%
2197
+ %%%16%%%
2198
+
2199
+ ## %%%17%%%
2200
+ %%%18%%%
2201
+
2202
+
2203
+ "
2204
+ `;
2205
+
2206
+ exports[`Translate command > test no-translate directive 4`] = `
2207
+ "<?xml version="1.0" encoding="UTF-8"?>
2208
+ <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
2209
+ <file original="file.ext" source-language="ru-RU" target-language="es-ES" datatype="markdown">
2210
+ <header>
2211
+ <skeleton>
2212
+ <external-file href="file.skl"></external-file>
2213
+ </skeleton>
2214
+ </header>
2215
+ <body>
2216
+ <trans-unit id="0">
2217
+ <source xml:space="preserve">No-translate directive</source>
2218
+ </trans-unit>
2219
+ <trans-unit id="1">
2220
+ <source xml:space="preserve">Block directive</source>
2221
+ </trans-unit>
2222
+ <trans-unit id="2">
2223
+ <source xml:space="preserve">::: some-other-directive<x ctype="lb" equiv-text="&amp;#10;" id="x-1"/>content here<x ctype="lb" equiv-text="&amp;#10;" id="x-2"/>:::<x ctype="lb" equiv-text="&amp;#10;" id="x-3"/>::: no-translate<x ctype="lb" equiv-text="&amp;#10;" id="x-4"/>content here<x ctype="lb" equiv-text="&amp;#10;" id="x-5"/>::: some-other-directive<x ctype="lb" equiv-text="&amp;#10;" id="x-6"/>nested content<x ctype="lb" equiv-text="&amp;#10;" id="x-7"/>:::<x ctype="lb" equiv-text="&amp;#10;" id="x-8"/>:::</source>
2224
+ </trans-unit>
2225
+ <trans-unit id="3">
2226
+ <source xml:space="preserve">Leaf directive</source>
2227
+ </trans-unit>
2228
+ <trans-unit id="4">
2229
+ <source xml:space="preserve">— get all users</source>
2230
+ </trans-unit>
2231
+ <trans-unit id="5">
2232
+ <source xml:space="preserve">— authorization</source>
2233
+ </trans-unit>
2234
+ <trans-unit id="6">
2235
+ <source xml:space="preserve">— update users data</source>
2236
+ </trans-unit>
2237
+ <trans-unit id="7">
2238
+ <source xml:space="preserve">Simple case leaf</source>
2239
+ </trans-unit>
2240
+ <trans-unit id="8">
2241
+ <source xml:space="preserve">Install using command.</source>
2242
+ </trans-unit>
2243
+ <trans-unit id="9">
2244
+ <source xml:space="preserve">Next sentence.</source>
2245
+ </trans-unit>
2246
+ <trans-unit id="10">
2247
+ <source xml:space="preserve">Set NODE_ENV=production for production builds.</source>
2248
+ </trans-unit>
2249
+ <trans-unit id="11">
2250
+ <source xml:space="preserve">Simple case inline</source>
2251
+ </trans-unit>
2252
+ <trans-unit id="12">
2253
+ <source xml:space="preserve">Install using <x ctype="no_translate_inline" equiv-text=":no-translate[npm install @company/package]" id="x-9"/> command.</source>
2254
+ </trans-unit>
2255
+ <trans-unit id="13">
2256
+ <source xml:space="preserve">The default port is <x ctype="no_translate_inline" equiv-text=":no-translate[8080]" id="x-10"/> unless specified.</source>
2257
+ </trans-unit>
2258
+ <trans-unit id="14">
2259
+ <source xml:space="preserve">Set <x ctype="no_translate_inline" equiv-text=":no-translate[NODE_ENV=production]" id="x-11"/> for production builds.</source>
2260
+ </trans-unit>
2261
+ <trans-unit id="15">
2262
+ <source xml:space="preserve">Few inline directives</source>
2263
+ </trans-unit>
2264
+ <trans-unit id="16">
2265
+ <source xml:space="preserve">Use <x ctype="no_translate_inline" equiv-text=":no-translate[**GET /api/v1/users**]" id="x-12"/> to list users and <x ctype="no_translate_inline" equiv-text=":no-translate[POST /api/v1/users]" id="x-13"/> to create.</source>
2266
+ </trans-unit>
2267
+ <trans-unit id="17">
2268
+ <source xml:space="preserve">Empty inline directive</source>
2269
+ </trans-unit>
2270
+ <trans-unit id="18">
2271
+ <source xml:space="preserve">This is text with empty <x ctype="no_translate_inline" equiv-text=":no-translate[]" id="x-14"/> directive.</source>
2272
+ </trans-unit>
2273
+ </body>
2274
+ </file>
2275
+ </xliff>"
2276
+ `;
2277
+
2278
+ exports[`Translate command > test no-translate directive 5`] = `
2279
+ "openapi: 3.0.1
2280
+ info:
2281
+ title: '%%%0%%%'
2282
+ version: v0
2283
+ servers:
2284
+ - url: http://localhost:8080
2285
+ description: '%%%1%%%'
2286
+ paths:
2287
+ /test:
2288
+ get:
2289
+ tags:
2290
+ - test-controller
2291
+ summary: '%%%2%%%'
2292
+ description: '%%%3%%%'
2293
+ operationId: getWithPayloadResponse
2294
+ responses:
2295
+ '200':
2296
+ description: '%%%4%%%'
2297
+ content:
2298
+ application/json:
2299
+ schema:
2300
+ $ref: '#/components/schemas/RecurceTop'
2301
+ components:
2302
+ schemas:
2303
+ RecurceTop:
2304
+ type: object
2305
+ properties:
2306
+ A:
2307
+ type: string
2308
+ RecurceMiddle:
2309
+ type: object
2310
+ properties:
2311
+ B:
2312
+ type: array
2313
+ items:
2314
+ $ref: '#/components/schemas/RecurceTop'
2315
+ "
2316
+ `;
2317
+
2318
+ exports[`Translate command > test no-translate directive 6`] = `
2319
+ "<?xml version="1.0" encoding="UTF-8"?>
2320
+ <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
2321
+ <file original="file.ext" source-language="ru-RU" target-language="es-ES" datatype="markdown">
2322
+ <header>
2323
+ <skeleton>
2324
+ <external-file href="file.skl"></external-file>
2325
+ </skeleton>
2326
+ </header>
2327
+ <body>
2328
+ <trans-unit id="0">
2329
+ <source xml:space="preserve">OpenAPI definition</source>
2330
+ </trans-unit>
2331
+ <trans-unit id="1">
2332
+ <source xml:space="preserve">Generated server url</source>
2333
+ </trans-unit>
2334
+ <trans-unit id="2">
2335
+ <source xml:space="preserve">Simple get operation. тест новой верстки 3</source>
2336
+ </trans-unit>
2337
+ <trans-unit id="3">
2338
+ <source xml:space="preserve">Defines a simple get <x ctype="no_translate_inline" equiv-text=":no-translate[skip this]" id="x-15"/> operation with no inputs and a complex</source>
2339
+ </trans-unit>
2340
+ <trans-unit id="4">
2341
+ <source xml:space="preserve">200!!!!</source>
2342
+ </trans-unit>
2343
+ </body>
2344
+ </file>
2345
+ </xliff>"
2346
+ `;
2347
+
2348
+ exports[`Translate command > test no-translate directive 7`] = `
2349
+ "title: '%%%0%%%'
2350
+ href: index.md
2351
+ items:
2352
+ - name: '%%%1%%%'
2353
+ href: no-translate.md
2354
+ - name: '%%%2%%%'
2355
+ include:
2356
+ path: openapi
2357
+ includers:
2358
+ - name: openapi
2359
+ input: openapi-spec.yaml
2360
+ mode: link
2361
+ "
2362
+ `;
2363
+
2364
+ exports[`Translate command > test no-translate directive 8`] = `
2365
+ "<?xml version="1.0" encoding="UTF-8"?>
2366
+ <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
2367
+ <file original="file.ext" source-language="ru-RU" target-language="es-ES" datatype="markdown">
2368
+ <header>
2369
+ <skeleton>
2370
+ <external-file href="file.skl"></external-file>
2371
+ </skeleton>
2372
+ </header>
2373
+ <body>
2374
+ <trans-unit id="0">
2375
+ <source xml:space="preserve">Test123</source>
2376
+ </trans-unit>
2377
+ <trans-unit id="1">
2378
+ <source xml:space="preserve">Не переводить</source>
2379
+ </trans-unit>
2380
+ <trans-unit id="2">
2381
+ <source xml:space="preserve">openapi</source>
2382
+ </trans-unit>
2383
+ </body>
2384
+ </file>
2385
+ </xliff>"
2386
+ `;