@diplodoc/cli-tests 0.0.0-rc-fix-manifest-18002055289 → 0.0.0-rc-object-in-toc-18225715685

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.
@@ -14,8 +14,7 @@ exports[`Alternates > internal > filelist 1`] = `
14
14
  "ru/about.md",
15
15
  "ru/deep/test.md",
16
16
  "ru/index.yaml",
17
- "ru/toc.yaml",
18
- "yfm-build-manifest.json"
17
+ "ru/toc.yaml"
19
18
  ]"
20
19
  `;
21
20
 
@@ -34,8 +33,7 @@ exports[`Alternates > internal > filelist 2`] = `
34
33
  "ru/about.html",
35
34
  "ru/deep/test.html",
36
35
  "ru/index.html",
37
- "ru/toc.js",
38
- "yfm-build-manifest.json"
36
+ "ru/toc.js"
39
37
  ]"
40
38
  `;
41
39
 
@@ -238,14 +236,12 @@ path: ru/toc.yaml
238
236
  "
239
237
  `;
240
238
 
241
- exports[`Alternates > internal 14`] = `"{"redirects":{},"fileTrie":{"trie":{"az":{"children":{"index":{"file":{"ext":".yaml","toc":"t0"}},"about":{"file":{"ext":".md","toc":"t0"}},"deep":{"children":{"test":{"file":{"ext":".md","toc":"t0"}}}}}},"en":{"children":{"index":{"file":{"ext":".yaml","toc":"t1"}},"about":{"file":{"ext":".md","toc":"t1"}},"deep":{"children":{"test":{"file":{"ext":".md","toc":"t1"}}}}}},"ru":{"children":{"index":{"file":{"ext":".yaml","toc":"t2"}},"about":{"file":{"ext":".md","toc":"t2"}},"deep":{"children":{"test":{"file":{"ext":".md","toc":"t2"}}}}}}},"tocMapping":{"t0":"az/toc.yaml","t1":"en/toc.yaml","t2":"ru/toc.yaml"}},"yfmConfig":{"langs":["ru","en","az"]}}"`;
242
-
243
- exports[`Alternates > internal 15`] = `
239
+ exports[`Alternates > internal 14`] = `
244
240
  "langs: ['ru', 'en', 'az']
245
241
  "
246
242
  `;
247
243
 
248
- exports[`Alternates > internal 16`] = `
244
+ exports[`Alternates > internal 15`] = `
249
245
  "<!DOCTYPE html>
250
246
  <html lang="az" dir="ltr">
251
247
  <head>
@@ -277,7 +273,7 @@ exports[`Alternates > internal 16`] = `
277
273
  </html>"
278
274
  `;
279
275
 
280
- exports[`Alternates > internal 17`] = `
276
+ exports[`Alternates > internal 16`] = `
281
277
  "<!DOCTYPE html>
282
278
  <html lang="az" dir="ltr">
283
279
  <head>
@@ -309,7 +305,7 @@ exports[`Alternates > internal 17`] = `
309
305
  </html>"
310
306
  `;
311
307
 
312
- exports[`Alternates > internal 18`] = `
308
+ exports[`Alternates > internal 17`] = `
313
309
  "<!DOCTYPE html>
314
310
  <html lang="az" dir="ltr">
315
311
  <head>
@@ -341,9 +337,9 @@ exports[`Alternates > internal 18`] = `
341
337
  </html>"
342
338
  `;
343
339
 
344
- exports[`Alternates > internal 19`] = `"window.__DATA__.data.toc = {"href":"az/index.html","items":[{"href":"az/about.html","name":"About","id":"UUID"},{"href":"az/deep/test.html","name":"Test","id":"UUID"}],"path":"az/toc.yaml","id":"UUID"};"`;
340
+ exports[`Alternates > internal 18`] = `"window.__DATA__.data.toc = {"href":"az/index.html","items":[{"href":"az/about.html","name":"About","id":"UUID"},{"href":"az/deep/test.html","name":"Test","id":"UUID"}],"path":"az/toc.yaml","id":"UUID"};"`;
345
341
 
346
- exports[`Alternates > internal 20`] = `
342
+ exports[`Alternates > internal 19`] = `
347
343
  "<!DOCTYPE html>
348
344
  <html lang="en" dir="ltr">
349
345
  <head>
@@ -375,7 +371,7 @@ exports[`Alternates > internal 20`] = `
375
371
  </html>"
376
372
  `;
377
373
 
378
- exports[`Alternates > internal 21`] = `
374
+ exports[`Alternates > internal 20`] = `
379
375
  "<!DOCTYPE html>
380
376
  <html lang="en" dir="ltr">
381
377
  <head>
@@ -407,7 +403,7 @@ exports[`Alternates > internal 21`] = `
407
403
  </html>"
408
404
  `;
409
405
 
410
- exports[`Alternates > internal 22`] = `
406
+ exports[`Alternates > internal 21`] = `
411
407
  "<!DOCTYPE html>
412
408
  <html lang="en" dir="ltr">
413
409
  <head>
@@ -439,9 +435,9 @@ exports[`Alternates > internal 22`] = `
439
435
  </html>"
440
436
  `;
441
437
 
442
- exports[`Alternates > internal 23`] = `"window.__DATA__.data.toc = {"href":"en/index.html","items":[{"href":"en/about.html","name":"About","id":"UUID"},{"href":"en/deep/test.html","name":"Test","id":"UUID"}],"path":"en/toc.yaml","id":"UUID"};"`;
438
+ exports[`Alternates > internal 22`] = `"window.__DATA__.data.toc = {"href":"en/index.html","items":[{"href":"en/about.html","name":"About","id":"UUID"},{"href":"en/deep/test.html","name":"Test","id":"UUID"}],"path":"en/toc.yaml","id":"UUID"};"`;
443
439
 
444
- exports[`Alternates > internal 24`] = `
440
+ exports[`Alternates > internal 23`] = `
445
441
  "<!DOCTYPE html>
446
442
  <html lang="ru" dir="ltr">
447
443
  <head>
@@ -461,7 +457,7 @@ exports[`Alternates > internal 24`] = `
461
457
  </html>"
462
458
  `;
463
459
 
464
- exports[`Alternates > internal 25`] = `
460
+ exports[`Alternates > internal 24`] = `
465
461
  "<!DOCTYPE html>
466
462
  <html lang="ru" dir="ltr">
467
463
  <head>
@@ -472,8 +468,8 @@ exports[`Alternates > internal 25`] = `
472
468
  <link rel="canonical" href="ru/about.html">
473
469
  <link rel="alternate" href="az/about.html" hreflang="az" />
474
470
  <link rel="alternate" href="en/about.html" hreflang="en" />
475
- <link rel="alternate" href="ru/about.html" hreflang="ru" />
476
471
  <link rel="alternate" href="https://my-other-site.com/about" />
472
+ <link rel="alternate" href="ru/about.html" hreflang="ru" />
477
473
  <meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
478
474
  <style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
479
475
  </head>
@@ -494,7 +490,7 @@ exports[`Alternates > internal 25`] = `
494
490
  </html>"
495
491
  `;
496
492
 
497
- exports[`Alternates > internal 26`] = `
493
+ exports[`Alternates > internal 25`] = `
498
494
  "<!DOCTYPE html>
499
495
  <html lang="ru" dir="ltr">
500
496
  <head>
@@ -526,7 +522,7 @@ exports[`Alternates > internal 26`] = `
526
522
  </html>"
527
523
  `;
528
524
 
529
- exports[`Alternates > internal 27`] = `
525
+ exports[`Alternates > internal 26`] = `
530
526
  "<!DOCTYPE html>
531
527
  <html lang="ru" dir="ltr">
532
528
  <head>
@@ -558,9 +554,7 @@ exports[`Alternates > internal 27`] = `
558
554
  </html>"
559
555
  `;
560
556
 
561
- exports[`Alternates > internal 28`] = `"window.__DATA__.data.toc = {"href":"ru/index.html","items":[{"href":"ru/about.html","name":"About","id":"UUID"},{"href":"ru/deep/test.html","name":"Test","id":"UUID"}],"path":"ru/toc.yaml","id":"UUID"};"`;
562
-
563
- exports[`Alternates > internal 29`] = `"{"redirects":{},"fileTrie":{"trie":{"az":{"children":{"index":{"file":{"ext":".yaml","toc":"t0"}},"about":{"file":{"ext":".md","toc":"t0"}},"deep":{"children":{"test":{"file":{"ext":".md","toc":"t0"}}}}}},"en":{"children":{"index":{"file":{"ext":".yaml","toc":"t1"}},"about":{"file":{"ext":".md","toc":"t1"}},"deep":{"children":{"test":{"file":{"ext":".md","toc":"t1"}}}}}},"ru":{"children":{"index":{"file":{"ext":".yaml","toc":"t2"}},"about":{"file":{"ext":".md","toc":"t2"}},"deep":{"children":{"test":{"file":{"ext":".md","toc":"t2"}}}}}}},"tocMapping":{"t0":"az/toc.yaml","t1":"en/toc.yaml","t2":"ru/toc.yaml"}},"yfmConfig":{"langs":["ru","en","az"]}}"`;
557
+ exports[`Alternates > internal 27`] = `"window.__DATA__.data.toc = {"href":"ru/index.html","items":[{"href":"ru/about.html","name":"About","id":"UUID"},{"href":"ru/deep/test.html","name":"Test","id":"UUID"}],"path":"ru/toc.yaml","id":"UUID"};"`;
564
558
 
565
559
  exports[`Alternates > skip-html-extension > filelist 1`] = `
566
560
  "[
@@ -813,8 +807,8 @@ exports[`Alternates > skip-html-extension 11`] = `
813
807
  <link rel="canonical" href="ru/about">
814
808
  <link rel="alternate" href="az/about" hreflang="az" />
815
809
  <link rel="alternate" href="en/about" hreflang="en" />
816
- <link rel="alternate" href="ru/about" hreflang="ru" />
817
810
  <link rel="alternate" href="https://my-other-site.com/about" />
811
+ <link rel="alternate" href="ru/about" hreflang="ru" />
818
812
  <meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
819
813
  <style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
820
814
  </head>
@@ -12,8 +12,7 @@ exports[`Include toc > Nested toc inclusions with mixed including modes > fileli
12
12
  "product2/overlay3/_includes/inc-hash.md",
13
13
  "product2/overlay3/article1.md",
14
14
  "product2/p2.md",
15
- "product2/toc.yaml",
16
- "yfm-build-manifest.json"
15
+ "product2/toc.yaml"
17
16
  ]"
18
17
  `;
19
18
 
@@ -35,8 +34,7 @@ This is the core content of Article 1.
35
34
 
36
35
  exports[`Include toc > Nested toc inclusions with mixed including modes 2 > filelist 1`] = `
37
36
  "[
38
- "toc.yaml",
39
- "yfm-build-manifest.json"
37
+ "toc.yaml"
40
38
  ]"
41
39
  `;
42
40
 
@@ -55,8 +53,6 @@ path: toc.yaml
55
53
  "
56
54
  `;
57
55
 
58
- exports[`Include toc > Nested toc inclusions with mixed including modes 2 2`] = `"{"redirects":{},"fileTrie":{"trie":{},"tocMapping":{"t0":"toc.yaml"}},"yfmConfig":{}}"`;
59
-
60
56
  exports[`Include toc > Nested toc inclusions with mixed including modes 3`] = `
61
57
  "title: Product 1 title
62
58
  items:
@@ -157,15 +153,12 @@ path: product2/toc.yaml
157
153
  "
158
154
  `;
159
155
 
160
- exports[`Include toc > Nested toc inclusions with mixed including modes 12`] = `"{"redirects":{},"fileTrie":{"trie":{"product2":{"children":{"p2":{"file":{"ext":".md","toc":"t1"}},"overlay1":{"children":{"article1":{"file":{"ext":".md","toc":"t1"}}}},"overlay2":{"children":{"article1":{"file":{"ext":".md","toc":"t1"}}}},"overlay3":{"children":{"article1":{"file":{"ext":".md","toc":"t1"}}}}}},"product1":{"children":{"article1":{"file":{"ext":".md","toc":"t0"}}}}},"tocMapping":{"t0":"product1/toc.yaml","t1":"product2/toc.yaml"}},"yfmConfig":{}}"`;
161
-
162
156
  exports[`Include toc > Toc is included in link mode > filelist 1`] = `
163
157
  "[
164
158
  "a1.md",
165
159
  "folder1/a1.md",
166
160
  "folder1/folder2/a1.md",
167
- "toc.yaml",
168
- "yfm-build-manifest.json"
161
+ "toc.yaml"
169
162
  ]"
170
163
  `;
171
164
 
@@ -218,8 +211,6 @@ path: toc.yaml
218
211
  "
219
212
  `;
220
213
 
221
- exports[`Include toc > Toc is included in link mode 5`] = `"{"redirects":{},"fileTrie":{"trie":{"a1":{"file":{"ext":".md","toc":"t0"}},"folder1":{"children":{"a1":{"file":{"ext":".md","toc":"t0"}},"folder2":{"children":{"a1":{"file":{"ext":".md","toc":"t0"}}}}}}},"tocMapping":{"t0":"toc.yaml"}},"yfmConfig":{}}"`;
222
-
223
214
  exports[`Include toc > Toc is included inline, not as a new section > filelist 1`] = `
224
215
  "[
225
216
  ".yfm",
@@ -228,8 +219,7 @@ exports[`Include toc > Toc is included inline, not as a new section > filelist 1
228
219
  "fileB.md",
229
220
  "fileC.md",
230
221
  "fileX.md",
231
- "toc.yaml",
232
- "yfm-build-manifest.json"
222
+ "toc.yaml"
233
223
  ]"
234
224
  `;
235
225
 
@@ -328,14 +318,11 @@ path: toc.yaml
328
318
  "
329
319
  `;
330
320
 
331
- exports[`Include toc > Toc is included inline, not as a new section 8`] = `"{"redirects":{},"fileTrie":{"trie":{"file1":{"file":{"ext":".md","toc":"t0"}},"fileA":{"file":{"ext":".md","toc":"t0"}},"fileB":{"file":{"ext":".md","toc":"t0"}},"fileC":{"file":{"ext":".md","toc":"t0"}},"fileX":{"file":{"ext":".md","toc":"t0"}}},"tocMapping":{"t0":"toc.yaml"}},"yfmConfig":{"applyPresets":true}}"`;
332
-
333
321
  exports[`Include toc > Toc root merge on non root dir > filelist 1`] = `
334
322
  "[
335
323
  ".yfm",
336
324
  "ru/index.yaml",
337
- "ru/toc.yaml",
338
- "yfm-build-manifest.json"
325
+ "ru/toc.yaml"
339
326
  ]"
340
327
  `;
341
328
 
@@ -371,14 +358,11 @@ path: ru/toc.yaml
371
358
  "
372
359
  `;
373
360
 
374
- exports[`Include toc > Toc root merge on non root dir 4`] = `"{"redirects":{},"fileTrie":{"trie":{"ru":{"children":{"index":{"file":{"ext":".yaml","toc":"t0"}}}}},"tocMapping":{"t0":"ru/toc.yaml"}},"yfmConfig":{"allowHtml":true}}"`;
375
-
376
361
  exports[`Include toc > Toc with expressions > filelist 1`] = `
377
362
  "[
378
363
  "a1.md",
379
364
  "index.yaml",
380
- "toc.yaml",
381
- "yfm-build-manifest.json"
365
+ "toc.yaml"
382
366
  ]"
383
367
  `;
384
368
 
@@ -420,8 +404,6 @@ path: toc.yaml
420
404
  "
421
405
  `;
422
406
 
423
- exports[`Include toc > Toc with expressions 4`] = `"{"redirects":{},"fileTrie":{"trie":{"index":{"file":{"ext":".yaml","toc":"t0"}},"a1":{"file":{"ext":".md","toc":"t0"}}},"tocMapping":{"t0":"toc.yaml"}},"yfmConfig":{}}"`;
424
-
425
407
  exports[`Include toc > Toc with generic includer > filelist 1`] = `
426
408
  "[
427
409
  "test/index.md",
@@ -429,8 +411,7 @@ exports[`Include toc > Toc with generic includer > filelist 1`] = `
429
411
  "test/sub/sub-2.md",
430
412
  "test/sub/sub/sub-3.md",
431
413
  "test/test.md",
432
- "toc.yaml",
433
- "yfm-build-manifest.json"
414
+ "toc.yaml"
434
415
  ]"
435
416
  `;
436
417
 
@@ -513,5 +494,3 @@ items:
513
494
  path: toc.yaml
514
495
  "
515
496
  `;
516
-
517
- exports[`Include toc > Toc with generic includer 7`] = `"{"redirects":{},"fileTrie":{"trie":{"test":{"children":{"test":{"file":{"ext":".md","toc":"t0"}},"index":{"file":{"ext":".md","toc":"t0"}},"sub":{"children":{"sub-2":{"file":{"ext":".md","toc":"t0"}},"sub-1":{"file":{"ext":".md","toc":"t0"}},"sub":{"children":{"sub-3":{"file":{"ext":".md","toc":"t0"}}}}}}}}},"tocMapping":{"t0":"toc.yaml"}},"yfmConfig":{}}"`;
@@ -279,8 +279,7 @@ exports[`Allow load custom resources > md2md with custom resources > filelist 1`
279
279
  "index.yaml",
280
280
  "page.md",
281
281
  "project/config.md",
282
- "toc.yaml",
283
- "yfm-build-manifest.json"
282
+ "toc.yaml"
284
283
  ]"
285
284
  `;
286
285
 
@@ -361,5 +360,3 @@ items:
361
360
  path: toc.yaml
362
361
  "
363
362
  `;
364
-
365
- exports[`Allow load custom resources > md2md with custom resources 6`] = `"{"redirects":{},"fileTrie":{"trie":{"index":{"file":{"ext":".yaml","toc":"t0"}},"page":{"file":{"ext":".md","toc":"t0"}},"project":{"children":{"config":{"file":{"ext":".md","toc":"t0"}}}}},"tocMapping":{"t0":"toc.yaml"}},"yfmConfig":{"resources":{"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"]}}}"`;
@@ -110,8 +110,7 @@ exports[`Allow load custom resources > md2md with metadata > filelist 1`] = `
110
110
  "index.yaml",
111
111
  "page.md",
112
112
  "project/config.md",
113
- "toc.yaml",
114
- "yfm-build-manifest.json"
113
+ "toc.yaml"
115
114
  ]"
116
115
  `;
117
116
 
@@ -186,5 +185,3 @@ items:
186
185
  path: toc.yaml
187
186
  "
188
187
  `;
189
-
190
- exports[`Allow load custom resources > md2md with metadata 5`] = `"{"redirects":{},"fileTrie":{"trie":{"index":{"file":{"ext":".yaml","toc":"t0"}},"page":{"file":{"ext":".md","toc":"t0"}},"project":{"children":{"config":{"file":{"ext":".md","toc":"t0"}}}}},"tocMapping":{"t0":"toc.yaml"}},"yfmConfig":{}}"`;
@@ -0,0 +1,41 @@
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
+
3
+ exports[`Pdf page mode > transforms links correctly > filelist 1`] = `
4
+ "[
5
+ "pdf-page-toc.js",
6
+ "pdf-page.html",
7
+ "pdf-page.json"
8
+ ]"
9
+ `;
10
+
11
+ exports[`Pdf page mode > transforms links correctly 1`] = `"window.__DATA__.data.toc = {"title":"Skip html extension","href":"#index","items":[{"name":"Title 1","href":"#page1","id":"UUID"}],"path":"toc.yaml","id":"UUID"};"`;
12
+
13
+ exports[`Pdf page mode > transforms links correctly 2`] = `
14
+ "<!DOCTYPE html>
15
+ <html lang="ru" dir="ltr">
16
+ <head>
17
+ <meta charset="utf-8">
18
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
19
+ <base href="./" />
20
+ <title>Skip html extension | Skip html extension</title>
21
+ <meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
22
+ <style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
23
+ </head>
24
+ <body class="g-root g-root_theme_light">
25
+ <div id="root"></div>
26
+ <script type="application/json" id="diplodoc-state">
27
+ {"data":{"leading":false,"html":"&lt;h2 data-original-article=\\"index.html\\"&gt;Header&lt;a class=\\"yfm-anchor\\" aria-hidden=\\"true\\" href=\\"#index\\" id=\\"index\\"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Content&lt;/p&gt;/n&lt;p&gt;&lt;a href=\\"#page1\\"&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&lt;hr class=\\"yfm-page__delimeter\\"&gt;&lt;h2 data-original-article=\\"page1.html\\"&gt;Page 1&lt;a class=\\"yfm-anchor\\" aria-hidden=\\"true\\" href=\\"#page1\\" id=\\"page1\\"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;&lt;a href=\\"page2.html#hash\\"&gt;Link&lt;/a&gt;&lt;/p&gt;/n","headings":[],"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}]},"title":"Skip html extension"},"router":{"pathname":"pdf-page","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
28
+ </script>
29
+ <script type="application/javascript">
30
+ const data = document.querySelector('script#diplodoc-state');
31
+ window.__DATA__ = JSON.parse((function unescape(string) {
32
+ return string.replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&amp;/g, "&");
33
+ })(data.innerText));
34
+ window.STATIC_CONTENT = false;
35
+ </script>
36
+ <script type="application/javascript" defer src="pdf-page.html"></script>
37
+ </body>
38
+ </html>"
39
+ `;
40
+
41
+ exports[`Pdf page mode > transforms links correctly 3`] = `"{"data":{"leading":false,"html":"<h2 data-original-article=\\"index.html\\">Header<a class=\\"yfm-anchor\\" aria-hidden=\\"true\\" href=\\"#index\\" id=\\"index\\"></a></h2><p>Content</p>/n<p><a href=\\"#page1\\">Link 1</a><br>/n<a href=\\"page2.html\\">Link 2</a></p>/n<hr class=\\"yfm-page__delimeter\\"><h2 data-original-article=\\"page1.html\\">Page 1<a class=\\"yfm-anchor\\" aria-hidden=\\"true\\" href=\\"#page1\\" id=\\"page1\\"></a></h2><p><a href=\\"page2.html#hash\\">Link</a></p>/n","headings":[],"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}]},"title":"Skip html extension","toc":{"title":"Skip html extension","href":"index.html","items":[{"name":"Title 1","href":"page1.html","id":"UUID"}],"path":"toc.yaml","id":"UUID"}},"router":{"pathname":"pdf-page","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}"`;
@@ -24,8 +24,7 @@ exports[`Preprocess > HashIncludes=true,Autotitles=false > filelist 1`] = `
24
24
  "level1/toc.yaml",
25
25
  "mermaid.md",
26
26
  "sub/folder/item-1.md",
27
- "toc.yaml",
28
- "yfm-build-manifest.json"
27
+ "toc.yaml"
29
28
  ]"
30
29
  `;
31
30
 
@@ -473,8 +472,6 @@ path: toc.yaml
473
472
  "
474
473
  `;
475
474
 
476
- exports[`Preprocess > HashIncludes=true,Autotitles=false 22`] = `"{"redirects":{},"fileTrie":{"trie":{"1":{"file":{"ext":".md","toc":"t1"}},"included-item":{"file":{"ext":".md","toc":"t1"}},"sub":{"children":{"folder":{"children":{"item-1":{"file":{"ext":".md","toc":"t1"}}}}}},"mermaid":{"file":{"ext":".md","toc":"t1"}},"latex":{"file":{"ext":".md","toc":"t1"}},"images":{"file":{"ext":".md","toc":"t1"}},"autotitle":{"file":{"ext":".md","toc":"t1"}},"includes":{"file":{"ext":".md","toc":"t1"},"children":{"level11":{"file":{"ext":".md","toc":"t1"}}}},"level0":{"file":{"ext":".md","toc":"t1"}},"level1":{"children":{"level1":{"file":{"ext":".md","toc":"t0"}},"level2":{"children":{"level2":{"file":{"ext":".md","toc":"t0"}}}}}}},"tocMapping":{"t0":"level1/toc.yaml","t1":"toc.yaml"}},"yfmConfig":{"allowHtml":true}}"`;
477
-
478
475
  exports[`Preprocess > HashIncludes=true,Autotitles=true > filelist 1`] = `
479
476
  "[
480
477
  ".yfm",
@@ -499,8 +496,7 @@ exports[`Preprocess > HashIncludes=true,Autotitles=true > filelist 1`] = `
499
496
  "level1/toc.yaml",
500
497
  "mermaid.md",
501
498
  "sub/folder/item-1.md",
502
- "toc.yaml",
503
- "yfm-build-manifest.json"
499
+ "toc.yaml"
504
500
  ]"
505
501
  `;
506
502
 
@@ -948,8 +944,6 @@ path: toc.yaml
948
944
  "
949
945
  `;
950
946
 
951
- exports[`Preprocess > HashIncludes=true,Autotitles=true 22`] = `"{"redirects":{},"fileTrie":{"trie":{"1":{"file":{"ext":".md","toc":"t1"}},"included-item":{"file":{"ext":".md","toc":"t1"}},"sub":{"children":{"folder":{"children":{"item-1":{"file":{"ext":".md","toc":"t1"}}}}}},"mermaid":{"file":{"ext":".md","toc":"t1"}},"latex":{"file":{"ext":".md","toc":"t1"}},"images":{"file":{"ext":".md","toc":"t1"}},"autotitle":{"file":{"ext":".md","toc":"t1"}},"includes":{"file":{"ext":".md","toc":"t1"},"children":{"level11":{"file":{"ext":".md","toc":"t1"}}}},"level0":{"file":{"ext":".md","toc":"t1"}},"level1":{"children":{"level1":{"file":{"ext":".md","toc":"t0"}},"level2":{"children":{"level2":{"file":{"ext":".md","toc":"t0"}}}}}}},"tocMapping":{"t0":"level1/toc.yaml","t1":"toc.yaml"}},"yfmConfig":{"allowHtml":true}}"`;
952
-
953
947
  exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true > filelist 1`] = `
954
948
  "[
955
949
  ".yfm",
@@ -974,8 +968,7 @@ exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true > filelist 1`]
974
968
  "level1/toc.yaml",
975
969
  "mermaid.md",
976
970
  "sub/folder/item-1.md",
977
- "toc.yaml",
978
- "yfm-build-manifest.json"
971
+ "toc.yaml"
979
972
  ]"
980
973
  `;
981
974
 
@@ -1422,5 +1415,3 @@ exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true 21`] = `
1422
1415
  path: toc.yaml
1423
1416
  "
1424
1417
  `;
1425
-
1426
- exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true 22`] = `"{"redirects":{},"fileTrie":{"trie":{"1":{"file":{"ext":".md","toc":"t1"}},"included-item":{"file":{"ext":".md","toc":"t1"}},"sub":{"children":{"folder":{"children":{"item-1":{"file":{"ext":".md","toc":"t1"}}}}}},"mermaid":{"file":{"ext":".md","toc":"t1"}},"latex":{"file":{"ext":".md","toc":"t1"}},"images":{"file":{"ext":".md","toc":"t1"}},"autotitle":{"file":{"ext":".md","toc":"t1"}},"includes":{"file":{"ext":".md","toc":"t1"},"children":{"level11":{"file":{"ext":".md","toc":"t1"}}}},"level0":{"file":{"ext":".md","toc":"t1"}},"level1":{"children":{"level1":{"file":{"ext":".md","toc":"t0"}},"level2":{"children":{"level2":{"file":{"ext":".md","toc":"t0"}}}}}}},"tocMapping":{"t0":"level1/toc.yaml","t1":"toc.yaml"}},"yfmConfig":{"allowHtml":true}}"`;
@@ -33,8 +33,7 @@ exports[`Regression > internal > filelist 1`] = `
33
33
  "openapi/test-controller/index.md",
34
34
  "redirects.yaml",
35
35
  "sub/folder/item-1.md",
36
- "toc.yaml",
37
- "yfm-build-manifest.json"
36
+ "toc.yaml"
38
37
  ]"
39
38
  `;
40
39
 
@@ -67,8 +66,7 @@ exports[`Regression > internal > filelist 2`] = `
67
66
  "openapi/test-controller/getWithPayloadResponse.html",
68
67
  "openapi/test-controller/index.html",
69
68
  "sub/folder/item-1.html",
70
- "toc.js",
71
- "yfm-build-manifest.json"
69
+ "toc.js"
72
70
  ]"
73
71
  `;
74
72
 
@@ -681,15 +679,13 @@ path: toc.yaml
681
679
  "
682
680
  `;
683
681
 
684
- exports[`Regression > internal 28`] = `"{"redirects":{"files":[{"from":"c.md","to":"d.md"}],"common":[{"from":"./a.md","to":"./b.md"}]},"fileTrie":{"trie":{"1":{"file":{"ext":".md","toc":"t1"}},"openapi":{"children":{"index":{"file":{"ext":".md","toc":"t1"}},"test-controller":{"children":{"index":{"file":{"ext":".md","toc":"t1"}},"getWithPayloadResponse":{"file":{"ext":".md","toc":"t1"}}}}}},"index":{"file":{"ext":".yaml","toc":"t1"}},"merge":{"children":{"merged":{"file":{"ext":".md","toc":"t0"}},"merge":{"file":{"ext":".md","toc":"t0"}}}},"included-item":{"file":{"ext":".md","toc":"t1"}},"sub":{"children":{"folder":{"children":{"item-1":{"file":{"ext":".md","toc":"t1"}}}}}},"mermaid":{"file":{"ext":".md","toc":"t1"}},"latex":{"file":{"ext":".md","toc":"t1"}},"images":{"file":{"ext":".md","toc":"t1"}},"autotitle":{"file":{"ext":".md","toc":"t1"}},"includes":{"file":{"ext":".md","toc":"t1"}},"generic":{"children":{"1":{"file":{"ext":".md","toc":"t1"}},"2":{"file":{"ext":".md","toc":"t1"}},"3":{"file":{"ext":".md","toc":"t1"}},"Sub notes":{"children":{"1":{"file":{"ext":".md","toc":"t1"}},"2":{"file":{"ext":".md","toc":"t1"}}}}}}},"tocMapping":{"t0":"merge/toc.yaml","t1":"toc.yaml"}},"yfmConfig":{"preprocess":{"mergeAutotitles":true}}}"`;
685
-
686
- exports[`Regression > internal 29`] = `
682
+ exports[`Regression > internal 28`] = `
687
683
  "preprocess:
688
684
  mergeAutotitles: true
689
685
  "
690
686
  `;
691
687
 
692
- exports[`Regression > internal 30`] = `
688
+ exports[`Regression > internal 29`] = `
693
689
  "<!DOCTYPE html>
694
690
  <html lang="ru" dir="ltr">
695
691
  <head>
@@ -717,7 +713,7 @@ exports[`Regression > internal 30`] = `
717
713
  </html>"
718
714
  `;
719
715
 
720
- exports[`Regression > internal 31`] = `
716
+ exports[`Regression > internal 30`] = `
721
717
  "<!DOCTYPE html>
722
718
  <html lang="ru" dir="ltr">
723
719
  <head>
@@ -745,7 +741,7 @@ exports[`Regression > internal 31`] = `
745
741
  </html>"
746
742
  `;
747
743
 
748
- exports[`Regression > internal 32`] = `
744
+ exports[`Regression > internal 31`] = `
749
745
  "<!DOCTYPE html>
750
746
  <html lang="ru" dir="ltr">
751
747
  <head>
@@ -773,7 +769,7 @@ exports[`Regression > internal 32`] = `
773
769
  </html>"
774
770
  `;
775
771
 
776
- exports[`Regression > internal 33`] = `
772
+ exports[`Regression > internal 32`] = `
777
773
  "<!DOCTYPE html>
778
774
  <html lang="ru" dir="ltr">
779
775
  <head>
@@ -801,7 +797,7 @@ exports[`Regression > internal 33`] = `
801
797
  </html>"
802
798
  `;
803
799
 
804
- exports[`Regression > internal 34`] = `
800
+ exports[`Regression > internal 33`] = `
805
801
  "<!DOCTYPE html>
806
802
  <html lang="ru" dir="ltr">
807
803
  <head>
@@ -829,7 +825,7 @@ exports[`Regression > internal 34`] = `
829
825
  </html>"
830
826
  `;
831
827
 
832
- exports[`Regression > internal 35`] = `
828
+ exports[`Regression > internal 34`] = `
833
829
  "<!DOCTYPE html>
834
830
  <html lang="ru" dir="ltr">
835
831
  <head>
@@ -857,7 +853,7 @@ exports[`Regression > internal 35`] = `
857
853
  </html>"
858
854
  `;
859
855
 
860
- exports[`Regression > internal 36`] = `
856
+ exports[`Regression > internal 35`] = `
861
857
  "<!DOCTYPE html>
862
858
  <html lang="ru" dir="ltr">
863
859
  <head>
@@ -885,7 +881,7 @@ exports[`Regression > internal 36`] = `
885
881
  </html>"
886
882
  `;
887
883
 
888
- exports[`Regression > internal 37`] = `
884
+ exports[`Regression > internal 36`] = `
889
885
  "<!DOCTYPE html>
890
886
  <html lang="ru" dir="ltr">
891
887
  <head>
@@ -913,7 +909,7 @@ exports[`Regression > internal 37`] = `
913
909
  </html>"
914
910
  `;
915
911
 
916
- exports[`Regression > internal 38`] = `
912
+ exports[`Regression > internal 37`] = `
917
913
  "<!DOCTYPE html>
918
914
  <html lang="ru" dir="ltr">
919
915
  <head>
@@ -941,7 +937,7 @@ exports[`Regression > internal 38`] = `
941
937
  </html>"
942
938
  `;
943
939
 
944
- exports[`Regression > internal 39`] = `
940
+ exports[`Regression > internal 38`] = `
945
941
  "<!DOCTYPE html>
946
942
  <html lang="ru" dir="ltr">
947
943
  <head>
@@ -969,7 +965,7 @@ exports[`Regression > internal 39`] = `
969
965
  </html>"
970
966
  `;
971
967
 
972
- exports[`Regression > internal 40`] = `
968
+ exports[`Regression > internal 39`] = `
973
969
  "<!DOCTYPE html>
974
970
  <html lang="ru" dir="ltr">
975
971
  <head>
@@ -997,7 +993,7 @@ exports[`Regression > internal 40`] = `
997
993
  </html>"
998
994
  `;
999
995
 
1000
- exports[`Regression > internal 41`] = `
996
+ exports[`Regression > internal 40`] = `
1001
997
  "<!DOCTYPE html>
1002
998
  <html lang="ru" dir="ltr">
1003
999
  <head>
@@ -1025,7 +1021,7 @@ exports[`Regression > internal 41`] = `
1025
1021
  </html>"
1026
1022
  `;
1027
1023
 
1028
- exports[`Regression > internal 42`] = `
1024
+ exports[`Regression > internal 41`] = `
1029
1025
  "<!DOCTYPE html>
1030
1026
  <html lang="ru" dir="ltr">
1031
1027
  <head>
@@ -1053,7 +1049,7 @@ exports[`Regression > internal 42`] = `
1053
1049
  </html>"
1054
1050
  `;
1055
1051
 
1056
- exports[`Regression > internal 43`] = `
1052
+ exports[`Regression > internal 42`] = `
1057
1053
  "<!DOCTYPE html>
1058
1054
  <html lang="ru" dir="ltr">
1059
1055
  <head>
@@ -1081,7 +1077,7 @@ exports[`Regression > internal 43`] = `
1081
1077
  </html>"
1082
1078
  `;
1083
1079
 
1084
- exports[`Regression > internal 44`] = `
1080
+ exports[`Regression > internal 43`] = `
1085
1081
  "<!DOCTYPE html>
1086
1082
  <html lang="ru" dir="ltr">
1087
1083
  <head>
@@ -1109,9 +1105,9 @@ exports[`Regression > internal 44`] = `
1109
1105
  </html>"
1110
1106
  `;
1111
1107
 
1112
- exports[`Regression > internal 45`] = `"window.__DATA__.data.toc = {"items":[{"name":"Use merged","href":"merge/merge.html","id":"UUID"},{"name":"Multitoc item","href":"1.html","id":"UUID"},{"name":"Merged item","href":"merge/merged.html","id":"UUID"}],"path":"merge/toc.yaml","id":"UUID"};"`;
1108
+ exports[`Regression > internal 44`] = `"window.__DATA__.data.toc = {"items":[{"name":"Use merged","href":"merge/merge.html","id":"UUID"},{"name":"Multitoc item","href":"1.html","id":"UUID"},{"name":"Merged item","href":"merge/merged.html","id":"UUID"}],"path":"merge/toc.yaml","id":"UUID"};"`;
1113
1109
 
1114
- exports[`Regression > internal 46`] = `
1110
+ exports[`Regression > internal 45`] = `
1115
1111
  "<!DOCTYPE html>
1116
1112
  <html lang="ru" dir="ltr">
1117
1113
  <head>
@@ -1139,7 +1135,7 @@ exports[`Regression > internal 46`] = `
1139
1135
  </html>"
1140
1136
  `;
1141
1137
 
1142
- exports[`Regression > internal 47`] = `
1138
+ exports[`Regression > internal 46`] = `
1143
1139
  "<!DOCTYPE html>
1144
1140
  <html lang="ru" dir="ltr">
1145
1141
  <head>
@@ -1169,7 +1165,7 @@ exports[`Regression > internal 47`] = `
1169
1165
  </html>"
1170
1166
  `;
1171
1167
 
1172
- exports[`Regression > internal 48`] = `
1168
+ exports[`Regression > internal 47`] = `
1173
1169
  "<!DOCTYPE html>
1174
1170
  <html lang="ru" dir="ltr">
1175
1171
  <head>
@@ -1199,7 +1195,7 @@ exports[`Regression > internal 48`] = `
1199
1195
  </html>"
1200
1196
  `;
1201
1197
 
1202
- exports[`Regression > internal 49`] = `
1198
+ exports[`Regression > internal 48`] = `
1203
1199
  "<!DOCTYPE html>
1204
1200
  <html lang="ru" dir="ltr">
1205
1201
  <head>
@@ -1227,7 +1223,7 @@ exports[`Regression > internal 49`] = `
1227
1223
  </html>"
1228
1224
  `;
1229
1225
 
1230
- exports[`Regression > internal 50`] = `
1226
+ exports[`Regression > internal 49`] = `
1231
1227
  "<!DOCTYPE html>
1232
1228
  <html lang="ru" dir="ltr">
1233
1229
  <head>
@@ -1255,6 +1251,4 @@ exports[`Regression > internal 50`] = `
1255
1251
  </html>"
1256
1252
  `;
1257
1253
 
1258
- exports[`Regression > internal 51`] = `"window.__DATA__.data.toc = {"items":[{"name":"Verbose root (index.yaml) will be transformed to index.html","href":"index.html","id":"UUID"},{"name":"Root will be transformed to index.html","href":"index.html","id":"UUID"},{"name":"Md item with not_var syntax","href":"1.html","id":"UUID"},{"name":"Md item named without extension","href":"1.html","id":"UUID"},{"name":"Item with empty href","id":"UUID"},{"name":"Multitoc item","href":"merge/merged.html","id":"UUID"},{"name":"Included Item","href":"included-item.html","id":"UUID"},{"name":"Named include (items is Object here - this is not an error)","items":[{"name":"Item 1","href":"sub/folder/item-1.html","id":"UUID"}],"id":"UUID"},{"href":"mermaid.html","name":"Mermaid usage","id":"UUID"},{"name":"Latex usage","href":"latex.html","id":"UUID"},{"name":"Images","href":"images.html","id":"UUID"},{"name":"Autotitle","href":"autotitle.html","id":"UUID"},{"name":"includes","href":"includes.html","id":"UUID"},{"name":"generic","items":[{"name":"Note 1","href":"generic/1.html","id":"UUID"},{"name":"Note 1","href":"generic/2.html","id":"UUID"},{"name":"3","href":"generic/3.html","id":"UUID"},{"name":"Sub notes","items":[{"name":"Sub note 1","href":"generic/Sub notes/1.html","id":"UUID"},{"name":"Sub note 2","href":"generic/Sub notes/2.html","id":"UUID"}],"id":"UUID"}],"id":"UUID"},{"name":"openapi","items":[{"name":"Overview","href":"openapi/index.html","id":"UUID"},{"name":"test-controller","items":[{"name":"Overview","href":"openapi/test-controller/index.html","id":"UUID"},{"href":"openapi/test-controller/getWithPayloadResponse.html","name":"Simple get operation. тест новой верстки 3","id":"UUID"}],"id":"UUID"}],"id":"UUID"}],"path":"toc.yaml","id":"UUID"};"`;
1259
-
1260
- exports[`Regression > internal 52`] = `"{"redirects":{"files":[{"from":"c.md","to":"d.md"}],"common":[{"from":"./a.md","to":"./b.md"}]},"fileTrie":{"trie":{"1":{"file":{"ext":".md","toc":"t1"}},"openapi":{"children":{"index":{"file":{"ext":".md","toc":"t1"}},"test-controller":{"children":{"index":{"file":{"ext":".md","toc":"t1"}},"getWithPayloadResponse":{"file":{"ext":".md","toc":"t1"}}}}}},"index":{"file":{"ext":".yaml","toc":"t1"}},"merge":{"children":{"merged":{"file":{"ext":".md","toc":"t0"}},"merge":{"file":{"ext":".md","toc":"t0"}}}},"included-item":{"file":{"ext":".md","toc":"t1"}},"sub":{"children":{"folder":{"children":{"item-1":{"file":{"ext":".md","toc":"t1"}}}}}},"mermaid":{"file":{"ext":".md","toc":"t1"}},"latex":{"file":{"ext":".md","toc":"t1"}},"images":{"file":{"ext":".md","toc":"t1"}},"autotitle":{"file":{"ext":".md","toc":"t1"}},"includes":{"file":{"ext":".md","toc":"t1"}},"generic":{"children":{"1":{"file":{"ext":".md","toc":"t1"}},"2":{"file":{"ext":".md","toc":"t1"}},"3":{"file":{"ext":".md","toc":"t1"}},"Sub notes":{"children":{"1":{"file":{"ext":".md","toc":"t1"}},"2":{"file":{"ext":".md","toc":"t1"}}}}}}},"tocMapping":{"t0":"merge/toc.yaml","t1":"toc.yaml"}},"yfmConfig":{"preprocess":{"mergeAutotitles":true}}}"`;
1254
+ exports[`Regression > internal 50`] = `"window.__DATA__.data.toc = {"items":[{"name":"Verbose root (index.yaml) will be transformed to index.html","href":"index.html","id":"UUID"},{"name":"Root will be transformed to index.html","href":"index.html","id":"UUID"},{"name":"Md item with not_var syntax","href":"1.html","id":"UUID"},{"name":"Md item named without extension","href":"1.html","id":"UUID"},{"name":"Item with empty href","id":"UUID"},{"name":"Multitoc item","href":"merge/merged.html","id":"UUID"},{"name":"Included Item","href":"included-item.html","id":"UUID"},{"name":"Named include (items is Object here - this is not an error)","items":[{"name":"Item 1","href":"sub/folder/item-1.html","id":"UUID"}],"id":"UUID"},{"href":"mermaid.html","name":"Mermaid usage","id":"UUID"},{"name":"Latex usage","href":"latex.html","id":"UUID"},{"name":"Images","href":"images.html","id":"UUID"},{"name":"Autotitle","href":"autotitle.html","id":"UUID"},{"name":"includes","href":"includes.html","id":"UUID"},{"name":"generic","items":[{"name":"Note 1","href":"generic/1.html","id":"UUID"},{"name":"Note 1","href":"generic/2.html","id":"UUID"},{"name":"3","href":"generic/3.html","id":"UUID"},{"name":"Sub notes","items":[{"name":"Sub note 1","href":"generic/Sub notes/1.html","id":"UUID"},{"name":"Sub note 2","href":"generic/Sub notes/2.html","id":"UUID"}],"id":"UUID"}],"id":"UUID"},{"name":"openapi","items":[{"name":"Overview","href":"openapi/index.html","id":"UUID"},{"name":"test-controller","items":[{"name":"Overview","href":"openapi/test-controller/index.html","id":"UUID"},{"href":"openapi/test-controller/getWithPayloadResponse.html","name":"Simple get operation. тест новой верстки 3","id":"UUID"}],"id":"UUID"}],"id":"UUID"}],"path":"toc.yaml","id":"UUID"};"`;
@@ -4,8 +4,7 @@ exports[`Restricted access > Nested restricted access > filelist 1`] = `
4
4
  "[
5
5
  "plugins/index.md",
6
6
  "project/index.md",
7
- "toc.yaml",
8
- "yfm-build-manifest.json"
7
+ "toc.yaml"
9
8
  ]"
10
9
  `;
11
10
 
@@ -61,15 +60,12 @@ path: toc.yaml
61
60
  "
62
61
  `;
63
62
 
64
- exports[`Restricted access > Nested restricted access 4`] = `"{"redirects":{},"fileTrie":{"trie":{"plugins":{"children":{"index":{"file":{"ext":".md","toc":"t0"}}}},"project":{"children":{"index":{"file":{"ext":".md","toc":"t0"}}}}},"tocMapping":{"t0":"toc.yaml"}},"yfmConfig":{}}"`;
65
-
66
63
  exports[`Restricted access > Nested toc restricted access > filelist 1`] = `
67
64
  "[
68
65
  "a1.md",
69
66
  "folder1/a1.md",
70
67
  "folder1/folder2/a1.md",
71
- "toc.yaml",
72
- "yfm-build-manifest.json"
68
+ "toc.yaml"
73
69
  ]"
74
70
  `;
75
71
 
@@ -141,8 +137,6 @@ path: toc.yaml
141
137
  "
142
138
  `;
143
139
 
144
- exports[`Restricted access > Nested toc restricted access 5`] = `"{"redirects":{},"fileTrie":{"trie":{"a1":{"file":{"ext":".md","toc":"t0"}},"folder1":{"children":{"a1":{"file":{"ext":".md","toc":"t0"}},"folder2":{"children":{"a1":{"file":{"ext":".md","toc":"t0"}}}}}}},"tocMapping":{"t0":"toc.yaml"}},"yfmConfig":{}}"`;
145
-
146
140
  exports[`Restricted access > Simple restricted access > filelist 1`] = `
147
141
  "[
148
142
  "index.md",
@@ -150,8 +144,7 @@ exports[`Restricted access > Simple restricted access > filelist 1`] = `
150
144
  "plugins/index2.md",
151
145
  "plugins/index3.md",
152
146
  "plugins/index4.md",
153
- "toc.yaml",
154
- "yfm-build-manifest.json"
147
+ "toc.yaml"
155
148
  ]"
156
149
  `;
157
150
 
@@ -249,5 +242,3 @@ items:
249
242
  path: toc.yaml
250
243
  "
251
244
  `;
252
-
253
- exports[`Restricted access > Simple restricted access 7`] = `"{"redirects":{},"fileTrie":{"trie":{"index":{"file":{"ext":".md","toc":"t0"}},"plugins":{"children":{"index":{"file":{"ext":".md","toc":"t0"}},"index2":{"file":{"ext":".md","toc":"t0"}},"index3":{"file":{"ext":".md","toc":"t0"}},"index4":{"file":{"ext":".md","toc":"t0"}}}}},"tocMapping":{"t0":"toc.yaml"}},"yfmConfig":{}}"`;
@@ -93,8 +93,8 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
93
93
  <base href="../" />
94
94
  <title>Documentation | Documentation</title>
95
95
  <link rel="canonical" href="ar/index.html">
96
- <link rel="alternate" href="en/index.html" hreflang="en" />
97
96
  <link rel="alternate" href="ar/index.html" hreflang="ar" />
97
+ <link rel="alternate" href="en/index.html" hreflang="en" />
98
98
  <meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
99
99
  <style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
100
100
  </head>
@@ -124,8 +124,8 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
124
124
  <base href="../" />
125
125
  <title>Documentation</title>
126
126
  <link rel="canonical" href="ar/page.html">
127
- <link rel="alternate" href="en/page.html" hreflang="en" />
128
127
  <link rel="alternate" href="ar/page.html" hreflang="ar" />
128
+ <link rel="alternate" href="en/page.html" hreflang="en" />
129
129
  <meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
130
130
  <style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
131
131
  </head>
@@ -157,8 +157,8 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
157
157
  <base href="../" />
158
158
  <title>Documentation | Documentation</title>
159
159
  <link rel="canonical" href="en/index.html">
160
- <link rel="alternate" href="en/index.html" hreflang="en" />
161
160
  <link rel="alternate" href="ar/index.html" hreflang="ar" />
161
+ <link rel="alternate" href="en/index.html" hreflang="en" />
162
162
  <meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
163
163
  <style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
164
164
  </head>
@@ -188,8 +188,8 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
188
188
  <base href="../" />
189
189
  <title>Documentation</title>
190
190
  <link rel="canonical" href="en/page.html">
191
- <link rel="alternate" href="en/page.html" hreflang="en" />
192
191
  <link rel="alternate" href="ar/page.html" hreflang="ar" />
192
+ <link rel="alternate" href="en/page.html" hreflang="en" />
193
193
  <meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
194
194
  <meta name="yfm" content="builder">
195
195
  <style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
@@ -7,8 +7,7 @@ exports[`Translate command > build translated md files and remove no-translate d
7
7
  "openapi/index.md",
8
8
  "openapi/test-controller/getWithPayloadResponse.md",
9
9
  "openapi/test-controller/index.md",
10
- "toc.yaml",
11
- "yfm-build-manifest.json"
10
+ "toc.yaml"
12
11
  ]"
13
12
  `;
14
13
 
@@ -312,8 +311,6 @@ path: toc.yaml
312
311
  "
313
312
  `;
314
313
 
315
- exports[`Translate command > build translated md files and remove no-translate directives 7`] = `"{"redirects":{},"fileTrie":{"trie":{"openapi":{"children":{"index":{"file":{"ext":".md","toc":"t0"}},"test-controller":{"children":{"index":{"file":{"ext":".md","toc":"t0"}},"getWithPayloadResponse":{"file":{"ext":".md","toc":"t0"}}}}}},"index":{"file":{"ext":".md","toc":"t0"}},"no-translate":{"file":{"ext":".md","toc":"t0"}}},"tocMapping":{"t0":"toc.yaml"}},"yfmConfig":{}}"`;
316
-
317
314
  exports[`Translate command > build translated static files and remove no-translate directives > filelist 1`] = `
318
315
  "[
319
316
  "index.md",
@@ -321,8 +318,7 @@ exports[`Translate command > build translated static files and remove no-transla
321
318
  "openapi/index.md",
322
319
  "openapi/test-controller/getWithPayloadResponse.md",
323
320
  "openapi/test-controller/index.md",
324
- "toc.yaml",
325
- "yfm-build-manifest.json"
321
+ "toc.yaml"
326
322
  ]"
327
323
  `;
328
324
 
@@ -626,8 +622,6 @@ path: toc.yaml
626
622
  "
627
623
  `;
628
624
 
629
- exports[`Translate command > build translated static files and remove no-translate directives 7`] = `"{"redirects":{},"fileTrie":{"trie":{"openapi":{"children":{"index":{"file":{"ext":".md","toc":"t0"}},"test-controller":{"children":{"index":{"file":{"ext":".md","toc":"t0"}},"getWithPayloadResponse":{"file":{"ext":".md","toc":"t0"}}}}}},"index":{"file":{"ext":".md","toc":"t0"}},"no-translate":{"file":{"ext":".md","toc":"t0"}}},"tocMapping":{"t0":"toc.yaml"}},"yfmConfig":{}}"`;
630
-
631
625
  exports[`Translate command > do not filter files on extract > filelist 1`] = `
632
626
  "[
633
627
  "es/_includes/test.md.skl",
@@ -31,6 +31,17 @@ describe('Errors', () => {
31
31
  ]);
32
32
  });
33
33
 
34
+ test('mocks/errors/object-validation', ({html}: TestResult) => {
35
+ expectErrors(html, [
36
+ 'ERR Invalid toc structure in toc.yaml -> toc.yaml at items[1].name: found [object Object] value',
37
+ 'ERR Invalid toc structure in toc.yaml -> toc.yaml at items[2].href: found [object Object] value',
38
+ 'ERR Invalid toc structure in toc.yaml -> toc.yaml at items[3].items[0].name: found [object Object] value',
39
+ 'ERR Invalid toc structure in toc.yaml -> toc.yaml at items[4].title: found [object Object] value',
40
+ 'ERR Invalid toc structure in toc.yaml -> toc.yaml at items[5].label: found [object Object] value',
41
+ 'ERR Invalid toc structure in toc.yaml -> toc.yaml at items[6].navigation: found [object Object] value',
42
+ ]);
43
+ });
44
+
34
45
  it('translate extract with filtered links', async () => {
35
46
  const {inputPath, outputPath} = getTestPaths('mocks/errors/extract-filtered-link');
36
47
 
@@ -0,0 +1,17 @@
1
+ import {describe, it} from 'vitest';
2
+
3
+ import {TestAdapter, compareDirectories, getTestPaths} from '../fixtures';
4
+
5
+ describe('Pdf page mode', () => {
6
+ it('transforms links correctly', async () => {
7
+ const {inputPath, outputPath} = getTestPaths('mocks/pdf-page');
8
+
9
+ await TestAdapter.testBuildPass(inputPath, outputPath, {
10
+ md2md: false,
11
+ md2html: true,
12
+ args: '-j2',
13
+ });
14
+
15
+ await compareDirectories(`${outputPath}/pdf`);
16
+ });
17
+ });
@@ -0,0 +1,3 @@
1
+ # Test Document
2
+
3
+ This is a test document for object validation.
@@ -0,0 +1,14 @@
1
+ items:
2
+ - name: Valid Item
3
+ href: valid.md
4
+ - name: {{some-var}}
5
+ href: invalid-name.md
6
+ - name: Invalid Href Item
7
+ href: {{some-var}}
8
+ - name: Parent Item
9
+ items:
10
+ - name: {{some-var}}
11
+ href: nested-invalid.md
12
+ - title: {{some-var}}
13
+ - label: {{some-var}}
14
+ - navigation: {{some-var}}
@@ -0,0 +1,5 @@
1
+ allowHTML: true
2
+
3
+ pdf:
4
+ enabled: true
5
+ hddenPolicy: true
@@ -0,0 +1,6 @@
1
+ # Header
2
+
3
+ Content
4
+
5
+ [Link 1](page1.md)
6
+ [Link 2](page2.md)
@@ -0,0 +1,3 @@
1
+ # Page 1
2
+
3
+ [Link](page2.md#hash)
@@ -0,0 +1,7 @@
1
+ # Page 2
2
+
3
+ ## hash
4
+
5
+ [External link](https://example.com)
6
+
7
+ <div data-pdf-hidden="true"> Will be deleted in pdf <div>
@@ -0,0 +1 @@
1
+ # Page 3
@@ -0,0 +1,15 @@
1
+ title: Skip html extension
2
+ href: index.md
3
+
4
+ items:
5
+ - name: Title 1
6
+ href: page1.md
7
+ - name: Title 2
8
+ href: page2.md
9
+ hidden: true
10
+ - name: Without href
11
+ hidden: true
12
+ items:
13
+ - name: Title 3
14
+ href: page3.md
15
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diplodoc/cli-tests",
3
- "version": "0.0.0-rc-fix-manifest-18002055289",
3
+ "version": "0.0.0-rc-object-in-toc-18225715685",
4
4
  "bin": {
5
5
  "diplodoc-cli-test": "bin.mjs"
6
6
  },