@diplodoc/cli-tests 0.0.0-rc-disable-resolve-codeblock-17941220955 → 0.0.0-rc-fix-manifest-18002055289

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 (48) hide show
  1. package/e2e/__snapshots__/alternates.test.ts.snap +40 -43
  2. package/e2e/__snapshots__/bundles.spec.ts.snap +3 -3
  3. package/e2e/__snapshots__/include-toc.test.ts.snap +28 -20
  4. package/e2e/__snapshots__/load-custom-resources.spec.ts.snap +10 -10
  5. package/e2e/__snapshots__/metadata.spec.ts.snap +7 -7
  6. package/e2e/__snapshots__/plugin-corner-cases.spec.ts.snap +0 -0
  7. package/e2e/__snapshots__/preprocess.test.ts.snap +291 -48
  8. package/e2e/__snapshots__/regression.test.ts.snap +49 -61
  9. package/e2e/__snapshots__/restricted-access.test.ts.snap +12 -13
  10. package/e2e/__snapshots__/rtl.spec.ts.snap +6 -6
  11. package/e2e/__snapshots__/search.test.ts.snap +1 -1
  12. package/e2e/__snapshots__/single-page.spec.ts.snap +3 -3
  13. package/e2e/__snapshots__/skip-html-extension.spec.ts.snap +4 -4
  14. package/e2e/__snapshots__/translation.spec.ts.snap +8 -12
  15. package/e2e/alternates.test.ts +1 -0
  16. package/e2e/bundles.spec.ts +1 -0
  17. package/e2e/errors.spec.ts +18 -8
  18. package/e2e/generate-map.spec.ts +6 -2
  19. package/e2e/include-toc.test.ts +1 -0
  20. package/e2e/load-custom-resources.spec.ts +1 -0
  21. package/e2e/metadata.spec.ts +1 -0
  22. package/e2e/plugin-corner-cases.spec.ts +1 -0
  23. package/e2e/preprocess.test.ts +8 -5
  24. package/e2e/redirects-validation.spec.ts +5 -4
  25. package/e2e/regression.test.ts +1 -0
  26. package/e2e/restricted-access.test.ts +3 -5
  27. package/e2e/rtl.spec.ts +1 -0
  28. package/e2e/search.test.ts +1 -0
  29. package/e2e/single-page.spec.ts +1 -0
  30. package/e2e/skip-html-extension.spec.ts +1 -0
  31. package/e2e/translation.spec.ts +17 -6
  32. package/fixtures/cliAdapter.ts +7 -3
  33. package/fixtures/globals.d.ts +1 -1
  34. package/fixtures/runners/binary.ts +5 -2
  35. package/fixtures/runners/index.ts +2 -1
  36. package/fixtures/runners/source.ts +1 -1
  37. package/fixtures/utils/file.ts +20 -16
  38. package/fixtures/utils/test.ts +19 -19
  39. package/mocks/preprocess/input/autotitle.md +3 -0
  40. package/mocks/preprocess/input/includes/level1.md +9 -0
  41. package/mocks/preprocess/input/includes/level11.md +1 -0
  42. package/mocks/preprocess/input/includes/sub/level2.md +7 -0
  43. package/mocks/preprocess/input/level0.md +7 -0
  44. package/mocks/preprocess/input/level1/level1.md +7 -0
  45. package/mocks/preprocess/input/level1/level2/level2.md +6 -0
  46. package/mocks/preprocess/input/level1/toc.yaml +5 -0
  47. package/mocks/preprocess/input/toc.yaml +8 -0
  48. package/package.json +1 -1
@@ -12,14 +12,20 @@ exports[`Preprocess > HashIncludes=true,Autotitles=false > filelist 1`] = `
12
12
  "includes.md",
13
13
  "includes/deep-hash.md",
14
14
  "includes/deepWithIndent-hash.md",
15
+ "includes/level11.md",
15
16
  "includes/sub/user-hash.md",
16
17
  "includes/sub/userWithIndent-hash.md",
17
18
  "includes/test-hash.md",
18
19
  "includes/user-hash.md",
19
20
  "latex.md",
21
+ "level0.md",
22
+ "level1/level1.md",
23
+ "level1/level2/level2.md",
24
+ "level1/toc.yaml",
20
25
  "mermaid.md",
21
26
  "sub/folder/item-1.md",
22
- "toc.yaml"
27
+ "toc.yaml",
28
+ "yfm-build-manifest.json"
23
29
  ]"
24
30
  `;
25
31
 
@@ -34,7 +40,6 @@ metadata:
34
40
  - name: generator
35
41
  content: Diplodoc Platform vDIPLODOC-VERSION
36
42
  vcsPath: 1.md
37
- sourcePath: 1.md
38
43
  ---
39
44
  # Title
40
45
 
@@ -74,7 +79,6 @@ metadata:
74
79
  - name: generator
75
80
  content: Diplodoc Platform vDIPLODOC-VERSION
76
81
  vcsPath: autotitle.md
77
- sourcePath: autotitle.md
78
82
  ---
79
83
  # Autotitles ![](_assets/1.svg)
80
84
 
@@ -107,6 +111,9 @@ Reference link with hash
107
111
  [link]: ./mermaid.md
108
112
  [link-with-hash]: ./1.md#subtitle
109
113
 
114
+ Link another level
115
+ [{#T}](./includes/level11.md)
116
+
110
117
  ## Header {#header}
111
118
 
112
119
  Content
@@ -121,7 +128,6 @@ metadata:
121
128
  - name: generator
122
129
  content: Diplodoc Platform vDIPLODOC-VERSION
123
130
  vcsPath: images.md
124
- sourcePath: images.md
125
131
  ---
126
132
  # Images ![svg image 1](_assets/1.svg)
127
133
 
@@ -228,7 +234,6 @@ metadata:
228
234
  - name: generator
229
235
  content: Diplodoc Platform vDIPLODOC-VERSION
230
236
  vcsPath: included-item.md
231
- sourcePath: included-item.md
232
237
  ---
233
238
  # Included item
234
239
 
@@ -251,7 +256,6 @@ metadata:
251
256
  - name: generator
252
257
  content: Diplodoc Platform vDIPLODOC-VERSION
253
258
  vcsPath: includes.md
254
- sourcePath: includes.md
255
259
  ---
256
260
  Text
257
261
 
@@ -290,11 +294,22 @@ Link to mermaid diagram from 1 level
290
294
  `;
291
295
 
292
296
  exports[`Preprocess > HashIncludes=true,Autotitles=false 9`] = `
293
- "Bob
297
+ "---
298
+ metadata:
299
+ - name: generator
300
+ content: Diplodoc Platform vDIPLODOC-VERSION
301
+ vcsPath: includes/level11.md
302
+ ---
303
+ # Level 11 svg header ![Level 11 svg header](../_assets/1.svg)
294
304
  "
295
305
  `;
296
306
 
297
307
  exports[`Preprocess > HashIncludes=true,Autotitles=false 10`] = `
308
+ "Bob
309
+ "
310
+ `;
311
+
312
+ exports[`Preprocess > HashIncludes=true,Autotitles=false 11`] = `
298
313
  "Link to mermaid diagram from 2 level
299
314
  [](../../mermaid.md)
300
315
 
@@ -302,23 +317,22 @@ exports[`Preprocess > HashIncludes=true,Autotitles=false 10`] = `
302
317
  Bob"
303
318
  `;
304
319
 
305
- exports[`Preprocess > HashIncludes=true,Autotitles=false 11`] = `
320
+ exports[`Preprocess > HashIncludes=true,Autotitles=false 12`] = `
306
321
  "Test
307
322
  "
308
323
  `;
309
324
 
310
- exports[`Preprocess > HashIncludes=true,Autotitles=false 12`] = `
325
+ exports[`Preprocess > HashIncludes=true,Autotitles=false 13`] = `
311
326
  "Bob
312
327
  "
313
328
  `;
314
329
 
315
- exports[`Preprocess > HashIncludes=true,Autotitles=false 13`] = `
330
+ exports[`Preprocess > HashIncludes=true,Autotitles=false 14`] = `
316
331
  "---
317
332
  metadata:
318
333
  - name: generator
319
334
  content: Diplodoc Platform vDIPLODOC-VERSION
320
335
  vcsPath: latex.md
321
- sourcePath: latex.md
322
336
  ---
323
337
  # Latex usage
324
338
 
@@ -326,13 +340,71 @@ $/sqrt{3x-1}+(1+x)^2$
326
340
  "
327
341
  `;
328
342
 
329
- exports[`Preprocess > HashIncludes=true,Autotitles=false 14`] = `
343
+ exports[`Preprocess > HashIncludes=true,Autotitles=false 15`] = `
344
+ "---
345
+ metadata:
346
+ - name: generator
347
+ content: Diplodoc Platform vDIPLODOC-VERSION
348
+ vcsPath: level0.md
349
+ ---
350
+ # Level root svg header ![Level root svg header](_assets/1.svg)
351
+
352
+ [{#T}](images.md)
353
+
354
+ [{#T}](level1/level1.md)
355
+
356
+ [{#T}](level1/level2/level2.md)
357
+ "
358
+ `;
359
+
360
+ exports[`Preprocess > HashIncludes=true,Autotitles=false 16`] = `
361
+ "---
362
+ metadata:
363
+ - name: generator
364
+ content: Diplodoc Platform vDIPLODOC-VERSION
365
+ vcsPath: level1/level1.md
366
+ ---
367
+ # Level 1 svg header ![Level 1 svg header](../_assets/1.svg)
368
+
369
+ [{#T}](../level0.md)
370
+
371
+ [{#T}](level2/level2.md)
372
+
373
+ [{#T}](../includes/level11.md)"
374
+ `;
375
+
376
+ exports[`Preprocess > HashIncludes=true,Autotitles=false 17`] = `
377
+ "---
378
+ metadata:
379
+ - name: generator
380
+ content: Diplodoc Platform vDIPLODOC-VERSION
381
+ vcsPath: level1/level2/level2.md
382
+ ---
383
+ # Level 2 svg header ![Level 2 svg header](../../_assets/1.svg)
384
+
385
+ [{#T}](../level1.md)
386
+
387
+ [{#T}](../../level0.md)
388
+
389
+ "
390
+ `;
391
+
392
+ exports[`Preprocess > HashIncludes=true,Autotitles=false 18`] = `
393
+ "items:
394
+ - name: level1
395
+ href: level1.md
396
+ - name: level2
397
+ href: level2/level2.md
398
+ path: level1/toc.yaml
399
+ "
400
+ `;
401
+
402
+ exports[`Preprocess > HashIncludes=true,Autotitles=false 19`] = `
330
403
  "---
331
404
  metadata:
332
405
  - name: generator
333
406
  content: Diplodoc Platform vDIPLODOC-VERSION
334
407
  vcsPath: mermaid.md
335
- sourcePath: mermaid.md
336
408
  ---
337
409
  # Mermaid usage
338
410
 
@@ -350,13 +422,12 @@ Some mermaid info
350
422
  "
351
423
  `;
352
424
 
353
- exports[`Preprocess > HashIncludes=true,Autotitles=false 15`] = `
425
+ exports[`Preprocess > HashIncludes=true,Autotitles=false 20`] = `
354
426
  "---
355
427
  metadata:
356
428
  - name: generator
357
429
  content: Diplodoc Platform vDIPLODOC-VERSION
358
430
  vcsPath: sub/folder/item-1.md
359
- sourcePath: sub/folder/item-1.md
360
431
  ---
361
432
  # Item 1
362
433
 
@@ -368,7 +439,7 @@ Item 1 text
368
439
  "
369
440
  `;
370
441
 
371
- exports[`Preprocess > HashIncludes=true,Autotitles=false 16`] = `
442
+ exports[`Preprocess > HashIncludes=true,Autotitles=false 21`] = `
372
443
  "items:
373
444
  - name: Md item with not_var syntax
374
445
  href: 1.md
@@ -390,10 +461,20 @@ exports[`Preprocess > HashIncludes=true,Autotitles=false 16`] = `
390
461
  href: autotitle.md
391
462
  - name: includes
392
463
  href: includes.md
464
+ - name: level11
465
+ href: includes/level11.md
466
+ - name: level0
467
+ href: level0.md
468
+ - name: level1
469
+ href: level1/level1.md
470
+ - name: level2
471
+ href: level1/level2/level2.md
393
472
  path: toc.yaml
394
473
  "
395
474
  `;
396
475
 
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
+
397
478
  exports[`Preprocess > HashIncludes=true,Autotitles=true > filelist 1`] = `
398
479
  "[
399
480
  ".yfm",
@@ -406,14 +487,20 @@ exports[`Preprocess > HashIncludes=true,Autotitles=true > filelist 1`] = `
406
487
  "includes.md",
407
488
  "includes/deep-hash.md",
408
489
  "includes/deepWithIndent-hash.md",
490
+ "includes/level11.md",
409
491
  "includes/sub/user-hash.md",
410
492
  "includes/sub/userWithIndent-hash.md",
411
493
  "includes/test-hash.md",
412
494
  "includes/user-hash.md",
413
495
  "latex.md",
496
+ "level0.md",
497
+ "level1/level1.md",
498
+ "level1/level2/level2.md",
499
+ "level1/toc.yaml",
414
500
  "mermaid.md",
415
501
  "sub/folder/item-1.md",
416
- "toc.yaml"
502
+ "toc.yaml",
503
+ "yfm-build-manifest.json"
417
504
  ]"
418
505
  `;
419
506
 
@@ -428,7 +515,6 @@ metadata:
428
515
  - name: generator
429
516
  content: Diplodoc Platform vDIPLODOC-VERSION
430
517
  vcsPath: 1.md
431
- sourcePath: 1.md
432
518
  ---
433
519
  # Title
434
520
 
@@ -468,7 +554,6 @@ metadata:
468
554
  - name: generator
469
555
  content: Diplodoc Platform vDIPLODOC-VERSION
470
556
  vcsPath: autotitle.md
471
- sourcePath: autotitle.md
472
557
  ---
473
558
  # Autotitles ![](_assets/1.svg)
474
559
 
@@ -501,6 +586,9 @@ Reference link with hash
501
586
  [link]: ./mermaid.md
502
587
  [link-with-hash]: ./1.md#subtitle
503
588
 
589
+ Link another level
590
+ [Level 11 svg header ![Level 11 svg header](_assets/1.svg)](./includes/level11.md)
591
+
504
592
  ## Header {#header}
505
593
 
506
594
  Content
@@ -515,7 +603,6 @@ metadata:
515
603
  - name: generator
516
604
  content: Diplodoc Platform vDIPLODOC-VERSION
517
605
  vcsPath: images.md
518
- sourcePath: images.md
519
606
  ---
520
607
  # Images ![svg image 1](_assets/1.svg)
521
608
 
@@ -622,7 +709,6 @@ metadata:
622
709
  - name: generator
623
710
  content: Diplodoc Platform vDIPLODOC-VERSION
624
711
  vcsPath: included-item.md
625
- sourcePath: included-item.md
626
712
  ---
627
713
  # Included item
628
714
 
@@ -645,7 +731,6 @@ metadata:
645
731
  - name: generator
646
732
  content: Diplodoc Platform vDIPLODOC-VERSION
647
733
  vcsPath: includes.md
648
- sourcePath: includes.md
649
734
  ---
650
735
  Text
651
736
 
@@ -684,11 +769,22 @@ Link to mermaid diagram from 1 level
684
769
  `;
685
770
 
686
771
  exports[`Preprocess > HashIncludes=true,Autotitles=true 9`] = `
687
- "Bob
772
+ "---
773
+ metadata:
774
+ - name: generator
775
+ content: Diplodoc Platform vDIPLODOC-VERSION
776
+ vcsPath: includes/level11.md
777
+ ---
778
+ # Level 11 svg header ![Level 11 svg header](../_assets/1.svg)
688
779
  "
689
780
  `;
690
781
 
691
782
  exports[`Preprocess > HashIncludes=true,Autotitles=true 10`] = `
783
+ "Bob
784
+ "
785
+ `;
786
+
787
+ exports[`Preprocess > HashIncludes=true,Autotitles=true 11`] = `
692
788
  "Link to mermaid diagram from 2 level
693
789
  [Mermaid usage](../../mermaid.md)
694
790
 
@@ -696,23 +792,22 @@ exports[`Preprocess > HashIncludes=true,Autotitles=true 10`] = `
696
792
  Bob"
697
793
  `;
698
794
 
699
- exports[`Preprocess > HashIncludes=true,Autotitles=true 11`] = `
795
+ exports[`Preprocess > HashIncludes=true,Autotitles=true 12`] = `
700
796
  "Test
701
797
  "
702
798
  `;
703
799
 
704
- exports[`Preprocess > HashIncludes=true,Autotitles=true 12`] = `
800
+ exports[`Preprocess > HashIncludes=true,Autotitles=true 13`] = `
705
801
  "Bob
706
802
  "
707
803
  `;
708
804
 
709
- exports[`Preprocess > HashIncludes=true,Autotitles=true 13`] = `
805
+ exports[`Preprocess > HashIncludes=true,Autotitles=true 14`] = `
710
806
  "---
711
807
  metadata:
712
808
  - name: generator
713
809
  content: Diplodoc Platform vDIPLODOC-VERSION
714
810
  vcsPath: latex.md
715
- sourcePath: latex.md
716
811
  ---
717
812
  # Latex usage
718
813
 
@@ -720,13 +815,71 @@ $/sqrt{3x-1}+(1+x)^2$
720
815
  "
721
816
  `;
722
817
 
723
- exports[`Preprocess > HashIncludes=true,Autotitles=true 14`] = `
818
+ exports[`Preprocess > HashIncludes=true,Autotitles=true 15`] = `
819
+ "---
820
+ metadata:
821
+ - name: generator
822
+ content: Diplodoc Platform vDIPLODOC-VERSION
823
+ vcsPath: level0.md
824
+ ---
825
+ # Level root svg header ![Level root svg header](_assets/1.svg)
826
+
827
+ [Images ![svg image 1](_assets/1.svg)](images.md)
828
+
829
+ [Level 1 svg header ![Level 1 svg header](_assets/1.svg)](level1/level1.md)
830
+
831
+ [Level 2 svg header ![Level 2 svg header](_assets/1.svg)](level1/level2/level2.md)
832
+ "
833
+ `;
834
+
835
+ exports[`Preprocess > HashIncludes=true,Autotitles=true 16`] = `
836
+ "---
837
+ metadata:
838
+ - name: generator
839
+ content: Diplodoc Platform vDIPLODOC-VERSION
840
+ vcsPath: level1/level1.md
841
+ ---
842
+ # Level 1 svg header ![Level 1 svg header](../_assets/1.svg)
843
+
844
+ [Level root svg header ![Level root svg header](../_assets/1.svg)](../level0.md)
845
+
846
+ [Level 2 svg header ![Level 2 svg header](../_assets/1.svg)](level2/level2.md)
847
+
848
+ [Level 11 svg header ![Level 11 svg header](../_assets/1.svg)](../includes/level11.md)"
849
+ `;
850
+
851
+ exports[`Preprocess > HashIncludes=true,Autotitles=true 17`] = `
852
+ "---
853
+ metadata:
854
+ - name: generator
855
+ content: Diplodoc Platform vDIPLODOC-VERSION
856
+ vcsPath: level1/level2/level2.md
857
+ ---
858
+ # Level 2 svg header ![Level 2 svg header](../../_assets/1.svg)
859
+
860
+ [Level 1 svg header ![Level 1 svg header](../../_assets/1.svg)](../level1.md)
861
+
862
+ [Level root svg header ![Level root svg header](../../_assets/1.svg)](../../level0.md)
863
+
864
+ "
865
+ `;
866
+
867
+ exports[`Preprocess > HashIncludes=true,Autotitles=true 18`] = `
868
+ "items:
869
+ - name: level1
870
+ href: level1.md
871
+ - name: level2
872
+ href: level2/level2.md
873
+ path: level1/toc.yaml
874
+ "
875
+ `;
876
+
877
+ exports[`Preprocess > HashIncludes=true,Autotitles=true 19`] = `
724
878
  "---
725
879
  metadata:
726
880
  - name: generator
727
881
  content: Diplodoc Platform vDIPLODOC-VERSION
728
882
  vcsPath: mermaid.md
729
- sourcePath: mermaid.md
730
883
  ---
731
884
  # Mermaid usage
732
885
 
@@ -744,13 +897,12 @@ Some mermaid info
744
897
  "
745
898
  `;
746
899
 
747
- exports[`Preprocess > HashIncludes=true,Autotitles=true 15`] = `
900
+ exports[`Preprocess > HashIncludes=true,Autotitles=true 20`] = `
748
901
  "---
749
902
  metadata:
750
903
  - name: generator
751
904
  content: Diplodoc Platform vDIPLODOC-VERSION
752
905
  vcsPath: sub/folder/item-1.md
753
- sourcePath: sub/folder/item-1.md
754
906
  ---
755
907
  # Item 1
756
908
 
@@ -762,7 +914,7 @@ Item 1 text
762
914
  "
763
915
  `;
764
916
 
765
- exports[`Preprocess > HashIncludes=true,Autotitles=true 16`] = `
917
+ exports[`Preprocess > HashIncludes=true,Autotitles=true 21`] = `
766
918
  "items:
767
919
  - name: Md item with not_var syntax
768
920
  href: 1.md
@@ -784,10 +936,20 @@ exports[`Preprocess > HashIncludes=true,Autotitles=true 16`] = `
784
936
  href: autotitle.md
785
937
  - name: includes
786
938
  href: includes.md
939
+ - name: level11
940
+ href: includes/level11.md
941
+ - name: level0
942
+ href: level0.md
943
+ - name: level1
944
+ href: level1/level1.md
945
+ - name: level2
946
+ href: level1/level2/level2.md
787
947
  path: toc.yaml
788
948
  "
789
949
  `;
790
950
 
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
+
791
953
  exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true > filelist 1`] = `
792
954
  "[
793
955
  ".yfm",
@@ -800,14 +962,20 @@ exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true > filelist 1`]
800
962
  "includes.md",
801
963
  "includes/deep-hash.md",
802
964
  "includes/deepWithIndent-hash.md",
965
+ "includes/level11.md",
803
966
  "includes/sub/user-hash.md",
804
967
  "includes/sub/userWithIndent-hash.md",
805
968
  "includes/test-hash.md",
806
969
  "includes/user-hash.md",
807
970
  "latex.md",
971
+ "level0.md",
972
+ "level1/level1.md",
973
+ "level1/level2/level2.md",
974
+ "level1/toc.yaml",
808
975
  "mermaid.md",
809
976
  "sub/folder/item-1.md",
810
- "toc.yaml"
977
+ "toc.yaml",
978
+ "yfm-build-manifest.json"
811
979
  ]"
812
980
  `;
813
981
 
@@ -822,7 +990,6 @@ metadata:
822
990
  - name: generator
823
991
  content: Diplodoc Platform vDIPLODOC-VERSION
824
992
  vcsPath: 1.md
825
- sourcePath: 1.md
826
993
  ---
827
994
  # Title
828
995
 
@@ -862,7 +1029,6 @@ metadata:
862
1029
  - name: generator
863
1030
  content: Diplodoc Platform vDIPLODOC-VERSION
864
1031
  vcsPath: autotitle.md
865
- sourcePath: autotitle.md
866
1032
  ---
867
1033
  # Autotitles <svg width="20px" height="20px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" id="rnd-hash__search" version="1.1" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="rnd-hash__search_1_"><linearGradient gradientUnits="userSpaceOnUse" id="rnd-hash__SVGID_1_" x1="57.9473" x2="407.9511" y1="351.4531" y2="149.3783"><stop offset="0" stop-color="#F14D5C"/><stop offset="0.1309" stop-color="#F05454"/><stop offset="0.3346" stop-color="#3bf488"/><stop offset="0.3492" stop-color="#ED683C"/><stop offset="0.714" stop-color="#1e15a3"/><stop offset="1" stop-color="#FDC70C"/></linearGradient><path d="M300.766,87.509c-33.056,0-64.133,12.873-87.507,36.246c-23.374,23.374-36.247,54.451-36.247,87.507 c0,24.234,6.927,47.4,19.83,67.252l-12.669,12.669c0,0.001-0.001,0.001-0.001,0.001l-90.664,90.665 c-8.353,8.354-7.88,22.418,1.055,31.353l4.261,4.262c4.669,4.668,10.736,7.028,16.658,7.028c5.417,0,10.713-1.976,14.703-5.966 l15.405-15.405l75.259-75.259l12.671-12.672c19.85,12.9,43.014,19.826,67.246,19.826c33.056,0,64.133-12.873,87.506-36.247 c48.252-48.251,48.252-126.762,0-175.014C364.898,100.382,333.821,87.509,300.766,87.509z M138.518,396.049 c-4.454,4.453-12.178,3.979-17.219-1.063l-4.261-4.262c-5.036-5.035-5.509-12.756-1.055-17.21l71.38-71.38 c3.284,4.164,6.834,8.16,10.601,11.926c3.766,3.766,7.764,7.318,11.935,10.607L138.518,396.049z M105.894,410.391l-4.261-4.26 c-5.036-5.036-5.509-12.757-1.055-17.211l2.902-2.902c0.936,4.27,3.101,8.393,6.486,11.779l4.261,4.26 c3.392,3.393,7.523,5.549,11.799,6.483l-2.914,2.914C118.658,415.908,110.934,415.432,105.894,410.391z M213.788,320.779 c0.002-0.003,0.005-0.006,0.007-0.008l0,0L213.788,320.779z M217.033,317.534c-4.201-3.248-8.229-6.775-11.998-10.544 c-3.771-3.771-7.295-7.797-10.537-11.99l8.214-8.214c3.233,4.181,6.749,8.185,10.547,11.982c3.8,3.8,7.806,7.317,11.989,10.552 L217.033,317.534z M381.201,291.697c-21.485,21.485-50.052,33.318-80.436,33.318c-30.385,0-58.951-11.833-80.436-33.318 c-21.485-21.484-33.318-50.051-33.318-80.436s11.833-58.95,33.318-80.436c21.485-21.485,50.051-33.317,80.436-33.317 c30.384,0,58.95,11.832,80.436,33.317C425.553,175.179,425.553,247.346,381.201,291.697z" fill="url(#rnd-hash__SVGID_1_)"/><path d="M258.117,115.27l3.604,9.328c2.592-1.001,5.267-1.887,7.949-2.632l-2.676-9.636 C263.998,113.162,261.012,114.151,258.117,115.27z" fill="#3bf488ff"/><path d="M206.264,162.886l8.985,4.389c8.299-16.992,22.191-30.997,39.118-39.433l-4.46-8.95 C231.022,128.304,215.523,143.928,206.264,162.886z" fill="#1e15a3ff"/></g></svg>
868
1034
 
@@ -895,6 +1061,9 @@ Reference link with hash
895
1061
  [link]: ./mermaid.md
896
1062
  [link-with-hash]: ./1.md#subtitle
897
1063
 
1064
+ Link another level
1065
+ [Level 11 svg header ![Level 11 svg header](_assets/1.svg)](./includes/level11.md)
1066
+
898
1067
  ## Header {#header}
899
1068
 
900
1069
  Content
@@ -909,7 +1078,6 @@ metadata:
909
1078
  - name: generator
910
1079
  content: Diplodoc Platform vDIPLODOC-VERSION
911
1080
  vcsPath: images.md
912
- sourcePath: images.md
913
1081
  ---
914
1082
  # Images <svg width="20px" height="20px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" id="rnd-hash__search" version="1.1" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="rnd-hash__search_1_"><linearGradient gradientUnits="userSpaceOnUse" id="rnd-hash__SVGID_1_" x1="57.9473" x2="407.9511" y1="351.4531" y2="149.3783"><stop offset="0" stop-color="#F14D5C"/><stop offset="0.1309" stop-color="#F05454"/><stop offset="0.3346" stop-color="#3bf488"/><stop offset="0.3492" stop-color="#ED683C"/><stop offset="0.714" stop-color="#1e15a3"/><stop offset="1" stop-color="#FDC70C"/></linearGradient><path d="M300.766,87.509c-33.056,0-64.133,12.873-87.507,36.246c-23.374,23.374-36.247,54.451-36.247,87.507 c0,24.234,6.927,47.4,19.83,67.252l-12.669,12.669c0,0.001-0.001,0.001-0.001,0.001l-90.664,90.665 c-8.353,8.354-7.88,22.418,1.055,31.353l4.261,4.262c4.669,4.668,10.736,7.028,16.658,7.028c5.417,0,10.713-1.976,14.703-5.966 l15.405-15.405l75.259-75.259l12.671-12.672c19.85,12.9,43.014,19.826,67.246,19.826c33.056,0,64.133-12.873,87.506-36.247 c48.252-48.251,48.252-126.762,0-175.014C364.898,100.382,333.821,87.509,300.766,87.509z M138.518,396.049 c-4.454,4.453-12.178,3.979-17.219-1.063l-4.261-4.262c-5.036-5.035-5.509-12.756-1.055-17.21l71.38-71.38 c3.284,4.164,6.834,8.16,10.601,11.926c3.766,3.766,7.764,7.318,11.935,10.607L138.518,396.049z M105.894,410.391l-4.261-4.26 c-5.036-5.036-5.509-12.757-1.055-17.211l2.902-2.902c0.936,4.27,3.101,8.393,6.486,11.779l4.261,4.26 c3.392,3.393,7.523,5.549,11.799,6.483l-2.914,2.914C118.658,415.908,110.934,415.432,105.894,410.391z M213.788,320.779 c0.002-0.003,0.005-0.006,0.007-0.008l0,0L213.788,320.779z M217.033,317.534c-4.201-3.248-8.229-6.775-11.998-10.544 c-3.771-3.771-7.295-7.797-10.537-11.99l8.214-8.214c3.233,4.181,6.749,8.185,10.547,11.982c3.8,3.8,7.806,7.317,11.989,10.552 L217.033,317.534z M381.201,291.697c-21.485,21.485-50.052,33.318-80.436,33.318c-30.385,0-58.951-11.833-80.436-33.318 c-21.485-21.484-33.318-50.051-33.318-80.436s11.833-58.95,33.318-80.436c21.485-21.485,50.051-33.317,80.436-33.317 c30.384,0,58.95,11.832,80.436,33.317C425.553,175.179,425.553,247.346,381.201,291.697z" fill="url(#rnd-hash__SVGID_1_)"/><path d="M258.117,115.27l3.604,9.328c2.592-1.001,5.267-1.887,7.949-2.632l-2.676-9.636 C263.998,113.162,261.012,114.151,258.117,115.27z" fill="#3bf488ff"/><path d="M206.264,162.886l8.985,4.389c8.299-16.992,22.191-30.997,39.118-39.433l-4.46-8.95 C231.022,128.304,215.523,143.928,206.264,162.886z" fill="#1e15a3ff"/></g></svg>
915
1083
 
@@ -1016,7 +1184,6 @@ metadata:
1016
1184
  - name: generator
1017
1185
  content: Diplodoc Platform vDIPLODOC-VERSION
1018
1186
  vcsPath: included-item.md
1019
- sourcePath: included-item.md
1020
1187
  ---
1021
1188
  # Included item
1022
1189
 
@@ -1039,7 +1206,6 @@ metadata:
1039
1206
  - name: generator
1040
1207
  content: Diplodoc Platform vDIPLODOC-VERSION
1041
1208
  vcsPath: includes.md
1042
- sourcePath: includes.md
1043
1209
  ---
1044
1210
  Text
1045
1211
 
@@ -1078,11 +1244,22 @@ Link to mermaid diagram from 1 level
1078
1244
  `;
1079
1245
 
1080
1246
  exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true 9`] = `
1081
- "Bob
1247
+ "---
1248
+ metadata:
1249
+ - name: generator
1250
+ content: Diplodoc Platform vDIPLODOC-VERSION
1251
+ vcsPath: includes/level11.md
1252
+ ---
1253
+ # Level 11 svg header <svg width="20px" height="20px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" id="rnd-hash__search" version="1.1" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="rnd-hash__search_1_"><linearGradient gradientUnits="userSpaceOnUse" id="rnd-hash__SVGID_1_" x1="57.9473" x2="407.9511" y1="351.4531" y2="149.3783"><stop offset="0" stop-color="#F14D5C"/><stop offset="0.1309" stop-color="#F05454"/><stop offset="0.3346" stop-color="#3bf488"/><stop offset="0.3492" stop-color="#ED683C"/><stop offset="0.714" stop-color="#1e15a3"/><stop offset="1" stop-color="#FDC70C"/></linearGradient><path d="M300.766,87.509c-33.056,0-64.133,12.873-87.507,36.246c-23.374,23.374-36.247,54.451-36.247,87.507 c0,24.234,6.927,47.4,19.83,67.252l-12.669,12.669c0,0.001-0.001,0.001-0.001,0.001l-90.664,90.665 c-8.353,8.354-7.88,22.418,1.055,31.353l4.261,4.262c4.669,4.668,10.736,7.028,16.658,7.028c5.417,0,10.713-1.976,14.703-5.966 l15.405-15.405l75.259-75.259l12.671-12.672c19.85,12.9,43.014,19.826,67.246,19.826c33.056,0,64.133-12.873,87.506-36.247 c48.252-48.251,48.252-126.762,0-175.014C364.898,100.382,333.821,87.509,300.766,87.509z M138.518,396.049 c-4.454,4.453-12.178,3.979-17.219-1.063l-4.261-4.262c-5.036-5.035-5.509-12.756-1.055-17.21l71.38-71.38 c3.284,4.164,6.834,8.16,10.601,11.926c3.766,3.766,7.764,7.318,11.935,10.607L138.518,396.049z M105.894,410.391l-4.261-4.26 c-5.036-5.036-5.509-12.757-1.055-17.211l2.902-2.902c0.936,4.27,3.101,8.393,6.486,11.779l4.261,4.26 c3.392,3.393,7.523,5.549,11.799,6.483l-2.914,2.914C118.658,415.908,110.934,415.432,105.894,410.391z M213.788,320.779 c0.002-0.003,0.005-0.006,0.007-0.008l0,0L213.788,320.779z M217.033,317.534c-4.201-3.248-8.229-6.775-11.998-10.544 c-3.771-3.771-7.295-7.797-10.537-11.99l8.214-8.214c3.233,4.181,6.749,8.185,10.547,11.982c3.8,3.8,7.806,7.317,11.989,10.552 L217.033,317.534z M381.201,291.697c-21.485,21.485-50.052,33.318-80.436,33.318c-30.385,0-58.951-11.833-80.436-33.318 c-21.485-21.484-33.318-50.051-33.318-80.436s11.833-58.95,33.318-80.436c21.485-21.485,50.051-33.317,80.436-33.317 c30.384,0,58.95,11.832,80.436,33.317C425.553,175.179,425.553,247.346,381.201,291.697z" fill="url(#rnd-hash__SVGID_1_)"/><path d="M258.117,115.27l3.604,9.328c2.592-1.001,5.267-1.887,7.949-2.632l-2.676-9.636 C263.998,113.162,261.012,114.151,258.117,115.27z" fill="#3bf488ff"/><path d="M206.264,162.886l8.985,4.389c8.299-16.992,22.191-30.997,39.118-39.433l-4.46-8.95 C231.022,128.304,215.523,143.928,206.264,162.886z" fill="#1e15a3ff"/></g></svg>
1082
1254
  "
1083
1255
  `;
1084
1256
 
1085
1257
  exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true 10`] = `
1258
+ "Bob
1259
+ "
1260
+ `;
1261
+
1262
+ exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true 11`] = `
1086
1263
  "Link to mermaid diagram from 2 level
1087
1264
  [Mermaid usage](../../mermaid.md)
1088
1265
 
@@ -1090,23 +1267,22 @@ exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true 10`] = `
1090
1267
  Bob"
1091
1268
  `;
1092
1269
 
1093
- exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true 11`] = `
1270
+ exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true 12`] = `
1094
1271
  "Test
1095
1272
  "
1096
1273
  `;
1097
1274
 
1098
- exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true 12`] = `
1275
+ exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true 13`] = `
1099
1276
  "Bob
1100
1277
  "
1101
1278
  `;
1102
1279
 
1103
- exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true 13`] = `
1280
+ exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true 14`] = `
1104
1281
  "---
1105
1282
  metadata:
1106
1283
  - name: generator
1107
1284
  content: Diplodoc Platform vDIPLODOC-VERSION
1108
1285
  vcsPath: latex.md
1109
- sourcePath: latex.md
1110
1286
  ---
1111
1287
  # Latex usage
1112
1288
 
@@ -1114,13 +1290,71 @@ $/sqrt{3x-1}+(1+x)^2$
1114
1290
  "
1115
1291
  `;
1116
1292
 
1117
- exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true 14`] = `
1293
+ exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true 15`] = `
1294
+ "---
1295
+ metadata:
1296
+ - name: generator
1297
+ content: Diplodoc Platform vDIPLODOC-VERSION
1298
+ vcsPath: level0.md
1299
+ ---
1300
+ # Level root svg header <svg width="20px" height="20px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" id="rnd-hash__search" version="1.1" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="rnd-hash__search_1_"><linearGradient gradientUnits="userSpaceOnUse" id="rnd-hash__SVGID_1_" x1="57.9473" x2="407.9511" y1="351.4531" y2="149.3783"><stop offset="0" stop-color="#F14D5C"/><stop offset="0.1309" stop-color="#F05454"/><stop offset="0.3346" stop-color="#3bf488"/><stop offset="0.3492" stop-color="#ED683C"/><stop offset="0.714" stop-color="#1e15a3"/><stop offset="1" stop-color="#FDC70C"/></linearGradient><path d="M300.766,87.509c-33.056,0-64.133,12.873-87.507,36.246c-23.374,23.374-36.247,54.451-36.247,87.507 c0,24.234,6.927,47.4,19.83,67.252l-12.669,12.669c0,0.001-0.001,0.001-0.001,0.001l-90.664,90.665 c-8.353,8.354-7.88,22.418,1.055,31.353l4.261,4.262c4.669,4.668,10.736,7.028,16.658,7.028c5.417,0,10.713-1.976,14.703-5.966 l15.405-15.405l75.259-75.259l12.671-12.672c19.85,12.9,43.014,19.826,67.246,19.826c33.056,0,64.133-12.873,87.506-36.247 c48.252-48.251,48.252-126.762,0-175.014C364.898,100.382,333.821,87.509,300.766,87.509z M138.518,396.049 c-4.454,4.453-12.178,3.979-17.219-1.063l-4.261-4.262c-5.036-5.035-5.509-12.756-1.055-17.21l71.38-71.38 c3.284,4.164,6.834,8.16,10.601,11.926c3.766,3.766,7.764,7.318,11.935,10.607L138.518,396.049z M105.894,410.391l-4.261-4.26 c-5.036-5.036-5.509-12.757-1.055-17.211l2.902-2.902c0.936,4.27,3.101,8.393,6.486,11.779l4.261,4.26 c3.392,3.393,7.523,5.549,11.799,6.483l-2.914,2.914C118.658,415.908,110.934,415.432,105.894,410.391z M213.788,320.779 c0.002-0.003,0.005-0.006,0.007-0.008l0,0L213.788,320.779z M217.033,317.534c-4.201-3.248-8.229-6.775-11.998-10.544 c-3.771-3.771-7.295-7.797-10.537-11.99l8.214-8.214c3.233,4.181,6.749,8.185,10.547,11.982c3.8,3.8,7.806,7.317,11.989,10.552 L217.033,317.534z M381.201,291.697c-21.485,21.485-50.052,33.318-80.436,33.318c-30.385,0-58.951-11.833-80.436-33.318 c-21.485-21.484-33.318-50.051-33.318-80.436s11.833-58.95,33.318-80.436c21.485-21.485,50.051-33.317,80.436-33.317 c30.384,0,58.95,11.832,80.436,33.317C425.553,175.179,425.553,247.346,381.201,291.697z" fill="url(#rnd-hash__SVGID_1_)"/><path d="M258.117,115.27l3.604,9.328c2.592-1.001,5.267-1.887,7.949-2.632l-2.676-9.636 C263.998,113.162,261.012,114.151,258.117,115.27z" fill="#3bf488ff"/><path d="M206.264,162.886l8.985,4.389c8.299-16.992,22.191-30.997,39.118-39.433l-4.46-8.95 C231.022,128.304,215.523,143.928,206.264,162.886z" fill="#1e15a3ff"/></g></svg>
1301
+
1302
+ [Images ![svg image 1](_assets/1.svg)](images.md)
1303
+
1304
+ [Level 1 svg header ![Level 1 svg header](_assets/1.svg)](level1/level1.md)
1305
+
1306
+ [Level 2 svg header ![Level 2 svg header](_assets/1.svg)](level1/level2/level2.md)
1307
+ "
1308
+ `;
1309
+
1310
+ exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true 16`] = `
1311
+ "---
1312
+ metadata:
1313
+ - name: generator
1314
+ content: Diplodoc Platform vDIPLODOC-VERSION
1315
+ vcsPath: level1/level1.md
1316
+ ---
1317
+ # Level 1 svg header <svg width="20px" height="20px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" id="rnd-hash__search" version="1.1" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="rnd-hash__search_1_"><linearGradient gradientUnits="userSpaceOnUse" id="rnd-hash__SVGID_1_" x1="57.9473" x2="407.9511" y1="351.4531" y2="149.3783"><stop offset="0" stop-color="#F14D5C"/><stop offset="0.1309" stop-color="#F05454"/><stop offset="0.3346" stop-color="#3bf488"/><stop offset="0.3492" stop-color="#ED683C"/><stop offset="0.714" stop-color="#1e15a3"/><stop offset="1" stop-color="#FDC70C"/></linearGradient><path d="M300.766,87.509c-33.056,0-64.133,12.873-87.507,36.246c-23.374,23.374-36.247,54.451-36.247,87.507 c0,24.234,6.927,47.4,19.83,67.252l-12.669,12.669c0,0.001-0.001,0.001-0.001,0.001l-90.664,90.665 c-8.353,8.354-7.88,22.418,1.055,31.353l4.261,4.262c4.669,4.668,10.736,7.028,16.658,7.028c5.417,0,10.713-1.976,14.703-5.966 l15.405-15.405l75.259-75.259l12.671-12.672c19.85,12.9,43.014,19.826,67.246,19.826c33.056,0,64.133-12.873,87.506-36.247 c48.252-48.251,48.252-126.762,0-175.014C364.898,100.382,333.821,87.509,300.766,87.509z M138.518,396.049 c-4.454,4.453-12.178,3.979-17.219-1.063l-4.261-4.262c-5.036-5.035-5.509-12.756-1.055-17.21l71.38-71.38 c3.284,4.164,6.834,8.16,10.601,11.926c3.766,3.766,7.764,7.318,11.935,10.607L138.518,396.049z M105.894,410.391l-4.261-4.26 c-5.036-5.036-5.509-12.757-1.055-17.211l2.902-2.902c0.936,4.27,3.101,8.393,6.486,11.779l4.261,4.26 c3.392,3.393,7.523,5.549,11.799,6.483l-2.914,2.914C118.658,415.908,110.934,415.432,105.894,410.391z M213.788,320.779 c0.002-0.003,0.005-0.006,0.007-0.008l0,0L213.788,320.779z M217.033,317.534c-4.201-3.248-8.229-6.775-11.998-10.544 c-3.771-3.771-7.295-7.797-10.537-11.99l8.214-8.214c3.233,4.181,6.749,8.185,10.547,11.982c3.8,3.8,7.806,7.317,11.989,10.552 L217.033,317.534z M381.201,291.697c-21.485,21.485-50.052,33.318-80.436,33.318c-30.385,0-58.951-11.833-80.436-33.318 c-21.485-21.484-33.318-50.051-33.318-80.436s11.833-58.95,33.318-80.436c21.485-21.485,50.051-33.317,80.436-33.317 c30.384,0,58.95,11.832,80.436,33.317C425.553,175.179,425.553,247.346,381.201,291.697z" fill="url(#rnd-hash__SVGID_1_)"/><path d="M258.117,115.27l3.604,9.328c2.592-1.001,5.267-1.887,7.949-2.632l-2.676-9.636 C263.998,113.162,261.012,114.151,258.117,115.27z" fill="#3bf488ff"/><path d="M206.264,162.886l8.985,4.389c8.299-16.992,22.191-30.997,39.118-39.433l-4.46-8.95 C231.022,128.304,215.523,143.928,206.264,162.886z" fill="#1e15a3ff"/></g></svg>
1318
+
1319
+ [Level root svg header ![Level root svg header](../_assets/1.svg)](../level0.md)
1320
+
1321
+ [Level 2 svg header ![Level 2 svg header](../_assets/1.svg)](level2/level2.md)
1322
+
1323
+ [Level 11 svg header ![Level 11 svg header](../_assets/1.svg)](../includes/level11.md)"
1324
+ `;
1325
+
1326
+ exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true 17`] = `
1327
+ "---
1328
+ metadata:
1329
+ - name: generator
1330
+ content: Diplodoc Platform vDIPLODOC-VERSION
1331
+ vcsPath: level1/level2/level2.md
1332
+ ---
1333
+ # Level 2 svg header <svg width="20px" height="20px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" id="rnd-hash__search" version="1.1" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="rnd-hash__search_1_"><linearGradient gradientUnits="userSpaceOnUse" id="rnd-hash__SVGID_1_" x1="57.9473" x2="407.9511" y1="351.4531" y2="149.3783"><stop offset="0" stop-color="#F14D5C"/><stop offset="0.1309" stop-color="#F05454"/><stop offset="0.3346" stop-color="#3bf488"/><stop offset="0.3492" stop-color="#ED683C"/><stop offset="0.714" stop-color="#1e15a3"/><stop offset="1" stop-color="#FDC70C"/></linearGradient><path d="M300.766,87.509c-33.056,0-64.133,12.873-87.507,36.246c-23.374,23.374-36.247,54.451-36.247,87.507 c0,24.234,6.927,47.4,19.83,67.252l-12.669,12.669c0,0.001-0.001,0.001-0.001,0.001l-90.664,90.665 c-8.353,8.354-7.88,22.418,1.055,31.353l4.261,4.262c4.669,4.668,10.736,7.028,16.658,7.028c5.417,0,10.713-1.976,14.703-5.966 l15.405-15.405l75.259-75.259l12.671-12.672c19.85,12.9,43.014,19.826,67.246,19.826c33.056,0,64.133-12.873,87.506-36.247 c48.252-48.251,48.252-126.762,0-175.014C364.898,100.382,333.821,87.509,300.766,87.509z M138.518,396.049 c-4.454,4.453-12.178,3.979-17.219-1.063l-4.261-4.262c-5.036-5.035-5.509-12.756-1.055-17.21l71.38-71.38 c3.284,4.164,6.834,8.16,10.601,11.926c3.766,3.766,7.764,7.318,11.935,10.607L138.518,396.049z M105.894,410.391l-4.261-4.26 c-5.036-5.036-5.509-12.757-1.055-17.211l2.902-2.902c0.936,4.27,3.101,8.393,6.486,11.779l4.261,4.26 c3.392,3.393,7.523,5.549,11.799,6.483l-2.914,2.914C118.658,415.908,110.934,415.432,105.894,410.391z M213.788,320.779 c0.002-0.003,0.005-0.006,0.007-0.008l0,0L213.788,320.779z M217.033,317.534c-4.201-3.248-8.229-6.775-11.998-10.544 c-3.771-3.771-7.295-7.797-10.537-11.99l8.214-8.214c3.233,4.181,6.749,8.185,10.547,11.982c3.8,3.8,7.806,7.317,11.989,10.552 L217.033,317.534z M381.201,291.697c-21.485,21.485-50.052,33.318-80.436,33.318c-30.385,0-58.951-11.833-80.436-33.318 c-21.485-21.484-33.318-50.051-33.318-80.436s11.833-58.95,33.318-80.436c21.485-21.485,50.051-33.317,80.436-33.317 c30.384,0,58.95,11.832,80.436,33.317C425.553,175.179,425.553,247.346,381.201,291.697z" fill="url(#rnd-hash__SVGID_1_)"/><path d="M258.117,115.27l3.604,9.328c2.592-1.001,5.267-1.887,7.949-2.632l-2.676-9.636 C263.998,113.162,261.012,114.151,258.117,115.27z" fill="#3bf488ff"/><path d="M206.264,162.886l8.985,4.389c8.299-16.992,22.191-30.997,39.118-39.433l-4.46-8.95 C231.022,128.304,215.523,143.928,206.264,162.886z" fill="#1e15a3ff"/></g></svg>
1334
+
1335
+ [Level 1 svg header ![Level 1 svg header](../../_assets/1.svg)](../level1.md)
1336
+
1337
+ [Level root svg header ![Level root svg header](../../_assets/1.svg)](../../level0.md)
1338
+
1339
+ "
1340
+ `;
1341
+
1342
+ exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true 18`] = `
1343
+ "items:
1344
+ - name: level1
1345
+ href: level1.md
1346
+ - name: level2
1347
+ href: level2/level2.md
1348
+ path: level1/toc.yaml
1349
+ "
1350
+ `;
1351
+
1352
+ exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true 19`] = `
1118
1353
  "---
1119
1354
  metadata:
1120
1355
  - name: generator
1121
1356
  content: Diplodoc Platform vDIPLODOC-VERSION
1122
1357
  vcsPath: mermaid.md
1123
- sourcePath: mermaid.md
1124
1358
  ---
1125
1359
  # Mermaid usage
1126
1360
 
@@ -1138,13 +1372,12 @@ Some mermaid info
1138
1372
  "
1139
1373
  `;
1140
1374
 
1141
- exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true 15`] = `
1375
+ exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true 20`] = `
1142
1376
  "---
1143
1377
  metadata:
1144
1378
  - name: generator
1145
1379
  content: Diplodoc Platform vDIPLODOC-VERSION
1146
1380
  vcsPath: sub/folder/item-1.md
1147
- sourcePath: sub/folder/item-1.md
1148
1381
  ---
1149
1382
  # Item 1
1150
1383
 
@@ -1156,7 +1389,7 @@ Item 1 text
1156
1389
  "
1157
1390
  `;
1158
1391
 
1159
- exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true 16`] = `
1392
+ exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true 21`] = `
1160
1393
  "items:
1161
1394
  - name: Md item with not_var syntax
1162
1395
  href: 1.md
@@ -1178,6 +1411,16 @@ exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true 16`] = `
1178
1411
  href: autotitle.md
1179
1412
  - name: includes
1180
1413
  href: includes.md
1414
+ - name: level11
1415
+ href: includes/level11.md
1416
+ - name: level0
1417
+ href: level0.md
1418
+ - name: level1
1419
+ href: level1/level1.md
1420
+ - name: level2
1421
+ href: level1/level2/level2.md
1181
1422
  path: toc.yaml
1182
1423
  "
1183
1424
  `;
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}}"`;