@diplodoc/cli-tests 5.29.0 → 5.31.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.
@@ -508,3 +508,210 @@ items:
508
508
  path: toc.yaml
509
509
  "
510
510
  `;
511
+
512
+ exports[`Include toc > Toc with generic includer and linkIndex option > filelist 1`] = `
513
+ "[
514
+ "test/index.md",
515
+ "test/sub/index.md",
516
+ "test/sub/sub-1.md",
517
+ "test/sub/sub-2.md",
518
+ "test/sub/sub/sub-3.md",
519
+ "test/test.md",
520
+ "toc.yaml"
521
+ ]"
522
+ `;
523
+
524
+ exports[`Include toc > Toc with generic includer and linkIndex option 1`] = `
525
+ "---
526
+ metadata:
527
+ - name: generator
528
+ content: Diplodoc Platform vDIPLODOC-VERSION
529
+ vcsPath: test/index.md
530
+ ---
531
+ # H1
532
+
533
+ [same level link](./test.md)
534
+ [inner link](./sub/sub-1.md)
535
+ "
536
+ `;
537
+
538
+ exports[`Include toc > Toc with generic includer and linkIndex option 2`] = `
539
+ "---
540
+ metadata:
541
+ - name: generator
542
+ content: Diplodoc Platform vDIPLODOC-VERSION
543
+ vcsPath: test/sub/index.md
544
+ ---
545
+ # Sub index"
546
+ `;
547
+
548
+ exports[`Include toc > Toc with generic includer and linkIndex option 3`] = `
549
+ "---
550
+ metadata:
551
+ - name: generator
552
+ content: Diplodoc Platform vDIPLODOC-VERSION
553
+ vcsPath: test/sub/sub-1.md
554
+ ---
555
+ # H1
556
+
557
+ [same level link](./sub-2.md)
558
+ [outer link](../test.md)
559
+ [inner link](./sub/sub-3.md)
560
+ "
561
+ `;
562
+
563
+ exports[`Include toc > Toc with generic includer and linkIndex option 4`] = `
564
+ "---
565
+ metadata:
566
+ - name: generator
567
+ content: Diplodoc Platform vDIPLODOC-VERSION
568
+ vcsPath: test/sub/sub-2.md
569
+ ---
570
+ # H1"
571
+ `;
572
+
573
+ exports[`Include toc > Toc with generic includer and linkIndex option 5`] = `
574
+ "---
575
+ metadata:
576
+ - name: generator
577
+ content: Diplodoc Platform vDIPLODOC-VERSION
578
+ vcsPath: test/sub/sub/sub-3.md
579
+ ---
580
+ # H1"
581
+ `;
582
+
583
+ exports[`Include toc > Toc with generic includer and linkIndex option 6`] = `
584
+ "---
585
+ metadata:
586
+ - name: generator
587
+ content: Diplodoc Platform vDIPLODOC-VERSION
588
+ vcsPath: test/test.md
589
+ ---
590
+ # H1"
591
+ `;
592
+
593
+ exports[`Include toc > Toc with generic includer and linkIndex option 7`] = `
594
+ "title: main
595
+ items:
596
+ - name: test
597
+ href: test/test.md
598
+ - name: index
599
+ href: test/index.md
600
+ - name: sub
601
+ items:
602
+ - name: sub-2
603
+ href: test/sub/sub-2.md
604
+ - name: sub-1
605
+ href: test/sub/sub-1.md
606
+ - name: sub
607
+ items:
608
+ - name: sub-3
609
+ href: test/sub/sub/sub-3.md
610
+ href: test/sub/index.md
611
+ path: toc.yaml
612
+ "
613
+ `;
614
+
615
+ exports[`Include toc > Toc with generic includer keeps index.md as child item by default > filelist 1`] = `
616
+ "[
617
+ "test/index.md",
618
+ "test/sub/index.md",
619
+ "test/sub/sub-1.md",
620
+ "test/sub/sub-2.md",
621
+ "test/sub/sub/sub-3.md",
622
+ "test/test.md",
623
+ "toc.yaml"
624
+ ]"
625
+ `;
626
+
627
+ exports[`Include toc > Toc with generic includer keeps index.md as child item by default 1`] = `
628
+ "---
629
+ metadata:
630
+ - name: generator
631
+ content: Diplodoc Platform vDIPLODOC-VERSION
632
+ vcsPath: test/index.md
633
+ ---
634
+ # H1
635
+
636
+ [same level link](./test.md)
637
+ [inner link](./sub/sub-1.md)
638
+ "
639
+ `;
640
+
641
+ exports[`Include toc > Toc with generic includer keeps index.md as child item by default 2`] = `
642
+ "---
643
+ metadata:
644
+ - name: generator
645
+ content: Diplodoc Platform vDIPLODOC-VERSION
646
+ vcsPath: test/sub/index.md
647
+ ---
648
+ # Sub index"
649
+ `;
650
+
651
+ exports[`Include toc > Toc with generic includer keeps index.md as child item by default 3`] = `
652
+ "---
653
+ metadata:
654
+ - name: generator
655
+ content: Diplodoc Platform vDIPLODOC-VERSION
656
+ vcsPath: test/sub/sub-1.md
657
+ ---
658
+ # H1
659
+
660
+ [same level link](./sub-2.md)
661
+ [outer link](../test.md)
662
+ [inner link](./sub/sub-3.md)
663
+ "
664
+ `;
665
+
666
+ exports[`Include toc > Toc with generic includer keeps index.md as child item by default 4`] = `
667
+ "---
668
+ metadata:
669
+ - name: generator
670
+ content: Diplodoc Platform vDIPLODOC-VERSION
671
+ vcsPath: test/sub/sub-2.md
672
+ ---
673
+ # H1"
674
+ `;
675
+
676
+ exports[`Include toc > Toc with generic includer keeps index.md as child item by default 5`] = `
677
+ "---
678
+ metadata:
679
+ - name: generator
680
+ content: Diplodoc Platform vDIPLODOC-VERSION
681
+ vcsPath: test/sub/sub/sub-3.md
682
+ ---
683
+ # H1"
684
+ `;
685
+
686
+ exports[`Include toc > Toc with generic includer keeps index.md as child item by default 6`] = `
687
+ "---
688
+ metadata:
689
+ - name: generator
690
+ content: Diplodoc Platform vDIPLODOC-VERSION
691
+ vcsPath: test/test.md
692
+ ---
693
+ # H1"
694
+ `;
695
+
696
+ exports[`Include toc > Toc with generic includer keeps index.md as child item by default 7`] = `
697
+ "title: main
698
+ items:
699
+ - name: test
700
+ href: test/test.md
701
+ - name: index
702
+ href: test/index.md
703
+ - name: sub
704
+ items:
705
+ - name: sub-2
706
+ href: test/sub/sub-2.md
707
+ - name: sub-1
708
+ href: test/sub/sub-1.md
709
+ - name: index
710
+ href: test/sub/index.md
711
+ - name: sub
712
+ items:
713
+ - name: sub-3
714
+ href: test/sub/sub/sub-3.md
715
+ path: toc.yaml
716
+ "
717
+ `;
@@ -9,6 +9,8 @@ exports[`Pdf generation with md2md phase, only files structure > Generates md2md
9
9
  "index.md",
10
10
  "page1.md",
11
11
  "page2.md",
12
+ "pdf-endings/pdf-ending-page1.md",
13
+ "pdf-endings/pdf-ending-page2.md",
12
14
  "pdf-titles/pdf-title-page1.md",
13
15
  "pdf-titles/pdf-title-page2.md",
14
16
  "toc.yaml"
@@ -54,7 +56,7 @@ exports[`Pdf page mode > creates a pdf folder when the .yfm option is specified
54
56
  <body class="g-root g-root_theme_light">
55
57
  <div id="root"></div>
56
58
  <script type="application/json" id="diplodoc-state">
57
- {"data":{"leading":false,"pdfTitlePages":{"content":"","pageCount":0},"cssLink":["_bundle/search-css-0","_bundle/app-css-1","_bundle/search-css-2","_bundle/search-css-3","_bundle/search-css-4"],"html":"&lt;div class=\\"pdf-page-wrapper\\" data-page-break=\\"true\\"&gt;&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;/div&gt;&lt;div class=\\"pdf-page-wrapper\\" data-page-break=\\"true\\"&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&lt;/div&gt;","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}}
59
+ {"data":{"leading":false,"pdfTitlePages":{"content":"","pageCount":0},"pdfEndingPages":{"content":"","pageCount":0},"cssLink":["_bundle/search-css-0","_bundle/app-css-1","_bundle/search-css-2","_bundle/search-css-3","_bundle/search-css-4"],"html":"&lt;div class=\\"pdf-page-wrapper\\" data-page-break=\\"true\\"&gt;&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;/div&gt;&lt;div class=\\"pdf-page-wrapper\\" data-page-break=\\"true\\"&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&lt;/div&gt;","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}}
58
60
  </script>
59
61
  <script type="application/javascript">
60
62
  const data = document.querySelector('script#diplodoc-state');
@@ -68,7 +70,7 @@ exports[`Pdf page mode > creates a pdf folder when the .yfm option is specified
68
70
  </html>"
69
71
  `;
70
72
 
71
- exports[`Pdf page mode > creates a pdf folder when the .yfm option is specified 3`] = `"{"data":{"leading":false,"pdfTitlePages":{"content":"","pageCount":0},"cssLink":["_bundle/search-css-0","_bundle/app-css-1","_bundle/search-css-2","_bundle/search-css-3","_bundle/search-css-4"],"html":"<div class=\\"pdf-page-wrapper\\" data-page-break=\\"true\\"><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</div><div class=\\"pdf-page-wrapper\\" data-page-break=\\"true\\"><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</div>","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}}"`;
73
+ exports[`Pdf page mode > creates a pdf folder when the .yfm option is specified 3`] = `"{"data":{"leading":false,"pdfTitlePages":{"content":"","pageCount":0},"pdfEndingPages":{"content":"","pageCount":0},"cssLink":["_bundle/search-css-0","_bundle/app-css-1","_bundle/search-css-2","_bundle/search-css-3","_bundle/search-css-4"],"html":"<div class=\\"pdf-page-wrapper\\" data-page-break=\\"true\\"><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</div><div class=\\"pdf-page-wrapper\\" data-page-break=\\"true\\"><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</div>","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}}"`;
72
74
 
73
75
  exports[`Pdf page mode > creates a pdf folder when the --pdf flag is specified > filelist 1`] = `
74
76
  "[
@@ -94,7 +96,7 @@ exports[`Pdf page mode > creates a pdf folder when the --pdf flag is specified 2
94
96
  <body class="g-root g-root_theme_light">
95
97
  <div id="root"></div>
96
98
  <script type="application/json" id="diplodoc-state">
97
- {"data":{"leading":false,"pdfTitlePages":{"content":"","pageCount":0},"cssLink":["_bundle/search-css-0","_bundle/app-css-1","_bundle/search-css-2","_bundle/search-css-3","_bundle/search-css-4"],"html":"&lt;div class=\\"pdf-page-wrapper\\" data-page-break=\\"true\\"&gt;&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;/div&gt;&lt;div class=\\"pdf-page-wrapper\\" data-page-break=\\"true\\"&gt;&lt;h2 id=\\"syntax_test_syntax-page\\" data-original-article=\\"syntax/test.html\\"&gt;&lt;a href=\\"#syntax_test_syntax-page\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Syntax page&lt;/span&gt;&lt;/a&gt;Syntax page&lt;a class=\\"yfm-anchor\\" aria-hidden=\\"true\\" href=\\"#syntax_test\\" id=\\"syntax_test\\"&gt;&lt;/a&gt;&lt;/h2&gt;/n&lt;/div&gt;&lt;div class=\\"pdf-page-wrapper\\" data-page-break=\\"true\\"&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&lt;h4 id=\\"page1_include-link-page\\"&gt;&lt;a href=\\"#page1_include-link-page\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include link page&lt;/span&gt;&lt;/a&gt;Include link page&lt;/h4&gt;/n&lt;p&gt;&lt;a href=\\"#syntax_test\\"&gt;link&lt;/a&gt;&lt;/p&gt;/n&lt;/div&gt;","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}}
99
+ {"data":{"leading":false,"pdfTitlePages":{"content":"","pageCount":0},"pdfEndingPages":{"content":"","pageCount":0},"cssLink":["_bundle/search-css-0","_bundle/app-css-1","_bundle/search-css-2","_bundle/search-css-3","_bundle/search-css-4"],"html":"&lt;div class=\\"pdf-page-wrapper\\" data-page-break=\\"true\\"&gt;&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;/div&gt;&lt;div class=\\"pdf-page-wrapper\\" data-page-break=\\"true\\"&gt;&lt;h2 id=\\"syntax_test_syntax-page\\" data-original-article=\\"syntax/test.html\\"&gt;&lt;a href=\\"#syntax_test_syntax-page\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Syntax page&lt;/span&gt;&lt;/a&gt;Syntax page&lt;a class=\\"yfm-anchor\\" aria-hidden=\\"true\\" href=\\"#syntax_test\\" id=\\"syntax_test\\"&gt;&lt;/a&gt;&lt;/h2&gt;/n&lt;/div&gt;&lt;div class=\\"pdf-page-wrapper\\" data-page-break=\\"true\\"&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&lt;h4 id=\\"page1_include-link-page\\"&gt;&lt;a href=\\"#page1_include-link-page\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include link page&lt;/span&gt;&lt;/a&gt;Include link page&lt;/h4&gt;/n&lt;p&gt;&lt;a href=\\"#syntax_test\\"&gt;link&lt;/a&gt;&lt;/p&gt;/n&lt;/div&gt;","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}}
98
100
  </script>
99
101
  <script type="application/javascript">
100
102
  const data = document.querySelector('script#diplodoc-state');
@@ -108,7 +110,7 @@ exports[`Pdf page mode > creates a pdf folder when the --pdf flag is specified 2
108
110
  </html>"
109
111
  `;
110
112
 
111
- exports[`Pdf page mode > creates a pdf folder when the --pdf flag is specified 3`] = `"{"data":{"leading":false,"pdfTitlePages":{"content":"","pageCount":0},"cssLink":["_bundle/search-css-0","_bundle/app-css-1","_bundle/search-css-2","_bundle/search-css-3","_bundle/search-css-4"],"html":"<div class=\\"pdf-page-wrapper\\" data-page-break=\\"true\\"><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</div><div class=\\"pdf-page-wrapper\\" data-page-break=\\"true\\"><h2 id=\\"syntax_test_syntax-page\\" data-original-article=\\"syntax/test.html\\"><a href=\\"#syntax_test_syntax-page\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Syntax page</span></a>Syntax page<a class=\\"yfm-anchor\\" aria-hidden=\\"true\\" href=\\"#syntax_test\\" id=\\"syntax_test\\"></a></h2>/n</div><div class=\\"pdf-page-wrapper\\" data-page-break=\\"true\\"><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<h4 id=\\"page1_include-link-page\\"><a href=\\"#page1_include-link-page\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include link page</span></a>Include link page</h4>/n<p><a href=\\"#syntax_test\\">link</a></p>/n</div>","headings":[],"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}]},"title":"Skip html extension","toc":{"title":"Skip html extension","href":"index.html","items":[{"name":"Syntax","href":"syntax/test.html","id":"UUID"},{"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}}"`;
113
+ exports[`Pdf page mode > creates a pdf folder when the --pdf flag is specified 3`] = `"{"data":{"leading":false,"pdfTitlePages":{"content":"","pageCount":0},"pdfEndingPages":{"content":"","pageCount":0},"cssLink":["_bundle/search-css-0","_bundle/app-css-1","_bundle/search-css-2","_bundle/search-css-3","_bundle/search-css-4"],"html":"<div class=\\"pdf-page-wrapper\\" data-page-break=\\"true\\"><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</div><div class=\\"pdf-page-wrapper\\" data-page-break=\\"true\\"><h2 id=\\"syntax_test_syntax-page\\" data-original-article=\\"syntax/test.html\\"><a href=\\"#syntax_test_syntax-page\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Syntax page</span></a>Syntax page<a class=\\"yfm-anchor\\" aria-hidden=\\"true\\" href=\\"#syntax_test\\" id=\\"syntax_test\\"></a></h2>/n</div><div class=\\"pdf-page-wrapper\\" data-page-break=\\"true\\"><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<h4 id=\\"page1_include-link-page\\"><a href=\\"#page1_include-link-page\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include link page</span></a>Include link page</h4>/n<p><a href=\\"#syntax_test\\">link</a></p>/n</div>","headings":[],"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}]},"title":"Skip html extension","toc":{"title":"Skip html extension","href":"index.html","items":[{"name":"Syntax","href":"syntax/test.html","id":"UUID"},{"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}}"`;
112
114
 
113
115
  exports[`Pdf page mode > creates pdf-page.json for each standalone toc > filelist 1`] = `
114
116
  "[
@@ -136,7 +138,7 @@ exports[`Pdf page with titles > Generates content for pdf genrator with title pa
136
138
  ]"
137
139
  `;
138
140
 
139
- exports[`Pdf page with titles > Generates content for pdf genrator with title pages 1`] = `"window.__DATA__.data.toc = {"title":"Pdf title pages","href":"#index","pdf":{"startPages":["./pdf-titles/pdf-title-page1.md","./pdf-titles/pdf-title-page2.md"]},"items":[{"name":"Title 1","href":"#page1","id":"UUID"},{"name":"Title 2","href":"#page2","id":"UUID"}],"path":"toc.yaml","id":"UUID"};"`;
141
+ exports[`Pdf page with titles > Generates content for pdf genrator with title pages 1`] = `"window.__DATA__.data.toc = {"title":"Pdf title pages","href":"#index","pdf":{"startPages":["./pdf-titles/pdf-title-page1.md","./pdf-titles/pdf-title-page2.md"],"endPages":["./pdf-endings/pdf-ending-page1.md","./pdf-endings/pdf-ending-page2.md"]},"items":[{"name":"Title 1","href":"#page1","id":"UUID"},{"name":"Title 2","href":"#page2","id":"UUID"}],"path":"toc.yaml","id":"UUID"};"`;
140
142
 
141
143
  exports[`Pdf page with titles > Generates content for pdf genrator with title pages 2`] = `
142
144
  "<!DOCTYPE html>
@@ -153,7 +155,7 @@ exports[`Pdf page with titles > Generates content for pdf genrator with title pa
153
155
  <body class="g-root g-root_theme_light">
154
156
  <div id="root"></div>
155
157
  <script type="application/json" id="diplodoc-state">
156
- {"data":{"leading":false,"pdfTitlePages":{"content":"&lt;div class=\\"pdf-page-wrapper\\" data-page-break=\\"true\\"&gt;&lt;h2 id=\\"pdf-titles_pdf-title-page1_pdf-title-page-1\\" data-original-article=\\"./pdf-titles/pdf-title-page1.html\\"&gt;&lt;a href=\\"#pdf-titles_pdf-title-page1_pdf-title-page-1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Pdf title page 1&lt;/span&gt;&lt;/a&gt;Pdf title page 1&lt;a class=\\"yfm-anchor\\" aria-hidden=\\"true\\" href=\\"#pdf-titles_pdf-title-page1\\" id=\\"pdf-titles_pdf-title-page1\\"&gt;&lt;/a&gt;&lt;/h2&gt;/n&lt;p&gt;Should be able to use variables pdf&lt;/p&gt;/n&lt;p&gt;Should be able to use link to other pages &lt;a href=\\"#page1\\"&gt;test&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;Should be able to use inlcudes&lt;/p&gt;/n&lt;h4 id=\\"pdf-titles_pdf-title-page1_include-pdf-title\\"&gt;&lt;a href=\\"#pdf-titles_pdf-title-page1_include-pdf-title\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include Pdf title&lt;/span&gt;&lt;/a&gt;Include Pdf title&lt;/h4&gt;/n&lt;p&gt;Should be able to resolve liquid syntax&lt;/p&gt;/n&lt;p&gt;should be visible&lt;/p&gt;/n&lt;/div&gt;&lt;div class=\\"pdf-page-wrapper\\" data-page-break=\\"true\\"&gt;&lt;div class=\\"pdf-title-page-wrapper\\"&gt;/n &lt;p&gt;Lorem ipsum title page with var pdf&lt;/p&gt;/n&lt;/div&gt;&lt;/div&gt;","pageCount":2},"cssLink":["_bundle/search-css-0","_bundle/app-css-1","_bundle/search-css-2","_bundle/search-css-3","_bundle/search-css-4"],"html":"&lt;div class=\\"pdf-page-wrapper\\" data-page-break=\\"true\\"&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;Page 1 content&lt;/p&gt;/n&lt;/div&gt;&lt;div class=\\"pdf-page-wrapper\\" data-page-break=\\"true\\"&gt;&lt;h2 data-original-article=\\"page2.html\\"&gt;Page 2&lt;a class=\\"yfm-anchor\\" aria-hidden=\\"true\\" href=\\"#page2\\" id=\\"page2\\"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Page 2 content&lt;/p&gt;/n&lt;/div&gt;","headings":[],"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"style":["__assets/start-page.css"]},"title":"Pdf title pages"},"router":{"pathname":"pdf-page","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
158
+ {"data":{"leading":false,"pdfTitlePages":{"content":"&lt;div class=\\"pdf-page-wrapper\\" data-page-break=\\"true\\"&gt;&lt;h2 id=\\"pdf-titles_pdf-title-page1_pdf-title-page-1\\" data-original-article=\\"./pdf-titles/pdf-title-page1.html\\"&gt;&lt;a href=\\"#pdf-titles_pdf-title-page1_pdf-title-page-1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Pdf title page 1&lt;/span&gt;&lt;/a&gt;Pdf title page 1&lt;a class=\\"yfm-anchor\\" aria-hidden=\\"true\\" href=\\"#pdf-titles_pdf-title-page1\\" id=\\"pdf-titles_pdf-title-page1\\"&gt;&lt;/a&gt;&lt;/h2&gt;/n&lt;p&gt;Should be able to use variables pdf&lt;/p&gt;/n&lt;p&gt;Should be able to use link to other pages &lt;a href=\\"#page1\\"&gt;test&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;Should be able to use inlcudes&lt;/p&gt;/n&lt;h4 id=\\"pdf-titles_pdf-title-page1_include-pdf-title\\"&gt;&lt;a href=\\"#pdf-titles_pdf-title-page1_include-pdf-title\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include Pdf title&lt;/span&gt;&lt;/a&gt;Include Pdf title&lt;/h4&gt;/n&lt;p&gt;Should be able to resolve liquid syntax&lt;/p&gt;/n&lt;p&gt;should be visible&lt;/p&gt;/n&lt;/div&gt;&lt;div class=\\"pdf-page-wrapper\\" data-page-break=\\"true\\"&gt;&lt;div class=\\"pdf-title-page-wrapper\\"&gt;/n &lt;p&gt;Lorem ipsum title page with var pdf&lt;/p&gt;/n&lt;/div&gt;&lt;/div&gt;","pageCount":2},"pdfEndingPages":{"content":"&lt;div class=\\"pdf-page-wrapper\\" data-page-break=\\"true\\"&gt;&lt;h2 id=\\"pdf-endings_pdf-ending-page1_pdf-ending-page-1\\" data-original-article=\\"./pdf-endings/pdf-ending-page1.html\\"&gt;&lt;a href=\\"#pdf-endings_pdf-ending-page1_pdf-ending-page-1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Pdf ending page 1&lt;/span&gt;&lt;/a&gt;Pdf ending page 1&lt;a class=\\"yfm-anchor\\" aria-hidden=\\"true\\" href=\\"#pdf-endings_pdf-ending-page1\\" id=\\"pdf-endings_pdf-ending-page1\\"&gt;&lt;/a&gt;&lt;/h2&gt;/n&lt;p&gt;Should be able to use variables pdf&lt;/p&gt;/n&lt;p&gt;Should be able to use link to other pages &lt;a href=\\"#page1\\"&gt;test&lt;/a&gt;&lt;/p&gt;/n&lt;p&gt;Should be able to use inlcudes&lt;/p&gt;/n&lt;h4 id=\\"pdf-endings_pdf-ending-page1_include-pdf-title\\"&gt;&lt;a href=\\"#pdf-endings_pdf-ending-page1_include-pdf-title\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;Include Pdf title&lt;/span&gt;&lt;/a&gt;Include Pdf title&lt;/h4&gt;/n&lt;p&gt;Should be able to resolve liquid syntax&lt;/p&gt;/n&lt;p&gt;should be visible&lt;/p&gt;/n&lt;/div&gt;&lt;div class=\\"pdf-page-wrapper\\" data-page-break=\\"true\\"&gt;&lt;div class=\\"pdf-title-page-wrapper\\"&gt;/n &lt;p&gt;Lorem ipsum ending page with var pdf&lt;/p&gt;/n&lt;/div&gt;&lt;/div&gt;","pageCount":2},"cssLink":["_bundle/search-css-0","_bundle/app-css-1","_bundle/search-css-2","_bundle/search-css-3","_bundle/search-css-4"],"html":"&lt;div class=\\"pdf-page-wrapper\\" data-page-break=\\"true\\"&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;Page 1 content&lt;/p&gt;/n&lt;/div&gt;&lt;div class=\\"pdf-page-wrapper\\" data-page-break=\\"true\\"&gt;&lt;h2 data-original-article=\\"page2.html\\"&gt;Page 2&lt;a class=\\"yfm-anchor\\" aria-hidden=\\"true\\" href=\\"#page2\\" id=\\"page2\\"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Page 2 content&lt;/p&gt;/n&lt;/div&gt;","headings":[],"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"style":["__assets/start-page.css"]},"title":"Pdf title pages"},"router":{"pathname":"pdf-page","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
157
159
  </script>
158
160
  <script type="application/javascript">
159
161
  const data = document.querySelector('script#diplodoc-state');
@@ -167,7 +169,7 @@ exports[`Pdf page with titles > Generates content for pdf genrator with title pa
167
169
  </html>"
168
170
  `;
169
171
 
170
- exports[`Pdf page with titles > Generates content for pdf genrator with title pages 3`] = `"{"data":{"leading":false,"pdfTitlePages":{"content":"<div class=\\"pdf-page-wrapper\\" data-page-break=\\"true\\"><h2 id=\\"pdf-titles_pdf-title-page1_pdf-title-page-1\\" data-original-article=\\"./pdf-titles/pdf-title-page1.html\\"><a href=\\"#pdf-titles_pdf-title-page1_pdf-title-page-1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Pdf title page 1</span></a>Pdf title page 1<a class=\\"yfm-anchor\\" aria-hidden=\\"true\\" href=\\"#pdf-titles_pdf-title-page1\\" id=\\"pdf-titles_pdf-title-page1\\"></a></h2>/n<p>Should be able to use variables pdf</p>/n<p>Should be able to use link to other pages <a href=\\"#page1\\">test</a></p>/n<p>Should be able to use inlcudes</p>/n<h4 id=\\"pdf-titles_pdf-title-page1_include-pdf-title\\"><a href=\\"#pdf-titles_pdf-title-page1_include-pdf-title\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include Pdf title</span></a>Include Pdf title</h4>/n<p>Should be able to resolve liquid syntax</p>/n<p>should be visible</p>/n</div><div class=\\"pdf-page-wrapper\\" data-page-break=\\"true\\"><div class=\\"pdf-title-page-wrapper\\">/n <p>Lorem ipsum title page with var pdf</p>/n</div></div>","pageCount":2},"cssLink":["_bundle/search-css-0","_bundle/app-css-1","_bundle/search-css-2","_bundle/search-css-3","_bundle/search-css-4"],"html":"<div class=\\"pdf-page-wrapper\\" data-page-break=\\"true\\"><h2 data-original-article=\\"page1.html\\">Page 1<a class=\\"yfm-anchor\\" aria-hidden=\\"true\\" href=\\"#page1\\" id=\\"page1\\"></a></h2><p>Page 1 content</p>/n</div><div class=\\"pdf-page-wrapper\\" data-page-break=\\"true\\"><h2 data-original-article=\\"page2.html\\">Page 2<a class=\\"yfm-anchor\\" aria-hidden=\\"true\\" href=\\"#page2\\" id=\\"page2\\"></a></h2><p>Page 2 content</p>/n</div>","headings":[],"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"style":["__assets/start-page.css"]},"title":"Pdf title pages","toc":{"title":"Pdf title pages","href":"index.html","pdf":{"startPages":["./pdf-titles/pdf-title-page1.md","./pdf-titles/pdf-title-page2.md"]},"items":[{"name":"Title 1","href":"page1.html","id":"UUID"},{"name":"Title 2","href":"page2.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}}"`;
172
+ exports[`Pdf page with titles > Generates content for pdf genrator with title pages 3`] = `"{"data":{"leading":false,"pdfTitlePages":{"content":"<div class=\\"pdf-page-wrapper\\" data-page-break=\\"true\\"><h2 id=\\"pdf-titles_pdf-title-page1_pdf-title-page-1\\" data-original-article=\\"./pdf-titles/pdf-title-page1.html\\"><a href=\\"#pdf-titles_pdf-title-page1_pdf-title-page-1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Pdf title page 1</span></a>Pdf title page 1<a class=\\"yfm-anchor\\" aria-hidden=\\"true\\" href=\\"#pdf-titles_pdf-title-page1\\" id=\\"pdf-titles_pdf-title-page1\\"></a></h2>/n<p>Should be able to use variables pdf</p>/n<p>Should be able to use link to other pages <a href=\\"#page1\\">test</a></p>/n<p>Should be able to use inlcudes</p>/n<h4 id=\\"pdf-titles_pdf-title-page1_include-pdf-title\\"><a href=\\"#pdf-titles_pdf-title-page1_include-pdf-title\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include Pdf title</span></a>Include Pdf title</h4>/n<p>Should be able to resolve liquid syntax</p>/n<p>should be visible</p>/n</div><div class=\\"pdf-page-wrapper\\" data-page-break=\\"true\\"><div class=\\"pdf-title-page-wrapper\\">/n <p>Lorem ipsum title page with var pdf</p>/n</div></div>","pageCount":2},"pdfEndingPages":{"content":"<div class=\\"pdf-page-wrapper\\" data-page-break=\\"true\\"><h2 id=\\"pdf-endings_pdf-ending-page1_pdf-ending-page-1\\" data-original-article=\\"./pdf-endings/pdf-ending-page1.html\\"><a href=\\"#pdf-endings_pdf-ending-page1_pdf-ending-page-1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Pdf ending page 1</span></a>Pdf ending page 1<a class=\\"yfm-anchor\\" aria-hidden=\\"true\\" href=\\"#pdf-endings_pdf-ending-page1\\" id=\\"pdf-endings_pdf-ending-page1\\"></a></h2>/n<p>Should be able to use variables pdf</p>/n<p>Should be able to use link to other pages <a href=\\"#page1\\">test</a></p>/n<p>Should be able to use inlcudes</p>/n<h4 id=\\"pdf-endings_pdf-ending-page1_include-pdf-title\\"><a href=\\"#pdf-endings_pdf-ending-page1_include-pdf-title\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include Pdf title</span></a>Include Pdf title</h4>/n<p>Should be able to resolve liquid syntax</p>/n<p>should be visible</p>/n</div><div class=\\"pdf-page-wrapper\\" data-page-break=\\"true\\"><div class=\\"pdf-title-page-wrapper\\">/n <p>Lorem ipsum ending page with var pdf</p>/n</div></div>","pageCount":2},"cssLink":["_bundle/search-css-0","_bundle/app-css-1","_bundle/search-css-2","_bundle/search-css-3","_bundle/search-css-4"],"html":"<div class=\\"pdf-page-wrapper\\" data-page-break=\\"true\\"><h2 data-original-article=\\"page1.html\\">Page 1<a class=\\"yfm-anchor\\" aria-hidden=\\"true\\" href=\\"#page1\\" id=\\"page1\\"></a></h2><p>Page 1 content</p>/n</div><div class=\\"pdf-page-wrapper\\" data-page-break=\\"true\\"><h2 data-original-article=\\"page2.html\\">Page 2<a class=\\"yfm-anchor\\" aria-hidden=\\"true\\" href=\\"#page2\\" id=\\"page2\\"></a></h2><p>Page 2 content</p>/n</div>","headings":[],"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"style":["__assets/start-page.css"]},"title":"Pdf title pages","toc":{"title":"Pdf title pages","href":"index.html","pdf":{"startPages":["./pdf-titles/pdf-title-page1.md","./pdf-titles/pdf-title-page2.md"],"endPages":["./pdf-endings/pdf-ending-page1.md","./pdf-endings/pdf-ending-page2.md"]},"items":[{"name":"Title 1","href":"page1.html","id":"UUID"},{"name":"Title 2","href":"page2.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}}"`;
171
173
 
172
174
  exports[`Pdf page with titles > Generates pdf title pages as regular entries for debug purpose > filelist 1`] = `
173
175
  "[
@@ -177,6 +179,8 @@ exports[`Pdf page with titles > Generates pdf title pages as regular entries for
177
179
  "index.html",
178
180
  "page1.html",
179
181
  "page2.html",
182
+ "pdf-endings/pdf-ending-page1.html",
183
+ "pdf-endings/pdf-ending-page2.html",
180
184
  "pdf-titles/pdf-title-page1.html",
181
185
  "pdf-titles/pdf-title-page2.html",
182
186
  "pdf/pdf-page-toc.js",
@@ -52,4 +52,16 @@ describe('Include toc', () => {
52
52
  await TestAdapter.testBuildPass(inputPath, outputPath);
53
53
  await compareDirectories(outputPath);
54
54
  });
55
+
56
+ test('Toc with generic includer and linkIndex option', async () => {
57
+ const {inputPath, outputPath} = getTestPaths('mocks/include-toc/test8');
58
+ await TestAdapter.testBuildPass(inputPath, outputPath);
59
+ await compareDirectories(outputPath);
60
+ });
61
+
62
+ test('Toc with generic includer keeps index.md as child item by default', async () => {
63
+ const {inputPath, outputPath} = getTestPaths('mocks/include-toc/test9');
64
+ await TestAdapter.testBuildPass(inputPath, outputPath);
65
+ await compareDirectories(outputPath);
66
+ });
55
67
  });
@@ -0,0 +1,4 @@
1
+ # H1
2
+
3
+ [same level link](./test.md)
4
+ [inner link](./sub/sub-1.md)
@@ -0,0 +1 @@
1
+ # Sub index
@@ -0,0 +1,5 @@
1
+ # H1
2
+
3
+ [same level link](./sub-2.md)
4
+ [outer link](../test.md)
5
+ [inner link](./sub/sub-3.md)
@@ -0,0 +1,9 @@
1
+ title: main
2
+ items:
3
+ - include:
4
+ path: test
5
+ includers:
6
+ - name: generic
7
+ autotitle: false
8
+ input: test
9
+ linkIndex: true
@@ -0,0 +1,4 @@
1
+ # H1
2
+
3
+ [same level link](./test.md)
4
+ [inner link](./sub/sub-1.md)
@@ -0,0 +1 @@
1
+ # Sub index
@@ -0,0 +1,5 @@
1
+ # H1
2
+
3
+ [same level link](./sub-2.md)
4
+ [outer link](../test.md)
5
+ [inner link](./sub/sub-3.md)
@@ -0,0 +1,8 @@
1
+ title: main
2
+ items:
3
+ - include:
4
+ path: test
5
+ includers:
6
+ - name: generic
7
+ autotitle: false
8
+ input: test
@@ -0,0 +1,13 @@
1
+ ### Pdf ending page 1
2
+
3
+ Should be able to use variables {{test}}
4
+
5
+ Should be able to use link to other pages [test](../page1.md)
6
+
7
+ Should be able to use inlcudes
8
+
9
+ {% include [test-include](../__includes/include1.md) %}
10
+
11
+ Should be able to resolve liquid syntax
12
+
13
+ {% if test == "pdf" %} should be visible {% endif %}
@@ -0,0 +1,3 @@
1
+ <div class="pdf-title-page-wrapper">
2
+ <p>Lorem ipsum ending page with var {{test}}</p>
3
+ </div>
@@ -4,6 +4,9 @@ pdf:
4
4
  startPages:
5
5
  - ./pdf-titles/pdf-title-page1.md
6
6
  - ./pdf-titles/pdf-title-page2.md
7
+ endPages:
8
+ - ./pdf-endings/pdf-ending-page1.md
9
+ - ./pdf-endings/pdf-ending-page2.md
7
10
 
8
11
  items:
9
12
  - name: Title 1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diplodoc/cli-tests",
3
- "version": "5.29.0",
3
+ "version": "5.31.0",
4
4
  "bin": {
5
5
  "diplodoc-cli-test": "bin.mjs"
6
6
  },