@diplodoc/cli-tests 5.35.3 → 5.36.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.
- package/e2e/__snapshots__/bundles.spec.ts.snap +26 -26
- package/e2e/__snapshots__/pdf-page.spec.ts.snap +6 -6
- package/e2e/__snapshots__/preprocess.test.ts.snap +78 -78
- package/e2e/__snapshots__/regression.test.ts.snap +4 -4
- package/e2e/preprocess.test.ts +2 -2
- package/e2e/regression.test.ts +3 -3
- package/fixtures/utils/test.ts +112 -22
- package/package.json +1 -1
|
@@ -3,22 +3,22 @@
|
|
|
3
3
|
exports[`Check bundles > bundles list is correct > filelist 1`] = `
|
|
4
4
|
"[
|
|
5
5
|
".yfm",
|
|
6
|
-
"_bundle/app-css
|
|
7
|
-
"_bundle/app-js
|
|
6
|
+
"_bundle/app-css",
|
|
7
|
+
"_bundle/app-js",
|
|
8
|
+
"_bundle/app-rtl-css",
|
|
9
|
+
"_bundle/chunk-js",
|
|
8
10
|
"_bundle/latex-extension.css",
|
|
9
11
|
"_bundle/latex-extension.js",
|
|
10
12
|
"_bundle/mermaid-extension.js",
|
|
11
13
|
"_bundle/page-constructor-extension.css",
|
|
12
14
|
"_bundle/page-constructor-extension.js",
|
|
13
|
-
"_bundle/
|
|
14
|
-
"_bundle/search-css
|
|
15
|
-
"_bundle/search-
|
|
16
|
-
"_bundle/search-css
|
|
17
|
-
"_bundle/
|
|
18
|
-
"_bundle/
|
|
19
|
-
"_bundle/
|
|
20
|
-
"_bundle/search-js-1",
|
|
21
|
-
"_bundle/search-js-2",
|
|
15
|
+
"_bundle/react-js",
|
|
16
|
+
"_bundle/search-css",
|
|
17
|
+
"_bundle/search-js",
|
|
18
|
+
"_bundle/search-rtl-css",
|
|
19
|
+
"_bundle/vendor-css",
|
|
20
|
+
"_bundle/vendor-js",
|
|
21
|
+
"_bundle/vendor-rtl-css",
|
|
22
22
|
"_search/api.js",
|
|
23
23
|
"_search/ru/hash-index.js",
|
|
24
24
|
"_search/ru/hash-registry.js",
|
|
@@ -65,8 +65,8 @@ exports[`Check bundles > bundles list is correct 2`] = `
|
|
|
65
65
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
66
66
|
<link rel="icon" type="image/x-icon" href="https://storage.yandexcloud.net/diplodoc-www-assets/favicon/favicon.ico">
|
|
67
67
|
|
|
68
|
-
<link type="text/css" rel="stylesheet" href="_bundle/
|
|
69
|
-
<link type="text/css" rel="stylesheet" href="_bundle/
|
|
68
|
+
<link type="text/css" rel="stylesheet" href="_bundle/app-css"/>
|
|
69
|
+
<link type="text/css" rel="stylesheet" href="_bundle/vendor-css"/>
|
|
70
70
|
</head>
|
|
71
71
|
<body class="g-root g-root_theme_light">
|
|
72
72
|
<div id="root"></div>
|
|
@@ -82,9 +82,9 @@ exports[`Check bundles > bundles list is correct 2`] = `
|
|
|
82
82
|
</script>
|
|
83
83
|
<script type="application/javascript" defer src="toc.js"></script>
|
|
84
84
|
<script type="application/javascript" defer src="_search/ru/hash-resources.js"></script>
|
|
85
|
-
<script type="application/javascript" defer src="_bundle/app-js
|
|
86
|
-
<script type="application/javascript" defer src="_bundle/
|
|
87
|
-
<script type="application/javascript" defer src="_bundle/
|
|
85
|
+
<script type="application/javascript" defer src="_bundle/app-js"></script>
|
|
86
|
+
<script type="application/javascript" defer src="_bundle/react-js"></script>
|
|
87
|
+
<script type="application/javascript" defer src="_bundle/vendor-js"></script>
|
|
88
88
|
|
|
89
89
|
</body>
|
|
90
90
|
</html>"
|
|
@@ -105,8 +105,8 @@ exports[`Check bundles > bundles list is correct 3`] = `
|
|
|
105
105
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
106
106
|
<link rel="icon" type="image/x-icon" href="https://storage.yandexcloud.net/diplodoc-www-assets/favicon/favicon.ico">
|
|
107
107
|
|
|
108
|
-
<link type="text/css" rel="stylesheet" href="_bundle/
|
|
109
|
-
<link type="text/css" rel="stylesheet" href="_bundle/
|
|
108
|
+
<link type="text/css" rel="stylesheet" href="_bundle/app-css"/>
|
|
109
|
+
<link type="text/css" rel="stylesheet" href="_bundle/vendor-css"/>
|
|
110
110
|
</head>
|
|
111
111
|
<body class="g-root g-root_theme_light">
|
|
112
112
|
<div id="root"></div>
|
|
@@ -122,9 +122,9 @@ exports[`Check bundles > bundles list is correct 3`] = `
|
|
|
122
122
|
</script>
|
|
123
123
|
<script type="application/javascript" defer src="toc.js"></script>
|
|
124
124
|
<script type="application/javascript" defer src="_search/ru/hash-resources.js"></script>
|
|
125
|
-
<script type="application/javascript" defer src="_bundle/app-js
|
|
126
|
-
<script type="application/javascript" defer src="_bundle/
|
|
127
|
-
<script type="application/javascript" defer src="_bundle/
|
|
125
|
+
<script type="application/javascript" defer src="_bundle/app-js"></script>
|
|
126
|
+
<script type="application/javascript" defer src="_bundle/react-js"></script>
|
|
127
|
+
<script type="application/javascript" defer src="_bundle/vendor-js"></script>
|
|
128
128
|
|
|
129
129
|
</body>
|
|
130
130
|
</html>"
|
|
@@ -145,8 +145,8 @@ exports[`Check bundles > bundles list is correct 4`] = `
|
|
|
145
145
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
146
146
|
<link rel="icon" type="image/x-icon" href="https://storage.yandexcloud.net/diplodoc-www-assets/favicon/favicon.ico">
|
|
147
147
|
|
|
148
|
-
<link type="text/css" rel="stylesheet" href="_bundle/
|
|
149
|
-
<link type="text/css" rel="stylesheet" href="_bundle/
|
|
148
|
+
<link type="text/css" rel="stylesheet" href="_bundle/app-css"/>
|
|
149
|
+
<link type="text/css" rel="stylesheet" href="_bundle/vendor-css"/>
|
|
150
150
|
</head>
|
|
151
151
|
<body class="g-root g-root_theme_light">
|
|
152
152
|
<div id="root"></div>
|
|
@@ -162,9 +162,9 @@ exports[`Check bundles > bundles list is correct 4`] = `
|
|
|
162
162
|
</script>
|
|
163
163
|
<script type="application/javascript" defer src="toc.js"></script>
|
|
164
164
|
<script type="application/javascript" defer src="_search/ru/hash-resources.js"></script>
|
|
165
|
-
<script type="application/javascript" defer src="_bundle/app-js
|
|
166
|
-
<script type="application/javascript" defer src="_bundle/
|
|
167
|
-
<script type="application/javascript" defer src="_bundle/
|
|
165
|
+
<script type="application/javascript" defer src="_bundle/app-js"></script>
|
|
166
|
+
<script type="application/javascript" defer src="_bundle/react-js"></script>
|
|
167
|
+
<script type="application/javascript" defer src="_bundle/vendor-js"></script>
|
|
168
168
|
|
|
169
169
|
</body>
|
|
170
170
|
</html>"
|
|
@@ -56,7 +56,7 @@ exports[`Pdf page mode > creates a pdf folder when the .yfm option is specified
|
|
|
56
56
|
<body class="g-root g-root_theme_light">
|
|
57
57
|
<div id="root"></div>
|
|
58
58
|
<script type="application/json" id="diplodoc-state">
|
|
59
|
-
{"data":{"leading":false,"pdfTitlePages":{"content":"","pageCount":0},"pdfEndingPages":{"content":"","pageCount":0},"cssLink":["_bundle/
|
|
59
|
+
{"data":{"leading":false,"pdfTitlePages":{"content":"","pageCount":0},"pdfEndingPages":{"content":"","pageCount":0},"cssLink":["_bundle/app-css","_bundle/app-rtl-css","_bundle/search-rtl-css","_bundle/vendor-css","_bundle/vendor-rtl-css"],"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"},"router":{"pathname":"pdf-page","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
60
60
|
</script>
|
|
61
61
|
<script type="application/javascript">
|
|
62
62
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -70,7 +70,7 @@ exports[`Pdf page mode > creates a pdf folder when the .yfm option is specified
|
|
|
70
70
|
</html>"
|
|
71
71
|
`;
|
|
72
72
|
|
|
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/
|
|
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/app-css","_bundle/app-rtl-css","_bundle/search-rtl-css","_bundle/vendor-css","_bundle/vendor-rtl-css"],"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}}"`;
|
|
74
74
|
|
|
75
75
|
exports[`Pdf page mode > creates a pdf folder when the --pdf flag is specified > filelist 1`] = `
|
|
76
76
|
"[
|
|
@@ -96,7 +96,7 @@ exports[`Pdf page mode > creates a pdf folder when the --pdf flag is specified 2
|
|
|
96
96
|
<body class="g-root g-root_theme_light">
|
|
97
97
|
<div id="root"></div>
|
|
98
98
|
<script type="application/json" id="diplodoc-state">
|
|
99
|
-
{"data":{"leading":false,"pdfTitlePages":{"content":"","pageCount":0},"pdfEndingPages":{"content":"","pageCount":0},"cssLink":["_bundle/
|
|
99
|
+
{"data":{"leading":false,"pdfTitlePages":{"content":"","pageCount":0},"pdfEndingPages":{"content":"","pageCount":0},"cssLink":["_bundle/app-css","_bundle/app-rtl-css","_bundle/search-rtl-css","_bundle/vendor-css","_bundle/vendor-rtl-css"],"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"},"router":{"pathname":"pdf-page","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
100
100
|
</script>
|
|
101
101
|
<script type="application/javascript">
|
|
102
102
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -110,7 +110,7 @@ exports[`Pdf page mode > creates a pdf folder when the --pdf flag is specified 2
|
|
|
110
110
|
</html>"
|
|
111
111
|
`;
|
|
112
112
|
|
|
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/
|
|
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/app-css","_bundle/app-rtl-css","_bundle/search-rtl-css","_bundle/vendor-css","_bundle/vendor-rtl-css"],"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}}"`;
|
|
114
114
|
|
|
115
115
|
exports[`Pdf page mode > creates pdf-page.json for each standalone toc > filelist 1`] = `
|
|
116
116
|
"[
|
|
@@ -155,7 +155,7 @@ exports[`Pdf page with titles > Generates content for pdf genrator with title pa
|
|
|
155
155
|
<body class="g-root g-root_theme_light">
|
|
156
156
|
<div id="root"></div>
|
|
157
157
|
<script type="application/json" id="diplodoc-state">
|
|
158
|
-
{"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/
|
|
158
|
+
{"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/app-css","_bundle/app-rtl-css","_bundle/search-rtl-css","_bundle/vendor-css","_bundle/vendor-rtl-css"],"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"},"router":{"pathname":"pdf-page","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
159
159
|
</script>
|
|
160
160
|
<script type="application/javascript">
|
|
161
161
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -169,7 +169,7 @@ exports[`Pdf page with titles > Generates content for pdf genrator with title pa
|
|
|
169
169
|
</html>"
|
|
170
170
|
`;
|
|
171
171
|
|
|
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/
|
|
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/app-css","_bundle/app-rtl-css","_bundle/search-rtl-css","_bundle/vendor-css","_bundle/vendor-rtl-css"],"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}}"`;
|
|
173
173
|
|
|
174
174
|
exports[`Pdf page with titles > Generates pdf title pages as regular entries for debug purpose > filelist 1`] = `
|
|
175
175
|
"[
|