@diplodoc/cli-tests 0.0.0-rc-fix-manifest-18002055289 → 0.0.0-rc-svg-inline-18225893126
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__/alternates.test.ts.snap +18 -24
- package/e2e/__snapshots__/include-toc.test.ts.snap +7 -28
- package/e2e/__snapshots__/load-custom-resources.spec.ts.snap +1 -4
- package/e2e/__snapshots__/metadata.spec.ts.snap +1 -4
- package/e2e/__snapshots__/pdf-page.spec.ts.snap +41 -0
- package/e2e/__snapshots__/plugin-corner-cases.spec.ts.snap +0 -0
- package/e2e/__snapshots__/preprocess.test.ts.snap +55 -31
- package/e2e/__snapshots__/regression.test.ts.snap +25 -31
- package/e2e/__snapshots__/restricted-access.test.ts.snap +3 -12
- package/e2e/__snapshots__/rtl.spec.ts.snap +8 -8
- package/e2e/__snapshots__/translation.spec.ts.snap +2 -8
- package/e2e/errors.spec.ts +11 -0
- package/e2e/pdf-page.spec.ts +17 -0
- package/mocks/errors/object-validation/input/index.md +3 -0
- package/mocks/errors/object-validation/input/toc.yaml +14 -0
- package/mocks/pdf-page/input/.yfm +5 -0
- package/mocks/pdf-page/input/index.md +6 -0
- package/mocks/pdf-page/input/page1.md +3 -0
- package/mocks/pdf-page/input/page2.md +7 -0
- package/mocks/pdf-page/input/page3.md +1 -0
- package/mocks/pdf-page/input/toc.yaml +15 -0
- package/mocks/preprocess/input/images.md +20 -9
- package/package.json +1 -1
|
@@ -14,8 +14,7 @@ exports[`Alternates > internal > filelist 1`] = `
|
|
|
14
14
|
"ru/about.md",
|
|
15
15
|
"ru/deep/test.md",
|
|
16
16
|
"ru/index.yaml",
|
|
17
|
-
"ru/toc.yaml"
|
|
18
|
-
"yfm-build-manifest.json"
|
|
17
|
+
"ru/toc.yaml"
|
|
19
18
|
]"
|
|
20
19
|
`;
|
|
21
20
|
|
|
@@ -34,8 +33,7 @@ exports[`Alternates > internal > filelist 2`] = `
|
|
|
34
33
|
"ru/about.html",
|
|
35
34
|
"ru/deep/test.html",
|
|
36
35
|
"ru/index.html",
|
|
37
|
-
"ru/toc.js"
|
|
38
|
-
"yfm-build-manifest.json"
|
|
36
|
+
"ru/toc.js"
|
|
39
37
|
]"
|
|
40
38
|
`;
|
|
41
39
|
|
|
@@ -238,14 +236,12 @@ path: ru/toc.yaml
|
|
|
238
236
|
"
|
|
239
237
|
`;
|
|
240
238
|
|
|
241
|
-
exports[`Alternates > internal 14`] = `
|
|
242
|
-
|
|
243
|
-
exports[`Alternates > internal 15`] = `
|
|
239
|
+
exports[`Alternates > internal 14`] = `
|
|
244
240
|
"langs: ['ru', 'en', 'az']
|
|
245
241
|
"
|
|
246
242
|
`;
|
|
247
243
|
|
|
248
|
-
exports[`Alternates > internal
|
|
244
|
+
exports[`Alternates > internal 15`] = `
|
|
249
245
|
"<!DOCTYPE html>
|
|
250
246
|
<html lang="az" dir="ltr">
|
|
251
247
|
<head>
|
|
@@ -277,7 +273,7 @@ exports[`Alternates > internal 16`] = `
|
|
|
277
273
|
</html>"
|
|
278
274
|
`;
|
|
279
275
|
|
|
280
|
-
exports[`Alternates > internal
|
|
276
|
+
exports[`Alternates > internal 16`] = `
|
|
281
277
|
"<!DOCTYPE html>
|
|
282
278
|
<html lang="az" dir="ltr">
|
|
283
279
|
<head>
|
|
@@ -309,7 +305,7 @@ exports[`Alternates > internal 17`] = `
|
|
|
309
305
|
</html>"
|
|
310
306
|
`;
|
|
311
307
|
|
|
312
|
-
exports[`Alternates > internal
|
|
308
|
+
exports[`Alternates > internal 17`] = `
|
|
313
309
|
"<!DOCTYPE html>
|
|
314
310
|
<html lang="az" dir="ltr">
|
|
315
311
|
<head>
|
|
@@ -341,9 +337,9 @@ exports[`Alternates > internal 18`] = `
|
|
|
341
337
|
</html>"
|
|
342
338
|
`;
|
|
343
339
|
|
|
344
|
-
exports[`Alternates > internal
|
|
340
|
+
exports[`Alternates > internal 18`] = `"window.__DATA__.data.toc = {"href":"az/index.html","items":[{"href":"az/about.html","name":"About","id":"UUID"},{"href":"az/deep/test.html","name":"Test","id":"UUID"}],"path":"az/toc.yaml","id":"UUID"};"`;
|
|
345
341
|
|
|
346
|
-
exports[`Alternates > internal
|
|
342
|
+
exports[`Alternates > internal 19`] = `
|
|
347
343
|
"<!DOCTYPE html>
|
|
348
344
|
<html lang="en" dir="ltr">
|
|
349
345
|
<head>
|
|
@@ -375,7 +371,7 @@ exports[`Alternates > internal 20`] = `
|
|
|
375
371
|
</html>"
|
|
376
372
|
`;
|
|
377
373
|
|
|
378
|
-
exports[`Alternates > internal
|
|
374
|
+
exports[`Alternates > internal 20`] = `
|
|
379
375
|
"<!DOCTYPE html>
|
|
380
376
|
<html lang="en" dir="ltr">
|
|
381
377
|
<head>
|
|
@@ -407,7 +403,7 @@ exports[`Alternates > internal 21`] = `
|
|
|
407
403
|
</html>"
|
|
408
404
|
`;
|
|
409
405
|
|
|
410
|
-
exports[`Alternates > internal
|
|
406
|
+
exports[`Alternates > internal 21`] = `
|
|
411
407
|
"<!DOCTYPE html>
|
|
412
408
|
<html lang="en" dir="ltr">
|
|
413
409
|
<head>
|
|
@@ -439,9 +435,9 @@ exports[`Alternates > internal 22`] = `
|
|
|
439
435
|
</html>"
|
|
440
436
|
`;
|
|
441
437
|
|
|
442
|
-
exports[`Alternates > internal
|
|
438
|
+
exports[`Alternates > internal 22`] = `"window.__DATA__.data.toc = {"href":"en/index.html","items":[{"href":"en/about.html","name":"About","id":"UUID"},{"href":"en/deep/test.html","name":"Test","id":"UUID"}],"path":"en/toc.yaml","id":"UUID"};"`;
|
|
443
439
|
|
|
444
|
-
exports[`Alternates > internal
|
|
440
|
+
exports[`Alternates > internal 23`] = `
|
|
445
441
|
"<!DOCTYPE html>
|
|
446
442
|
<html lang="ru" dir="ltr">
|
|
447
443
|
<head>
|
|
@@ -461,7 +457,7 @@ exports[`Alternates > internal 24`] = `
|
|
|
461
457
|
</html>"
|
|
462
458
|
`;
|
|
463
459
|
|
|
464
|
-
exports[`Alternates > internal
|
|
460
|
+
exports[`Alternates > internal 24`] = `
|
|
465
461
|
"<!DOCTYPE html>
|
|
466
462
|
<html lang="ru" dir="ltr">
|
|
467
463
|
<head>
|
|
@@ -472,8 +468,8 @@ exports[`Alternates > internal 25`] = `
|
|
|
472
468
|
<link rel="canonical" href="ru/about.html">
|
|
473
469
|
<link rel="alternate" href="az/about.html" hreflang="az" />
|
|
474
470
|
<link rel="alternate" href="en/about.html" hreflang="en" />
|
|
475
|
-
<link rel="alternate" href="ru/about.html" hreflang="ru" />
|
|
476
471
|
<link rel="alternate" href="https://my-other-site.com/about" />
|
|
472
|
+
<link rel="alternate" href="ru/about.html" hreflang="ru" />
|
|
477
473
|
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
478
474
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
479
475
|
</head>
|
|
@@ -494,7 +490,7 @@ exports[`Alternates > internal 25`] = `
|
|
|
494
490
|
</html>"
|
|
495
491
|
`;
|
|
496
492
|
|
|
497
|
-
exports[`Alternates > internal
|
|
493
|
+
exports[`Alternates > internal 25`] = `
|
|
498
494
|
"<!DOCTYPE html>
|
|
499
495
|
<html lang="ru" dir="ltr">
|
|
500
496
|
<head>
|
|
@@ -526,7 +522,7 @@ exports[`Alternates > internal 26`] = `
|
|
|
526
522
|
</html>"
|
|
527
523
|
`;
|
|
528
524
|
|
|
529
|
-
exports[`Alternates > internal
|
|
525
|
+
exports[`Alternates > internal 26`] = `
|
|
530
526
|
"<!DOCTYPE html>
|
|
531
527
|
<html lang="ru" dir="ltr">
|
|
532
528
|
<head>
|
|
@@ -558,9 +554,7 @@ exports[`Alternates > internal 27`] = `
|
|
|
558
554
|
</html>"
|
|
559
555
|
`;
|
|
560
556
|
|
|
561
|
-
exports[`Alternates > internal
|
|
562
|
-
|
|
563
|
-
exports[`Alternates > internal 29`] = `"{"redirects":{},"fileTrie":{"trie":{"az":{"children":{"index":{"file":{"ext":".yaml","toc":"t0"}},"about":{"file":{"ext":".md","toc":"t0"}},"deep":{"children":{"test":{"file":{"ext":".md","toc":"t0"}}}}}},"en":{"children":{"index":{"file":{"ext":".yaml","toc":"t1"}},"about":{"file":{"ext":".md","toc":"t1"}},"deep":{"children":{"test":{"file":{"ext":".md","toc":"t1"}}}}}},"ru":{"children":{"index":{"file":{"ext":".yaml","toc":"t2"}},"about":{"file":{"ext":".md","toc":"t2"}},"deep":{"children":{"test":{"file":{"ext":".md","toc":"t2"}}}}}}},"tocMapping":{"t0":"az/toc.yaml","t1":"en/toc.yaml","t2":"ru/toc.yaml"}},"yfmConfig":{"langs":["ru","en","az"]}}"`;
|
|
557
|
+
exports[`Alternates > internal 27`] = `"window.__DATA__.data.toc = {"href":"ru/index.html","items":[{"href":"ru/about.html","name":"About","id":"UUID"},{"href":"ru/deep/test.html","name":"Test","id":"UUID"}],"path":"ru/toc.yaml","id":"UUID"};"`;
|
|
564
558
|
|
|
565
559
|
exports[`Alternates > skip-html-extension > filelist 1`] = `
|
|
566
560
|
"[
|
|
@@ -813,8 +807,8 @@ exports[`Alternates > skip-html-extension 11`] = `
|
|
|
813
807
|
<link rel="canonical" href="ru/about">
|
|
814
808
|
<link rel="alternate" href="az/about" hreflang="az" />
|
|
815
809
|
<link rel="alternate" href="en/about" hreflang="en" />
|
|
816
|
-
<link rel="alternate" href="ru/about" hreflang="ru" />
|
|
817
810
|
<link rel="alternate" href="https://my-other-site.com/about" />
|
|
811
|
+
<link rel="alternate" href="ru/about" hreflang="ru" />
|
|
818
812
|
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
819
813
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
820
814
|
</head>
|
|
@@ -12,8 +12,7 @@ exports[`Include toc > Nested toc inclusions with mixed including modes > fileli
|
|
|
12
12
|
"product2/overlay3/_includes/inc-hash.md",
|
|
13
13
|
"product2/overlay3/article1.md",
|
|
14
14
|
"product2/p2.md",
|
|
15
|
-
"product2/toc.yaml"
|
|
16
|
-
"yfm-build-manifest.json"
|
|
15
|
+
"product2/toc.yaml"
|
|
17
16
|
]"
|
|
18
17
|
`;
|
|
19
18
|
|
|
@@ -35,8 +34,7 @@ This is the core content of Article 1.
|
|
|
35
34
|
|
|
36
35
|
exports[`Include toc > Nested toc inclusions with mixed including modes 2 > filelist 1`] = `
|
|
37
36
|
"[
|
|
38
|
-
"toc.yaml"
|
|
39
|
-
"yfm-build-manifest.json"
|
|
37
|
+
"toc.yaml"
|
|
40
38
|
]"
|
|
41
39
|
`;
|
|
42
40
|
|
|
@@ -55,8 +53,6 @@ path: toc.yaml
|
|
|
55
53
|
"
|
|
56
54
|
`;
|
|
57
55
|
|
|
58
|
-
exports[`Include toc > Nested toc inclusions with mixed including modes 2 2`] = `"{"redirects":{},"fileTrie":{"trie":{},"tocMapping":{"t0":"toc.yaml"}},"yfmConfig":{}}"`;
|
|
59
|
-
|
|
60
56
|
exports[`Include toc > Nested toc inclusions with mixed including modes 3`] = `
|
|
61
57
|
"title: Product 1 title
|
|
62
58
|
items:
|
|
@@ -157,15 +153,12 @@ path: product2/toc.yaml
|
|
|
157
153
|
"
|
|
158
154
|
`;
|
|
159
155
|
|
|
160
|
-
exports[`Include toc > Nested toc inclusions with mixed including modes 12`] = `"{"redirects":{},"fileTrie":{"trie":{"product2":{"children":{"p2":{"file":{"ext":".md","toc":"t1"}},"overlay1":{"children":{"article1":{"file":{"ext":".md","toc":"t1"}}}},"overlay2":{"children":{"article1":{"file":{"ext":".md","toc":"t1"}}}},"overlay3":{"children":{"article1":{"file":{"ext":".md","toc":"t1"}}}}}},"product1":{"children":{"article1":{"file":{"ext":".md","toc":"t0"}}}}},"tocMapping":{"t0":"product1/toc.yaml","t1":"product2/toc.yaml"}},"yfmConfig":{}}"`;
|
|
161
|
-
|
|
162
156
|
exports[`Include toc > Toc is included in link mode > filelist 1`] = `
|
|
163
157
|
"[
|
|
164
158
|
"a1.md",
|
|
165
159
|
"folder1/a1.md",
|
|
166
160
|
"folder1/folder2/a1.md",
|
|
167
|
-
"toc.yaml"
|
|
168
|
-
"yfm-build-manifest.json"
|
|
161
|
+
"toc.yaml"
|
|
169
162
|
]"
|
|
170
163
|
`;
|
|
171
164
|
|
|
@@ -218,8 +211,6 @@ path: toc.yaml
|
|
|
218
211
|
"
|
|
219
212
|
`;
|
|
220
213
|
|
|
221
|
-
exports[`Include toc > Toc is included in link mode 5`] = `"{"redirects":{},"fileTrie":{"trie":{"a1":{"file":{"ext":".md","toc":"t0"}},"folder1":{"children":{"a1":{"file":{"ext":".md","toc":"t0"}},"folder2":{"children":{"a1":{"file":{"ext":".md","toc":"t0"}}}}}}},"tocMapping":{"t0":"toc.yaml"}},"yfmConfig":{}}"`;
|
|
222
|
-
|
|
223
214
|
exports[`Include toc > Toc is included inline, not as a new section > filelist 1`] = `
|
|
224
215
|
"[
|
|
225
216
|
".yfm",
|
|
@@ -228,8 +219,7 @@ exports[`Include toc > Toc is included inline, not as a new section > filelist 1
|
|
|
228
219
|
"fileB.md",
|
|
229
220
|
"fileC.md",
|
|
230
221
|
"fileX.md",
|
|
231
|
-
"toc.yaml"
|
|
232
|
-
"yfm-build-manifest.json"
|
|
222
|
+
"toc.yaml"
|
|
233
223
|
]"
|
|
234
224
|
`;
|
|
235
225
|
|
|
@@ -328,14 +318,11 @@ path: toc.yaml
|
|
|
328
318
|
"
|
|
329
319
|
`;
|
|
330
320
|
|
|
331
|
-
exports[`Include toc > Toc is included inline, not as a new section 8`] = `"{"redirects":{},"fileTrie":{"trie":{"file1":{"file":{"ext":".md","toc":"t0"}},"fileA":{"file":{"ext":".md","toc":"t0"}},"fileB":{"file":{"ext":".md","toc":"t0"}},"fileC":{"file":{"ext":".md","toc":"t0"}},"fileX":{"file":{"ext":".md","toc":"t0"}}},"tocMapping":{"t0":"toc.yaml"}},"yfmConfig":{"applyPresets":true}}"`;
|
|
332
|
-
|
|
333
321
|
exports[`Include toc > Toc root merge on non root dir > filelist 1`] = `
|
|
334
322
|
"[
|
|
335
323
|
".yfm",
|
|
336
324
|
"ru/index.yaml",
|
|
337
|
-
"ru/toc.yaml"
|
|
338
|
-
"yfm-build-manifest.json"
|
|
325
|
+
"ru/toc.yaml"
|
|
339
326
|
]"
|
|
340
327
|
`;
|
|
341
328
|
|
|
@@ -371,14 +358,11 @@ path: ru/toc.yaml
|
|
|
371
358
|
"
|
|
372
359
|
`;
|
|
373
360
|
|
|
374
|
-
exports[`Include toc > Toc root merge on non root dir 4`] = `"{"redirects":{},"fileTrie":{"trie":{"ru":{"children":{"index":{"file":{"ext":".yaml","toc":"t0"}}}}},"tocMapping":{"t0":"ru/toc.yaml"}},"yfmConfig":{"allowHtml":true}}"`;
|
|
375
|
-
|
|
376
361
|
exports[`Include toc > Toc with expressions > filelist 1`] = `
|
|
377
362
|
"[
|
|
378
363
|
"a1.md",
|
|
379
364
|
"index.yaml",
|
|
380
|
-
"toc.yaml"
|
|
381
|
-
"yfm-build-manifest.json"
|
|
365
|
+
"toc.yaml"
|
|
382
366
|
]"
|
|
383
367
|
`;
|
|
384
368
|
|
|
@@ -420,8 +404,6 @@ path: toc.yaml
|
|
|
420
404
|
"
|
|
421
405
|
`;
|
|
422
406
|
|
|
423
|
-
exports[`Include toc > Toc with expressions 4`] = `"{"redirects":{},"fileTrie":{"trie":{"index":{"file":{"ext":".yaml","toc":"t0"}},"a1":{"file":{"ext":".md","toc":"t0"}}},"tocMapping":{"t0":"toc.yaml"}},"yfmConfig":{}}"`;
|
|
424
|
-
|
|
425
407
|
exports[`Include toc > Toc with generic includer > filelist 1`] = `
|
|
426
408
|
"[
|
|
427
409
|
"test/index.md",
|
|
@@ -429,8 +411,7 @@ exports[`Include toc > Toc with generic includer > filelist 1`] = `
|
|
|
429
411
|
"test/sub/sub-2.md",
|
|
430
412
|
"test/sub/sub/sub-3.md",
|
|
431
413
|
"test/test.md",
|
|
432
|
-
"toc.yaml"
|
|
433
|
-
"yfm-build-manifest.json"
|
|
414
|
+
"toc.yaml"
|
|
434
415
|
]"
|
|
435
416
|
`;
|
|
436
417
|
|
|
@@ -513,5 +494,3 @@ items:
|
|
|
513
494
|
path: toc.yaml
|
|
514
495
|
"
|
|
515
496
|
`;
|
|
516
|
-
|
|
517
|
-
exports[`Include toc > Toc with generic includer 7`] = `"{"redirects":{},"fileTrie":{"trie":{"test":{"children":{"test":{"file":{"ext":".md","toc":"t0"}},"index":{"file":{"ext":".md","toc":"t0"}},"sub":{"children":{"sub-2":{"file":{"ext":".md","toc":"t0"}},"sub-1":{"file":{"ext":".md","toc":"t0"}},"sub":{"children":{"sub-3":{"file":{"ext":".md","toc":"t0"}}}}}}}}},"tocMapping":{"t0":"toc.yaml"}},"yfmConfig":{}}"`;
|
|
@@ -279,8 +279,7 @@ exports[`Allow load custom resources > md2md with custom resources > filelist 1`
|
|
|
279
279
|
"index.yaml",
|
|
280
280
|
"page.md",
|
|
281
281
|
"project/config.md",
|
|
282
|
-
"toc.yaml"
|
|
283
|
-
"yfm-build-manifest.json"
|
|
282
|
+
"toc.yaml"
|
|
284
283
|
]"
|
|
285
284
|
`;
|
|
286
285
|
|
|
@@ -361,5 +360,3 @@ items:
|
|
|
361
360
|
path: toc.yaml
|
|
362
361
|
"
|
|
363
362
|
`;
|
|
364
|
-
|
|
365
|
-
exports[`Allow load custom resources > md2md with custom resources 6`] = `"{"redirects":{},"fileTrie":{"trie":{"index":{"file":{"ext":".yaml","toc":"t0"}},"page":{"file":{"ext":".md","toc":"t0"}},"project":{"children":{"config":{"file":{"ext":".md","toc":"t0"}}}}},"tocMapping":{"t0":"toc.yaml"}},"yfmConfig":{"resources":{"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"]}}}"`;
|
|
@@ -110,8 +110,7 @@ exports[`Allow load custom resources > md2md with metadata > filelist 1`] = `
|
|
|
110
110
|
"index.yaml",
|
|
111
111
|
"page.md",
|
|
112
112
|
"project/config.md",
|
|
113
|
-
"toc.yaml"
|
|
114
|
-
"yfm-build-manifest.json"
|
|
113
|
+
"toc.yaml"
|
|
115
114
|
]"
|
|
116
115
|
`;
|
|
117
116
|
|
|
@@ -186,5 +185,3 @@ items:
|
|
|
186
185
|
path: toc.yaml
|
|
187
186
|
"
|
|
188
187
|
`;
|
|
189
|
-
|
|
190
|
-
exports[`Allow load custom resources > md2md with metadata 5`] = `"{"redirects":{},"fileTrie":{"trie":{"index":{"file":{"ext":".yaml","toc":"t0"}},"page":{"file":{"ext":".md","toc":"t0"}},"project":{"children":{"config":{"file":{"ext":".md","toc":"t0"}}}}},"tocMapping":{"t0":"toc.yaml"}},"yfmConfig":{}}"`;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
|
+
|
|
3
|
+
exports[`Pdf page mode > transforms links correctly > filelist 1`] = `
|
|
4
|
+
"[
|
|
5
|
+
"pdf-page-toc.js",
|
|
6
|
+
"pdf-page.html",
|
|
7
|
+
"pdf-page.json"
|
|
8
|
+
]"
|
|
9
|
+
`;
|
|
10
|
+
|
|
11
|
+
exports[`Pdf page mode > transforms links correctly 1`] = `"window.__DATA__.data.toc = {"title":"Skip html extension","href":"#index","items":[{"name":"Title 1","href":"#page1","id":"UUID"}],"path":"toc.yaml","id":"UUID"};"`;
|
|
12
|
+
|
|
13
|
+
exports[`Pdf page mode > transforms links correctly 2`] = `
|
|
14
|
+
"<!DOCTYPE html>
|
|
15
|
+
<html lang="ru" dir="ltr">
|
|
16
|
+
<head>
|
|
17
|
+
<meta charset="utf-8">
|
|
18
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
19
|
+
<base href="./" />
|
|
20
|
+
<title>Skip html extension | Skip html extension</title>
|
|
21
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
22
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
23
|
+
</head>
|
|
24
|
+
<body class="g-root g-root_theme_light">
|
|
25
|
+
<div id="root"></div>
|
|
26
|
+
<script type="application/json" id="diplodoc-state">
|
|
27
|
+
{"data":{"leading":false,"html":"<h2 data-original-article=\\"index.html\\">Header<a class=\\"yfm-anchor\\" aria-hidden=\\"true\\" href=\\"#index\\" id=\\"index\\"></a></h2><p>Content</p>/n<p><a href=\\"#page1\\">Link 1</a><br>/n<a href=\\"page2.html\\">Link 2</a></p>/n<hr class=\\"yfm-page__delimeter\\"><h2 data-original-article=\\"page1.html\\">Page 1<a class=\\"yfm-anchor\\" aria-hidden=\\"true\\" href=\\"#page1\\" id=\\"page1\\"></a></h2><p><a href=\\"page2.html#hash\\">Link</a></p>/n","headings":[],"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}]},"title":"Skip html extension"},"router":{"pathname":"pdf-page","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
28
|
+
</script>
|
|
29
|
+
<script type="application/javascript">
|
|
30
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
31
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
32
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
33
|
+
})(data.innerText));
|
|
34
|
+
window.STATIC_CONTENT = false;
|
|
35
|
+
</script>
|
|
36
|
+
<script type="application/javascript" defer src="pdf-page.html"></script>
|
|
37
|
+
</body>
|
|
38
|
+
</html>"
|
|
39
|
+
`;
|
|
40
|
+
|
|
41
|
+
exports[`Pdf page mode > transforms links correctly 3`] = `"{"data":{"leading":false,"html":"<h2 data-original-article=\\"index.html\\">Header<a class=\\"yfm-anchor\\" aria-hidden=\\"true\\" href=\\"#index\\" id=\\"index\\"></a></h2><p>Content</p>/n<p><a href=\\"#page1\\">Link 1</a><br>/n<a href=\\"page2.html\\">Link 2</a></p>/n<hr class=\\"yfm-page__delimeter\\"><h2 data-original-article=\\"page1.html\\">Page 1<a class=\\"yfm-anchor\\" aria-hidden=\\"true\\" href=\\"#page1\\" id=\\"page1\\"></a></h2><p><a href=\\"page2.html#hash\\">Link</a></p>/n","headings":[],"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}]},"title":"Skip html extension","toc":{"title":"Skip html extension","href":"index.html","items":[{"name":"Title 1","href":"page1.html","id":"UUID"}],"path":"toc.yaml","id":"UUID"}},"router":{"pathname":"pdf-page","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}"`;
|
|
Binary file
|
|
@@ -24,8 +24,7 @@ exports[`Preprocess > HashIncludes=true,Autotitles=false > filelist 1`] = `
|
|
|
24
24
|
"level1/toc.yaml",
|
|
25
25
|
"mermaid.md",
|
|
26
26
|
"sub/folder/item-1.md",
|
|
27
|
-
"toc.yaml"
|
|
28
|
-
"yfm-build-manifest.json"
|
|
27
|
+
"toc.yaml"
|
|
29
28
|
]"
|
|
30
29
|
`;
|
|
31
30
|
|
|
@@ -158,7 +157,6 @@ vcsPath: images.md
|
|
|
158
157
|
6. \`[{width=100 height=200}](https://yandex.com/images/search?text=mountain)\`
|
|
159
158
|
[{width=100 height=200}](https://yandex.com/images/search?text=mountain)
|
|
160
159
|
|
|
161
|
-
|
|
162
160
|
7. \`![title][code]{width=100 height=200}\`
|
|
163
161
|
![title][code]{width=100 height=200}
|
|
164
162
|
|
|
@@ -184,40 +182,52 @@ Term
|
|
|
184
182
|

|
|
185
183
|
and more text
|
|
186
184
|
|
|
185
|
+
12. \`{inline=false}\`
|
|
186
|
+
{inline=false}
|
|
187
|
+
|
|
188
|
+
13. \`{width=100 inline=false}\`
|
|
189
|
+
{width=100 inline=false}
|
|
190
|
+
|
|
191
|
+
14. \`{inline=true width=100 }\`
|
|
192
|
+
{inline=true width=100 }
|
|
193
|
+
|
|
194
|
+
15. \`![code svg image 15][code]{inline=true}\`
|
|
195
|
+
![svg image 15][code]{inline=true}
|
|
196
|
+
|
|
187
197
|
20. Сodeblocks - no inline svg
|
|
188
198
|
\`\`\`
|
|
189
199
|
Codeblock fence
|
|
190
|
-

|
|
191
201
|
\`\`\`
|
|
192
202
|
|
|
193
203
|
\`\`\`\`
|
|
194
204
|
Codeblock in codeblock
|
|
195
205
|
\`\`\`
|
|
196
|
-

|
|
197
207
|
\`\`\`
|
|
198
|
-

|
|
199
209
|
\`\`\`\`
|
|
200
210
|
|
|
201
211
|
~~~
|
|
202
212
|
Codeblock tilda
|
|
203
|
-

|
|
204
214
|
~~~
|
|
205
215
|
|
|
206
216
|
\`\`\`\`\`\`\`md translate=no
|
|
207
217
|
Codeblock 10 fence
|
|
208
|
-

|
|
209
219
|
\`\`\`\`\`\`\`
|
|
210
220
|
|
|
211
221
|
Codeblock 4 spaces
|
|
212
|
-

|
|
213
223
|
row 3
|
|
214
224
|
|
|
215
225
|
1. Codeblock 4 spaces in list
|
|
216
226
|
|
|
217
|
-

|
|
218
228
|
1. Codeblock fence in list with bad gap
|
|
219
229
|
\`\`\`
|
|
220
|
-

|
|
221
231
|
\`\`\`
|
|
222
232
|
|
|
223
233
|
\`\`\`md
|
|
@@ -473,8 +483,6 @@ path: toc.yaml
|
|
|
473
483
|
"
|
|
474
484
|
`;
|
|
475
485
|
|
|
476
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=false 22`] = `"{"redirects":{},"fileTrie":{"trie":{"1":{"file":{"ext":".md","toc":"t1"}},"included-item":{"file":{"ext":".md","toc":"t1"}},"sub":{"children":{"folder":{"children":{"item-1":{"file":{"ext":".md","toc":"t1"}}}}}},"mermaid":{"file":{"ext":".md","toc":"t1"}},"latex":{"file":{"ext":".md","toc":"t1"}},"images":{"file":{"ext":".md","toc":"t1"}},"autotitle":{"file":{"ext":".md","toc":"t1"}},"includes":{"file":{"ext":".md","toc":"t1"},"children":{"level11":{"file":{"ext":".md","toc":"t1"}}}},"level0":{"file":{"ext":".md","toc":"t1"}},"level1":{"children":{"level1":{"file":{"ext":".md","toc":"t0"}},"level2":{"children":{"level2":{"file":{"ext":".md","toc":"t0"}}}}}}},"tocMapping":{"t0":"level1/toc.yaml","t1":"toc.yaml"}},"yfmConfig":{"allowHtml":true}}"`;
|
|
477
|
-
|
|
478
486
|
exports[`Preprocess > HashIncludes=true,Autotitles=true > filelist 1`] = `
|
|
479
487
|
"[
|
|
480
488
|
".yfm",
|
|
@@ -499,8 +507,7 @@ exports[`Preprocess > HashIncludes=true,Autotitles=true > filelist 1`] = `
|
|
|
499
507
|
"level1/toc.yaml",
|
|
500
508
|
"mermaid.md",
|
|
501
509
|
"sub/folder/item-1.md",
|
|
502
|
-
"toc.yaml"
|
|
503
|
-
"yfm-build-manifest.json"
|
|
510
|
+
"toc.yaml"
|
|
504
511
|
]"
|
|
505
512
|
`;
|
|
506
513
|
|
|
@@ -633,7 +640,6 @@ vcsPath: images.md
|
|
|
633
640
|
6. \`[{width=100 height=200}](https://yandex.com/images/search?text=mountain)\`
|
|
634
641
|
[{width=100 height=200}](https://yandex.com/images/search?text=mountain)
|
|
635
642
|
|
|
636
|
-
|
|
637
643
|
7. \`![title][code]{width=100 height=200}\`
|
|
638
644
|
![title][code]{width=100 height=200}
|
|
639
645
|
|
|
@@ -659,40 +665,52 @@ Term
|
|
|
659
665
|

|
|
660
666
|
and more text
|
|
661
667
|
|
|
668
|
+
12. \`{inline=false}\`
|
|
669
|
+
{inline=false}
|
|
670
|
+
|
|
671
|
+
13. \`{width=100 inline=false}\`
|
|
672
|
+
{width=100 inline=false}
|
|
673
|
+
|
|
674
|
+
14. \`{inline=true width=100 }\`
|
|
675
|
+
{inline=true width=100 }
|
|
676
|
+
|
|
677
|
+
15. \`![code svg image 15][code]{inline=true}\`
|
|
678
|
+
![svg image 15][code]{inline=true}
|
|
679
|
+
|
|
662
680
|
20. Сodeblocks - no inline svg
|
|
663
681
|
\`\`\`
|
|
664
682
|
Codeblock fence
|
|
665
|
-

|
|
666
684
|
\`\`\`
|
|
667
685
|
|
|
668
686
|
\`\`\`\`
|
|
669
687
|
Codeblock in codeblock
|
|
670
688
|
\`\`\`
|
|
671
|
-

|
|
672
690
|
\`\`\`
|
|
673
|
-

|
|
674
692
|
\`\`\`\`
|
|
675
693
|
|
|
676
694
|
~~~
|
|
677
695
|
Codeblock tilda
|
|
678
|
-

|
|
679
697
|
~~~
|
|
680
698
|
|
|
681
699
|
\`\`\`\`\`\`\`md translate=no
|
|
682
700
|
Codeblock 10 fence
|
|
683
|
-

|
|
684
702
|
\`\`\`\`\`\`\`
|
|
685
703
|
|
|
686
704
|
Codeblock 4 spaces
|
|
687
|
-

|
|
688
706
|
row 3
|
|
689
707
|
|
|
690
708
|
1. Codeblock 4 spaces in list
|
|
691
709
|
|
|
692
|
-

|
|
693
711
|
1. Codeblock fence in list with bad gap
|
|
694
712
|
\`\`\`
|
|
695
|
-

|
|
696
714
|
\`\`\`
|
|
697
715
|
|
|
698
716
|
\`\`\`md
|
|
@@ -948,8 +966,6 @@ path: toc.yaml
|
|
|
948
966
|
"
|
|
949
967
|
`;
|
|
950
968
|
|
|
951
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=true 22`] = `"{"redirects":{},"fileTrie":{"trie":{"1":{"file":{"ext":".md","toc":"t1"}},"included-item":{"file":{"ext":".md","toc":"t1"}},"sub":{"children":{"folder":{"children":{"item-1":{"file":{"ext":".md","toc":"t1"}}}}}},"mermaid":{"file":{"ext":".md","toc":"t1"}},"latex":{"file":{"ext":".md","toc":"t1"}},"images":{"file":{"ext":".md","toc":"t1"}},"autotitle":{"file":{"ext":".md","toc":"t1"}},"includes":{"file":{"ext":".md","toc":"t1"},"children":{"level11":{"file":{"ext":".md","toc":"t1"}}}},"level0":{"file":{"ext":".md","toc":"t1"}},"level1":{"children":{"level1":{"file":{"ext":".md","toc":"t0"}},"level2":{"children":{"level2":{"file":{"ext":".md","toc":"t0"}}}}}}},"tocMapping":{"t0":"level1/toc.yaml","t1":"toc.yaml"}},"yfmConfig":{"allowHtml":true}}"`;
|
|
952
|
-
|
|
953
969
|
exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true > filelist 1`] = `
|
|
954
970
|
"[
|
|
955
971
|
".yfm",
|
|
@@ -974,8 +990,7 @@ exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true > filelist 1`]
|
|
|
974
990
|
"level1/toc.yaml",
|
|
975
991
|
"mermaid.md",
|
|
976
992
|
"sub/folder/item-1.md",
|
|
977
|
-
"toc.yaml"
|
|
978
|
-
"yfm-build-manifest.json"
|
|
993
|
+
"toc.yaml"
|
|
979
994
|
]"
|
|
980
995
|
`;
|
|
981
996
|
|
|
@@ -1108,7 +1123,6 @@ vcsPath: images.md
|
|
|
1108
1123
|
6. \`[<svg width="20px" height="20px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" id="rnd-hash__search" version="1.1" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="rnd-hash__search_1_"><linearGradient gradientUnits="userSpaceOnUse" id="rnd-hash__SVGID_1_" x1="57.9473" x2="407.9511" y1="351.4531" y2="149.3783"><stop offset="0" stop-color="#F14D5C"/><stop offset="0.1309" stop-color="#F05454"/><stop offset="0.3346" stop-color="#3bf488"/><stop offset="0.3492" stop-color="#ED683C"/><stop offset="0.714" stop-color="#1e15a3"/><stop offset="1" stop-color="#FDC70C"/></linearGradient><path d="M300.766,87.509c-33.056,0-64.133,12.873-87.507,36.246c-23.374,23.374-36.247,54.451-36.247,87.507 c0,24.234,6.927,47.4,19.83,67.252l-12.669,12.669c0,0.001-0.001,0.001-0.001,0.001l-90.664,90.665 c-8.353,8.354-7.88,22.418,1.055,31.353l4.261,4.262c4.669,4.668,10.736,7.028,16.658,7.028c5.417,0,10.713-1.976,14.703-5.966 l15.405-15.405l75.259-75.259l12.671-12.672c19.85,12.9,43.014,19.826,67.246,19.826c33.056,0,64.133-12.873,87.506-36.247 c48.252-48.251,48.252-126.762,0-175.014C364.898,100.382,333.821,87.509,300.766,87.509z M138.518,396.049 c-4.454,4.453-12.178,3.979-17.219-1.063l-4.261-4.262c-5.036-5.035-5.509-12.756-1.055-17.21l71.38-71.38 c3.284,4.164,6.834,8.16,10.601,11.926c3.766,3.766,7.764,7.318,11.935,10.607L138.518,396.049z M105.894,410.391l-4.261-4.26 c-5.036-5.036-5.509-12.757-1.055-17.211l2.902-2.902c0.936,4.27,3.101,8.393,6.486,11.779l4.261,4.26 c3.392,3.393,7.523,5.549,11.799,6.483l-2.914,2.914C118.658,415.908,110.934,415.432,105.894,410.391z M213.788,320.779 c0.002-0.003,0.005-0.006,0.007-0.008l0,0L213.788,320.779z M217.033,317.534c-4.201-3.248-8.229-6.775-11.998-10.544 c-3.771-3.771-7.295-7.797-10.537-11.99l8.214-8.214c3.233,4.181,6.749,8.185,10.547,11.982c3.8,3.8,7.806,7.317,11.989,10.552 L217.033,317.534z M381.201,291.697c-21.485,21.485-50.052,33.318-80.436,33.318c-30.385,0-58.951-11.833-80.436-33.318 c-21.485-21.484-33.318-50.051-33.318-80.436s11.833-58.95,33.318-80.436c21.485-21.485,50.051-33.317,80.436-33.317 c30.384,0,58.95,11.832,80.436,33.317C425.553,175.179,425.553,247.346,381.201,291.697z" fill="url(#rnd-hash__SVGID_1_)"/><path d="M258.117,115.27l3.604,9.328c2.592-1.001,5.267-1.887,7.949-2.632l-2.676-9.636 C263.998,113.162,261.012,114.151,258.117,115.27z" fill="#3bf488ff"/><path d="M206.264,162.886l8.985,4.389c8.299-16.992,22.191-30.997,39.118-39.433l-4.46-8.95 C231.022,128.304,215.523,143.928,206.264,162.886z" fill="#1e15a3ff"/></g></svg>](https://yandex.com/images/search?text=mountain)\`
|
|
1109
1124
|
[<svg width="20px" height="20px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" id="rnd-hash__search" version="1.1" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="rnd-hash__search_1_"><linearGradient gradientUnits="userSpaceOnUse" id="rnd-hash__SVGID_1_" x1="57.9473" x2="407.9511" y1="351.4531" y2="149.3783"><stop offset="0" stop-color="#F14D5C"/><stop offset="0.1309" stop-color="#F05454"/><stop offset="0.3346" stop-color="#3bf488"/><stop offset="0.3492" stop-color="#ED683C"/><stop offset="0.714" stop-color="#1e15a3"/><stop offset="1" stop-color="#FDC70C"/></linearGradient><path d="M300.766,87.509c-33.056,0-64.133,12.873-87.507,36.246c-23.374,23.374-36.247,54.451-36.247,87.507 c0,24.234,6.927,47.4,19.83,67.252l-12.669,12.669c0,0.001-0.001,0.001-0.001,0.001l-90.664,90.665 c-8.353,8.354-7.88,22.418,1.055,31.353l4.261,4.262c4.669,4.668,10.736,7.028,16.658,7.028c5.417,0,10.713-1.976,14.703-5.966 l15.405-15.405l75.259-75.259l12.671-12.672c19.85,12.9,43.014,19.826,67.246,19.826c33.056,0,64.133-12.873,87.506-36.247 c48.252-48.251,48.252-126.762,0-175.014C364.898,100.382,333.821,87.509,300.766,87.509z M138.518,396.049 c-4.454,4.453-12.178,3.979-17.219-1.063l-4.261-4.262c-5.036-5.035-5.509-12.756-1.055-17.21l71.38-71.38 c3.284,4.164,6.834,8.16,10.601,11.926c3.766,3.766,7.764,7.318,11.935,10.607L138.518,396.049z M105.894,410.391l-4.261-4.26 c-5.036-5.036-5.509-12.757-1.055-17.211l2.902-2.902c0.936,4.27,3.101,8.393,6.486,11.779l4.261,4.26 c3.392,3.393,7.523,5.549,11.799,6.483l-2.914,2.914C118.658,415.908,110.934,415.432,105.894,410.391z M213.788,320.779 c0.002-0.003,0.005-0.006,0.007-0.008l0,0L213.788,320.779z M217.033,317.534c-4.201-3.248-8.229-6.775-11.998-10.544 c-3.771-3.771-7.295-7.797-10.537-11.99l8.214-8.214c3.233,4.181,6.749,8.185,10.547,11.982c3.8,3.8,7.806,7.317,11.989,10.552 L217.033,317.534z M381.201,291.697c-21.485,21.485-50.052,33.318-80.436,33.318c-30.385,0-58.951-11.833-80.436-33.318 c-21.485-21.484-33.318-50.051-33.318-80.436s11.833-58.95,33.318-80.436c21.485-21.485,50.051-33.317,80.436-33.317 c30.384,0,58.95,11.832,80.436,33.317C425.553,175.179,425.553,247.346,381.201,291.697z" fill="url(#rnd-hash__SVGID_1_)"/><path d="M258.117,115.27l3.604,9.328c2.592-1.001,5.267-1.887,7.949-2.632l-2.676-9.636 C263.998,113.162,261.012,114.151,258.117,115.27z" fill="#3bf488ff"/><path d="M206.264,162.886l8.985,4.389c8.299-16.992,22.191-30.997,39.118-39.433l-4.46-8.95 C231.022,128.304,215.523,143.928,206.264,162.886z" fill="#1e15a3ff"/></g></svg>](https://yandex.com/images/search?text=mountain)
|
|
1110
1125
|
|
|
1111
|
-
|
|
1112
1126
|
7. \`<svg width="20px" height="20px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" id="rnd-hash__search" version="1.1" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="rnd-hash__search_1_"><linearGradient gradientUnits="userSpaceOnUse" id="rnd-hash__SVGID_1_" x1="57.9473" x2="407.9511" y1="351.4531" y2="149.3783"><stop offset="0" stop-color="#F14D5C"/><stop offset="0.1309" stop-color="#F05454"/><stop offset="0.3346" stop-color="#3bf488"/><stop offset="0.3492" stop-color="#ED683C"/><stop offset="0.714" stop-color="#1e15a3"/><stop offset="1" stop-color="#FDC70C"/></linearGradient><path d="M300.766,87.509c-33.056,0-64.133,12.873-87.507,36.246c-23.374,23.374-36.247,54.451-36.247,87.507 c0,24.234,6.927,47.4,19.83,67.252l-12.669,12.669c0,0.001-0.001,0.001-0.001,0.001l-90.664,90.665 c-8.353,8.354-7.88,22.418,1.055,31.353l4.261,4.262c4.669,4.668,10.736,7.028,16.658,7.028c5.417,0,10.713-1.976,14.703-5.966 l15.405-15.405l75.259-75.259l12.671-12.672c19.85,12.9,43.014,19.826,67.246,19.826c33.056,0,64.133-12.873,87.506-36.247 c48.252-48.251,48.252-126.762,0-175.014C364.898,100.382,333.821,87.509,300.766,87.509z M138.518,396.049 c-4.454,4.453-12.178,3.979-17.219-1.063l-4.261-4.262c-5.036-5.035-5.509-12.756-1.055-17.21l71.38-71.38 c3.284,4.164,6.834,8.16,10.601,11.926c3.766,3.766,7.764,7.318,11.935,10.607L138.518,396.049z M105.894,410.391l-4.261-4.26 c-5.036-5.036-5.509-12.757-1.055-17.211l2.902-2.902c0.936,4.27,3.101,8.393,6.486,11.779l4.261,4.26 c3.392,3.393,7.523,5.549,11.799,6.483l-2.914,2.914C118.658,415.908,110.934,415.432,105.894,410.391z M213.788,320.779 c0.002-0.003,0.005-0.006,0.007-0.008l0,0L213.788,320.779z M217.033,317.534c-4.201-3.248-8.229-6.775-11.998-10.544 c-3.771-3.771-7.295-7.797-10.537-11.99l8.214-8.214c3.233,4.181,6.749,8.185,10.547,11.982c3.8,3.8,7.806,7.317,11.989,10.552 L217.033,317.534z M381.201,291.697c-21.485,21.485-50.052,33.318-80.436,33.318c-30.385,0-58.951-11.833-80.436-33.318 c-21.485-21.484-33.318-50.051-33.318-80.436s11.833-58.95,33.318-80.436c21.485-21.485,50.051-33.317,80.436-33.317 c30.384,0,58.95,11.832,80.436,33.317C425.553,175.179,425.553,247.346,381.201,291.697z" fill="url(#rnd-hash__SVGID_1_)"/><path d="M258.117,115.27l3.604,9.328c2.592-1.001,5.267-1.887,7.949-2.632l-2.676-9.636 C263.998,113.162,261.012,114.151,258.117,115.27z" fill="#3bf488ff"/><path d="M206.264,162.886l8.985,4.389c8.299-16.992,22.191-30.997,39.118-39.433l-4.46-8.95 C231.022,128.304,215.523,143.928,206.264,162.886z" fill="#1e15a3ff"/></g></svg>\`
|
|
1113
1127
|
<svg width="20px" height="20px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" id="rnd-hash__search" version="1.1" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="rnd-hash__search_1_"><linearGradient gradientUnits="userSpaceOnUse" id="rnd-hash__SVGID_1_" x1="57.9473" x2="407.9511" y1="351.4531" y2="149.3783"><stop offset="0" stop-color="#F14D5C"/><stop offset="0.1309" stop-color="#F05454"/><stop offset="0.3346" stop-color="#3bf488"/><stop offset="0.3492" stop-color="#ED683C"/><stop offset="0.714" stop-color="#1e15a3"/><stop offset="1" stop-color="#FDC70C"/></linearGradient><path d="M300.766,87.509c-33.056,0-64.133,12.873-87.507,36.246c-23.374,23.374-36.247,54.451-36.247,87.507 c0,24.234,6.927,47.4,19.83,67.252l-12.669,12.669c0,0.001-0.001,0.001-0.001,0.001l-90.664,90.665 c-8.353,8.354-7.88,22.418,1.055,31.353l4.261,4.262c4.669,4.668,10.736,7.028,16.658,7.028c5.417,0,10.713-1.976,14.703-5.966 l15.405-15.405l75.259-75.259l12.671-12.672c19.85,12.9,43.014,19.826,67.246,19.826c33.056,0,64.133-12.873,87.506-36.247 c48.252-48.251,48.252-126.762,0-175.014C364.898,100.382,333.821,87.509,300.766,87.509z M138.518,396.049 c-4.454,4.453-12.178,3.979-17.219-1.063l-4.261-4.262c-5.036-5.035-5.509-12.756-1.055-17.21l71.38-71.38 c3.284,4.164,6.834,8.16,10.601,11.926c3.766,3.766,7.764,7.318,11.935,10.607L138.518,396.049z M105.894,410.391l-4.261-4.26 c-5.036-5.036-5.509-12.757-1.055-17.211l2.902-2.902c0.936,4.27,3.101,8.393,6.486,11.779l4.261,4.26 c3.392,3.393,7.523,5.549,11.799,6.483l-2.914,2.914C118.658,415.908,110.934,415.432,105.894,410.391z M213.788,320.779 c0.002-0.003,0.005-0.006,0.007-0.008l0,0L213.788,320.779z M217.033,317.534c-4.201-3.248-8.229-6.775-11.998-10.544 c-3.771-3.771-7.295-7.797-10.537-11.99l8.214-8.214c3.233,4.181,6.749,8.185,10.547,11.982c3.8,3.8,7.806,7.317,11.989,10.552 L217.033,317.534z M381.201,291.697c-21.485,21.485-50.052,33.318-80.436,33.318c-30.385,0-58.951-11.833-80.436-33.318 c-21.485-21.484-33.318-50.051-33.318-80.436s11.833-58.95,33.318-80.436c21.485-21.485,50.051-33.317,80.436-33.317 c30.384,0,58.95,11.832,80.436,33.317C425.553,175.179,425.553,247.346,381.201,291.697z" fill="url(#rnd-hash__SVGID_1_)"/><path d="M258.117,115.27l3.604,9.328c2.592-1.001,5.267-1.887,7.949-2.632l-2.676-9.636 C263.998,113.162,261.012,114.151,258.117,115.27z" fill="#3bf488ff"/><path d="M206.264,162.886l8.985,4.389c8.299-16.992,22.191-30.997,39.118-39.433l-4.46-8.95 C231.022,128.304,215.523,143.928,206.264,162.886z" fill="#1e15a3ff"/></g></svg>
|
|
1114
1128
|
|
|
@@ -1134,6 +1148,18 @@ Term
|
|
|
1134
1148
|
<svg width="20px" height="20px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" id="rnd-hash__search" version="1.1" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="rnd-hash__search_1_"><linearGradient gradientUnits="userSpaceOnUse" id="rnd-hash__SVGID_1_" x1="57.9473" x2="407.9511" y1="351.4531" y2="149.3783"><stop offset="0" stop-color="#F14D5C"/><stop offset="0.1309" stop-color="#F05454"/><stop offset="0.3346" stop-color="#3bf488"/><stop offset="0.3492" stop-color="#ED683C"/><stop offset="0.714" stop-color="#1e15a3"/><stop offset="1" stop-color="#FDC70C"/></linearGradient><path d="M300.766,87.509c-33.056,0-64.133,12.873-87.507,36.246c-23.374,23.374-36.247,54.451-36.247,87.507 c0,24.234,6.927,47.4,19.83,67.252l-12.669,12.669c0,0.001-0.001,0.001-0.001,0.001l-90.664,90.665 c-8.353,8.354-7.88,22.418,1.055,31.353l4.261,4.262c4.669,4.668,10.736,7.028,16.658,7.028c5.417,0,10.713-1.976,14.703-5.966 l15.405-15.405l75.259-75.259l12.671-12.672c19.85,12.9,43.014,19.826,67.246,19.826c33.056,0,64.133-12.873,87.506-36.247 c48.252-48.251,48.252-126.762,0-175.014C364.898,100.382,333.821,87.509,300.766,87.509z M138.518,396.049 c-4.454,4.453-12.178,3.979-17.219-1.063l-4.261-4.262c-5.036-5.035-5.509-12.756-1.055-17.21l71.38-71.38 c3.284,4.164,6.834,8.16,10.601,11.926c3.766,3.766,7.764,7.318,11.935,10.607L138.518,396.049z M105.894,410.391l-4.261-4.26 c-5.036-5.036-5.509-12.757-1.055-17.211l2.902-2.902c0.936,4.27,3.101,8.393,6.486,11.779l4.261,4.26 c3.392,3.393,7.523,5.549,11.799,6.483l-2.914,2.914C118.658,415.908,110.934,415.432,105.894,410.391z M213.788,320.779 c0.002-0.003,0.005-0.006,0.007-0.008l0,0L213.788,320.779z M217.033,317.534c-4.201-3.248-8.229-6.775-11.998-10.544 c-3.771-3.771-7.295-7.797-10.537-11.99l8.214-8.214c3.233,4.181,6.749,8.185,10.547,11.982c3.8,3.8,7.806,7.317,11.989,10.552 L217.033,317.534z M381.201,291.697c-21.485,21.485-50.052,33.318-80.436,33.318c-30.385,0-58.951-11.833-80.436-33.318 c-21.485-21.484-33.318-50.051-33.318-80.436s11.833-58.95,33.318-80.436c21.485-21.485,50.051-33.317,80.436-33.317 c30.384,0,58.95,11.832,80.436,33.317C425.553,175.179,425.553,247.346,381.201,291.697z" fill="url(#rnd-hash__SVGID_1_)"/><path d="M258.117,115.27l3.604,9.328c2.592-1.001,5.267-1.887,7.949-2.632l-2.676-9.636 C263.998,113.162,261.012,114.151,258.117,115.27z" fill="#3bf488ff"/><path d="M206.264,162.886l8.985,4.389c8.299-16.992,22.191-30.997,39.118-39.433l-4.46-8.95 C231.022,128.304,215.523,143.928,206.264,162.886z" fill="#1e15a3ff"/></g></svg>
|
|
1135
1149
|
and more text
|
|
1136
1150
|
|
|
1151
|
+
12. \`{inline=false}\`
|
|
1152
|
+
{inline=false}
|
|
1153
|
+
|
|
1154
|
+
13. \`{width=100 inline=false}\`
|
|
1155
|
+
{width=100 inline=false}
|
|
1156
|
+
|
|
1157
|
+
14. \`<svg width="20px" height="20px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" id="rnd-hash__search" version="1.1" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="rnd-hash__search_1_"><linearGradient gradientUnits="userSpaceOnUse" id="rnd-hash__SVGID_1_" x1="57.9473" x2="407.9511" y1="351.4531" y2="149.3783"><stop offset="0" stop-color="#F14D5C"/><stop offset="0.1309" stop-color="#F05454"/><stop offset="0.3346" stop-color="#3bf488"/><stop offset="0.3492" stop-color="#ED683C"/><stop offset="0.714" stop-color="#1e15a3"/><stop offset="1" stop-color="#FDC70C"/></linearGradient><path d="M300.766,87.509c-33.056,0-64.133,12.873-87.507,36.246c-23.374,23.374-36.247,54.451-36.247,87.507 c0,24.234,6.927,47.4,19.83,67.252l-12.669,12.669c0,0.001-0.001,0.001-0.001,0.001l-90.664,90.665 c-8.353,8.354-7.88,22.418,1.055,31.353l4.261,4.262c4.669,4.668,10.736,7.028,16.658,7.028c5.417,0,10.713-1.976,14.703-5.966 l15.405-15.405l75.259-75.259l12.671-12.672c19.85,12.9,43.014,19.826,67.246,19.826c33.056,0,64.133-12.873,87.506-36.247 c48.252-48.251,48.252-126.762,0-175.014C364.898,100.382,333.821,87.509,300.766,87.509z M138.518,396.049 c-4.454,4.453-12.178,3.979-17.219-1.063l-4.261-4.262c-5.036-5.035-5.509-12.756-1.055-17.21l71.38-71.38 c3.284,4.164,6.834,8.16,10.601,11.926c3.766,3.766,7.764,7.318,11.935,10.607L138.518,396.049z M105.894,410.391l-4.261-4.26 c-5.036-5.036-5.509-12.757-1.055-17.211l2.902-2.902c0.936,4.27,3.101,8.393,6.486,11.779l4.261,4.26 c3.392,3.393,7.523,5.549,11.799,6.483l-2.914,2.914C118.658,415.908,110.934,415.432,105.894,410.391z M213.788,320.779 c0.002-0.003,0.005-0.006,0.007-0.008l0,0L213.788,320.779z M217.033,317.534c-4.201-3.248-8.229-6.775-11.998-10.544 c-3.771-3.771-7.295-7.797-10.537-11.99l8.214-8.214c3.233,4.181,6.749,8.185,10.547,11.982c3.8,3.8,7.806,7.317,11.989,10.552 L217.033,317.534z M381.201,291.697c-21.485,21.485-50.052,33.318-80.436,33.318c-30.385,0-58.951-11.833-80.436-33.318 c-21.485-21.484-33.318-50.051-33.318-80.436s11.833-58.95,33.318-80.436c21.485-21.485,50.051-33.317,80.436-33.317 c30.384,0,58.95,11.832,80.436,33.317C425.553,175.179,425.553,247.346,381.201,291.697z" fill="url(#rnd-hash__SVGID_1_)"/><path d="M258.117,115.27l3.604,9.328c2.592-1.001,5.267-1.887,7.949-2.632l-2.676-9.636 C263.998,113.162,261.012,114.151,258.117,115.27z" fill="#3bf488ff"/><path d="M206.264,162.886l8.985,4.389c8.299-16.992,22.191-30.997,39.118-39.433l-4.46-8.95 C231.022,128.304,215.523,143.928,206.264,162.886z" fill="#1e15a3ff"/></g></svg>\`
|
|
1158
|
+
<svg width="20px" height="20px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" id="rnd-hash__search" version="1.1" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="rnd-hash__search_1_"><linearGradient gradientUnits="userSpaceOnUse" id="rnd-hash__SVGID_1_" x1="57.9473" x2="407.9511" y1="351.4531" y2="149.3783"><stop offset="0" stop-color="#F14D5C"/><stop offset="0.1309" stop-color="#F05454"/><stop offset="0.3346" stop-color="#3bf488"/><stop offset="0.3492" stop-color="#ED683C"/><stop offset="0.714" stop-color="#1e15a3"/><stop offset="1" stop-color="#FDC70C"/></linearGradient><path d="M300.766,87.509c-33.056,0-64.133,12.873-87.507,36.246c-23.374,23.374-36.247,54.451-36.247,87.507 c0,24.234,6.927,47.4,19.83,67.252l-12.669,12.669c0,0.001-0.001,0.001-0.001,0.001l-90.664,90.665 c-8.353,8.354-7.88,22.418,1.055,31.353l4.261,4.262c4.669,4.668,10.736,7.028,16.658,7.028c5.417,0,10.713-1.976,14.703-5.966 l15.405-15.405l75.259-75.259l12.671-12.672c19.85,12.9,43.014,19.826,67.246,19.826c33.056,0,64.133-12.873,87.506-36.247 c48.252-48.251,48.252-126.762,0-175.014C364.898,100.382,333.821,87.509,300.766,87.509z M138.518,396.049 c-4.454,4.453-12.178,3.979-17.219-1.063l-4.261-4.262c-5.036-5.035-5.509-12.756-1.055-17.21l71.38-71.38 c3.284,4.164,6.834,8.16,10.601,11.926c3.766,3.766,7.764,7.318,11.935,10.607L138.518,396.049z M105.894,410.391l-4.261-4.26 c-5.036-5.036-5.509-12.757-1.055-17.211l2.902-2.902c0.936,4.27,3.101,8.393,6.486,11.779l4.261,4.26 c3.392,3.393,7.523,5.549,11.799,6.483l-2.914,2.914C118.658,415.908,110.934,415.432,105.894,410.391z M213.788,320.779 c0.002-0.003,0.005-0.006,0.007-0.008l0,0L213.788,320.779z M217.033,317.534c-4.201-3.248-8.229-6.775-11.998-10.544 c-3.771-3.771-7.295-7.797-10.537-11.99l8.214-8.214c3.233,4.181,6.749,8.185,10.547,11.982c3.8,3.8,7.806,7.317,11.989,10.552 L217.033,317.534z M381.201,291.697c-21.485,21.485-50.052,33.318-80.436,33.318c-30.385,0-58.951-11.833-80.436-33.318 c-21.485-21.484-33.318-50.051-33.318-80.436s11.833-58.95,33.318-80.436c21.485-21.485,50.051-33.317,80.436-33.317 c30.384,0,58.95,11.832,80.436,33.317C425.553,175.179,425.553,247.346,381.201,291.697z" fill="url(#rnd-hash__SVGID_1_)"/><path d="M258.117,115.27l3.604,9.328c2.592-1.001,5.267-1.887,7.949-2.632l-2.676-9.636 C263.998,113.162,261.012,114.151,258.117,115.27z" fill="#3bf488ff"/><path d="M206.264,162.886l8.985,4.389c8.299-16.992,22.191-30.997,39.118-39.433l-4.46-8.95 C231.022,128.304,215.523,143.928,206.264,162.886z" fill="#1e15a3ff"/></g></svg>
|
|
1159
|
+
|
|
1160
|
+
15. \`<svg width="20px" height="20px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" id="rnd-hash__search" version="1.1" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="rnd-hash__search_1_"><linearGradient gradientUnits="userSpaceOnUse" id="rnd-hash__SVGID_1_" x1="57.9473" x2="407.9511" y1="351.4531" y2="149.3783"><stop offset="0" stop-color="#F14D5C"/><stop offset="0.1309" stop-color="#F05454"/><stop offset="0.3346" stop-color="#3bf488"/><stop offset="0.3492" stop-color="#ED683C"/><stop offset="0.714" stop-color="#1e15a3"/><stop offset="1" stop-color="#FDC70C"/></linearGradient><path d="M300.766,87.509c-33.056,0-64.133,12.873-87.507,36.246c-23.374,23.374-36.247,54.451-36.247,87.507 c0,24.234,6.927,47.4,19.83,67.252l-12.669,12.669c0,0.001-0.001,0.001-0.001,0.001l-90.664,90.665 c-8.353,8.354-7.88,22.418,1.055,31.353l4.261,4.262c4.669,4.668,10.736,7.028,16.658,7.028c5.417,0,10.713-1.976,14.703-5.966 l15.405-15.405l75.259-75.259l12.671-12.672c19.85,12.9,43.014,19.826,67.246,19.826c33.056,0,64.133-12.873,87.506-36.247 c48.252-48.251,48.252-126.762,0-175.014C364.898,100.382,333.821,87.509,300.766,87.509z M138.518,396.049 c-4.454,4.453-12.178,3.979-17.219-1.063l-4.261-4.262c-5.036-5.035-5.509-12.756-1.055-17.21l71.38-71.38 c3.284,4.164,6.834,8.16,10.601,11.926c3.766,3.766,7.764,7.318,11.935,10.607L138.518,396.049z M105.894,410.391l-4.261-4.26 c-5.036-5.036-5.509-12.757-1.055-17.211l2.902-2.902c0.936,4.27,3.101,8.393,6.486,11.779l4.261,4.26 c3.392,3.393,7.523,5.549,11.799,6.483l-2.914,2.914C118.658,415.908,110.934,415.432,105.894,410.391z M213.788,320.779 c0.002-0.003,0.005-0.006,0.007-0.008l0,0L213.788,320.779z M217.033,317.534c-4.201-3.248-8.229-6.775-11.998-10.544 c-3.771-3.771-7.295-7.797-10.537-11.99l8.214-8.214c3.233,4.181,6.749,8.185,10.547,11.982c3.8,3.8,7.806,7.317,11.989,10.552 L217.033,317.534z M381.201,291.697c-21.485,21.485-50.052,33.318-80.436,33.318c-30.385,0-58.951-11.833-80.436-33.318 c-21.485-21.484-33.318-50.051-33.318-80.436s11.833-58.95,33.318-80.436c21.485-21.485,50.051-33.317,80.436-33.317 c30.384,0,58.95,11.832,80.436,33.317C425.553,175.179,425.553,247.346,381.201,291.697z" fill="url(#rnd-hash__SVGID_1_)"/><path d="M258.117,115.27l3.604,9.328c2.592-1.001,5.267-1.887,7.949-2.632l-2.676-9.636 C263.998,113.162,261.012,114.151,258.117,115.27z" fill="#3bf488ff"/><path d="M206.264,162.886l8.985,4.389c8.299-16.992,22.191-30.997,39.118-39.433l-4.46-8.95 C231.022,128.304,215.523,143.928,206.264,162.886z" fill="#1e15a3ff"/></g></svg>\`
|
|
1161
|
+
<svg width="20px" height="20px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" id="rnd-hash__search" version="1.1" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="rnd-hash__search_1_"><linearGradient gradientUnits="userSpaceOnUse" id="rnd-hash__SVGID_1_" x1="57.9473" x2="407.9511" y1="351.4531" y2="149.3783"><stop offset="0" stop-color="#F14D5C"/><stop offset="0.1309" stop-color="#F05454"/><stop offset="0.3346" stop-color="#3bf488"/><stop offset="0.3492" stop-color="#ED683C"/><stop offset="0.714" stop-color="#1e15a3"/><stop offset="1" stop-color="#FDC70C"/></linearGradient><path d="M300.766,87.509c-33.056,0-64.133,12.873-87.507,36.246c-23.374,23.374-36.247,54.451-36.247,87.507 c0,24.234,6.927,47.4,19.83,67.252l-12.669,12.669c0,0.001-0.001,0.001-0.001,0.001l-90.664,90.665 c-8.353,8.354-7.88,22.418,1.055,31.353l4.261,4.262c4.669,4.668,10.736,7.028,16.658,7.028c5.417,0,10.713-1.976,14.703-5.966 l15.405-15.405l75.259-75.259l12.671-12.672c19.85,12.9,43.014,19.826,67.246,19.826c33.056,0,64.133-12.873,87.506-36.247 c48.252-48.251,48.252-126.762,0-175.014C364.898,100.382,333.821,87.509,300.766,87.509z M138.518,396.049 c-4.454,4.453-12.178,3.979-17.219-1.063l-4.261-4.262c-5.036-5.035-5.509-12.756-1.055-17.21l71.38-71.38 c3.284,4.164,6.834,8.16,10.601,11.926c3.766,3.766,7.764,7.318,11.935,10.607L138.518,396.049z M105.894,410.391l-4.261-4.26 c-5.036-5.036-5.509-12.757-1.055-17.211l2.902-2.902c0.936,4.27,3.101,8.393,6.486,11.779l4.261,4.26 c3.392,3.393,7.523,5.549,11.799,6.483l-2.914,2.914C118.658,415.908,110.934,415.432,105.894,410.391z M213.788,320.779 c0.002-0.003,0.005-0.006,0.007-0.008l0,0L213.788,320.779z M217.033,317.534c-4.201-3.248-8.229-6.775-11.998-10.544 c-3.771-3.771-7.295-7.797-10.537-11.99l8.214-8.214c3.233,4.181,6.749,8.185,10.547,11.982c3.8,3.8,7.806,7.317,11.989,10.552 L217.033,317.534z M381.201,291.697c-21.485,21.485-50.052,33.318-80.436,33.318c-30.385,0-58.951-11.833-80.436-33.318 c-21.485-21.484-33.318-50.051-33.318-80.436s11.833-58.95,33.318-80.436c21.485-21.485,50.051-33.317,80.436-33.317 c30.384,0,58.95,11.832,80.436,33.317C425.553,175.179,425.553,247.346,381.201,291.697z" fill="url(#rnd-hash__SVGID_1_)"/><path d="M258.117,115.27l3.604,9.328c2.592-1.001,5.267-1.887,7.949-2.632l-2.676-9.636 C263.998,113.162,261.012,114.151,258.117,115.27z" fill="#3bf488ff"/><path d="M206.264,162.886l8.985,4.389c8.299-16.992,22.191-30.997,39.118-39.433l-4.46-8.95 C231.022,128.304,215.523,143.928,206.264,162.886z" fill="#1e15a3ff"/></g></svg>
|
|
1162
|
+
|
|
1137
1163
|
20. Сodeblocks - no inline svg
|
|
1138
1164
|
\`\`\`
|
|
1139
1165
|
Codeblock fence
|
|
@@ -1422,5 +1448,3 @@ exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true 21`] = `
|
|
|
1422
1448
|
path: toc.yaml
|
|
1423
1449
|
"
|
|
1424
1450
|
`;
|
|
1425
|
-
|
|
1426
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true 22`] = `"{"redirects":{},"fileTrie":{"trie":{"1":{"file":{"ext":".md","toc":"t1"}},"included-item":{"file":{"ext":".md","toc":"t1"}},"sub":{"children":{"folder":{"children":{"item-1":{"file":{"ext":".md","toc":"t1"}}}}}},"mermaid":{"file":{"ext":".md","toc":"t1"}},"latex":{"file":{"ext":".md","toc":"t1"}},"images":{"file":{"ext":".md","toc":"t1"}},"autotitle":{"file":{"ext":".md","toc":"t1"}},"includes":{"file":{"ext":".md","toc":"t1"},"children":{"level11":{"file":{"ext":".md","toc":"t1"}}}},"level0":{"file":{"ext":".md","toc":"t1"}},"level1":{"children":{"level1":{"file":{"ext":".md","toc":"t0"}},"level2":{"children":{"level2":{"file":{"ext":".md","toc":"t0"}}}}}}},"tocMapping":{"t0":"level1/toc.yaml","t1":"toc.yaml"}},"yfmConfig":{"allowHtml":true}}"`;
|
|
@@ -33,8 +33,7 @@ exports[`Regression > internal > filelist 1`] = `
|
|
|
33
33
|
"openapi/test-controller/index.md",
|
|
34
34
|
"redirects.yaml",
|
|
35
35
|
"sub/folder/item-1.md",
|
|
36
|
-
"toc.yaml"
|
|
37
|
-
"yfm-build-manifest.json"
|
|
36
|
+
"toc.yaml"
|
|
38
37
|
]"
|
|
39
38
|
`;
|
|
40
39
|
|
|
@@ -67,8 +66,7 @@ exports[`Regression > internal > filelist 2`] = `
|
|
|
67
66
|
"openapi/test-controller/getWithPayloadResponse.html",
|
|
68
67
|
"openapi/test-controller/index.html",
|
|
69
68
|
"sub/folder/item-1.html",
|
|
70
|
-
"toc.js"
|
|
71
|
-
"yfm-build-manifest.json"
|
|
69
|
+
"toc.js"
|
|
72
70
|
]"
|
|
73
71
|
`;
|
|
74
72
|
|
|
@@ -681,15 +679,13 @@ path: toc.yaml
|
|
|
681
679
|
"
|
|
682
680
|
`;
|
|
683
681
|
|
|
684
|
-
exports[`Regression > internal 28`] = `
|
|
685
|
-
|
|
686
|
-
exports[`Regression > internal 29`] = `
|
|
682
|
+
exports[`Regression > internal 28`] = `
|
|
687
683
|
"preprocess:
|
|
688
684
|
mergeAutotitles: true
|
|
689
685
|
"
|
|
690
686
|
`;
|
|
691
687
|
|
|
692
|
-
exports[`Regression > internal
|
|
688
|
+
exports[`Regression > internal 29`] = `
|
|
693
689
|
"<!DOCTYPE html>
|
|
694
690
|
<html lang="ru" dir="ltr">
|
|
695
691
|
<head>
|
|
@@ -717,7 +713,7 @@ exports[`Regression > internal 30`] = `
|
|
|
717
713
|
</html>"
|
|
718
714
|
`;
|
|
719
715
|
|
|
720
|
-
exports[`Regression > internal
|
|
716
|
+
exports[`Regression > internal 30`] = `
|
|
721
717
|
"<!DOCTYPE html>
|
|
722
718
|
<html lang="ru" dir="ltr">
|
|
723
719
|
<head>
|
|
@@ -745,7 +741,7 @@ exports[`Regression > internal 31`] = `
|
|
|
745
741
|
</html>"
|
|
746
742
|
`;
|
|
747
743
|
|
|
748
|
-
exports[`Regression > internal
|
|
744
|
+
exports[`Regression > internal 31`] = `
|
|
749
745
|
"<!DOCTYPE html>
|
|
750
746
|
<html lang="ru" dir="ltr">
|
|
751
747
|
<head>
|
|
@@ -773,7 +769,7 @@ exports[`Regression > internal 32`] = `
|
|
|
773
769
|
</html>"
|
|
774
770
|
`;
|
|
775
771
|
|
|
776
|
-
exports[`Regression > internal
|
|
772
|
+
exports[`Regression > internal 32`] = `
|
|
777
773
|
"<!DOCTYPE html>
|
|
778
774
|
<html lang="ru" dir="ltr">
|
|
779
775
|
<head>
|
|
@@ -801,7 +797,7 @@ exports[`Regression > internal 33`] = `
|
|
|
801
797
|
</html>"
|
|
802
798
|
`;
|
|
803
799
|
|
|
804
|
-
exports[`Regression > internal
|
|
800
|
+
exports[`Regression > internal 33`] = `
|
|
805
801
|
"<!DOCTYPE html>
|
|
806
802
|
<html lang="ru" dir="ltr">
|
|
807
803
|
<head>
|
|
@@ -829,7 +825,7 @@ exports[`Regression > internal 34`] = `
|
|
|
829
825
|
</html>"
|
|
830
826
|
`;
|
|
831
827
|
|
|
832
|
-
exports[`Regression > internal
|
|
828
|
+
exports[`Regression > internal 34`] = `
|
|
833
829
|
"<!DOCTYPE html>
|
|
834
830
|
<html lang="ru" dir="ltr">
|
|
835
831
|
<head>
|
|
@@ -857,7 +853,7 @@ exports[`Regression > internal 35`] = `
|
|
|
857
853
|
</html>"
|
|
858
854
|
`;
|
|
859
855
|
|
|
860
|
-
exports[`Regression > internal
|
|
856
|
+
exports[`Regression > internal 35`] = `
|
|
861
857
|
"<!DOCTYPE html>
|
|
862
858
|
<html lang="ru" dir="ltr">
|
|
863
859
|
<head>
|
|
@@ -885,7 +881,7 @@ exports[`Regression > internal 36`] = `
|
|
|
885
881
|
</html>"
|
|
886
882
|
`;
|
|
887
883
|
|
|
888
|
-
exports[`Regression > internal
|
|
884
|
+
exports[`Regression > internal 36`] = `
|
|
889
885
|
"<!DOCTYPE html>
|
|
890
886
|
<html lang="ru" dir="ltr">
|
|
891
887
|
<head>
|
|
@@ -913,7 +909,7 @@ exports[`Regression > internal 37`] = `
|
|
|
913
909
|
</html>"
|
|
914
910
|
`;
|
|
915
911
|
|
|
916
|
-
exports[`Regression > internal
|
|
912
|
+
exports[`Regression > internal 37`] = `
|
|
917
913
|
"<!DOCTYPE html>
|
|
918
914
|
<html lang="ru" dir="ltr">
|
|
919
915
|
<head>
|
|
@@ -941,7 +937,7 @@ exports[`Regression > internal 38`] = `
|
|
|
941
937
|
</html>"
|
|
942
938
|
`;
|
|
943
939
|
|
|
944
|
-
exports[`Regression > internal
|
|
940
|
+
exports[`Regression > internal 38`] = `
|
|
945
941
|
"<!DOCTYPE html>
|
|
946
942
|
<html lang="ru" dir="ltr">
|
|
947
943
|
<head>
|
|
@@ -969,7 +965,7 @@ exports[`Regression > internal 39`] = `
|
|
|
969
965
|
</html>"
|
|
970
966
|
`;
|
|
971
967
|
|
|
972
|
-
exports[`Regression > internal
|
|
968
|
+
exports[`Regression > internal 39`] = `
|
|
973
969
|
"<!DOCTYPE html>
|
|
974
970
|
<html lang="ru" dir="ltr">
|
|
975
971
|
<head>
|
|
@@ -997,7 +993,7 @@ exports[`Regression > internal 40`] = `
|
|
|
997
993
|
</html>"
|
|
998
994
|
`;
|
|
999
995
|
|
|
1000
|
-
exports[`Regression > internal
|
|
996
|
+
exports[`Regression > internal 40`] = `
|
|
1001
997
|
"<!DOCTYPE html>
|
|
1002
998
|
<html lang="ru" dir="ltr">
|
|
1003
999
|
<head>
|
|
@@ -1025,7 +1021,7 @@ exports[`Regression > internal 41`] = `
|
|
|
1025
1021
|
</html>"
|
|
1026
1022
|
`;
|
|
1027
1023
|
|
|
1028
|
-
exports[`Regression > internal
|
|
1024
|
+
exports[`Regression > internal 41`] = `
|
|
1029
1025
|
"<!DOCTYPE html>
|
|
1030
1026
|
<html lang="ru" dir="ltr">
|
|
1031
1027
|
<head>
|
|
@@ -1053,7 +1049,7 @@ exports[`Regression > internal 42`] = `
|
|
|
1053
1049
|
</html>"
|
|
1054
1050
|
`;
|
|
1055
1051
|
|
|
1056
|
-
exports[`Regression > internal
|
|
1052
|
+
exports[`Regression > internal 42`] = `
|
|
1057
1053
|
"<!DOCTYPE html>
|
|
1058
1054
|
<html lang="ru" dir="ltr">
|
|
1059
1055
|
<head>
|
|
@@ -1081,7 +1077,7 @@ exports[`Regression > internal 43`] = `
|
|
|
1081
1077
|
</html>"
|
|
1082
1078
|
`;
|
|
1083
1079
|
|
|
1084
|
-
exports[`Regression > internal
|
|
1080
|
+
exports[`Regression > internal 43`] = `
|
|
1085
1081
|
"<!DOCTYPE html>
|
|
1086
1082
|
<html lang="ru" dir="ltr">
|
|
1087
1083
|
<head>
|
|
@@ -1109,9 +1105,9 @@ exports[`Regression > internal 44`] = `
|
|
|
1109
1105
|
</html>"
|
|
1110
1106
|
`;
|
|
1111
1107
|
|
|
1112
|
-
exports[`Regression > internal
|
|
1108
|
+
exports[`Regression > internal 44`] = `"window.__DATA__.data.toc = {"items":[{"name":"Use merged","href":"merge/merge.html","id":"UUID"},{"name":"Multitoc item","href":"1.html","id":"UUID"},{"name":"Merged item","href":"merge/merged.html","id":"UUID"}],"path":"merge/toc.yaml","id":"UUID"};"`;
|
|
1113
1109
|
|
|
1114
|
-
exports[`Regression > internal
|
|
1110
|
+
exports[`Regression > internal 45`] = `
|
|
1115
1111
|
"<!DOCTYPE html>
|
|
1116
1112
|
<html lang="ru" dir="ltr">
|
|
1117
1113
|
<head>
|
|
@@ -1139,7 +1135,7 @@ exports[`Regression > internal 46`] = `
|
|
|
1139
1135
|
</html>"
|
|
1140
1136
|
`;
|
|
1141
1137
|
|
|
1142
|
-
exports[`Regression > internal
|
|
1138
|
+
exports[`Regression > internal 46`] = `
|
|
1143
1139
|
"<!DOCTYPE html>
|
|
1144
1140
|
<html lang="ru" dir="ltr">
|
|
1145
1141
|
<head>
|
|
@@ -1169,7 +1165,7 @@ exports[`Regression > internal 47`] = `
|
|
|
1169
1165
|
</html>"
|
|
1170
1166
|
`;
|
|
1171
1167
|
|
|
1172
|
-
exports[`Regression > internal
|
|
1168
|
+
exports[`Regression > internal 47`] = `
|
|
1173
1169
|
"<!DOCTYPE html>
|
|
1174
1170
|
<html lang="ru" dir="ltr">
|
|
1175
1171
|
<head>
|
|
@@ -1199,7 +1195,7 @@ exports[`Regression > internal 48`] = `
|
|
|
1199
1195
|
</html>"
|
|
1200
1196
|
`;
|
|
1201
1197
|
|
|
1202
|
-
exports[`Regression > internal
|
|
1198
|
+
exports[`Regression > internal 48`] = `
|
|
1203
1199
|
"<!DOCTYPE html>
|
|
1204
1200
|
<html lang="ru" dir="ltr">
|
|
1205
1201
|
<head>
|
|
@@ -1227,7 +1223,7 @@ exports[`Regression > internal 49`] = `
|
|
|
1227
1223
|
</html>"
|
|
1228
1224
|
`;
|
|
1229
1225
|
|
|
1230
|
-
exports[`Regression > internal
|
|
1226
|
+
exports[`Regression > internal 49`] = `
|
|
1231
1227
|
"<!DOCTYPE html>
|
|
1232
1228
|
<html lang="ru" dir="ltr">
|
|
1233
1229
|
<head>
|
|
@@ -1255,6 +1251,4 @@ exports[`Regression > internal 50`] = `
|
|
|
1255
1251
|
</html>"
|
|
1256
1252
|
`;
|
|
1257
1253
|
|
|
1258
|
-
exports[`Regression > internal
|
|
1259
|
-
|
|
1260
|
-
exports[`Regression > internal 52`] = `"{"redirects":{"files":[{"from":"c.md","to":"d.md"}],"common":[{"from":"./a.md","to":"./b.md"}]},"fileTrie":{"trie":{"1":{"file":{"ext":".md","toc":"t1"}},"openapi":{"children":{"index":{"file":{"ext":".md","toc":"t1"}},"test-controller":{"children":{"index":{"file":{"ext":".md","toc":"t1"}},"getWithPayloadResponse":{"file":{"ext":".md","toc":"t1"}}}}}},"index":{"file":{"ext":".yaml","toc":"t1"}},"merge":{"children":{"merged":{"file":{"ext":".md","toc":"t0"}},"merge":{"file":{"ext":".md","toc":"t0"}}}},"included-item":{"file":{"ext":".md","toc":"t1"}},"sub":{"children":{"folder":{"children":{"item-1":{"file":{"ext":".md","toc":"t1"}}}}}},"mermaid":{"file":{"ext":".md","toc":"t1"}},"latex":{"file":{"ext":".md","toc":"t1"}},"images":{"file":{"ext":".md","toc":"t1"}},"autotitle":{"file":{"ext":".md","toc":"t1"}},"includes":{"file":{"ext":".md","toc":"t1"}},"generic":{"children":{"1":{"file":{"ext":".md","toc":"t1"}},"2":{"file":{"ext":".md","toc":"t1"}},"3":{"file":{"ext":".md","toc":"t1"}},"Sub notes":{"children":{"1":{"file":{"ext":".md","toc":"t1"}},"2":{"file":{"ext":".md","toc":"t1"}}}}}}},"tocMapping":{"t0":"merge/toc.yaml","t1":"toc.yaml"}},"yfmConfig":{"preprocess":{"mergeAutotitles":true}}}"`;
|
|
1254
|
+
exports[`Regression > internal 50`] = `"window.__DATA__.data.toc = {"items":[{"name":"Verbose root (index.yaml) will be transformed to index.html","href":"index.html","id":"UUID"},{"name":"Root will be transformed to index.html","href":"index.html","id":"UUID"},{"name":"Md item with not_var syntax","href":"1.html","id":"UUID"},{"name":"Md item named without extension","href":"1.html","id":"UUID"},{"name":"Item with empty href","id":"UUID"},{"name":"Multitoc item","href":"merge/merged.html","id":"UUID"},{"name":"Included Item","href":"included-item.html","id":"UUID"},{"name":"Named include (items is Object here - this is not an error)","items":[{"name":"Item 1","href":"sub/folder/item-1.html","id":"UUID"}],"id":"UUID"},{"href":"mermaid.html","name":"Mermaid usage","id":"UUID"},{"name":"Latex usage","href":"latex.html","id":"UUID"},{"name":"Images","href":"images.html","id":"UUID"},{"name":"Autotitle","href":"autotitle.html","id":"UUID"},{"name":"includes","href":"includes.html","id":"UUID"},{"name":"generic","items":[{"name":"Note 1","href":"generic/1.html","id":"UUID"},{"name":"Note 1","href":"generic/2.html","id":"UUID"},{"name":"3","href":"generic/3.html","id":"UUID"},{"name":"Sub notes","items":[{"name":"Sub note 1","href":"generic/Sub notes/1.html","id":"UUID"},{"name":"Sub note 2","href":"generic/Sub notes/2.html","id":"UUID"}],"id":"UUID"}],"id":"UUID"},{"name":"openapi","items":[{"name":"Overview","href":"openapi/index.html","id":"UUID"},{"name":"test-controller","items":[{"name":"Overview","href":"openapi/test-controller/index.html","id":"UUID"},{"href":"openapi/test-controller/getWithPayloadResponse.html","name":"Simple get operation. тест новой верстки 3","id":"UUID"}],"id":"UUID"}],"id":"UUID"}],"path":"toc.yaml","id":"UUID"};"`;
|
|
@@ -4,8 +4,7 @@ exports[`Restricted access > Nested restricted access > filelist 1`] = `
|
|
|
4
4
|
"[
|
|
5
5
|
"plugins/index.md",
|
|
6
6
|
"project/index.md",
|
|
7
|
-
"toc.yaml"
|
|
8
|
-
"yfm-build-manifest.json"
|
|
7
|
+
"toc.yaml"
|
|
9
8
|
]"
|
|
10
9
|
`;
|
|
11
10
|
|
|
@@ -61,15 +60,12 @@ path: toc.yaml
|
|
|
61
60
|
"
|
|
62
61
|
`;
|
|
63
62
|
|
|
64
|
-
exports[`Restricted access > Nested restricted access 4`] = `"{"redirects":{},"fileTrie":{"trie":{"plugins":{"children":{"index":{"file":{"ext":".md","toc":"t0"}}}},"project":{"children":{"index":{"file":{"ext":".md","toc":"t0"}}}}},"tocMapping":{"t0":"toc.yaml"}},"yfmConfig":{}}"`;
|
|
65
|
-
|
|
66
63
|
exports[`Restricted access > Nested toc restricted access > filelist 1`] = `
|
|
67
64
|
"[
|
|
68
65
|
"a1.md",
|
|
69
66
|
"folder1/a1.md",
|
|
70
67
|
"folder1/folder2/a1.md",
|
|
71
|
-
"toc.yaml"
|
|
72
|
-
"yfm-build-manifest.json"
|
|
68
|
+
"toc.yaml"
|
|
73
69
|
]"
|
|
74
70
|
`;
|
|
75
71
|
|
|
@@ -141,8 +137,6 @@ path: toc.yaml
|
|
|
141
137
|
"
|
|
142
138
|
`;
|
|
143
139
|
|
|
144
|
-
exports[`Restricted access > Nested toc restricted access 5`] = `"{"redirects":{},"fileTrie":{"trie":{"a1":{"file":{"ext":".md","toc":"t0"}},"folder1":{"children":{"a1":{"file":{"ext":".md","toc":"t0"}},"folder2":{"children":{"a1":{"file":{"ext":".md","toc":"t0"}}}}}}},"tocMapping":{"t0":"toc.yaml"}},"yfmConfig":{}}"`;
|
|
145
|
-
|
|
146
140
|
exports[`Restricted access > Simple restricted access > filelist 1`] = `
|
|
147
141
|
"[
|
|
148
142
|
"index.md",
|
|
@@ -150,8 +144,7 @@ exports[`Restricted access > Simple restricted access > filelist 1`] = `
|
|
|
150
144
|
"plugins/index2.md",
|
|
151
145
|
"plugins/index3.md",
|
|
152
146
|
"plugins/index4.md",
|
|
153
|
-
"toc.yaml"
|
|
154
|
-
"yfm-build-manifest.json"
|
|
147
|
+
"toc.yaml"
|
|
155
148
|
]"
|
|
156
149
|
`;
|
|
157
150
|
|
|
@@ -249,5 +242,3 @@ items:
|
|
|
249
242
|
path: toc.yaml
|
|
250
243
|
"
|
|
251
244
|
`;
|
|
252
|
-
|
|
253
|
-
exports[`Restricted access > Simple restricted access 7`] = `"{"redirects":{},"fileTrie":{"trie":{"index":{"file":{"ext":".md","toc":"t0"}},"plugins":{"children":{"index":{"file":{"ext":".md","toc":"t0"}},"index2":{"file":{"ext":".md","toc":"t0"}},"index3":{"file":{"ext":".md","toc":"t0"}},"index4":{"file":{"ext":".md","toc":"t0"}}}}},"tocMapping":{"t0":"toc.yaml"}},"yfmConfig":{}}"`;
|
|
@@ -93,15 +93,15 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
93
93
|
<base href="../" />
|
|
94
94
|
<title>Documentation | Documentation</title>
|
|
95
95
|
<link rel="canonical" href="ar/index.html">
|
|
96
|
-
<link rel="alternate" href="en/index.html" hreflang="en" />
|
|
97
96
|
<link rel="alternate" href="ar/index.html" hreflang="ar" />
|
|
97
|
+
<link rel="alternate" href="en/index.html" hreflang="en" />
|
|
98
98
|
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
99
99
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
100
100
|
</head>
|
|
101
101
|
<body class="g-root g-root_theme_light">
|
|
102
102
|
<div id="root"></div>
|
|
103
103
|
<script type="application/json" id="diplodoc-state">
|
|
104
|
-
{"data":{"leading":true,"data":{"title":"Documentation","links":[{"title":"Documentation","href":"ar/page.html"}]},"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"alternate":[{"href":"
|
|
104
|
+
{"data":{"leading":true,"data":{"title":"Documentation","links":[{"title":"Documentation","href":"ar/page.html"}]},"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"alternate":[{"href":"ar/index.html","hreflang":"ar"},{"href":"en/index.html","hreflang":"en"}],"canonical":"ar/index.html","vcsPath":"ar/index.yaml"},"title":"Documentation"},"router":{"pathname":"ar/index","depth":2,"base":"../"},"lang":"ar","langs":["ar","en"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
105
105
|
</script>
|
|
106
106
|
<script type="application/javascript">
|
|
107
107
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -124,15 +124,15 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
124
124
|
<base href="../" />
|
|
125
125
|
<title>Documentation</title>
|
|
126
126
|
<link rel="canonical" href="ar/page.html">
|
|
127
|
-
<link rel="alternate" href="en/page.html" hreflang="en" />
|
|
128
127
|
<link rel="alternate" href="ar/page.html" hreflang="ar" />
|
|
128
|
+
<link rel="alternate" href="en/page.html" hreflang="en" />
|
|
129
129
|
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
130
130
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
131
131
|
</head>
|
|
132
132
|
<body class="g-root g-root_theme_light">
|
|
133
133
|
<div id="root"></div>
|
|
134
134
|
<script type="application/json" id="diplodoc-state">
|
|
135
|
-
{"data":{"leading":false,"html":"<p>توثيق</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"alternate":[{"href":"
|
|
135
|
+
{"data":{"leading":false,"html":"<p>توثيق</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"alternate":[{"href":"ar/page.html","hreflang":"ar"},{"href":"en/page.html","hreflang":"en"}],"canonical":"ar/page.html","vcsPath":"ar/page.md"},"headings":[],"title":""},"router":{"pathname":"ar/page","depth":2,"base":"../"},"lang":"ar","langs":["ar","en"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
136
136
|
</script>
|
|
137
137
|
<script type="application/javascript">
|
|
138
138
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -157,15 +157,15 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
157
157
|
<base href="../" />
|
|
158
158
|
<title>Documentation | Documentation</title>
|
|
159
159
|
<link rel="canonical" href="en/index.html">
|
|
160
|
-
<link rel="alternate" href="en/index.html" hreflang="en" />
|
|
161
160
|
<link rel="alternate" href="ar/index.html" hreflang="ar" />
|
|
161
|
+
<link rel="alternate" href="en/index.html" hreflang="en" />
|
|
162
162
|
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
163
163
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
164
164
|
</head>
|
|
165
165
|
<body class="g-root g-root_theme_light">
|
|
166
166
|
<div id="root"></div>
|
|
167
167
|
<script type="application/json" id="diplodoc-state">
|
|
168
|
-
{"data":{"leading":true,"data":{"title":"Documentation","description":"","links":[{"title":"Getting started with Documentation","description":"This guide will show you the basics of working with Documentation","href":"en/page.html"}]},"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"alternate":[{"href":"
|
|
168
|
+
{"data":{"leading":true,"data":{"title":"Documentation","description":"","links":[{"title":"Getting started with Documentation","description":"This guide will show you the basics of working with Documentation","href":"en/page.html"}]},"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"alternate":[{"href":"ar/index.html","hreflang":"ar"},{"href":"en/index.html","hreflang":"en"}],"canonical":"en/index.html","title":"Documentation","noIndex":true,"vcsPath":"en/index.yaml"},"title":"Documentation"},"router":{"pathname":"en/index","depth":2,"base":"../"},"lang":"en","langs":["ar","en"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
169
169
|
</script>
|
|
170
170
|
<script type="application/javascript">
|
|
171
171
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -188,8 +188,8 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
188
188
|
<base href="../" />
|
|
189
189
|
<title>Documentation</title>
|
|
190
190
|
<link rel="canonical" href="en/page.html">
|
|
191
|
-
<link rel="alternate" href="en/page.html" hreflang="en" />
|
|
192
191
|
<link rel="alternate" href="ar/page.html" hreflang="ar" />
|
|
192
|
+
<link rel="alternate" href="en/page.html" hreflang="en" />
|
|
193
193
|
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
194
194
|
<meta name="yfm" content="builder">
|
|
195
195
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
@@ -197,7 +197,7 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
197
197
|
<body class="g-root g-root_theme_light">
|
|
198
198
|
<div id="root"></div>
|
|
199
199
|
<script type="application/json" id="diplodoc-state">
|
|
200
|
-
{"data":{"leading":false,"html":"<p>Lorem</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"},{"name":"yfm","content":"builder"}],"alternate":[{"href":"
|
|
200
|
+
{"data":{"leading":false,"html":"<p>Lorem</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"},{"name":"yfm","content":"builder"}],"alternate":[{"href":"ar/page.html","hreflang":"ar"},{"href":"en/page.html","hreflang":"en"}],"canonical":"en/page.html","vcsPath":"en/page.md"},"headings":[],"title":""},"router":{"pathname":"en/page","depth":2,"base":"../"},"lang":"en","langs":["ar","en"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
201
201
|
</script>
|
|
202
202
|
<script type="application/javascript">
|
|
203
203
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -7,8 +7,7 @@ exports[`Translate command > build translated md files and remove no-translate d
|
|
|
7
7
|
"openapi/index.md",
|
|
8
8
|
"openapi/test-controller/getWithPayloadResponse.md",
|
|
9
9
|
"openapi/test-controller/index.md",
|
|
10
|
-
"toc.yaml"
|
|
11
|
-
"yfm-build-manifest.json"
|
|
10
|
+
"toc.yaml"
|
|
12
11
|
]"
|
|
13
12
|
`;
|
|
14
13
|
|
|
@@ -312,8 +311,6 @@ path: toc.yaml
|
|
|
312
311
|
"
|
|
313
312
|
`;
|
|
314
313
|
|
|
315
|
-
exports[`Translate command > build translated md files and remove no-translate directives 7`] = `"{"redirects":{},"fileTrie":{"trie":{"openapi":{"children":{"index":{"file":{"ext":".md","toc":"t0"}},"test-controller":{"children":{"index":{"file":{"ext":".md","toc":"t0"}},"getWithPayloadResponse":{"file":{"ext":".md","toc":"t0"}}}}}},"index":{"file":{"ext":".md","toc":"t0"}},"no-translate":{"file":{"ext":".md","toc":"t0"}}},"tocMapping":{"t0":"toc.yaml"}},"yfmConfig":{}}"`;
|
|
316
|
-
|
|
317
314
|
exports[`Translate command > build translated static files and remove no-translate directives > filelist 1`] = `
|
|
318
315
|
"[
|
|
319
316
|
"index.md",
|
|
@@ -321,8 +318,7 @@ exports[`Translate command > build translated static files and remove no-transla
|
|
|
321
318
|
"openapi/index.md",
|
|
322
319
|
"openapi/test-controller/getWithPayloadResponse.md",
|
|
323
320
|
"openapi/test-controller/index.md",
|
|
324
|
-
"toc.yaml"
|
|
325
|
-
"yfm-build-manifest.json"
|
|
321
|
+
"toc.yaml"
|
|
326
322
|
]"
|
|
327
323
|
`;
|
|
328
324
|
|
|
@@ -626,8 +622,6 @@ path: toc.yaml
|
|
|
626
622
|
"
|
|
627
623
|
`;
|
|
628
624
|
|
|
629
|
-
exports[`Translate command > build translated static files and remove no-translate directives 7`] = `"{"redirects":{},"fileTrie":{"trie":{"openapi":{"children":{"index":{"file":{"ext":".md","toc":"t0"}},"test-controller":{"children":{"index":{"file":{"ext":".md","toc":"t0"}},"getWithPayloadResponse":{"file":{"ext":".md","toc":"t0"}}}}}},"index":{"file":{"ext":".md","toc":"t0"}},"no-translate":{"file":{"ext":".md","toc":"t0"}}},"tocMapping":{"t0":"toc.yaml"}},"yfmConfig":{}}"`;
|
|
630
|
-
|
|
631
625
|
exports[`Translate command > do not filter files on extract > filelist 1`] = `
|
|
632
626
|
"[
|
|
633
627
|
"es/_includes/test.md.skl",
|
package/e2e/errors.spec.ts
CHANGED
|
@@ -31,6 +31,17 @@ describe('Errors', () => {
|
|
|
31
31
|
]);
|
|
32
32
|
});
|
|
33
33
|
|
|
34
|
+
test('mocks/errors/object-validation', ({html}: TestResult) => {
|
|
35
|
+
expectErrors(html, [
|
|
36
|
+
'ERR Invalid toc structure in toc.yaml -> toc.yaml at items[1].name: found [object Object] value',
|
|
37
|
+
'ERR Invalid toc structure in toc.yaml -> toc.yaml at items[2].href: found [object Object] value',
|
|
38
|
+
'ERR Invalid toc structure in toc.yaml -> toc.yaml at items[3].items[0].name: found [object Object] value',
|
|
39
|
+
'ERR Invalid toc structure in toc.yaml -> toc.yaml at items[4].title: found [object Object] value',
|
|
40
|
+
'ERR Invalid toc structure in toc.yaml -> toc.yaml at items[5].label: found [object Object] value',
|
|
41
|
+
'ERR Invalid toc structure in toc.yaml -> toc.yaml at items[6].navigation: found [object Object] value',
|
|
42
|
+
]);
|
|
43
|
+
});
|
|
44
|
+
|
|
34
45
|
it('translate extract with filtered links', async () => {
|
|
35
46
|
const {inputPath, outputPath} = getTestPaths('mocks/errors/extract-filtered-link');
|
|
36
47
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {describe, it} from 'vitest';
|
|
2
|
+
|
|
3
|
+
import {TestAdapter, compareDirectories, getTestPaths} from '../fixtures';
|
|
4
|
+
|
|
5
|
+
describe('Pdf page mode', () => {
|
|
6
|
+
it('transforms links correctly', async () => {
|
|
7
|
+
const {inputPath, outputPath} = getTestPaths('mocks/pdf-page');
|
|
8
|
+
|
|
9
|
+
await TestAdapter.testBuildPass(inputPath, outputPath, {
|
|
10
|
+
md2md: false,
|
|
11
|
+
md2html: true,
|
|
12
|
+
args: '-j2',
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
await compareDirectories(`${outputPath}/pdf`);
|
|
16
|
+
});
|
|
17
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
items:
|
|
2
|
+
- name: Valid Item
|
|
3
|
+
href: valid.md
|
|
4
|
+
- name: {{some-var}}
|
|
5
|
+
href: invalid-name.md
|
|
6
|
+
- name: Invalid Href Item
|
|
7
|
+
href: {{some-var}}
|
|
8
|
+
- name: Parent Item
|
|
9
|
+
items:
|
|
10
|
+
- name: {{some-var}}
|
|
11
|
+
href: nested-invalid.md
|
|
12
|
+
- title: {{some-var}}
|
|
13
|
+
- label: {{some-var}}
|
|
14
|
+
- navigation: {{some-var}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# Page 3
|
|
@@ -27,7 +27,6 @@
|
|
|
27
27
|
6. `[{width=100 height=200}](https://yandex.com/images/search?text=mountain)`
|
|
28
28
|
[{width=100 height=200}](https://yandex.com/images/search?text=mountain)
|
|
29
29
|
|
|
30
|
-
|
|
31
30
|
7. `![title][code]{width=100 height=200}`
|
|
32
31
|
![title][code]{width=100 height=200}
|
|
33
32
|
|
|
@@ -53,40 +52,52 @@ Term
|
|
|
53
52
|

|
|
54
53
|
and more text
|
|
55
54
|
|
|
55
|
+
12. `{inline=false}`
|
|
56
|
+
{inline=false}
|
|
57
|
+
|
|
58
|
+
13. `{width=100 inline=false}`
|
|
59
|
+
{width=100 inline=false}
|
|
60
|
+
|
|
61
|
+
14. `{inline=true width=100 }`
|
|
62
|
+
{inline=true width=100 }
|
|
63
|
+
|
|
64
|
+
15. `![code svg image 15][code]{inline=true}`
|
|
65
|
+
![svg image 15][code]{inline=true}
|
|
66
|
+
|
|
56
67
|
20. Сodeblocks - no inline svg
|
|
57
68
|
```
|
|
58
69
|
Codeblock fence
|
|
59
|
-

|
|
60
71
|
```
|
|
61
72
|
|
|
62
73
|
````
|
|
63
74
|
Codeblock in codeblock
|
|
64
75
|
```
|
|
65
|
-

|
|
66
77
|
```
|
|
67
|
-

|
|
68
79
|
````
|
|
69
80
|
|
|
70
81
|
~~~
|
|
71
82
|
Codeblock tilda
|
|
72
|
-

|
|
73
84
|
~~~
|
|
74
85
|
|
|
75
86
|
```````md translate=no
|
|
76
87
|
Codeblock 10 fence
|
|
77
|
-

|
|
78
89
|
```````
|
|
79
90
|
|
|
80
91
|
Codeblock 4 spaces
|
|
81
|
-

|
|
82
93
|
row 3
|
|
83
94
|
|
|
84
95
|
1. Codeblock 4 spaces in list
|
|
85
96
|
|
|
86
|
-

|
|
87
98
|
1. Codeblock fence in list with bad gap
|
|
88
99
|
```
|
|
89
|
-

|
|
90
101
|
```
|
|
91
102
|
|
|
92
103
|
```md
|