@diplodoc/cli-tests 0.0.0-rc-liquid-conditions-saving-202509050811 → 0.0.0-rc-resolve-codeblock-202509151421

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 (30) hide show
  1. package/e2e/__snapshots__/bundles.spec.ts.snap +168 -0
  2. package/e2e/__snapshots__/include-toc.test.ts.snap +34 -0
  3. package/e2e/__snapshots__/load-custom-resources.spec.ts.snap +15 -106
  4. package/e2e/__snapshots__/metadata.spec.ts.snap +9 -47
  5. package/e2e/__snapshots__/plugin-corner-cases.spec.ts.snap +0 -0
  6. package/e2e/__snapshots__/preprocess.test.ts.snap +32 -0
  7. package/e2e/__snapshots__/regression.test.ts.snap +59 -211
  8. package/e2e/__snapshots__/restricted-access.test.ts.snap +20 -0
  9. package/e2e/__snapshots__/rtl.spec.ts.snap +6 -105
  10. package/e2e/__snapshots__/search.test.ts.snap +1 -31
  11. package/e2e/__snapshots__/single-page.spec.ts.snap +157 -0
  12. package/e2e/__snapshots__/skip-html-extension.spec.ts.snap +4 -63
  13. package/e2e/__snapshots__/translation.spec.ts.snap +183 -1416
  14. package/e2e/bundles.spec.ts +15 -0
  15. package/e2e/single-page.spec.ts +22 -0
  16. package/e2e/translation.spec.ts +0 -26
  17. package/fixtures/utils/file.ts +49 -6
  18. package/mocks/bundles/input/.yfm +13 -0
  19. package/mocks/bundles/input/index.md +12 -0
  20. package/mocks/bundles/input/page1.md +3 -0
  21. package/mocks/bundles/input/page2.md +5 -0
  22. package/mocks/bundles/input/toc.yaml +9 -0
  23. package/mocks/errors/extract-filtered-link/input/index.md +1 -1
  24. package/mocks/regression/input/autotitle.md +3 -0
  25. package/mocks/single-page/input/ru/index.yaml +9 -0
  26. package/mocks/single-page/input/ru/page.md +14 -0
  27. package/mocks/single-page/input/ru/project/config.md +1 -0
  28. package/mocks/single-page/input/ru/toc.yaml +7 -0
  29. package/package.json +1 -1
  30. package/mocks/translation/conditions/input/index.md +0 -37
@@ -5,23 +5,6 @@ exports[`Allow load custom resources > md2html single page with custom resources
5
5
  ".yfm",
6
6
  "_assets/script/test1.js",
7
7
  "_assets/style/test.css",
8
- "_bundle/app-css-1",
9
- "_bundle/app-js-2",
10
- "_bundle/latex-extension.css",
11
- "_bundle/latex-extension.js",
12
- "_bundle/mermaid-extension.js",
13
- "_bundle/page-constructor-extension.css",
14
- "_bundle/page-constructor-extension.js",
15
- "_bundle/search-async-0",
16
- "_bundle/search-async-1",
17
- "_bundle/search-css-0",
18
- "_bundle/search-css-1",
19
- "_bundle/search-css-2",
20
- "_bundle/search-css-3",
21
- "_bundle/search-css-4",
22
- "_bundle/search-js-0",
23
- "_bundle/search-js-1",
24
- "_bundle/search-js-2",
25
8
  "index.html",
26
9
  "page.html",
27
10
  "project/config.html",
@@ -50,19 +33,13 @@ exports[`Allow load custom resources > md2html single page with custom resources
50
33
  <base href="./" />
51
34
  <title>Documentation | Documentation</title>
52
35
  <meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
53
- <meta name="noIndex" content="true">
54
-
55
36
  <style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
56
-
57
-
58
- <link type="text/css" rel="stylesheet" href="_bundle/search-css-0"/>
59
- <link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
60
37
  <link type="text/css" rel="stylesheet" href="_assets/style/test.css"/>
61
38
  </head>
62
39
  <body class="g-root g-root_theme_light">
63
40
  <div id="root"></div>
64
41
  <script type="application/json" id="diplodoc-state">
65
- {"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"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"],"title":"Documentation","noIndex":true},"title":"Documentation"},"router":{"pathname":"index","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
42
+ {"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"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"],"title":"Documentation","noIndex":true,"vcsPath":"index.yaml","sourcePath":"index.yaml"},"title":"Documentation"},"router":{"pathname":"index","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
66
43
  </script>
67
44
  <script type="application/javascript">
68
45
  const data = document.querySelector('script#diplodoc-state');
@@ -72,11 +49,7 @@ exports[`Allow load custom resources > md2html single page with custom resources
72
49
  window.STATIC_CONTENT = false;
73
50
  </script>
74
51
  <script type="application/javascript" defer src="toc.js"></script>
75
- <script type="application/javascript" defer src="_bundle/search-js-1"></script>
76
- <script type="application/javascript" defer src="_bundle/search-js-2"></script>
77
- <script type="application/javascript" defer src="_bundle/app-js-2"></script>
78
52
  <script type="application/javascript" defer src="_assets/script/test1.js"></script>
79
-
80
53
  </body>
81
54
  </html>"
82
55
  `;
@@ -92,18 +65,14 @@ exports[`Allow load custom resources > md2html single page with custom resources
92
65
  <meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
93
66
  <meta name="yfm" content="builder in page">
94
67
  <meta name="description" content="Some test description">
95
-
96
68
  <style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
97
69
  <link rel="icon" type="image/x-icon" href="/favicon.ico">
98
-
99
- <link type="text/css" rel="stylesheet" href="_bundle/search-css-0"/>
100
- <link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
101
70
  <link type="text/css" rel="stylesheet" href="_assets/style/test.css"/>
102
71
  </head>
103
72
  <body class="g-root g-root_theme_light">
104
73
  <div id="root"></div>
105
74
  <script type="application/json" id="diplodoc-state">
106
- {"data":{"leading":false,"html":"&lt;p&gt;Lorem&lt;/p&gt;/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"},{"name":"yfm","content":"builder in page"},{"name":"description","content":"Some test description"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"],"title":"Page Title","description":"Some test description","interface":{"toc":false,"favicon-src":"/favicon.ico"}},"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"}}
75
+ {"data":{"leading":false,"html":"&lt;p&gt;Lorem&lt;/p&gt;/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"},{"name":"yfm","content":"builder in page"},{"name":"description","content":"Some test description"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"],"title":"Page Title","description":"Some test description","interface":{"toc":false,"favicon-src":"/favicon.ico"},"vcsPath":"page.md","sourcePath":"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"}}
107
76
  </script>
108
77
  <script type="application/javascript">
109
78
  const data = document.querySelector('script#diplodoc-state');
@@ -113,11 +82,7 @@ exports[`Allow load custom resources > md2html single page with custom resources
113
82
  window.STATIC_CONTENT = false;
114
83
  </script>
115
84
  <script type="application/javascript" defer src="toc.js"></script>
116
- <script type="application/javascript" defer src="_bundle/search-js-1"></script>
117
- <script type="application/javascript" defer src="_bundle/search-js-2"></script>
118
- <script type="application/javascript" defer src="_bundle/app-js-2"></script>
119
85
  <script type="application/javascript" defer src="_assets/script/test1.js"></script>
120
-
121
86
  </body>
122
87
  </html>"
123
88
  `;
@@ -131,18 +96,13 @@ exports[`Allow load custom resources > md2html single page with custom resources
131
96
  <base href="../" />
132
97
  <title>Documentation</title>
133
98
  <meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
134
-
135
99
  <style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
136
-
137
-
138
- <link type="text/css" rel="stylesheet" href="_bundle/search-css-0"/>
139
- <link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
140
100
  <link type="text/css" rel="stylesheet" href="_assets/style/test.css"/>
141
101
  </head>
142
102
  <body class="g-root g-root_theme_light">
143
103
  <div id="root"></div>
144
104
  <script type="application/json" id="diplodoc-state">
145
- {"data":{"leading":false,"html":"&lt;p&gt;Lorem&lt;/p&gt;/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"]},"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"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"],"vcsPath":"project/config.md","sourcePath":"project/config.md"},"headings":[],"title":""},"router":{"pathname":"project/config","depth":2,"base":"../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
146
106
  </script>
147
107
  <script type="application/javascript">
148
108
  const data = document.querySelector('script#diplodoc-state');
@@ -152,11 +112,7 @@ exports[`Allow load custom resources > md2html single page with custom resources
152
112
  window.STATIC_CONTENT = false;
153
113
  </script>
154
114
  <script type="application/javascript" defer src="toc.js"></script>
155
- <script type="application/javascript" defer src="_bundle/search-js-1"></script>
156
- <script type="application/javascript" defer src="_bundle/search-js-2"></script>
157
- <script type="application/javascript" defer src="_bundle/app-js-2"></script>
158
115
  <script type="application/javascript" defer src="_assets/script/test1.js"></script>
159
-
160
116
  </body>
161
117
  </html>"
162
118
  `;
@@ -170,22 +126,17 @@ exports[`Allow load custom resources > md2html single page with custom resources
170
126
  <meta charset="utf-8">
171
127
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
172
128
  <base href="./" />
173
- <title>Page Title | Documentation</title>
129
+ <title>Documentation | Documentation</title>
174
130
  <meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
175
131
  <meta name="yfm" content="builder in page">
176
132
  <meta name="description" content="Some test description">
177
-
178
133
  <style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
179
- <link rel="icon" type="image/x-icon" href="/favicon.ico">
180
-
181
- <link type="text/css" rel="stylesheet" href="_bundle/search-css-0"/>
182
- <link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
183
134
  <link type="text/css" rel="stylesheet" href="_assets/style/test.css"/>
184
135
  </head>
185
136
  <body class="g-root g-root_theme_light">
186
137
  <div id="root"></div>
187
138
  <script type="application/json" id="diplodoc-state">
188
- {"data":{"leading":false,"html":"&lt;h2 data-original-article=\\"page.html\\"&gt;Page Title&lt;a class=\\"yfm-anchor\\" aria-hidden=\\"true\\" href=\\"#page\\" id=\\"page\\"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Lorem&lt;/p&gt;/n&lt;hr class=\\"yfm-page__delimeter\\"&gt;&lt;p&gt;Lorem&lt;/p&gt;/n","headings":[],"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"},{"name":"yfm","content":"builder in page"},{"name":"description","content":"Some test description"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"],"title":"Page Title","description":"Some test description","interface":{"toc":false,"favicon-src":"/favicon.ico"}},"title":"Documentation"},"router":{"pathname":"single-page","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":false,"search":true,"feedback":true,"favicon-src":"/favicon.ico"}}
139
+ {"data":{"leading":false,"html":"&lt;h2 data-original-article=\\"page.html\\"&gt;Page Title&lt;a class=\\"yfm-anchor\\" aria-hidden=\\"true\\" href=\\"#page\\" id=\\"page\\"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Lorem&lt;/p&gt;/n&lt;hr class=\\"yfm-page__delimeter\\"&gt;&lt;p&gt;Lorem&lt;/p&gt;/n","headings":[],"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"},{"name":"yfm","content":"builder in page"},{"name":"description","content":"Some test description"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"]},"title":"Documentation"},"router":{"pathname":"single-page","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
189
140
  </script>
190
141
  <script type="application/javascript">
191
142
  const data = document.querySelector('script#diplodoc-state');
@@ -195,16 +146,12 @@ exports[`Allow load custom resources > md2html single page with custom resources
195
146
  window.STATIC_CONTENT = false;
196
147
  </script>
197
148
  <script type="application/javascript" defer src="single-page-toc.js"></script>
198
- <script type="application/javascript" defer src="_bundle/search-js-1"></script>
199
- <script type="application/javascript" defer src="_bundle/search-js-2"></script>
200
- <script type="application/javascript" defer src="_bundle/app-js-2"></script>
201
149
  <script type="application/javascript" defer src="_assets/script/test1.js"></script>
202
-
203
150
  </body>
204
151
  </html>"
205
152
  `;
206
153
 
207
- exports[`Allow load custom resources > md2html single page with custom resources 7`] = `"{"data":{"leading":false,"html":"<h2 data-original-article=\\"page.html\\">Page Title<a class=\\"yfm-anchor\\" aria-hidden=\\"true\\" href=\\"#page\\" id=\\"page\\"></a></h2><p>Lorem</p>/n<hr class=\\"yfm-page__delimeter\\"><p>Lorem</p>/n","headings":[],"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"},{"name":"yfm","content":"builder in page"},{"name":"description","content":"Some test description"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"],"title":"Page Title","description":"Some test description","interface":{"toc":false,"favicon-src":"/favicon.ico"}},"title":"Documentation","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"}},"router":{"pathname":"single-page","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":false,"search":true,"feedback":true,"favicon-src":"/favicon.ico"}}"`;
154
+ exports[`Allow load custom resources > md2html single page with custom resources 7`] = `"{"data":{"leading":false,"html":"<h2 data-original-article=\\"page.html\\">Page Title<a class=\\"yfm-anchor\\" aria-hidden=\\"true\\" href=\\"#page\\" id=\\"page\\"></a></h2><p>Lorem</p>/n<hr class=\\"yfm-page__delimeter\\"><p>Lorem</p>/n","headings":[],"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"},{"name":"yfm","content":"builder in page"},{"name":"description","content":"Some test description"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"]},"title":"Documentation","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"}},"router":{"pathname":"single-page","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}"`;
208
155
 
209
156
  exports[`Allow load custom resources > md2html single page with custom resources 8`] = `"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"};"`;
210
157
 
@@ -213,23 +160,6 @@ exports[`Allow load custom resources > md2html with custom resources > filelist
213
160
  ".yfm",
214
161
  "_assets/script/test1.js",
215
162
  "_assets/style/test.css",
216
- "_bundle/app-css-1",
217
- "_bundle/app-js-2",
218
- "_bundle/latex-extension.css",
219
- "_bundle/latex-extension.js",
220
- "_bundle/mermaid-extension.js",
221
- "_bundle/page-constructor-extension.css",
222
- "_bundle/page-constructor-extension.js",
223
- "_bundle/search-async-0",
224
- "_bundle/search-async-1",
225
- "_bundle/search-css-0",
226
- "_bundle/search-css-1",
227
- "_bundle/search-css-2",
228
- "_bundle/search-css-3",
229
- "_bundle/search-css-4",
230
- "_bundle/search-js-0",
231
- "_bundle/search-js-1",
232
- "_bundle/search-js-2",
233
163
  "index.html",
234
164
  "page.html",
235
165
  "project/config.html",
@@ -255,19 +185,13 @@ exports[`Allow load custom resources > md2html with custom resources 2`] = `
255
185
  <base href="./" />
256
186
  <title>Documentation | Documentation</title>
257
187
  <meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
258
- <meta name="noIndex" content="true">
259
-
260
188
  <style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
261
-
262
-
263
- <link type="text/css" rel="stylesheet" href="_bundle/search-css-0"/>
264
- <link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
265
189
  <link type="text/css" rel="stylesheet" href="_assets/style/test.css"/>
266
190
  </head>
267
191
  <body class="g-root g-root_theme_light">
268
192
  <div id="root"></div>
269
193
  <script type="application/json" id="diplodoc-state">
270
- {"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"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"],"title":"Documentation","noIndex":true},"title":"Documentation"},"router":{"pathname":"index","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
194
+ {"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"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"],"title":"Documentation","noIndex":true,"vcsPath":"index.yaml","sourcePath":"index.yaml"},"title":"Documentation"},"router":{"pathname":"index","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
271
195
  </script>
272
196
  <script type="application/javascript">
273
197
  const data = document.querySelector('script#diplodoc-state');
@@ -277,11 +201,7 @@ exports[`Allow load custom resources > md2html with custom resources 2`] = `
277
201
  window.STATIC_CONTENT = false;
278
202
  </script>
279
203
  <script type="application/javascript" defer src="toc.js"></script>
280
- <script type="application/javascript" defer src="_bundle/search-js-1"></script>
281
- <script type="application/javascript" defer src="_bundle/search-js-2"></script>
282
- <script type="application/javascript" defer src="_bundle/app-js-2"></script>
283
204
  <script type="application/javascript" defer src="_assets/script/test1.js"></script>
284
-
285
205
  </body>
286
206
  </html>"
287
207
  `;
@@ -297,18 +217,14 @@ exports[`Allow load custom resources > md2html with custom resources 3`] = `
297
217
  <meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
298
218
  <meta name="yfm" content="builder in page">
299
219
  <meta name="description" content="Some test description">
300
-
301
220
  <style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
302
221
  <link rel="icon" type="image/x-icon" href="/favicon.ico">
303
-
304
- <link type="text/css" rel="stylesheet" href="_bundle/search-css-0"/>
305
- <link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
306
222
  <link type="text/css" rel="stylesheet" href="_assets/style/test.css"/>
307
223
  </head>
308
224
  <body class="g-root g-root_theme_light">
309
225
  <div id="root"></div>
310
226
  <script type="application/json" id="diplodoc-state">
311
- {"data":{"leading":false,"html":"&lt;p&gt;Lorem&lt;/p&gt;/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"},{"name":"yfm","content":"builder in page"},{"name":"description","content":"Some test description"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"],"title":"Page Title","description":"Some test description","interface":{"toc":false,"favicon-src":"/favicon.ico"}},"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"}}
227
+ {"data":{"leading":false,"html":"&lt;p&gt;Lorem&lt;/p&gt;/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"},{"name":"yfm","content":"builder in page"},{"name":"description","content":"Some test description"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"],"title":"Page Title","description":"Some test description","interface":{"toc":false,"favicon-src":"/favicon.ico"},"vcsPath":"page.md","sourcePath":"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"}}
312
228
  </script>
313
229
  <script type="application/javascript">
314
230
  const data = document.querySelector('script#diplodoc-state');
@@ -318,11 +234,7 @@ exports[`Allow load custom resources > md2html with custom resources 3`] = `
318
234
  window.STATIC_CONTENT = false;
319
235
  </script>
320
236
  <script type="application/javascript" defer src="toc.js"></script>
321
- <script type="application/javascript" defer src="_bundle/search-js-1"></script>
322
- <script type="application/javascript" defer src="_bundle/search-js-2"></script>
323
- <script type="application/javascript" defer src="_bundle/app-js-2"></script>
324
237
  <script type="application/javascript" defer src="_assets/script/test1.js"></script>
325
-
326
238
  </body>
327
239
  </html>"
328
240
  `;
@@ -336,18 +248,13 @@ exports[`Allow load custom resources > md2html with custom resources 4`] = `
336
248
  <base href="../" />
337
249
  <title>Documentation</title>
338
250
  <meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
339
-
340
251
  <style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
341
-
342
-
343
- <link type="text/css" rel="stylesheet" href="_bundle/search-css-0"/>
344
- <link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
345
252
  <link type="text/css" rel="stylesheet" href="_assets/style/test.css"/>
346
253
  </head>
347
254
  <body class="g-root g-root_theme_light">
348
255
  <div id="root"></div>
349
256
  <script type="application/json" id="diplodoc-state">
350
- {"data":{"leading":false,"html":"&lt;p&gt;Lorem&lt;/p&gt;/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"]},"headings":[],"title":""},"router":{"pathname":"project/config","depth":2,"base":"../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
257
+ {"data":{"leading":false,"html":"&lt;p&gt;Lorem&lt;/p&gt;/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"],"vcsPath":"project/config.md","sourcePath":"project/config.md"},"headings":[],"title":""},"router":{"pathname":"project/config","depth":2,"base":"../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
351
258
  </script>
352
259
  <script type="application/javascript">
353
260
  const data = document.querySelector('script#diplodoc-state');
@@ -357,11 +264,7 @@ exports[`Allow load custom resources > md2html with custom resources 4`] = `
357
264
  window.STATIC_CONTENT = false;
358
265
  </script>
359
266
  <script type="application/javascript" defer src="toc.js"></script>
360
- <script type="application/javascript" defer src="_bundle/search-js-1"></script>
361
- <script type="application/javascript" defer src="_bundle/search-js-2"></script>
362
- <script type="application/javascript" defer src="_bundle/app-js-2"></script>
363
267
  <script type="application/javascript" defer src="_assets/script/test1.js"></script>
364
-
365
268
  </body>
366
269
  </html>"
367
270
  `;
@@ -402,6 +305,8 @@ meta:
402
305
  - _assets/script/test1.js
403
306
  title: Documentation
404
307
  noIndex: true
308
+ vcsPath: index.yaml
309
+ sourcePath: index.yaml
405
310
  links:
406
311
  - title: Getting started with Documentation
407
312
  description: This guide will show you the basics of working with Documentation
@@ -425,6 +330,8 @@ description: Some test description
425
330
  interface:
426
331
  toc: false
427
332
  favicon-src: /favicon.ico
333
+ vcsPath: page.md
334
+ sourcePath: page.md
428
335
  ---
429
336
 
430
337
  Lorem"
@@ -439,6 +346,8 @@ style:
439
346
  - _assets/style/test.css
440
347
  script:
441
348
  - _assets/script/test1.js
349
+ vcsPath: project/config.md
350
+ sourcePath: project/config.md
442
351
  ---
443
352
  Lorem"
444
353
  `;
@@ -2,23 +2,6 @@
2
2
 
3
3
  exports[`Allow load custom resources > md2html with metadata > filelist 1`] = `
4
4
  "[
5
- "_bundle/app-css-1",
6
- "_bundle/app-js-2",
7
- "_bundle/latex-extension.css",
8
- "_bundle/latex-extension.js",
9
- "_bundle/mermaid-extension.js",
10
- "_bundle/page-constructor-extension.css",
11
- "_bundle/page-constructor-extension.js",
12
- "_bundle/search-async-0",
13
- "_bundle/search-async-1",
14
- "_bundle/search-css-0",
15
- "_bundle/search-css-1",
16
- "_bundle/search-css-2",
17
- "_bundle/search-css-3",
18
- "_bundle/search-css-4",
19
- "_bundle/search-js-0",
20
- "_bundle/search-js-1",
21
- "_bundle/search-js-2",
22
5
  "index.html",
23
6
  "page.html",
24
7
  "project/config.html",
@@ -37,18 +20,12 @@ exports[`Allow load custom resources > md2html with metadata 1`] = `
37
20
  <meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
38
21
  <meta name="test-yfm" content="inline test">
39
22
  <meta name="yfm-config" content="config test">
40
- <meta name="noIndex" content="true">
41
-
42
23
  <style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
43
-
44
-
45
- <link type="text/css" rel="stylesheet" href="_bundle/search-css-0"/>
46
- <link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
47
24
  </head>
48
25
  <body class="g-root g-root_theme_light">
49
26
  <div id="root"></div>
50
27
  <script type="application/json" id="diplodoc-state">
51
- {"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},"title":"Documentation"},"router":{"pathname":"index","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
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","sourcePath":"index.yaml"},"title":"Documentation"},"router":{"pathname":"index","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
52
29
  </script>
53
30
  <script type="application/javascript">
54
31
  const data = document.querySelector('script#diplodoc-state');
@@ -58,10 +35,6 @@ exports[`Allow load custom resources > md2html with metadata 1`] = `
58
35
  window.STATIC_CONTENT = false;
59
36
  </script>
60
37
  <script type="application/javascript" defer src="toc.js"></script>
61
- <script type="application/javascript" defer src="_bundle/search-js-1"></script>
62
- <script type="application/javascript" defer src="_bundle/search-js-2"></script>
63
- <script type="application/javascript" defer src="_bundle/app-js-2"></script>
64
-
65
38
  </body>
66
39
  </html>"
67
40
  `;
@@ -79,17 +52,13 @@ exports[`Allow load custom resources > md2html with metadata 2`] = `
79
52
  <meta name="yfm-config" content="config test">
80
53
  <meta name="yfm" content="builder in page">
81
54
  <meta name="description" content="Some test description">
82
-
83
55
  <style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
84
56
  <link rel="icon" type="image/x-icon" href="/favicon.ico">
85
-
86
- <link type="text/css" rel="stylesheet" href="_bundle/search-css-0"/>
87
- <link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
88
57
  </head>
89
58
  <body class="g-root g-root_theme_light">
90
59
  <div id="root"></div>
91
60
  <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","content":"builder in page"},{"name":"description","content":"Some test description"}],"title":"Page Title","description":"Some test description","interface":{"toc":false,"favicon-src":"/favicon.ico"}},"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"}}
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","sourcePath":"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"}}
93
62
  </script>
94
63
  <script type="application/javascript">
95
64
  const data = document.querySelector('script#diplodoc-state');
@@ -99,10 +68,6 @@ exports[`Allow load custom resources > md2html with metadata 2`] = `
99
68
  window.STATIC_CONTENT = false;
100
69
  </script>
101
70
  <script type="application/javascript" defer src="toc.js"></script>
102
- <script type="application/javascript" defer src="_bundle/search-js-1"></script>
103
- <script type="application/javascript" defer src="_bundle/search-js-2"></script>
104
- <script type="application/javascript" defer src="_bundle/app-js-2"></script>
105
-
106
71
  </body>
107
72
  </html>"
108
73
  `;
@@ -119,17 +84,12 @@ exports[`Allow load custom resources > md2html with metadata 3`] = `
119
84
  <meta name="test-yfm" content="inline test">
120
85
  <meta name="yfm-config" content="config test">
121
86
  <meta name="yfm" value="builder in config">
122
-
123
87
  <style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
124
-
125
-
126
- <link type="text/css" rel="stylesheet" href="_bundle/search-css-0"/>
127
- <link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
128
88
  </head>
129
89
  <body class="g-root g-root_theme_light">
130
90
  <div id="root"></div>
131
91
  <script type="application/json" id="diplodoc-state">
132
- {"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"}]},"headings":[],"title":""},"router":{"pathname":"project/config","depth":2,"base":"../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
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","sourcePath":"project/config.md"},"headings":[],"title":""},"router":{"pathname":"project/config","depth":2,"base":"../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
133
93
  </script>
134
94
  <script type="application/javascript">
135
95
  const data = document.querySelector('script#diplodoc-state');
@@ -139,10 +99,6 @@ exports[`Allow load custom resources > md2html with metadata 3`] = `
139
99
  window.STATIC_CONTENT = false;
140
100
  </script>
141
101
  <script type="application/javascript" defer src="toc.js"></script>
142
- <script type="application/javascript" defer src="_bundle/search-js-1"></script>
143
- <script type="application/javascript" defer src="_bundle/search-js-2"></script>
144
- <script type="application/javascript" defer src="_bundle/app-js-2"></script>
145
-
146
102
  </body>
147
103
  </html>"
148
104
  `;
@@ -171,6 +127,8 @@ meta:
171
127
  content: config test
172
128
  title: Documentation
173
129
  noIndex: true
130
+ vcsPath: index.yaml
131
+ sourcePath: index.yaml
174
132
  links:
175
133
  - title: Getting started with Documentation
176
134
  description: This guide will show you the basics of working with Documentation
@@ -194,6 +152,8 @@ description: Some test description
194
152
  interface:
195
153
  toc: false
196
154
  favicon-src: /favicon.ico
155
+ vcsPath: page.md
156
+ sourcePath: page.md
197
157
  ---
198
158
 
199
159
  Lorem"
@@ -210,6 +170,8 @@ metadata:
210
170
  content: config test
211
171
  - name: yfm
212
172
  value: builder in config
173
+ vcsPath: project/config.md
174
+ sourcePath: project/config.md
213
175
  ---
214
176
 
215
177
  Lorem"
@@ -33,6 +33,8 @@ exports[`Preprocess > HashIncludes=true,Autotitles=false 2`] = `
33
33
  metadata:
34
34
  - name: generator
35
35
  content: Diplodoc Platform vDIPLODOC-VERSION
36
+ vcsPath: 1.md
37
+ sourcePath: 1.md
36
38
  ---
37
39
  # Title
38
40
 
@@ -71,6 +73,8 @@ exports[`Preprocess > HashIncludes=true,Autotitles=false 3`] = `
71
73
  metadata:
72
74
  - name: generator
73
75
  content: Diplodoc Platform vDIPLODOC-VERSION
76
+ vcsPath: autotitle.md
77
+ sourcePath: autotitle.md
74
78
  ---
75
79
  # Autotitles ![](_assets/1.svg)
76
80
 
@@ -103,6 +107,8 @@ exports[`Preprocess > HashIncludes=true,Autotitles=false 4`] = `
103
107
  metadata:
104
108
  - name: generator
105
109
  content: Diplodoc Platform vDIPLODOC-VERSION
110
+ vcsPath: images.md
111
+ sourcePath: images.md
106
112
  ---
107
113
  # Images
108
114
 
@@ -117,6 +123,8 @@ exports[`Preprocess > HashIncludes=true,Autotitles=false 5`] = `
117
123
  metadata:
118
124
  - name: generator
119
125
  content: Diplodoc Platform vDIPLODOC-VERSION
126
+ vcsPath: included-item.md
127
+ sourcePath: included-item.md
120
128
  ---
121
129
  # Included item
122
130
 
@@ -138,6 +146,8 @@ exports[`Preprocess > HashIncludes=true,Autotitles=false 6`] = `
138
146
  metadata:
139
147
  - name: generator
140
148
  content: Diplodoc Platform vDIPLODOC-VERSION
149
+ vcsPath: includes.md
150
+ sourcePath: includes.md
141
151
  ---
142
152
  Text
143
153
 
@@ -203,6 +213,8 @@ exports[`Preprocess > HashIncludes=true,Autotitles=false 13`] = `
203
213
  metadata:
204
214
  - name: generator
205
215
  content: Diplodoc Platform vDIPLODOC-VERSION
216
+ vcsPath: latex.md
217
+ sourcePath: latex.md
206
218
  ---
207
219
  # Latex usage
208
220
 
@@ -215,6 +227,8 @@ exports[`Preprocess > HashIncludes=true,Autotitles=false 14`] = `
215
227
  metadata:
216
228
  - name: generator
217
229
  content: Diplodoc Platform vDIPLODOC-VERSION
230
+ vcsPath: mermaid.md
231
+ sourcePath: mermaid.md
218
232
  ---
219
233
  # Mermaid usage
220
234
 
@@ -237,6 +251,8 @@ exports[`Preprocess > HashIncludes=true,Autotitles=false 15`] = `
237
251
  metadata:
238
252
  - name: generator
239
253
  content: Diplodoc Platform vDIPLODOC-VERSION
254
+ vcsPath: sub/folder/item-1.md
255
+ sourcePath: sub/folder/item-1.md
240
256
  ---
241
257
  # Item 1
242
258
 
@@ -307,6 +323,8 @@ exports[`Preprocess > HashIncludes=true,Autotitles=true 2`] = `
307
323
  metadata:
308
324
  - name: generator
309
325
  content: Diplodoc Platform vDIPLODOC-VERSION
326
+ vcsPath: 1.md
327
+ sourcePath: 1.md
310
328
  ---
311
329
  # Title
312
330
 
@@ -345,6 +363,8 @@ exports[`Preprocess > HashIncludes=true,Autotitles=true 3`] = `
345
363
  metadata:
346
364
  - name: generator
347
365
  content: Diplodoc Platform vDIPLODOC-VERSION
366
+ vcsPath: autotitle.md
367
+ sourcePath: autotitle.md
348
368
  ---
349
369
  # Autotitles ![](_assets/1.svg)
350
370
 
@@ -377,6 +397,8 @@ exports[`Preprocess > HashIncludes=true,Autotitles=true 4`] = `
377
397
  metadata:
378
398
  - name: generator
379
399
  content: Diplodoc Platform vDIPLODOC-VERSION
400
+ vcsPath: images.md
401
+ sourcePath: images.md
380
402
  ---
381
403
  # Images
382
404
 
@@ -391,6 +413,8 @@ exports[`Preprocess > HashIncludes=true,Autotitles=true 5`] = `
391
413
  metadata:
392
414
  - name: generator
393
415
  content: Diplodoc Platform vDIPLODOC-VERSION
416
+ vcsPath: included-item.md
417
+ sourcePath: included-item.md
394
418
  ---
395
419
  # Included item
396
420
 
@@ -412,6 +436,8 @@ exports[`Preprocess > HashIncludes=true,Autotitles=true 6`] = `
412
436
  metadata:
413
437
  - name: generator
414
438
  content: Diplodoc Platform vDIPLODOC-VERSION
439
+ vcsPath: includes.md
440
+ sourcePath: includes.md
415
441
  ---
416
442
  Text
417
443
 
@@ -477,6 +503,8 @@ exports[`Preprocess > HashIncludes=true,Autotitles=true 13`] = `
477
503
  metadata:
478
504
  - name: generator
479
505
  content: Diplodoc Platform vDIPLODOC-VERSION
506
+ vcsPath: latex.md
507
+ sourcePath: latex.md
480
508
  ---
481
509
  # Latex usage
482
510
 
@@ -489,6 +517,8 @@ exports[`Preprocess > HashIncludes=true,Autotitles=true 14`] = `
489
517
  metadata:
490
518
  - name: generator
491
519
  content: Diplodoc Platform vDIPLODOC-VERSION
520
+ vcsPath: mermaid.md
521
+ sourcePath: mermaid.md
492
522
  ---
493
523
  # Mermaid usage
494
524
 
@@ -511,6 +541,8 @@ exports[`Preprocess > HashIncludes=true,Autotitles=true 15`] = `
511
541
  metadata:
512
542
  - name: generator
513
543
  content: Diplodoc Platform vDIPLODOC-VERSION
544
+ vcsPath: sub/folder/item-1.md
545
+ sourcePath: sub/folder/item-1.md
514
546
  ---
515
547
  # Item 1
516
548