@diplodoc/cli-tests 0.0.0-rc-perf-18556368882 → 0.0.0-rc-not-var-18871481436

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 (59) hide show
  1. package/e2e/__snapshots__/assets.spec.ts.snap +0 -0
  2. package/e2e/__snapshots__/includes.test.ts.snap +477 -0
  3. package/e2e/__snapshots__/metadata.spec.ts.snap +19 -6
  4. package/e2e/__snapshots__/neuro-expert.test.ts.snap +568 -0
  5. package/e2e/__snapshots__/pdf-page.spec.ts.snap +2 -2
  6. package/e2e/__snapshots__/regression.test.ts.snap +64 -38
  7. package/e2e/__snapshots__/translation.spec.ts.snap +154 -0
  8. package/e2e/assets.spec.ts +16 -0
  9. package/e2e/includes.test.ts +38 -0
  10. package/e2e/neuro-expert.test.ts +16 -0
  11. package/e2e/translation.spec.ts +24 -0
  12. package/fixtures/utils/file.ts +21 -0
  13. package/mocks/assets/input/.yfm +1 -0
  14. package/mocks/assets/input/_images/camera.svg +1 -0
  15. package/mocks/assets/input/_images/icons/bulb.svg +1 -0
  16. package/mocks/assets/input/_images/mountain.jpg +0 -0
  17. package/mocks/assets/input/_images/versions.png +0 -0
  18. package/mocks/assets/input/index.md +19 -0
  19. package/mocks/assets/input/page.yaml +7 -0
  20. package/mocks/assets/input/toc.yaml +7 -0
  21. package/mocks/includes/input/.yfm +1 -0
  22. package/mocks/includes/input/_assets/4.png +0 -0
  23. package/mocks/includes/input/includes/commented-include.md +5 -0
  24. package/mocks/includes/input/includes/deep-include.md +13 -0
  25. package/mocks/includes/input/includes/fragments.md +23 -0
  26. package/mocks/includes/input/includes/nested-include.md +5 -0
  27. package/mocks/includes/input/includes/no-title-include.md +19 -0
  28. package/mocks/includes/input/includes/root-include.md +11 -0
  29. package/mocks/includes/input/includes/user.md +5 -0
  30. package/mocks/includes/input/index.md +62 -0
  31. package/mocks/includes/input/level1/includes/level1-include.md +11 -0
  32. package/mocks/includes/input/level1/level2/includes/level2-include.md +11 -0
  33. package/mocks/includes/input/level1/level2/page2.md +29 -0
  34. package/mocks/includes/input/level1/page1.md +29 -0
  35. package/mocks/includes/input/presets.yaml +3 -0
  36. package/mocks/includes/input/toc-include.md +13 -0
  37. package/mocks/includes/input/toc.yaml +13 -0
  38. package/mocks/includes-missing/input/index.md +7 -0
  39. package/mocks/includes-missing/input/toc.yaml +3 -0
  40. package/mocks/metadata/md2html-with-metadata/input/.yfm +1 -0
  41. package/mocks/metadata/md2html-with-metadata/input/page.md +3 -1
  42. package/mocks/neuro-expert/input/.yfm +10 -0
  43. package/mocks/neuro-expert/input/en/folder/index.md +1 -0
  44. package/mocks/neuro-expert/input/en/index-test-html/index.md +4 -0
  45. package/mocks/neuro-expert/input/en/index.md +11 -0
  46. package/mocks/neuro-expert/input/en/page1.md +8 -0
  47. package/mocks/neuro-expert/input/en/page2.md +6 -0
  48. package/mocks/neuro-expert/input/en/toc.yaml +13 -0
  49. package/mocks/neuro-expert/input/ru/folder/index.md +1 -0
  50. package/mocks/neuro-expert/input/ru/index-test-html/index.md +4 -0
  51. package/mocks/neuro-expert/input/ru/index.md +5 -0
  52. package/mocks/neuro-expert/input/ru/page1.md +3 -0
  53. package/mocks/neuro-expert/input/ru/page2.md +6 -0
  54. package/mocks/neuro-expert/input/ru/toc.yaml +12 -0
  55. package/mocks/regression/input/includes/fragments.md +17 -0
  56. package/mocks/regression/input/includes.md +4 -0
  57. package/mocks/translation/conditions/input/index.md +11 -0
  58. package/mocks/translation/conditions/input/toc.yaml +5 -0
  59. package/package.json +1 -1
@@ -2,6 +2,7 @@
2
2
 
3
3
  exports[`Allow load custom resources > md2html with metadata > filelist 1`] = `
4
4
  "[
5
+ ".yfm",
5
6
  "index.html",
6
7
  "page.html",
7
8
  "project/config.html",
@@ -10,6 +11,11 @@ exports[`Allow load custom resources > md2html with metadata > filelist 1`] = `
10
11
  `;
11
12
 
12
13
  exports[`Allow load custom resources > md2html with metadata 1`] = `
14
+ "mtimes: true
15
+ "
16
+ `;
17
+
18
+ exports[`Allow load custom resources > md2html with metadata 2`] = `
13
19
  "<!DOCTYPE html>
14
20
  <html lang="ru" dir="ltr">
15
21
  <head>
@@ -17,6 +23,8 @@ exports[`Allow load custom resources > md2html with metadata 1`] = `
17
23
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
18
24
  <base href="./" />
19
25
  <title>Documentation | Documentation</title>
26
+ <meta http-equiv="last-modified" content="2025-10-15T00:00:00.000Z">
27
+ <meta property="article:modified_time" content="2025-10-15T00:00:00.000Z">
20
28
  <meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
21
29
  <meta name="test-yfm" content="inline test">
22
30
  <meta name="yfm-config" content="config test">
@@ -25,7 +33,7 @@ exports[`Allow load custom resources > md2html with metadata 1`] = `
25
33
  <body class="g-root g-root_theme_light">
26
34
  <div id="root"></div>
27
35
  <script type="application/json" id="diplodoc-state">
28
- {"data":{"leading":true,"data":{"title":"Documentation","description":"","links":[{"title":"Getting started with Documentation","description":"This guide will show you the basics of working with Documentation","href":"page.html"}]},"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"},{"name":"test-yfm","content":"inline test"},{"name":"yfm-config","content":"config test"}],"title":"Documentation","noIndex":true,"vcsPath":"index.yaml"},"title":"Documentation"},"router":{"pathname":"index","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
36
+ {"data":{"leading":true,"data":{"title":"Documentation","description":"","links":[{"title":"Getting started with Documentation","description":"This guide will show you the basics of working with Documentation","href":"page.html"}]},"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"},{"name":"test-yfm","content":"inline test"},{"name":"yfm-config","content":"config test"}],"title":"Documentation","noIndex":true,"vcsPath":"index.yaml","updatedAt":"2025-10-15T00:00:00.000Z"},"title":"Documentation"},"router":{"pathname":"index","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
29
37
  </script>
30
38
  <script type="application/javascript">
31
39
  const data = document.querySelector('script#diplodoc-state');
@@ -39,7 +47,7 @@ exports[`Allow load custom resources > md2html with metadata 1`] = `
39
47
  </html>"
40
48
  `;
41
49
 
42
- exports[`Allow load custom resources > md2html with metadata 2`] = `
50
+ exports[`Allow load custom resources > md2html with metadata 3`] = `
43
51
  "<!DOCTYPE html>
44
52
  <html lang="ru" dir="ltr">
45
53
  <head>
@@ -47,10 +55,13 @@ exports[`Allow load custom resources > md2html with metadata 2`] = `
47
55
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
48
56
  <base href="./" />
49
57
  <title>Page Title | Documentation</title>
58
+ <meta http-equiv="last-modified" content="2025-10-15T00:00:00.000Z">
59
+ <meta property="article:modified_time" content="2025-10-15T00:00:00.000Z">
50
60
  <meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
51
61
  <meta name="test-yfm" content="inline test">
52
62
  <meta name="yfm-config" content="config test">
53
63
  <meta name="yfm" content="builder in page">
64
+ <meta property="og:title" content="Some kind of headline">
54
65
  <meta name="description" content="Some test description">
55
66
  <style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
56
67
  <link rel="icon" type="image/x-icon" href="/favicon.ico">
@@ -58,7 +69,7 @@ exports[`Allow load custom resources > md2html with metadata 2`] = `
58
69
  <body class="g-root g-root_theme_light">
59
70
  <div id="root"></div>
60
71
  <script type="application/json" id="diplodoc-state">
61
- {"data":{"leading":false,"html":"&lt;p&gt;Lorem&lt;/p&gt;/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"},{"name":"test-yfm","content":"inline test"},{"name":"yfm-config","content":"config test"},{"name":"yfm","content":"builder in page"},{"name":"description","content":"Some test description"}],"title":"Page Title","description":"Some test description","interface":{"toc":false,"favicon-src":"/favicon.ico"},"vcsPath":"page.md"},"headings":[],"title":"Page Title"},"router":{"pathname":"page","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":false,"search":true,"feedback":true,"favicon-src":"/favicon.ico"}}
72
+ {"data":{"leading":false,"html":"&lt;p&gt;Lorem&lt;/p&gt;/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"},{"name":"test-yfm","content":"inline test"},{"name":"yfm-config","content":"config test"},{"name":"yfm","content":"builder in page"},{"property":"og:title","content":"Some kind of headline"},{"name":"description","content":"Some test description"}],"title":"Page Title","description":"Some test description","interface":{"toc":false,"favicon-src":"/favicon.ico"},"vcsPath":"page.md","updatedAt":"2025-10-15T00:00:00.000Z"},"headings":[],"title":"Page Title"},"router":{"pathname":"page","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":false,"search":true,"feedback":true,"favicon-src":"/favicon.ico"}}
62
73
  </script>
63
74
  <script type="application/javascript">
64
75
  const data = document.querySelector('script#diplodoc-state');
@@ -72,7 +83,7 @@ exports[`Allow load custom resources > md2html with metadata 2`] = `
72
83
  </html>"
73
84
  `;
74
85
 
75
- exports[`Allow load custom resources > md2html with metadata 3`] = `
86
+ exports[`Allow load custom resources > md2html with metadata 4`] = `
76
87
  "<!DOCTYPE html>
77
88
  <html lang="ru" dir="ltr">
78
89
  <head>
@@ -80,6 +91,8 @@ exports[`Allow load custom resources > md2html with metadata 3`] = `
80
91
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
81
92
  <base href="../" />
82
93
  <title>Documentation</title>
94
+ <meta http-equiv="last-modified" content="2025-10-15T00:00:00.000Z">
95
+ <meta property="article:modified_time" content="2025-10-15T00:00:00.000Z">
83
96
  <meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
84
97
  <meta name="test-yfm" content="inline test">
85
98
  <meta name="yfm-config" content="config test">
@@ -89,7 +102,7 @@ exports[`Allow load custom resources > md2html with metadata 3`] = `
89
102
  <body class="g-root g-root_theme_light">
90
103
  <div id="root"></div>
91
104
  <script type="application/json" id="diplodoc-state">
92
- {"data":{"leading":false,"html":"&lt;p&gt;Lorem&lt;/p&gt;/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"},{"name":"test-yfm","content":"inline test"},{"name":"yfm-config","content":"config test"},{"name":"yfm","value":"builder in config"}],"vcsPath":"project/config.md"},"headings":[],"title":""},"router":{"pathname":"project/config","depth":2,"base":"../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
105
+ {"data":{"leading":false,"html":"&lt;p&gt;Lorem&lt;/p&gt;/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"},{"name":"test-yfm","content":"inline test"},{"name":"yfm-config","content":"config test"},{"name":"yfm","value":"builder in config"}],"vcsPath":"project/config.md","updatedAt":"2025-10-15T00:00:00.000Z"},"headings":[],"title":""},"router":{"pathname":"project/config","depth":2,"base":"../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
93
106
  </script>
94
107
  <script type="application/javascript">
95
108
  const data = document.querySelector('script#diplodoc-state');
@@ -103,7 +116,7 @@ exports[`Allow load custom resources > md2html with metadata 3`] = `
103
116
  </html>"
104
117
  `;
105
118
 
106
- exports[`Allow load custom resources > md2html with metadata 4`] = `"window.__DATA__.data.toc = {"title":"Documentation","href":"index.html","items":[{"name":"Documentation","href":"page.html","id":"UUID"},{"name":"Config","href":"project/config.html","id":"UUID"}],"path":"toc.yaml","id":"UUID"};"`;
119
+ exports[`Allow load custom resources > md2html with metadata 5`] = `"window.__DATA__.data.toc = {"title":"Documentation","href":"index.html","items":[{"name":"Documentation","href":"page.html","id":"UUID"},{"name":"Config","href":"project/config.html","id":"UUID"}],"path":"toc.yaml","id":"UUID"};"`;
107
120
 
108
121
  exports[`Allow load custom resources > md2md with metadata > filelist 1`] = `
109
122
  "[