@diplodoc/cli-tests 5.35.3 → 5.36.1
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__/files.spec.ts.snap +1 -2
- package/e2e/__snapshots__/merge-includes.spec.ts.snap +241 -30
- package/e2e/__snapshots__/pdf-page.spec.ts.snap +157 -6
- package/e2e/__snapshots__/preprocess.test.ts.snap +78 -78
- package/e2e/__snapshots__/regression.test.ts.snap +216 -55
- package/e2e/merge-includes.spec.ts +45 -1
- package/e2e/pdf-page.spec.ts +27 -0
- package/e2e/preprocess.test.ts +2 -2
- package/e2e/regression.test.ts +3 -3
- package/fixtures/utils/test.ts +112 -22
- package/mocks/merge-includes/hash-section-html/input/_includes/mixed.md +11 -0
- package/mocks/merge-includes/hash-section-html/input/index.md +3 -0
- package/mocks/merge-includes/hash-section-html/input/main.md +13 -0
- package/mocks/merge-includes/hash-section-html/input/toc.yaml +5 -0
- package/mocks/merge-includes/html-in-list/input/_includes/styles.md +7 -0
- package/mocks/merge-includes/html-in-list/input/index.md +3 -0
- package/mocks/merge-includes/html-in-list/input/main.md +11 -0
- package/mocks/merge-includes/html-in-list/input/toc.yaml +5 -0
- package/mocks/merge-includes/term-extract/input/_includes/chapter.md +7 -0
- package/mocks/merge-includes/term-extract/input/index.md +3 -0
- package/mocks/merge-includes/term-extract/input/main.md +7 -0
- package/mocks/merge-includes/term-extract/input/toc.yaml +5 -0
- package/mocks/merge-includes/yfm-table/input/_includes/cell-content.md +1 -0
- package/mocks/merge-includes/yfm-table/input/index.md +3 -0
- package/mocks/merge-includes/yfm-table/input/main.md +12 -0
- package/mocks/merge-includes/yfm-table/input/toc.yaml +5 -0
- package/mocks/pdf-page/custom-pdf-icon/input/.yfm +6 -0
- package/mocks/pdf-page/custom-pdf-icon/input/_assets/custom-pdf-icon.svg +1 -0
- package/mocks/pdf-page/custom-pdf-icon/input/index.md +1 -0
- package/mocks/pdf-page/custom-pdf-icon/input/pdf/output.pdf +0 -0
- package/mocks/pdf-page/custom-pdf-icon/input/toc.yaml +2 -0
- package/mocks/regression/input/autotitle.md +33 -1
- package/mocks/regression/input/includes/fragments.md +24 -0
- package/mocks/regression/input/includes/styles.md +8 -0
- package/mocks/regression/input/includes.md +6 -0
- package/mocks/regression/input/toc.yaml +2 -0
- package/package.json +1 -1
|
@@ -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
|
"[
|
|
@@ -130,6 +130,157 @@ exports[`Pdf page mode > creates pdf-page.json for each standalone toc > filelis
|
|
|
130
130
|
]"
|
|
131
131
|
`;
|
|
132
132
|
|
|
133
|
+
exports[`Pdf page with custom icon > md2html copies all files and produces correct pdfIconConfig in __DATA__ > filelist 1`] = `
|
|
134
|
+
"[
|
|
135
|
+
".yfm",
|
|
136
|
+
"_assets/custom-pdf-icon.svg",
|
|
137
|
+
"index.html",
|
|
138
|
+
"pdf/output.pdf",
|
|
139
|
+
"toc.js"
|
|
140
|
+
]"
|
|
141
|
+
`;
|
|
142
|
+
|
|
143
|
+
exports[`Pdf page with custom icon > md2html copies all files and produces correct pdfIconConfig in __DATA__ 1`] = `
|
|
144
|
+
"pdf:
|
|
145
|
+
enabled: true
|
|
146
|
+
size: M
|
|
147
|
+
position: header
|
|
148
|
+
icon: _assets/custom-pdf-icon.svg
|
|
149
|
+
pdfFileUrl: pdf/output.pdf"
|
|
150
|
+
`;
|
|
151
|
+
|
|
152
|
+
exports[`Pdf page with custom icon > md2html copies all files and produces correct pdfIconConfig in __DATA__ 2`] = `
|
|
153
|
+
"<!DOCTYPE html>
|
|
154
|
+
<html lang="ru" dir="ltr">
|
|
155
|
+
<head>
|
|
156
|
+
<meta charset="utf-8">
|
|
157
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
158
|
+
<base href="./" />
|
|
159
|
+
<title>PDF mock index | Pdf custom link</title>
|
|
160
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
161
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
162
|
+
</head>
|
|
163
|
+
<body class="g-root g-root_theme_light">
|
|
164
|
+
<div id="root"></div>
|
|
165
|
+
<script type="application/json" id="diplodoc-state">
|
|
166
|
+
{"data":{"leading":false,"html":"","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"index.md"},"headings":[],"title":"PDF mock index","pdfLink":"pdf/output.pdf","pdfIconConfig":{"icon":"_assets/custom-pdf-icon.svg","position":"header","size":"M"}},"router":{"pathname":"index","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
167
|
+
</script>
|
|
168
|
+
<script type="application/javascript">
|
|
169
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
170
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
171
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
172
|
+
})(data.innerText));
|
|
173
|
+
window.STATIC_CONTENT = false;
|
|
174
|
+
</script>
|
|
175
|
+
<script type="application/javascript" defer src="toc.js"></script>
|
|
176
|
+
</body>
|
|
177
|
+
</html>"
|
|
178
|
+
`;
|
|
179
|
+
|
|
180
|
+
exports[`Pdf page with custom icon > md2html copies all files and produces correct pdfIconConfig in __DATA__ 3`] = `
|
|
181
|
+
"%PDF-1.7
|
|
182
|
+
%����
|
|
183
|
+
4 0 obj
|
|
184
|
+
<< /Length 5 0 R
|
|
185
|
+
/Filter /FlateDecode
|
|
186
|
+
>>
|
|
187
|
+
stream
|
|
188
|
+
x�3T0B]C afl�g����U��5T�
|
|
189
|
+
endstream
|
|
190
|
+
endobj
|
|
191
|
+
5 0 obj
|
|
192
|
+
29
|
|
193
|
+
endobj
|
|
194
|
+
3 0 obj
|
|
195
|
+
<<
|
|
196
|
+
>>
|
|
197
|
+
endobj
|
|
198
|
+
7 0 obj
|
|
199
|
+
<< /Type /ObjStm
|
|
200
|
+
/Length 8 0 R
|
|
201
|
+
/N 1
|
|
202
|
+
/First 4
|
|
203
|
+
/Filter /FlateDecode
|
|
204
|
+
>>
|
|
205
|
+
stream
|
|
206
|
+
x�3S0����8]
|
|
207
|
+
endstream
|
|
208
|
+
endobj
|
|
209
|
+
8 0 obj
|
|
210
|
+
16
|
|
211
|
+
endobj
|
|
212
|
+
9 0 obj
|
|
213
|
+
<< /Type /ObjStm
|
|
214
|
+
/Length 12 0 R
|
|
215
|
+
/N 4
|
|
216
|
+
/First 23
|
|
217
|
+
/Filter /FlateDecode
|
|
218
|
+
>>
|
|
219
|
+
stream
|
|
220
|
+
x�U�_k�0����eLh�t+҇Z(c��m�!�\`�a$�c��K�v�<���å %�I�@sP�t��%��u�Hj�IH����
|
|
221
|
+
>gT�i���n7+j��IH�P�^+И>����&�L;��K/L�tE�7Zr۫���Dx�2�
|
|
222
|
+
���t��O�=�&��ଽ��Z�>��e���qq�{YV�,G��8�'��dw�Q�iDY��ϋ�LWtrT����P/W�
|
|
223
|
+
�'�N��:��^�������FMZH���yrBa��Ɲ�_NJ[���[Ew�[C��^o�
|
|
224
|
+
endstream
|
|
225
|
+
endobj
|
|
226
|
+
12 0 obj
|
|
227
|
+
282
|
|
228
|
+
endobj
|
|
229
|
+
13 0 obj
|
|
230
|
+
<< /Type /XRef
|
|
231
|
+
/Length 58
|
|
232
|
+
/Filter /FlateDecode
|
|
233
|
+
/Size 14
|
|
234
|
+
/W [1 2 2]
|
|
235
|
+
/Root 11 0 R
|
|
236
|
+
/Info 10 0 R
|
|
237
|
+
>>
|
|
238
|
+
stream
|
|
239
|
+
x�c\`\`�������D012�1002���J�;��H0��+�:F���t(�t���M
|
|
240
|
+
endstream
|
|
241
|
+
endobj
|
|
242
|
+
startxref
|
|
243
|
+
735
|
|
244
|
+
%%EOF
|
|
245
|
+
%BeginExifToolUpdate
|
|
246
|
+
10 0 obj
|
|
247
|
+
<<
|
|
248
|
+
/CreationDate (D:20260423161755+02'00)
|
|
249
|
+
>>
|
|
250
|
+
endobj
|
|
251
|
+
14 0 obj
|
|
252
|
+
<<
|
|
253
|
+
/Type /XRef
|
|
254
|
+
/Length 21
|
|
255
|
+
/Size 15
|
|
256
|
+
/W [ 1 4 2 ]
|
|
257
|
+
/Root 11 0 R
|
|
258
|
+
/Info 10 0 R
|
|
259
|
+
/Index [ 0 1 10 1 14 1 ]
|
|
260
|
+
/Prev 735
|
|
261
|
+
>>
|
|
262
|
+
stream
|
|
263
|
+
���
|
|
264
|
+
endstream
|
|
265
|
+
endobj
|
|
266
|
+
%EndExifToolUpdate 961
|
|
267
|
+
startxref
|
|
268
|
+
1043
|
|
269
|
+
%%EOF
|
|
270
|
+
"
|
|
271
|
+
`;
|
|
272
|
+
|
|
273
|
+
exports[`Pdf page with custom icon > md2html copies all files and produces correct pdfIconConfig in __DATA__ 4`] = `"window.__DATA__.data.toc = {"title":"Pdf custom link","href":"index.html","path":"toc.yaml","id":"UUID"};"`;
|
|
274
|
+
|
|
275
|
+
exports[`Pdf page with custom icon > md2md copies custom pdf icon asset to output > filelist 1`] = `
|
|
276
|
+
"[
|
|
277
|
+
".yfm",
|
|
278
|
+
"_assets/custom-pdf-icon.svg",
|
|
279
|
+
"index.md",
|
|
280
|
+
"toc.yaml"
|
|
281
|
+
]"
|
|
282
|
+
`;
|
|
283
|
+
|
|
133
284
|
exports[`Pdf page with titles > Generates content for pdf genrator with title pages > filelist 1`] = `
|
|
134
285
|
"[
|
|
135
286
|
"pdf-page-toc.js",
|
|
@@ -155,7 +306,7 @@ exports[`Pdf page with titles > Generates content for pdf genrator with title pa
|
|
|
155
306
|
<body class="g-root g-root_theme_light">
|
|
156
307
|
<div id="root"></div>
|
|
157
308
|
<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/
|
|
309
|
+
{"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
310
|
</script>
|
|
160
311
|
<script type="application/javascript">
|
|
161
312
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -169,7 +320,7 @@ exports[`Pdf page with titles > Generates content for pdf genrator with title pa
|
|
|
169
320
|
</html>"
|
|
170
321
|
`;
|
|
171
322
|
|
|
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/
|
|
323
|
+
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
324
|
|
|
174
325
|
exports[`Pdf page with titles > Generates pdf title pages as regular entries for debug purpose > filelist 1`] = `
|
|
175
326
|
"[
|