@diplodoc/cli-tests 0.0.0-rc-reusable-e2es-202504041505

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 (214) hide show
  1. package/bin.mjs +30 -0
  2. package/e2e/__snapshots__/generate-map.spec.ts.snap +63 -0
  3. package/e2e/__snapshots__/include-toc.test.ts.snap +464 -0
  4. package/e2e/__snapshots__/load-custom-resources.spec.ts.snap +487 -0
  5. package/e2e/__snapshots__/metadata.spec.ts.snap +241 -0
  6. package/e2e/__snapshots__/plugin-corner-cases.spec.ts.snap +0 -0
  7. package/e2e/__snapshots__/regression.test.ts.snap +1168 -0
  8. package/e2e/__snapshots__/rtl.spec.ts.snap +357 -0
  9. package/e2e/generate-map.spec.ts +40 -0
  10. package/e2e/include-toc.test.ts +57 -0
  11. package/e2e/load-custom-resources.spec.ts +37 -0
  12. package/e2e/metadata.spec.ts +27 -0
  13. package/e2e/plugin-corner-cases.spec.ts +16 -0
  14. package/e2e/regression.test.ts +34 -0
  15. package/e2e/rtl.spec.ts +30 -0
  16. package/fixtures/cliAdapter.ts +39 -0
  17. package/fixtures/index.ts +3 -0
  18. package/fixtures/runners/binary.ts +31 -0
  19. package/fixtures/runners/index.ts +15 -0
  20. package/fixtures/runners/source.ts +20 -0
  21. package/fixtures/runners/types.ts +4 -0
  22. package/fixtures/utils/file.ts +43 -0
  23. package/fixtures/utils/test.ts +31 -0
  24. package/mocks/fileContent/metadata/authorAliasInMetadata.md +7 -0
  25. package/mocks/fileContent/metadata/fullAuthorInMetadata.md +10 -0
  26. package/mocks/fileContent/metadata/includesContent/firstIncludeFile.md +7 -0
  27. package/mocks/fileContent/metadata/includesContent/secondIncludeFile.md +5 -0
  28. package/mocks/fileContent/metadata/includesContent/withIncludes.md +7 -0
  29. package/mocks/fileContent/metadata/keywordsInMetadata.md +9 -0
  30. package/mocks/fileContent/metadata/simpleMetadata.md +6 -0
  31. package/mocks/fileContent/metadata/substitutionsInMetadataPropertyKeys.md +7 -0
  32. package/mocks/fileContent/metadata/substitutionsInMetadataPropertyValues.md +11 -0
  33. package/mocks/fileContent/metadata/substitutionsWithEmptyString.md +7 -0
  34. package/mocks/fileContent/metadata/variableInMetadata.md +7 -0
  35. package/mocks/fileContent/metadata/withAdditionalSeparatorsInContent.md +9 -0
  36. package/mocks/fileContent/metadata/withoutMetadata.md +2 -0
  37. package/mocks/fileContent/metadata/withoutMetadataWithAdditionalSeparatorsInContent.md +6 -0
  38. package/mocks/generate-map/test1/input/.yfm +0 -0
  39. package/mocks/generate-map/test1/input/ru/_includes/file.md +0 -0
  40. package/mocks/generate-map/test1/input/ru/_includes/plugins.md +0 -0
  41. package/mocks/generate-map/test1/input/ru/folder1/a1.md +1 -0
  42. package/mocks/generate-map/test1/input/ru/folder1/folder2/a1.md +1 -0
  43. package/mocks/generate-map/test1/input/ru/folder1/folder2/toc.yaml +5 -0
  44. package/mocks/generate-map/test1/input/ru/folder1/toc.yaml +7 -0
  45. package/mocks/generate-map/test1/input/ru/index.md +0 -0
  46. package/mocks/generate-map/test1/input/ru/plugins/import.md +0 -0
  47. package/mocks/generate-map/test1/input/ru/plugins/index.md +0 -0
  48. package/mocks/generate-map/test1/input/ru/project/config.md +0 -0
  49. package/mocks/generate-map/test1/input/ru/project/index.md +0 -0
  50. package/mocks/generate-map/test1/input/ru/settings.md +0 -0
  51. package/mocks/generate-map/test1/input/ru/toc.yaml +22 -0
  52. package/mocks/generate-map/test2/input/en/_includes/file.md +0 -0
  53. package/mocks/generate-map/test2/input/en/_includes/plugins.md +0 -0
  54. package/mocks/generate-map/test2/input/en/index.md +0 -0
  55. package/mocks/generate-map/test2/input/en/plugins/import.md +0 -0
  56. package/mocks/generate-map/test2/input/en/plugins/index.md +0 -0
  57. package/mocks/generate-map/test2/input/en/project/config.md +0 -0
  58. package/mocks/generate-map/test2/input/en/project/index.md +0 -0
  59. package/mocks/generate-map/test2/input/en/settings.md +0 -0
  60. package/mocks/generate-map/test2/input/en/toc.yaml +18 -0
  61. package/mocks/generate-map/test2/input/ru/_includes/file.md +0 -0
  62. package/mocks/generate-map/test2/input/ru/_includes/plugins.md +0 -0
  63. package/mocks/generate-map/test2/input/ru/index.md +0 -0
  64. package/mocks/generate-map/test2/input/ru/plugins/import.md +0 -0
  65. package/mocks/generate-map/test2/input/ru/plugins/index.md +0 -0
  66. package/mocks/generate-map/test2/input/ru/project/config.md +0 -0
  67. package/mocks/generate-map/test2/input/ru/project/index.md +0 -0
  68. package/mocks/generate-map/test2/input/ru/settings.md +0 -0
  69. package/mocks/generate-map/test2/input/ru/toc.yaml +18 -0
  70. package/mocks/generate-map/test3/input/.yfm +0 -0
  71. package/mocks/generate-map/test3/input/ru/_includes/file.md +0 -0
  72. package/mocks/generate-map/test3/input/ru/_includes/plugins.md +0 -0
  73. package/mocks/generate-map/test3/input/ru/folder1/a1.md +1 -0
  74. package/mocks/generate-map/test3/input/ru/folder1/folder2/a1.md +1 -0
  75. package/mocks/generate-map/test3/input/ru/folder1/folder2/toc.yaml +5 -0
  76. package/mocks/generate-map/test3/input/ru/folder1/toc.yaml +7 -0
  77. package/mocks/generate-map/test3/input/ru/index.md +0 -0
  78. package/mocks/generate-map/test3/input/ru/plugins/import.md +0 -0
  79. package/mocks/generate-map/test3/input/ru/plugins/index.md +0 -0
  80. package/mocks/generate-map/test3/input/ru/project/config.md +0 -0
  81. package/mocks/generate-map/test3/input/ru/project/index.md +0 -0
  82. package/mocks/generate-map/test3/input/ru/settings.md +0 -0
  83. package/mocks/generate-map/test3/input/ru/toc.yaml +22 -0
  84. package/mocks/include-toc/test1/input/a1.md +1 -0
  85. package/mocks/include-toc/test1/input/folder1/a1.md +1 -0
  86. package/mocks/include-toc/test1/input/folder1/folder2/a1.md +1 -0
  87. package/mocks/include-toc/test1/input/folder1/folder2/toc.yaml +5 -0
  88. package/mocks/include-toc/test1/input/folder1/toc.yaml +7 -0
  89. package/mocks/include-toc/test1/input/toc.yaml +9 -0
  90. package/mocks/include-toc/test2/input/.yfm +1 -0
  91. package/mocks/include-toc/test2/input/file1.md +1 -0
  92. package/mocks/include-toc/test2/input/fileX.md +1 -0
  93. package/mocks/include-toc/test2/input/folder/fileA.md +11 -0
  94. package/mocks/include-toc/test2/input/folder/fileB.md +9 -0
  95. package/mocks/include-toc/test2/input/folder/folder/fileC.md +1 -0
  96. package/mocks/include-toc/test2/input/folder/folder/toc.yaml +3 -0
  97. package/mocks/include-toc/test2/input/folder/toc.yaml +6 -0
  98. package/mocks/include-toc/test2/input/presets.yaml +2 -0
  99. package/mocks/include-toc/test2/input/toc.yaml +6 -0
  100. package/mocks/include-toc/test3/input/product1/core/_includes/inc.md +1 -0
  101. package/mocks/include-toc/test3/input/product1/core/article1.md +3 -0
  102. package/mocks/include-toc/test3/input/product1/core/toc_m.yaml +2 -0
  103. package/mocks/include-toc/test3/input/product1/product/toc_p.yaml +3 -0
  104. package/mocks/include-toc/test3/input/product1/toc.yaml +3 -0
  105. package/mocks/include-toc/test3/input/product2/core/_includes/inc.md +1 -0
  106. package/mocks/include-toc/test3/input/product2/core/article1.md +3 -0
  107. package/mocks/include-toc/test3/input/product2/core/toc_m.yaml +2 -0
  108. package/mocks/include-toc/test3/input/product2/overlay1/product/article1.md +3 -0
  109. package/mocks/include-toc/test3/input/product2/overlay1/product/toc_p.yaml +3 -0
  110. package/mocks/include-toc/test3/input/product2/overlay1/toc.yaml +2 -0
  111. package/mocks/include-toc/test3/input/product2/overlay2/product/article1.md +3 -0
  112. package/mocks/include-toc/test3/input/product2/overlay2/product/toc_p.yaml +3 -0
  113. package/mocks/include-toc/test3/input/product2/overlay2/toc.yaml +2 -0
  114. package/mocks/include-toc/test3/input/product2/overlay3/product/toc_p.yaml +3 -0
  115. package/mocks/include-toc/test3/input/product2/overlay3/toc.yaml +2 -0
  116. package/mocks/include-toc/test3/input/product2/p2.md +4 -0
  117. package/mocks/include-toc/test3/input/product2/toc.yaml +10 -0
  118. package/mocks/include-toc/test4/input/a1.md +1 -0
  119. package/mocks/include-toc/test4/input/index.yaml +20 -0
  120. package/mocks/include-toc/test4/input/toc.yaml +9 -0
  121. package/mocks/include-toc/test5/input/core/concepts/toc_i.yaml +2 -0
  122. package/mocks/include-toc/test5/input/core/concepts/toc_p.yaml +3 -0
  123. package/mocks/include-toc/test5/input/core/toc_i.yaml +6 -0
  124. package/mocks/include-toc/test5/input/core/toc_m.yaml +3 -0
  125. package/mocks/include-toc/test5/input/core/toc_p.yaml +5 -0
  126. package/mocks/include-toc/test5/input/overlay/toc_p.yaml +3 -0
  127. package/mocks/include-toc/test5/input/toc.yaml +4 -0
  128. package/mocks/include-toc/test6/input/test/index.md +4 -0
  129. package/mocks/include-toc/test6/input/test/sub/sub/sub-3.md +1 -0
  130. package/mocks/include-toc/test6/input/test/sub/sub-1.md +5 -0
  131. package/mocks/include-toc/test6/input/test/sub/sub-2.md +1 -0
  132. package/mocks/include-toc/test6/input/test/test.md +1 -0
  133. package/mocks/include-toc/test6/input/toc.yaml +7 -0
  134. package/mocks/include-toc/test7/input/.yfm +1 -0
  135. package/mocks/include-toc/test7/input/ru/presets.yaml +2 -0
  136. package/mocks/include-toc/test7/input/ru/sub/folder/index.yaml +4 -0
  137. package/mocks/include-toc/test7/input/ru/sub/folder/toc.yaml +3 -0
  138. package/mocks/include-toc/test7/input/ru/toc.yaml +3 -0
  139. package/mocks/load-custom-resources/md2html-with-resources/input/.yfm +5 -0
  140. package/mocks/load-custom-resources/md2html-with-resources/input/_assets/script/test1.js +0 -0
  141. package/mocks/load-custom-resources/md2html-with-resources/input/_assets/style/test.css +13 -0
  142. package/mocks/load-custom-resources/md2html-with-resources/input/index.yaml +9 -0
  143. package/mocks/load-custom-resources/md2html-with-resources/input/page.md +7 -0
  144. package/mocks/load-custom-resources/md2html-with-resources/input/project/config.md +1 -0
  145. package/mocks/load-custom-resources/md2html-with-resources/input/toc.yaml +7 -0
  146. package/mocks/load-custom-resources/md2md-with-resources/input/.yfm +5 -0
  147. package/mocks/load-custom-resources/md2md-with-resources/input/_assets/script/test1.js +0 -0
  148. package/mocks/load-custom-resources/md2md-with-resources/input/_assets/style/test.css +13 -0
  149. package/mocks/load-custom-resources/md2md-with-resources/input/index.yaml +9 -0
  150. package/mocks/load-custom-resources/md2md-with-resources/input/page.md +7 -0
  151. package/mocks/load-custom-resources/md2md-with-resources/input/project/config.md +1 -0
  152. package/mocks/load-custom-resources/md2md-with-resources/input/toc.yaml +7 -0
  153. package/mocks/load-custom-resources/single-page-with-resources/input/.yfm +5 -0
  154. package/mocks/load-custom-resources/single-page-with-resources/input/_assets/script/test1.js +0 -0
  155. package/mocks/load-custom-resources/single-page-with-resources/input/_assets/style/test.css +13 -0
  156. package/mocks/load-custom-resources/single-page-with-resources/input/index.yaml +9 -0
  157. package/mocks/load-custom-resources/single-page-with-resources/input/page.md +7 -0
  158. package/mocks/load-custom-resources/single-page-with-resources/input/project/config.md +1 -0
  159. package/mocks/load-custom-resources/single-page-with-resources/input/toc.yaml +7 -0
  160. package/mocks/metadata/md2html-with-metadata/input/index.yaml +9 -0
  161. package/mocks/metadata/md2html-with-metadata/input/page.md +7 -0
  162. package/mocks/metadata/md2html-with-metadata/input/presets.yaml +6 -0
  163. package/mocks/metadata/md2html-with-metadata/input/project/config.md +7 -0
  164. package/mocks/metadata/md2html-with-metadata/input/toc.yaml +7 -0
  165. package/mocks/metadata/md2md-with-metadata/input/index.yaml +9 -0
  166. package/mocks/metadata/md2md-with-metadata/input/page.md +7 -0
  167. package/mocks/metadata/md2md-with-metadata/input/presets.yaml +6 -0
  168. package/mocks/metadata/md2md-with-metadata/input/project/config.md +7 -0
  169. package/mocks/metadata/md2md-with-metadata/input/toc.yaml +7 -0
  170. package/mocks/plugin-corner-cases/images-in-deflists/input/image.jpeg +0 -0
  171. package/mocks/plugin-corner-cases/images-in-deflists/input/index.md +5 -0
  172. package/mocks/plugin-corner-cases/images-in-deflists/input/toc.yaml +4 -0
  173. package/mocks/regression/input/1.md +27 -0
  174. package/mocks/regression/input/_assets/1.png +0 -0
  175. package/mocks/regression/input/_assets/2.png +0 -0
  176. package/mocks/regression/input/_assets/3.png +0 -0
  177. package/mocks/regression/input/_assets/4.png +0 -0
  178. package/mocks/regression/input/_assets/empty.pdf +0 -0
  179. package/mocks/regression/input/autotitle.md +23 -0
  180. package/mocks/regression/input/commented-include.md +3 -0
  181. package/mocks/regression/input/images.md +9 -0
  182. package/mocks/regression/input/included-item.md +13 -0
  183. package/mocks/regression/input/includes/presets.yaml +2 -0
  184. package/mocks/regression/input/includes/test.md +1 -0
  185. package/mocks/regression/input/includes/user.md +1 -0
  186. package/mocks/regression/input/includes.md +5 -0
  187. package/mocks/regression/input/index.yaml +9 -0
  188. package/mocks/regression/input/latex.md +3 -0
  189. package/mocks/regression/input/merge/merge.md +3 -0
  190. package/mocks/regression/input/merge/presets.yaml +2 -0
  191. package/mocks/regression/input/merge/toc.yaml +4 -0
  192. package/mocks/regression/input/merge-source/merged.md +3 -0
  193. package/mocks/regression/input/merge-source/toc-m.yaml +4 -0
  194. package/mocks/regression/input/mermaid.md +13 -0
  195. package/mocks/regression/input/openapi-spec.yaml +37 -0
  196. package/mocks/regression/input/presets.yaml +8 -0
  197. package/mocks/regression/input/sub/folder/item-1.md +3 -0
  198. package/mocks/regression/input/sub/toc.yaml +5 -0
  199. package/mocks/regression/input/toc-i.yaml +3 -0
  200. package/mocks/regression/input/toc.yaml +30 -0
  201. package/mocks/rtl/multidirectional-languages/input/.yfm +1 -0
  202. package/mocks/rtl/multidirectional-languages/input/ar/index.yaml +4 -0
  203. package/mocks/rtl/multidirectional-languages/input/ar/page.md +1 -0
  204. package/mocks/rtl/multidirectional-languages/input/ar/toc.yaml +5 -0
  205. package/mocks/rtl/multidirectional-languages/input/en/index.yaml +9 -0
  206. package/mocks/rtl/multidirectional-languages/input/en/page.md +7 -0
  207. package/mocks/rtl/multidirectional-languages/input/en/toc.yaml +5 -0
  208. package/mocks/rtl/rtl-language/input/.yfm +1 -0
  209. package/mocks/rtl/rtl-language/input/index.yaml +4 -0
  210. package/mocks/rtl/rtl-language/input/page.md +1 -0
  211. package/mocks/rtl/rtl-language/input/toc.yaml +5 -0
  212. package/package.json +42 -0
  213. package/tsconfig.json +16 -0
  214. package/vitest.config.ts +30 -0
@@ -0,0 +1,2 @@
1
+ items:
2
+ - include: { mode: merge, path: ../core/toc_m.yaml }
@@ -0,0 +1,3 @@
1
+ This is the overlay number #2 of Article 1 content for product 2.
2
+
3
+ {% include [x](_includes/inc.md) %}
@@ -0,0 +1,3 @@
1
+ items:
2
+ - name: Article1
3
+ href: article1.md
@@ -0,0 +1,2 @@
1
+ items:
2
+ - include: { mode: merge, path: ../core/toc_m.yaml }
@@ -0,0 +1,3 @@
1
+ items:
2
+ - name: Article1
3
+ href: article1.md
@@ -0,0 +1,2 @@
1
+ items:
2
+ - include: { mode: merge, path: ../core/toc_m.yaml }
@@ -0,0 +1,4 @@
1
+ This is the product 2 specific article.
2
+
3
+ Check here link to [Article1 overlay 1](overlay1/article1.md)
4
+ Check here link to [Article1 overlay 2](overlay2/article1.md)
@@ -0,0 +1,10 @@
1
+ title: Product 2 title
2
+ items:
3
+ - name: P2 Article
4
+ href: p2.md
5
+ - name: Overlay1
6
+ include: { mode: link, path: overlay1/toc.yaml }
7
+ - name: Overlay 2
8
+ include: { mode: link, path: overlay2/toc.yaml }
9
+ - name: Overlay 3
10
+ include: { mode: link, path: overlay3/toc.yaml }
@@ -0,0 +1 @@
1
+ This is the /a1.md file content.
@@ -0,0 +1,20 @@
1
+ title:
2
+ - text: "Title {% if type == 'a' %}{{ a }}{% else %}{{ b }}{% endif %}"
3
+ when: type == "a"
4
+ - text: "Title {% if type == 'a' %}{{ a }}{% else %}{{ b }}{% endif %}"
5
+ when: type == "b"
6
+ description:
7
+ - text: "Desc {{ a }}"
8
+ when: type == "a"
9
+ - text: "Desc {{ b }}"
10
+ when: type == "b"
11
+ meta:
12
+ title:
13
+ - text: "Meta {{ a }}"
14
+ when: type == "a"
15
+ - text: "Meta {{ b }}"
16
+ when: type == "b"
17
+ links:
18
+ - title: A1
19
+ description: A1 desc
20
+ href: a1
@@ -0,0 +1,9 @@
1
+ title:
2
+ - text: "Title {% if type == 'a' %}{{ a }}{% else %}{{ b }}{% endif %}"
3
+ when: type == "a"
4
+ - text: "Title {% if type == 'a' %}{{ a }}{% else %}{{ b }}{% endif %}"
5
+ when: type == "b"
6
+ href: index.yaml
7
+ items:
8
+ - name: A1
9
+ href: a1.md
@@ -0,0 +1,2 @@
1
+ items:
2
+ - name: core/concepts/toc_i/item
@@ -0,0 +1,3 @@
1
+ items:
2
+ - include: { mode: link, path: toc_i.yaml }
3
+ - name: core/concepts/toc_p/item
@@ -0,0 +1,6 @@
1
+ items:
2
+ - name: core/toc_i/item
3
+ - name: test
4
+ include:
5
+ mode: link
6
+ path: concepts/toc_p.yaml
@@ -0,0 +1,3 @@
1
+ items:
2
+ - name: core/toc_m/item
3
+ - include: { mode: merge, path: overlay/toc_p.yaml }
@@ -0,0 +1,5 @@
1
+ items:
2
+ - name: core/toc_p/item
3
+ - include:
4
+ mode: link
5
+ path: toc_i.yaml
@@ -0,0 +1,3 @@
1
+ items:
2
+ - name: overlay/toc_p/item
3
+ - include: { mode: link, path: toc_i.yaml }
@@ -0,0 +1,4 @@
1
+ title: main
2
+ items:
3
+ - name: toc_i/item
4
+ - include: { mode: merge, path: core/toc_m.yaml }
@@ -0,0 +1,4 @@
1
+ # H1
2
+
3
+ [same level link](./test.md)
4
+ [inner link](./sub/sub-1.md)
@@ -0,0 +1,5 @@
1
+ # H1
2
+
3
+ [same level link](./sub-2.md)
4
+ [outer link](../test.md)
5
+ [inner link](./sub/sub-3.md)
@@ -0,0 +1,7 @@
1
+ title: main
2
+ items:
3
+ - include:
4
+ path: test
5
+ includers:
6
+ - name: generic
7
+ input: test
@@ -0,0 +1 @@
1
+ allowHtml: true
@@ -0,0 +1,2 @@
1
+ default:
2
+ page-name: sub-page
@@ -0,0 +1,4 @@
1
+ blocks:
2
+ - type: header-block
3
+ title: Title
4
+ description: Description
@@ -0,0 +1,3 @@
1
+ items:
2
+ - name: '{{ page-name }}'
3
+ href: index.yaml
@@ -0,0 +1,3 @@
1
+ title: Toc
2
+ items:
3
+ - include: { mode: root_merge, path: ru/sub/folder/toc.yaml }
@@ -0,0 +1,5 @@
1
+ resources:
2
+ style:
3
+ - _assets/style/test.css
4
+ script:
5
+ - _assets/script/test1.js
@@ -0,0 +1,13 @@
1
+ .Header {
2
+ background-color: darkkhaki;
3
+ }
4
+
5
+ h1 {
6
+ /*font-family: 'Qwitcher Grypen', cursive;*/
7
+ font-family: 'QwitcherGrypen-Regular';
8
+ }
9
+
10
+ @font-face {
11
+ font-family: 'QwitcherGrypen-Regular';
12
+ src: url('https://yfm-test-doc123.martyanov-av.ui.yandex.net/docs-assets/yfm-test-doc123/test39/ru/_assets/fonts/QwitcherGrypen-Regular.ttf');
13
+ }
@@ -0,0 +1,9 @@
1
+ title: Documentation
2
+ description: ""
3
+ meta:
4
+ title: Documentation
5
+ noIndex: true
6
+ links:
7
+ - title: Getting started with Documentation
8
+ description: This guide will show you the basics of working with Documentation
9
+ href: page.md
@@ -0,0 +1,7 @@
1
+ ---
2
+ metadata:
3
+ - name: yfm
4
+ content: builder
5
+ ---
6
+
7
+ Lorem
@@ -0,0 +1,7 @@
1
+ title: Documentation
2
+ href: index.yaml
3
+ items:
4
+ - name: Documentation
5
+ href: page.md
6
+ - name: Config
7
+ href: project/config.md
@@ -0,0 +1,5 @@
1
+ resources:
2
+ style:
3
+ - _assets/style/test.css
4
+ script:
5
+ - _assets/script/test1.js
@@ -0,0 +1,13 @@
1
+ .Header {
2
+ background-color: darkkhaki;
3
+ }
4
+
5
+ h1 {
6
+ /*font-family: 'Qwitcher Grypen', cursive;*/
7
+ font-family: 'QwitcherGrypen-Regular';
8
+ }
9
+
10
+ @font-face {
11
+ font-family: 'QwitcherGrypen-Regular';
12
+ src: url('https://yfm-test-doc123.martyanov-av.ui.yandex.net/docs-assets/yfm-test-doc123/test39/ru/_assets/fonts/QwitcherGrypen-Regular.ttf');
13
+ }
@@ -0,0 +1,9 @@
1
+ title: Documentation
2
+ description: ""
3
+ meta:
4
+ title: Documentation
5
+ noIndex: true
6
+ links:
7
+ - title: Getting started with Documentation
8
+ description: This guide will show you the basics of working with Documentation
9
+ href: page.md
@@ -0,0 +1,7 @@
1
+ ---
2
+ metadata:
3
+ - name: yfm
4
+ content: builder
5
+ ---
6
+
7
+ Lorem
@@ -0,0 +1,7 @@
1
+ title: Documentation
2
+ href: index.yaml
3
+ items:
4
+ - name: Documentation
5
+ href: page.md
6
+ - name: Config
7
+ href: project/config.md
@@ -0,0 +1,5 @@
1
+ resources:
2
+ style:
3
+ - _assets/style/test.css
4
+ script:
5
+ - _assets/script/test1.js
@@ -0,0 +1,13 @@
1
+ .Header {
2
+ background-color: darkkhaki;
3
+ }
4
+
5
+ h1 {
6
+ /*font-family: 'Qwitcher Grypen', cursive;*/
7
+ font-family: 'QwitcherGrypen-Regular';
8
+ }
9
+
10
+ @font-face {
11
+ font-family: 'QwitcherGrypen-Regular';
12
+ src: url('https://yfm-test-doc123.martyanov-av.ui.yandex.net/docs-assets/yfm-test-doc123/test39/ru/_assets/fonts/QwitcherGrypen-Regular.ttf');
13
+ }
@@ -0,0 +1,9 @@
1
+ title: Documentation
2
+ description: ""
3
+ meta:
4
+ title: Documentation
5
+ noIndex: true
6
+ links:
7
+ - title: Getting started with Documentation
8
+ description: This guide will show you the basics of working with Documentation
9
+ href: page.md
@@ -0,0 +1,7 @@
1
+ ---
2
+ metadata:
3
+ - name: yfm
4
+ content: builder
5
+ ---
6
+
7
+ Lorem
@@ -0,0 +1,7 @@
1
+ title: Documentation
2
+ href: index.yaml
3
+ items:
4
+ - name: Documentation
5
+ href: page.md
6
+ - name: Config
7
+ href: project/config.md
@@ -0,0 +1,9 @@
1
+ title: Documentation
2
+ description: ""
3
+ meta:
4
+ title: Documentation
5
+ noIndex: true
6
+ links:
7
+ - title: Getting started with Documentation
8
+ description: This guide will show you the basics of working with Documentation
9
+ href: page.md
@@ -0,0 +1,7 @@
1
+ ---
2
+ metadata:
3
+ - name: yfm
4
+ value: builder in page
5
+ ---
6
+
7
+ Lorem
@@ -0,0 +1,6 @@
1
+ default:
2
+ __metadata:
3
+ - name: test-yfm
4
+ content: inline test
5
+ - name: yfm-config
6
+ content: config test
@@ -0,0 +1,7 @@
1
+ ---
2
+ metadata:
3
+ - name: yfm
4
+ value: builder in config
5
+ ---
6
+
7
+ Lorem
@@ -0,0 +1,7 @@
1
+ title: Documentation
2
+ href: index.yaml
3
+ items:
4
+ - name: Documentation
5
+ href: page.md
6
+ - name: Config
7
+ href: project/config.md
@@ -0,0 +1,9 @@
1
+ title: Documentation
2
+ description: ""
3
+ meta:
4
+ title: Documentation
5
+ noIndex: true
6
+ links:
7
+ - title: Getting started with Documentation
8
+ description: This guide will show you the basics of working with Documentation
9
+ href: page.md
@@ -0,0 +1,7 @@
1
+ ---
2
+ metadata:
3
+ - name: yfm
4
+ content: builder in page
5
+ ---
6
+
7
+ Lorem
@@ -0,0 +1,6 @@
1
+ default:
2
+ __metadata:
3
+ - name: test-yfm
4
+ content: inline test
5
+ - name: yfm-config
6
+ content: config test
@@ -0,0 +1,7 @@
1
+ ---
2
+ metadata:
3
+ - name: yfm
4
+ value: builder in config
5
+ ---
6
+
7
+ Lorem
@@ -0,0 +1,7 @@
1
+ title: Documentation
2
+ href: index.yaml
3
+ items:
4
+ - name: Documentation
5
+ href: page.md
6
+ - name: Config
7
+ href: project/config.md
@@ -0,0 +1,5 @@
1
+ **Term 1**
2
+
3
+ : Definition 1
4
+
5
+ ![](image.jpeg)
@@ -0,0 +1,4 @@
1
+ title: Test diplodoc-cli run
2
+ items:
3
+ - name: Intro
4
+ href: index.md
@@ -0,0 +1,27 @@
1
+ # Title
2
+
3
+ Text not_var{{not-var}} not_var{{skip()}} {{default-var}}
4
+
5
+ Text `not_var{{not-var}}` `not_var{{skip()}}` `{{default-var}}`
6
+
7
+ Text
8
+ ```
9
+ not_var{{not-var}}
10
+
11
+ not_var{{skip()}}
12
+
13
+ {{default-var}}
14
+ ```
15
+
16
+
17
+ `[not a link](./path/to/relative/file.md)`
18
+
19
+ ## Subtitle {#subtitle}
20
+
21
+ [{#T}](./mermaid.md)
22
+
23
+ [{#T}](./mermaid.md#info)
24
+
25
+ [](./latex.md)
26
+
27
+ {% include [user](includes/user.md) %}
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,23 @@
1
+ # Autotitles
2
+
3
+ Empty title
4
+ [](./1.md)
5
+
6
+ Empty subtitle
7
+ [](./1.md#subtitle)
8
+
9
+ Special title
10
+ [{#T}](./1.md)
11
+
12
+ Special subtitle
13
+ [{#T}](./1.md#subtitle)
14
+
15
+ Empty local title
16
+ [](#header)
17
+
18
+ Special local title
19
+ [{#T}](#header)
20
+
21
+ ## Header {#header}
22
+
23
+ Content
@@ -0,0 +1,3 @@
1
+ ![](./missed-asset.png)
2
+
3
+ [](./missed-link.md)
@@ -0,0 +1,9 @@
1
+ # Images
2
+
3
+ ![simple image](_assets/1.png)
4
+
5
+ <!-- comment -->![with leading comment](_assets/2.png)
6
+
7
+ ![with trailing comment](_assets/3.png)<!-- comment -->
8
+
9
+ <!-- ![commented](_assets/4.png) -->
@@ -0,0 +1,13 @@
1
+ # Included item
2
+
3
+ Included item text
4
+
5
+ <!-- : {% include [rec-off](./commented-include.md) %} -->
6
+
7
+ {% note alert "Alert!" %}
8
+
9
+ <!-- content -->
10
+
11
+ {% endnote %}
12
+
13
+ ![pdf](_assets/empty.pdf)
@@ -0,0 +1,2 @@
1
+ default:
2
+ user: Alice
@@ -0,0 +1 @@
1
+ Test
@@ -0,0 +1 @@
1
+ {{user}}
@@ -0,0 +1,5 @@
1
+ Text
2
+
3
+ {% include [user](includes/user.md) %}
4
+
5
+ {% include [test](includes/test.md) %}
@@ -0,0 +1,9 @@
1
+ description:
2
+ - text:
3
+ - >-
4
+ Some text
5
+ links:
6
+ - name: Link 1
7
+ href: ./1.md
8
+ - name: Link 2
9
+ href: ./1
@@ -0,0 +1,3 @@
1
+ # Latex usage
2
+
3
+ $\sqrt{3x-1}+(1+x)^2$
@@ -0,0 +1,3 @@
1
+ # Should use merged item
2
+
3
+ [merged](./merged.md)
@@ -0,0 +1,2 @@
1
+ default:
2
+ product: merge
@@ -0,0 +1,4 @@
1
+ items:
2
+ - name: Use merged
3
+ href: ./merge.md
4
+ - include: {path: ../merge-source/toc-m.yaml, mode: merge}
@@ -0,0 +1,3 @@
1
+ # Merged item
2
+
3
+ Should be linked in toc.yaml
@@ -0,0 +1,4 @@
1
+ items:
2
+ - name: Merged item
3
+ href: merged.md
4
+ when: product == 'merge'
@@ -0,0 +1,13 @@
1
+ # Mermaid usage
2
+
3
+ ```mermaid
4
+
5
+ sequenceDiagram
6
+ rect rgba(251, 243, 232, 0.2)
7
+ Alice ->> Bob:
8
+ end
9
+ ```
10
+
11
+ ## Mermaid info {#info}
12
+
13
+ Some mermaid info