@diplodoc/cli-tests 0.0.0-rc-disable-resolve-codeblock-17941220955 → 0.0.0-rc-fix-manifest-18002055289
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/e2e/__snapshots__/alternates.test.ts.snap +40 -43
- package/e2e/__snapshots__/bundles.spec.ts.snap +3 -3
- package/e2e/__snapshots__/include-toc.test.ts.snap +28 -20
- package/e2e/__snapshots__/load-custom-resources.spec.ts.snap +10 -10
- package/e2e/__snapshots__/metadata.spec.ts.snap +7 -7
- package/e2e/__snapshots__/plugin-corner-cases.spec.ts.snap +0 -0
- package/e2e/__snapshots__/preprocess.test.ts.snap +291 -48
- package/e2e/__snapshots__/regression.test.ts.snap +49 -61
- package/e2e/__snapshots__/restricted-access.test.ts.snap +12 -13
- package/e2e/__snapshots__/rtl.spec.ts.snap +6 -6
- package/e2e/__snapshots__/search.test.ts.snap +1 -1
- package/e2e/__snapshots__/single-page.spec.ts.snap +3 -3
- package/e2e/__snapshots__/skip-html-extension.spec.ts.snap +4 -4
- package/e2e/__snapshots__/translation.spec.ts.snap +8 -12
- package/e2e/alternates.test.ts +1 -0
- package/e2e/bundles.spec.ts +1 -0
- package/e2e/errors.spec.ts +18 -8
- package/e2e/generate-map.spec.ts +6 -2
- package/e2e/include-toc.test.ts +1 -0
- package/e2e/load-custom-resources.spec.ts +1 -0
- package/e2e/metadata.spec.ts +1 -0
- package/e2e/plugin-corner-cases.spec.ts +1 -0
- package/e2e/preprocess.test.ts +8 -5
- package/e2e/redirects-validation.spec.ts +5 -4
- package/e2e/regression.test.ts +1 -0
- package/e2e/restricted-access.test.ts +3 -5
- package/e2e/rtl.spec.ts +1 -0
- package/e2e/search.test.ts +1 -0
- package/e2e/single-page.spec.ts +1 -0
- package/e2e/skip-html-extension.spec.ts +1 -0
- package/e2e/translation.spec.ts +17 -6
- package/fixtures/cliAdapter.ts +7 -3
- package/fixtures/globals.d.ts +1 -1
- package/fixtures/runners/binary.ts +5 -2
- package/fixtures/runners/index.ts +2 -1
- package/fixtures/runners/source.ts +1 -1
- package/fixtures/utils/file.ts +20 -16
- package/fixtures/utils/test.ts +19 -19
- package/mocks/preprocess/input/autotitle.md +3 -0
- package/mocks/preprocess/input/includes/level1.md +9 -0
- package/mocks/preprocess/input/includes/level11.md +1 -0
- package/mocks/preprocess/input/includes/sub/level2.md +7 -0
- package/mocks/preprocess/input/level0.md +7 -0
- package/mocks/preprocess/input/level1/level1.md +7 -0
- package/mocks/preprocess/input/level1/level2/level2.md +6 -0
- package/mocks/preprocess/input/level1/toc.yaml +5 -0
- package/mocks/preprocess/input/toc.yaml +8 -0
- package/package.json +1 -1
|
@@ -12,7 +12,8 @@ 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"
|
|
15
|
+
"product2/toc.yaml",
|
|
16
|
+
"yfm-build-manifest.json"
|
|
16
17
|
]"
|
|
17
18
|
`;
|
|
18
19
|
|
|
@@ -34,7 +35,8 @@ This is the core content of Article 1.
|
|
|
34
35
|
|
|
35
36
|
exports[`Include toc > Nested toc inclusions with mixed including modes 2 > filelist 1`] = `
|
|
36
37
|
"[
|
|
37
|
-
"toc.yaml"
|
|
38
|
+
"toc.yaml",
|
|
39
|
+
"yfm-build-manifest.json"
|
|
38
40
|
]"
|
|
39
41
|
`;
|
|
40
42
|
|
|
@@ -53,6 +55,8 @@ path: toc.yaml
|
|
|
53
55
|
"
|
|
54
56
|
`;
|
|
55
57
|
|
|
58
|
+
exports[`Include toc > Nested toc inclusions with mixed including modes 2 2`] = `"{"redirects":{},"fileTrie":{"trie":{},"tocMapping":{"t0":"toc.yaml"}},"yfmConfig":{}}"`;
|
|
59
|
+
|
|
56
60
|
exports[`Include toc > Nested toc inclusions with mixed including modes 3`] = `
|
|
57
61
|
"title: Product 1 title
|
|
58
62
|
items:
|
|
@@ -125,7 +129,6 @@ metadata:
|
|
|
125
129
|
- name: generator
|
|
126
130
|
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
127
131
|
vcsPath: product2/p2.md
|
|
128
|
-
sourcePath: product2/p2.md
|
|
129
132
|
---
|
|
130
133
|
This is the product 2 specific article.
|
|
131
134
|
|
|
@@ -154,12 +157,15 @@ path: product2/toc.yaml
|
|
|
154
157
|
"
|
|
155
158
|
`;
|
|
156
159
|
|
|
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
|
+
|
|
157
162
|
exports[`Include toc > Toc is included in link mode > filelist 1`] = `
|
|
158
163
|
"[
|
|
159
164
|
"a1.md",
|
|
160
165
|
"folder1/a1.md",
|
|
161
166
|
"folder1/folder2/a1.md",
|
|
162
|
-
"toc.yaml"
|
|
167
|
+
"toc.yaml",
|
|
168
|
+
"yfm-build-manifest.json"
|
|
163
169
|
]"
|
|
164
170
|
`;
|
|
165
171
|
|
|
@@ -169,7 +175,6 @@ metadata:
|
|
|
169
175
|
- name: generator
|
|
170
176
|
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
171
177
|
vcsPath: a1.md
|
|
172
|
-
sourcePath: a1.md
|
|
173
178
|
---
|
|
174
179
|
This is the /a1.md file content.
|
|
175
180
|
"
|
|
@@ -181,7 +186,6 @@ metadata:
|
|
|
181
186
|
- name: generator
|
|
182
187
|
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
183
188
|
vcsPath: folder1/a1.md
|
|
184
|
-
sourcePath: folder1/a1.md
|
|
185
189
|
---
|
|
186
190
|
This is the /folder1/a1.md file content.
|
|
187
191
|
"
|
|
@@ -193,7 +197,6 @@ metadata:
|
|
|
193
197
|
- name: generator
|
|
194
198
|
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
195
199
|
vcsPath: folder1/folder2/a1.md
|
|
196
|
-
sourcePath: folder1/folder2/a1.md
|
|
197
200
|
---
|
|
198
201
|
This is the /folder1/folder1/a1.md file content.
|
|
199
202
|
"
|
|
@@ -215,6 +218,8 @@ path: toc.yaml
|
|
|
215
218
|
"
|
|
216
219
|
`;
|
|
217
220
|
|
|
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
|
+
|
|
218
223
|
exports[`Include toc > Toc is included inline, not as a new section > filelist 1`] = `
|
|
219
224
|
"[
|
|
220
225
|
".yfm",
|
|
@@ -223,7 +228,8 @@ exports[`Include toc > Toc is included inline, not as a new section > filelist 1
|
|
|
223
228
|
"fileB.md",
|
|
224
229
|
"fileC.md",
|
|
225
230
|
"fileX.md",
|
|
226
|
-
"toc.yaml"
|
|
231
|
+
"toc.yaml",
|
|
232
|
+
"yfm-build-manifest.json"
|
|
227
233
|
]"
|
|
228
234
|
`;
|
|
229
235
|
|
|
@@ -238,7 +244,6 @@ metadata:
|
|
|
238
244
|
- name: generator
|
|
239
245
|
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
240
246
|
vcsPath: file1.md
|
|
241
|
-
sourcePath: file1.md
|
|
242
247
|
---
|
|
243
248
|
# File 1
|
|
244
249
|
"
|
|
@@ -302,7 +307,6 @@ metadata:
|
|
|
302
307
|
- name: generator
|
|
303
308
|
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
304
309
|
vcsPath: fileX.md
|
|
305
|
-
sourcePath: fileX.md
|
|
306
310
|
---
|
|
307
311
|
# File X
|
|
308
312
|
"
|
|
@@ -324,11 +328,14 @@ path: toc.yaml
|
|
|
324
328
|
"
|
|
325
329
|
`;
|
|
326
330
|
|
|
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
|
+
|
|
327
333
|
exports[`Include toc > Toc root merge on non root dir > filelist 1`] = `
|
|
328
334
|
"[
|
|
329
335
|
".yfm",
|
|
330
336
|
"ru/index.yaml",
|
|
331
|
-
"ru/toc.yaml"
|
|
337
|
+
"ru/toc.yaml",
|
|
338
|
+
"yfm-build-manifest.json"
|
|
332
339
|
]"
|
|
333
340
|
`;
|
|
334
341
|
|
|
@@ -364,11 +371,14 @@ path: ru/toc.yaml
|
|
|
364
371
|
"
|
|
365
372
|
`;
|
|
366
373
|
|
|
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
|
+
|
|
367
376
|
exports[`Include toc > Toc with expressions > filelist 1`] = `
|
|
368
377
|
"[
|
|
369
378
|
"a1.md",
|
|
370
379
|
"index.yaml",
|
|
371
|
-
"toc.yaml"
|
|
380
|
+
"toc.yaml",
|
|
381
|
+
"yfm-build-manifest.json"
|
|
372
382
|
]"
|
|
373
383
|
`;
|
|
374
384
|
|
|
@@ -378,7 +388,6 @@ metadata:
|
|
|
378
388
|
- name: generator
|
|
379
389
|
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
380
390
|
vcsPath: a1.md
|
|
381
|
-
sourcePath: a1.md
|
|
382
391
|
---
|
|
383
392
|
This is the /a1.md file content.
|
|
384
393
|
"
|
|
@@ -394,7 +403,6 @@ meta:
|
|
|
394
403
|
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
395
404
|
title: Meta A
|
|
396
405
|
vcsPath: index.yaml
|
|
397
|
-
sourcePath: index.yaml
|
|
398
406
|
links:
|
|
399
407
|
- title: A1
|
|
400
408
|
description: A1 desc
|
|
@@ -412,6 +420,8 @@ path: toc.yaml
|
|
|
412
420
|
"
|
|
413
421
|
`;
|
|
414
422
|
|
|
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
|
+
|
|
415
425
|
exports[`Include toc > Toc with generic includer > filelist 1`] = `
|
|
416
426
|
"[
|
|
417
427
|
"test/index.md",
|
|
@@ -419,7 +429,8 @@ exports[`Include toc > Toc with generic includer > filelist 1`] = `
|
|
|
419
429
|
"test/sub/sub-2.md",
|
|
420
430
|
"test/sub/sub/sub-3.md",
|
|
421
431
|
"test/test.md",
|
|
422
|
-
"toc.yaml"
|
|
432
|
+
"toc.yaml",
|
|
433
|
+
"yfm-build-manifest.json"
|
|
423
434
|
]"
|
|
424
435
|
`;
|
|
425
436
|
|
|
@@ -429,7 +440,6 @@ metadata:
|
|
|
429
440
|
- name: generator
|
|
430
441
|
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
431
442
|
vcsPath: test/index.md
|
|
432
|
-
sourcePath: test/index.md
|
|
433
443
|
---
|
|
434
444
|
# H1
|
|
435
445
|
|
|
@@ -444,7 +454,6 @@ metadata:
|
|
|
444
454
|
- name: generator
|
|
445
455
|
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
446
456
|
vcsPath: test/sub/sub-1.md
|
|
447
|
-
sourcePath: test/sub/sub-1.md
|
|
448
457
|
---
|
|
449
458
|
# H1
|
|
450
459
|
|
|
@@ -460,7 +469,6 @@ metadata:
|
|
|
460
469
|
- name: generator
|
|
461
470
|
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
462
471
|
vcsPath: test/sub/sub-2.md
|
|
463
|
-
sourcePath: test/sub/sub-2.md
|
|
464
472
|
---
|
|
465
473
|
# H1"
|
|
466
474
|
`;
|
|
@@ -471,7 +479,6 @@ metadata:
|
|
|
471
479
|
- name: generator
|
|
472
480
|
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
473
481
|
vcsPath: test/sub/sub/sub-3.md
|
|
474
|
-
sourcePath: test/sub/sub/sub-3.md
|
|
475
482
|
---
|
|
476
483
|
# H1"
|
|
477
484
|
`;
|
|
@@ -482,7 +489,6 @@ metadata:
|
|
|
482
489
|
- name: generator
|
|
483
490
|
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
484
491
|
vcsPath: test/test.md
|
|
485
|
-
sourcePath: test/test.md
|
|
486
492
|
---
|
|
487
493
|
# H1"
|
|
488
494
|
`;
|
|
@@ -507,3 +513,5 @@ items:
|
|
|
507
513
|
path: toc.yaml
|
|
508
514
|
"
|
|
509
515
|
`;
|
|
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":{}}"`;
|
|
@@ -39,7 +39,7 @@ exports[`Allow load custom resources > md2html single page with custom resources
|
|
|
39
39
|
<body class="g-root g-root_theme_light">
|
|
40
40
|
<div id="root"></div>
|
|
41
41
|
<script type="application/json" id="diplodoc-state">
|
|
42
|
-
{"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":"page.html"}]},"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"],"title":"Documentation","noIndex":true,"vcsPath":"index.yaml"
|
|
42
|
+
{"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":"page.html"}]},"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"],"title":"Documentation","noIndex":true,"vcsPath":"index.yaml"},"title":"Documentation"},"router":{"pathname":"index","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
43
43
|
</script>
|
|
44
44
|
<script type="application/javascript">
|
|
45
45
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -72,7 +72,7 @@ exports[`Allow load custom resources > md2html single page with custom resources
|
|
|
72
72
|
<body class="g-root g-root_theme_light">
|
|
73
73
|
<div id="root"></div>
|
|
74
74
|
<script type="application/json" id="diplodoc-state">
|
|
75
|
-
{"data":{"leading":false,"html":"<p>Lorem</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"},{"name":"yfm","content":"builder in page"},{"name":"description","content":"Some test description"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"],"title":"Page Title","description":"Some test description","interface":{"toc":false,"favicon-src":"/favicon.ico"},"vcsPath":"page.md"
|
|
75
|
+
{"data":{"leading":false,"html":"<p>Lorem</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"},{"name":"yfm","content":"builder in page"},{"name":"description","content":"Some test description"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"],"title":"Page Title","description":"Some test description","interface":{"toc":false,"favicon-src":"/favicon.ico"},"vcsPath":"page.md"},"headings":[],"title":"Page Title"},"router":{"pathname":"page","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":false,"search":true,"feedback":true,"favicon-src":"/favicon.ico"}}
|
|
76
76
|
</script>
|
|
77
77
|
<script type="application/javascript">
|
|
78
78
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -102,7 +102,7 @@ exports[`Allow load custom resources > md2html single page with custom resources
|
|
|
102
102
|
<body class="g-root g-root_theme_light">
|
|
103
103
|
<div id="root"></div>
|
|
104
104
|
<script type="application/json" id="diplodoc-state">
|
|
105
|
-
{"data":{"leading":false,"html":"<p>Lorem</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"],"vcsPath":"project/config.md"
|
|
105
|
+
{"data":{"leading":false,"html":"<p>Lorem</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"],"vcsPath":"project/config.md"},"headings":[],"title":""},"router":{"pathname":"project/config","depth":2,"base":"../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
106
106
|
</script>
|
|
107
107
|
<script type="application/javascript">
|
|
108
108
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -191,7 +191,7 @@ exports[`Allow load custom resources > md2html with custom resources 2`] = `
|
|
|
191
191
|
<body class="g-root g-root_theme_light">
|
|
192
192
|
<div id="root"></div>
|
|
193
193
|
<script type="application/json" id="diplodoc-state">
|
|
194
|
-
{"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":"page.html"}]},"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"],"title":"Documentation","noIndex":true,"vcsPath":"index.yaml"
|
|
194
|
+
{"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":"page.html"}]},"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"],"title":"Documentation","noIndex":true,"vcsPath":"index.yaml"},"title":"Documentation"},"router":{"pathname":"index","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
195
195
|
</script>
|
|
196
196
|
<script type="application/javascript">
|
|
197
197
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -224,7 +224,7 @@ exports[`Allow load custom resources > md2html with custom resources 3`] = `
|
|
|
224
224
|
<body class="g-root g-root_theme_light">
|
|
225
225
|
<div id="root"></div>
|
|
226
226
|
<script type="application/json" id="diplodoc-state">
|
|
227
|
-
{"data":{"leading":false,"html":"<p>Lorem</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"},{"name":"yfm","content":"builder in page"},{"name":"description","content":"Some test description"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"],"title":"Page Title","description":"Some test description","interface":{"toc":false,"favicon-src":"/favicon.ico"},"vcsPath":"page.md"
|
|
227
|
+
{"data":{"leading":false,"html":"<p>Lorem</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"},{"name":"yfm","content":"builder in page"},{"name":"description","content":"Some test description"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"],"title":"Page Title","description":"Some test description","interface":{"toc":false,"favicon-src":"/favicon.ico"},"vcsPath":"page.md"},"headings":[],"title":"Page Title"},"router":{"pathname":"page","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":false,"search":true,"feedback":true,"favicon-src":"/favicon.ico"}}
|
|
228
228
|
</script>
|
|
229
229
|
<script type="application/javascript">
|
|
230
230
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -254,7 +254,7 @@ exports[`Allow load custom resources > md2html with custom resources 4`] = `
|
|
|
254
254
|
<body class="g-root g-root_theme_light">
|
|
255
255
|
<div id="root"></div>
|
|
256
256
|
<script type="application/json" id="diplodoc-state">
|
|
257
|
-
{"data":{"leading":false,"html":"<p>Lorem</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"],"vcsPath":"project/config.md"
|
|
257
|
+
{"data":{"leading":false,"html":"<p>Lorem</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"],"vcsPath":"project/config.md"},"headings":[],"title":""},"router":{"pathname":"project/config","depth":2,"base":"../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
258
258
|
</script>
|
|
259
259
|
<script type="application/javascript">
|
|
260
260
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -279,7 +279,8 @@ 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"
|
|
282
|
+
"toc.yaml",
|
|
283
|
+
"yfm-build-manifest.json"
|
|
283
284
|
]"
|
|
284
285
|
`;
|
|
285
286
|
|
|
@@ -306,7 +307,6 @@ meta:
|
|
|
306
307
|
title: Documentation
|
|
307
308
|
noIndex: true
|
|
308
309
|
vcsPath: index.yaml
|
|
309
|
-
sourcePath: index.yaml
|
|
310
310
|
links:
|
|
311
311
|
- title: Getting started with Documentation
|
|
312
312
|
description: This guide will show you the basics of working with Documentation
|
|
@@ -331,7 +331,6 @@ interface:
|
|
|
331
331
|
toc: false
|
|
332
332
|
favicon-src: /favicon.ico
|
|
333
333
|
vcsPath: page.md
|
|
334
|
-
sourcePath: page.md
|
|
335
334
|
---
|
|
336
335
|
|
|
337
336
|
Lorem"
|
|
@@ -347,7 +346,6 @@ style:
|
|
|
347
346
|
script:
|
|
348
347
|
- _assets/script/test1.js
|
|
349
348
|
vcsPath: project/config.md
|
|
350
|
-
sourcePath: project/config.md
|
|
351
349
|
---
|
|
352
350
|
Lorem"
|
|
353
351
|
`;
|
|
@@ -363,3 +361,5 @@ items:
|
|
|
363
361
|
path: toc.yaml
|
|
364
362
|
"
|
|
365
363
|
`;
|
|
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"]}}}"`;
|
|
@@ -25,7 +25,7 @@ exports[`Allow load custom resources > md2html with metadata 1`] = `
|
|
|
25
25
|
<body class="g-root g-root_theme_light">
|
|
26
26
|
<div id="root"></div>
|
|
27
27
|
<script type="application/json" id="diplodoc-state">
|
|
28
|
-
{"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":"page.html"}]},"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"},{"name":"test-yfm","content":"inline test"},{"name":"yfm-config","content":"config test"}],"title":"Documentation","noIndex":true,"vcsPath":"index.yaml"
|
|
28
|
+
{"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":"page.html"}]},"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"},{"name":"test-yfm","content":"inline test"},{"name":"yfm-config","content":"config test"}],"title":"Documentation","noIndex":true,"vcsPath":"index.yaml"},"title":"Documentation"},"router":{"pathname":"index","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
29
29
|
</script>
|
|
30
30
|
<script type="application/javascript">
|
|
31
31
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -58,7 +58,7 @@ exports[`Allow load custom resources > md2html with metadata 2`] = `
|
|
|
58
58
|
<body class="g-root g-root_theme_light">
|
|
59
59
|
<div id="root"></div>
|
|
60
60
|
<script type="application/json" id="diplodoc-state">
|
|
61
|
-
{"data":{"leading":false,"html":"<p>Lorem</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"},{"name":"test-yfm","content":"inline test"},{"name":"yfm-config","content":"config test"},{"name":"yfm","content":"builder in page"},{"name":"description","content":"Some test description"}],"title":"Page Title","description":"Some test description","interface":{"toc":false,"favicon-src":"/favicon.ico"},"vcsPath":"page.md"
|
|
61
|
+
{"data":{"leading":false,"html":"<p>Lorem</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"},{"name":"test-yfm","content":"inline test"},{"name":"yfm-config","content":"config test"},{"name":"yfm","content":"builder in page"},{"name":"description","content":"Some test description"}],"title":"Page Title","description":"Some test description","interface":{"toc":false,"favicon-src":"/favicon.ico"},"vcsPath":"page.md"},"headings":[],"title":"Page Title"},"router":{"pathname":"page","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":false,"search":true,"feedback":true,"favicon-src":"/favicon.ico"}}
|
|
62
62
|
</script>
|
|
63
63
|
<script type="application/javascript">
|
|
64
64
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -89,7 +89,7 @@ exports[`Allow load custom resources > md2html with metadata 3`] = `
|
|
|
89
89
|
<body class="g-root g-root_theme_light">
|
|
90
90
|
<div id="root"></div>
|
|
91
91
|
<script type="application/json" id="diplodoc-state">
|
|
92
|
-
{"data":{"leading":false,"html":"<p>Lorem</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"},{"name":"test-yfm","content":"inline test"},{"name":"yfm-config","content":"config test"},{"name":"yfm","value":"builder in config"}],"vcsPath":"project/config.md"
|
|
92
|
+
{"data":{"leading":false,"html":"<p>Lorem</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"},{"name":"test-yfm","content":"inline test"},{"name":"yfm-config","content":"config test"},{"name":"yfm","value":"builder in config"}],"vcsPath":"project/config.md"},"headings":[],"title":""},"router":{"pathname":"project/config","depth":2,"base":"../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
93
93
|
</script>
|
|
94
94
|
<script type="application/javascript">
|
|
95
95
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -110,7 +110,8 @@ 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"
|
|
113
|
+
"toc.yaml",
|
|
114
|
+
"yfm-build-manifest.json"
|
|
114
115
|
]"
|
|
115
116
|
`;
|
|
116
117
|
|
|
@@ -128,7 +129,6 @@ meta:
|
|
|
128
129
|
title: Documentation
|
|
129
130
|
noIndex: true
|
|
130
131
|
vcsPath: index.yaml
|
|
131
|
-
sourcePath: index.yaml
|
|
132
132
|
links:
|
|
133
133
|
- title: Getting started with Documentation
|
|
134
134
|
description: This guide will show you the basics of working with Documentation
|
|
@@ -153,7 +153,6 @@ interface:
|
|
|
153
153
|
toc: false
|
|
154
154
|
favicon-src: /favicon.ico
|
|
155
155
|
vcsPath: page.md
|
|
156
|
-
sourcePath: page.md
|
|
157
156
|
---
|
|
158
157
|
|
|
159
158
|
Lorem"
|
|
@@ -171,7 +170,6 @@ metadata:
|
|
|
171
170
|
- name: yfm
|
|
172
171
|
value: builder in config
|
|
173
172
|
vcsPath: project/config.md
|
|
174
|
-
sourcePath: project/config.md
|
|
175
173
|
---
|
|
176
174
|
|
|
177
175
|
Lorem"
|
|
@@ -188,3 +186,5 @@ items:
|
|
|
188
186
|
path: toc.yaml
|
|
189
187
|
"
|
|
190
188
|
`;
|
|
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":{}}"`;
|
|
Binary file
|