@diplodoc/cli-tests 5.10.2 → 5.11.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.
@@ -70,7 +70,7 @@ exports[`Check bundles > bundles list is correct 2`] = `
70
70
  <body class="g-root g-root_theme_light">
71
71
  <div id="root"></div>
72
72
  <script type="application/json" id="diplodoc-state">
73
- {"data":{"leading":false,"html":"&lt;p&gt;Content&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"page1.html\\"&gt;Link 1&lt;/a&gt;&lt;br /&gt;/n&lt;a href=\\"page2.html\\"&gt;Link 2&lt;/a&gt;&lt;/p&gt;/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"availableLangs":["en","ru"]},"headings":[],"title":"Header"},"router":{"pathname":"index","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc-header":false,"favicon-src":"https://storage.yandexcloud.net/diplodoc-www-assets/favicon/favicon.ico","toc":true,"search":true,"feedback":true},"search":{"provider":"local","tolerance":2,"confidense":"phrased","enabled":true,"api":"_search/api.js","link":"_search/ru/index.html"}}
73
+ {"data":{"leading":false,"html":"&lt;p&gt;Content&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"page1.html\\"&gt;Link 1&lt;/a&gt;&lt;br /&gt;/n&lt;a href=\\"page2.html\\"&gt;Link 2&lt;/a&gt;&lt;/p&gt;/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"availableLangs":["en","ru"],"vcsPath":"index.md","sourcePath":"index.md"},"headings":[],"title":"Header"},"router":{"pathname":"index","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc-header":false,"favicon-src":"https://storage.yandexcloud.net/diplodoc-www-assets/favicon/favicon.ico","toc":true,"search":true,"feedback":true},"search":{"provider":"local","tolerance":2,"confidense":"phrased","enabled":true,"api":"_search/api.js","link":"_search/ru/index.html"}}
74
74
  </script>
75
75
  <script type="application/javascript">
76
76
  const data = document.querySelector('script#diplodoc-state');
@@ -108,7 +108,7 @@ exports[`Check bundles > bundles list is correct 3`] = `
108
108
  <body class="g-root g-root_theme_light">
109
109
  <div id="root"></div>
110
110
  <script type="application/json" id="diplodoc-state">
111
- {"data":{"leading":false,"html":"&lt;p&gt;&lt;a href=\\"page2.html#hash\\"&gt;Link&lt;/a&gt;&lt;/p&gt;/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}]},"headings":[],"title":"Page 1"},"router":{"pathname":"page1","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc-header":false,"favicon-src":"https://storage.yandexcloud.net/diplodoc-www-assets/favicon/favicon.ico","toc":true,"search":true,"feedback":true},"search":{"provider":"local","tolerance":2,"confidense":"phrased","enabled":true,"api":"_search/api.js","link":"_search/ru/index.html"}}
111
+ {"data":{"leading":false,"html":"&lt;p&gt;&lt;a href=\\"page2.html#hash\\"&gt;Link&lt;/a&gt;&lt;/p&gt;/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"page1.md","sourcePath":"page1.md"},"headings":[],"title":"Page 1"},"router":{"pathname":"page1","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc-header":false,"favicon-src":"https://storage.yandexcloud.net/diplodoc-www-assets/favicon/favicon.ico","toc":true,"search":true,"feedback":true},"search":{"provider":"local","tolerance":2,"confidense":"phrased","enabled":true,"api":"_search/api.js","link":"_search/ru/index.html"}}
112
112
  </script>
113
113
  <script type="application/javascript">
114
114
  const data = document.querySelector('script#diplodoc-state');
@@ -146,7 +146,7 @@ exports[`Check bundles > bundles list is correct 4`] = `
146
146
  <body class="g-root g-root_theme_light">
147
147
  <div id="root"></div>
148
148
  <script type="application/json" id="diplodoc-state">
149
- {"data":{"leading":false,"html":"&lt;h2 id=\\"hash\\"&gt;&lt;a href=\\"page2.html#hash\\" class=\\"yfm-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;hash&lt;/span&gt;&lt;/a&gt;hash&lt;/h2&gt;/n&lt;p&gt;&lt;a href=\\"https://example.com\\" target=\\"_blank\\" rel=\\"noreferrer noopener\\"&gt;External link&lt;/a&gt;&lt;/p&gt;/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}]},"headings":[{"title":"hash","href":"page2.html#hash","level":2}],"title":"Page 2"},"router":{"pathname":"page2","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc-header":false,"favicon-src":"https://storage.yandexcloud.net/diplodoc-www-assets/favicon/favicon.ico","toc":true,"search":true,"feedback":true},"search":{"provider":"local","tolerance":2,"confidense":"phrased","enabled":true,"api":"_search/api.js","link":"_search/ru/index.html"}}
149
+ {"data":{"leading":false,"html":"&lt;h2 id=\\"hash\\"&gt;&lt;a href=\\"page2.html#hash\\" class=\\"yfm-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;hash&lt;/span&gt;&lt;/a&gt;hash&lt;/h2&gt;/n&lt;p&gt;&lt;a href=\\"https://example.com\\" target=\\"_blank\\" rel=\\"noreferrer noopener\\"&gt;External link&lt;/a&gt;&lt;/p&gt;/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"page2.md","sourcePath":"page2.md"},"headings":[{"title":"hash","href":"page2.html#hash","level":2}],"title":"Page 2"},"router":{"pathname":"page2","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc-header":false,"favicon-src":"https://storage.yandexcloud.net/diplodoc-www-assets/favicon/favicon.ico","toc":true,"search":true,"feedback":true},"search":{"provider":"local","tolerance":2,"confidense":"phrased","enabled":true,"api":"_search/api.js","link":"_search/ru/index.html"}}
150
150
  </script>
151
151
  <script type="application/javascript">
152
152
  const data = document.querySelector('script#diplodoc-state');
@@ -24,6 +24,7 @@ metadata:
24
24
  - name: generator
25
25
  content: Diplodoc Platform vDIPLODOC-VERSION
26
26
  sourcePath: product1/core/article1.md
27
+ vcsPath: product1/core/article1.md
27
28
  ---
28
29
  This is the core content of Article 1.
29
30
 
@@ -72,6 +73,7 @@ metadata:
72
73
  - name: generator
73
74
  content: Diplodoc Platform vDIPLODOC-VERSION
74
75
  sourcePath: product2/overlay1/product/article1.md
76
+ vcsPath: product2/overlay1/product/article1.md
75
77
  ---
76
78
  This is the overlay content of Article 1 for product 2.
77
79
 
@@ -90,6 +92,7 @@ metadata:
90
92
  - name: generator
91
93
  content: Diplodoc Platform vDIPLODOC-VERSION
92
94
  sourcePath: product2/overlay2/product/article1.md
95
+ vcsPath: product2/overlay2/product/article1.md
93
96
  ---
94
97
  This is the overlay number #2 of Article 1 content for product 2.
95
98
 
@@ -108,6 +111,7 @@ metadata:
108
111
  - name: generator
109
112
  content: Diplodoc Platform vDIPLODOC-VERSION
110
113
  sourcePath: product2/core/article1.md
114
+ vcsPath: product2/core/article1.md
111
115
  ---
112
116
  This is the core content of Article 1.
113
117
 
@@ -120,6 +124,8 @@ exports[`Include toc > Nested toc inclusions with mixed including modes 10`] = `
120
124
  metadata:
121
125
  - name: generator
122
126
  content: Diplodoc Platform vDIPLODOC-VERSION
127
+ vcsPath: product2/p2.md
128
+ sourcePath: product2/p2.md
123
129
  ---
124
130
  This is the product 2 specific article.
125
131
 
@@ -162,6 +168,8 @@ exports[`Include toc > Toc is included in link mode 1`] = `
162
168
  metadata:
163
169
  - name: generator
164
170
  content: Diplodoc Platform vDIPLODOC-VERSION
171
+ vcsPath: a1.md
172
+ sourcePath: a1.md
165
173
  ---
166
174
  This is the /a1.md file content.
167
175
  "
@@ -172,6 +180,8 @@ exports[`Include toc > Toc is included in link mode 2`] = `
172
180
  metadata:
173
181
  - name: generator
174
182
  content: Diplodoc Platform vDIPLODOC-VERSION
183
+ vcsPath: folder1/a1.md
184
+ sourcePath: folder1/a1.md
175
185
  ---
176
186
  This is the /folder1/a1.md file content.
177
187
  "
@@ -182,6 +192,8 @@ exports[`Include toc > Toc is included in link mode 3`] = `
182
192
  metadata:
183
193
  - name: generator
184
194
  content: Diplodoc Platform vDIPLODOC-VERSION
195
+ vcsPath: folder1/folder2/a1.md
196
+ sourcePath: folder1/folder2/a1.md
185
197
  ---
186
198
  This is the /folder1/folder1/a1.md file content.
187
199
  "
@@ -225,6 +237,8 @@ exports[`Include toc > Toc is included inline, not as a new section 2`] = `
225
237
  metadata:
226
238
  - name: generator
227
239
  content: Diplodoc Platform vDIPLODOC-VERSION
240
+ vcsPath: file1.md
241
+ sourcePath: file1.md
228
242
  ---
229
243
  # File 1
230
244
  "
@@ -238,6 +252,7 @@ metadata:
238
252
  sourcePath: folder/fileA.md
239
253
  title: File A
240
254
  description: YFM description
255
+ vcsPath: folder/fileA.md
241
256
  ---
242
257
  # File A
243
258
 
@@ -255,6 +270,7 @@ metadata:
255
270
  - name: generator
256
271
  content: Diplodoc Platform vDIPLODOC-VERSION
257
272
  sourcePath: folder/fileB.md
273
+ vcsPath: folder/fileB.md
258
274
  ---
259
275
  # File B
260
276
 
@@ -274,6 +290,7 @@ metadata:
274
290
  - name: generator
275
291
  content: Diplodoc Platform vDIPLODOC-VERSION
276
292
  sourcePath: folder/folder/fileC.md
293
+ vcsPath: folder/folder/fileC.md
277
294
  ---
278
295
  # File C
279
296
  "
@@ -284,6 +301,8 @@ exports[`Include toc > Toc is included inline, not as a new section 6`] = `
284
301
  metadata:
285
302
  - name: generator
286
303
  content: Diplodoc Platform vDIPLODOC-VERSION
304
+ vcsPath: fileX.md
305
+ sourcePath: fileX.md
287
306
  ---
288
307
  # File X
289
308
  "
@@ -329,6 +348,7 @@ meta:
329
348
  - name: generator
330
349
  content: Diplodoc Platform vDIPLODOC-VERSION
331
350
  sourcePath: ru/sub/folder/index.yaml
351
+ vcsPath: ru/sub/folder/index.yaml
332
352
  "
333
353
  `;
334
354
 
@@ -354,6 +374,8 @@ exports[`Include toc > Toc with expressions 1`] = `
354
374
  metadata:
355
375
  - name: generator
356
376
  content: Diplodoc Platform vDIPLODOC-VERSION
377
+ vcsPath: a1.md
378
+ sourcePath: a1.md
357
379
  ---
358
380
  This is the /a1.md file content.
359
381
  "
@@ -368,6 +390,8 @@ meta:
368
390
  - name: generator
369
391
  content: Diplodoc Platform vDIPLODOC-VERSION
370
392
  title: Meta A
393
+ vcsPath: index.yaml
394
+ sourcePath: index.yaml
371
395
  links:
372
396
  - title: A1
373
397
  description: A1 desc
@@ -401,6 +425,8 @@ exports[`Include toc > Toc with generic includer 1`] = `
401
425
  metadata:
402
426
  - name: generator
403
427
  content: Diplodoc Platform vDIPLODOC-VERSION
428
+ vcsPath: test/index.md
429
+ sourcePath: test/index.md
404
430
  ---
405
431
  # H1
406
432
 
@@ -414,6 +440,8 @@ exports[`Include toc > Toc with generic includer 2`] = `
414
440
  metadata:
415
441
  - name: generator
416
442
  content: Diplodoc Platform vDIPLODOC-VERSION
443
+ vcsPath: test/sub/sub-1.md
444
+ sourcePath: test/sub/sub-1.md
417
445
  ---
418
446
  # H1
419
447
 
@@ -428,6 +456,8 @@ exports[`Include toc > Toc with generic includer 3`] = `
428
456
  metadata:
429
457
  - name: generator
430
458
  content: Diplodoc Platform vDIPLODOC-VERSION
459
+ vcsPath: test/sub/sub-2.md
460
+ sourcePath: test/sub/sub-2.md
431
461
  ---
432
462
  # H1"
433
463
  `;
@@ -437,6 +467,8 @@ exports[`Include toc > Toc with generic includer 4`] = `
437
467
  metadata:
438
468
  - name: generator
439
469
  content: Diplodoc Platform vDIPLODOC-VERSION
470
+ vcsPath: test/sub/sub/sub-3.md
471
+ sourcePath: test/sub/sub/sub-3.md
440
472
  ---
441
473
  # H1"
442
474
  `;
@@ -446,6 +478,8 @@ exports[`Include toc > Toc with generic includer 5`] = `
446
478
  metadata:
447
479
  - name: generator
448
480
  content: Diplodoc Platform vDIPLODOC-VERSION
481
+ vcsPath: test/test.md
482
+ sourcePath: test/test.md
449
483
  ---
450
484
  # H1"
451
485
  `;
@@ -33,14 +33,13 @@ exports[`Allow load custom resources > md2html single page with custom resources
33
33
  <base href="./" />
34
34
  <title>Documentation | Documentation</title>
35
35
  <meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
36
- <meta name="noIndex" content="true">
37
36
  <style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
38
37
  <link type="text/css" rel="stylesheet" href="_assets/style/test.css"/>
39
38
  </head>
40
39
  <body class="g-root g-root_theme_light">
41
40
  <div id="root"></div>
42
41
  <script type="application/json" id="diplodoc-state">
43
- {"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}}
44
43
  </script>
45
44
  <script type="application/javascript">
46
45
  const data = document.querySelector('script#diplodoc-state');
@@ -73,7 +72,7 @@ exports[`Allow load custom resources > md2html single page with custom resources
73
72
  <body class="g-root g-root_theme_light">
74
73
  <div id="root"></div>
75
74
  <script type="application/json" id="diplodoc-state">
76
- {"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"}}
77
76
  </script>
78
77
  <script type="application/javascript">
79
78
  const data = document.querySelector('script#diplodoc-state');
@@ -103,7 +102,7 @@ exports[`Allow load custom resources > md2html single page with custom resources
103
102
  <body class="g-root g-root_theme_light">
104
103
  <div id="root"></div>
105
104
  <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"}],"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}}
107
106
  </script>
108
107
  <script type="application/javascript">
109
108
  const data = document.querySelector('script#diplodoc-state');
@@ -127,18 +126,17 @@ exports[`Allow load custom resources > md2html single page with custom resources
127
126
  <meta charset="utf-8">
128
127
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
129
128
  <base href="./" />
130
- <title>Page Title | Documentation</title>
129
+ <title>Documentation | Documentation</title>
131
130
  <meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
132
131
  <meta name="yfm" content="builder in page">
133
132
  <meta name="description" content="Some test description">
134
133
  <style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
135
- <link rel="icon" type="image/x-icon" href="/favicon.ico">
136
134
  <link type="text/css" rel="stylesheet" href="_assets/style/test.css"/>
137
135
  </head>
138
136
  <body class="g-root g-root_theme_light">
139
137
  <div id="root"></div>
140
138
  <script type="application/json" id="diplodoc-state">
141
- {"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}}
142
140
  </script>
143
141
  <script type="application/javascript">
144
142
  const data = document.querySelector('script#diplodoc-state');
@@ -153,7 +151,7 @@ exports[`Allow load custom resources > md2html single page with custom resources
153
151
  </html>"
154
152
  `;
155
153
 
156
- 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}}"`;
157
155
 
158
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"};"`;
159
157
 
@@ -187,14 +185,13 @@ exports[`Allow load custom resources > md2html with custom resources 2`] = `
187
185
  <base href="./" />
188
186
  <title>Documentation | Documentation</title>
189
187
  <meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
190
- <meta name="noIndex" content="true">
191
188
  <style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
192
189
  <link type="text/css" rel="stylesheet" href="_assets/style/test.css"/>
193
190
  </head>
194
191
  <body class="g-root g-root_theme_light">
195
192
  <div id="root"></div>
196
193
  <script type="application/json" id="diplodoc-state">
197
- {"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}}
198
195
  </script>
199
196
  <script type="application/javascript">
200
197
  const data = document.querySelector('script#diplodoc-state');
@@ -227,7 +224,7 @@ exports[`Allow load custom resources > md2html with custom resources 3`] = `
227
224
  <body class="g-root g-root_theme_light">
228
225
  <div id="root"></div>
229
226
  <script type="application/json" id="diplodoc-state">
230
- {"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"}}
231
228
  </script>
232
229
  <script type="application/javascript">
233
230
  const data = document.querySelector('script#diplodoc-state');
@@ -257,7 +254,7 @@ exports[`Allow load custom resources > md2html with custom resources 4`] = `
257
254
  <body class="g-root g-root_theme_light">
258
255
  <div id="root"></div>
259
256
  <script type="application/json" id="diplodoc-state">
260
- {"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}}
261
258
  </script>
262
259
  <script type="application/javascript">
263
260
  const data = document.querySelector('script#diplodoc-state');
@@ -308,6 +305,8 @@ meta:
308
305
  - _assets/script/test1.js
309
306
  title: Documentation
310
307
  noIndex: true
308
+ vcsPath: index.yaml
309
+ sourcePath: index.yaml
311
310
  links:
312
311
  - title: Getting started with Documentation
313
312
  description: This guide will show you the basics of working with Documentation
@@ -331,6 +330,8 @@ description: Some test description
331
330
  interface:
332
331
  toc: false
333
332
  favicon-src: /favicon.ico
333
+ vcsPath: page.md
334
+ sourcePath: page.md
334
335
  ---
335
336
 
336
337
  Lorem"
@@ -345,6 +346,8 @@ style:
345
346
  - _assets/style/test.css
346
347
  script:
347
348
  - _assets/script/test1.js
349
+ vcsPath: project/config.md
350
+ sourcePath: project/config.md
348
351
  ---
349
352
  Lorem"
350
353
  `;
@@ -20,13 +20,12 @@ exports[`Allow load custom resources > md2html with metadata 1`] = `
20
20
  <meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
21
21
  <meta name="test-yfm" content="inline test">
22
22
  <meta name="yfm-config" content="config test">
23
- <meta name="noIndex" content="true">
24
23
  <style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
25
24
  </head>
26
25
  <body class="g-root g-root_theme_light">
27
26
  <div id="root"></div>
28
27
  <script type="application/json" id="diplodoc-state">
29
- {"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}}
30
29
  </script>
31
30
  <script type="application/javascript">
32
31
  const data = document.querySelector('script#diplodoc-state');
@@ -59,7 +58,7 @@ exports[`Allow load custom resources > md2html with metadata 2`] = `
59
58
  <body class="g-root g-root_theme_light">
60
59
  <div id="root"></div>
61
60
  <script type="application/json" id="diplodoc-state">
62
- {"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"}}
63
62
  </script>
64
63
  <script type="application/javascript">
65
64
  const data = document.querySelector('script#diplodoc-state');
@@ -90,7 +89,7 @@ exports[`Allow load custom resources > md2html with metadata 3`] = `
90
89
  <body class="g-root g-root_theme_light">
91
90
  <div id="root"></div>
92
91
  <script type="application/json" id="diplodoc-state">
93
- {"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}}
94
93
  </script>
95
94
  <script type="application/javascript">
96
95
  const data = document.querySelector('script#diplodoc-state');
@@ -128,6 +127,8 @@ meta:
128
127
  content: config test
129
128
  title: Documentation
130
129
  noIndex: true
130
+ vcsPath: index.yaml
131
+ sourcePath: index.yaml
131
132
  links:
132
133
  - title: Getting started with Documentation
133
134
  description: This guide will show you the basics of working with Documentation
@@ -151,6 +152,8 @@ description: Some test description
151
152
  interface:
152
153
  toc: false
153
154
  favicon-src: /favicon.ico
155
+ vcsPath: page.md
156
+ sourcePath: page.md
154
157
  ---
155
158
 
156
159
  Lorem"
@@ -167,6 +170,8 @@ metadata:
167
170
  content: config test
168
171
  - name: yfm
169
172
  value: builder in config
173
+ vcsPath: project/config.md
174
+ sourcePath: project/config.md
170
175
  ---
171
176
 
172
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