@diplodoc/cli-tests 5.11.6 → 5.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/e2e/__snapshots__/alternates.test.ts.snap +896 -0
- package/e2e/__snapshots__/bundles.spec.ts.snap +9 -3
- package/e2e/__snapshots__/include-toc.test.ts.snap +3 -13
- package/e2e/__snapshots__/load-custom-resources.spec.ts.snap +6 -9
- package/e2e/__snapshots__/metadata.spec.ts.snap +3 -6
- package/e2e/__snapshots__/plugin-corner-cases.spec.ts.snap +0 -0
- package/e2e/__snapshots__/preprocess.test.ts.snap +598 -20
- package/e2e/__snapshots__/regression.test.ts.snap +20 -36
- package/e2e/__snapshots__/restricted-access.test.ts.snap +0 -10
- package/e2e/__snapshots__/rtl.spec.ts.snap +18 -6
- package/e2e/__snapshots__/search.test.ts.snap +1 -1
- package/e2e/__snapshots__/single-page.spec.ts.snap +9 -3
- package/e2e/__snapshots__/skip-html-extension.spec.ts.snap +4 -4
- package/e2e/__snapshots__/translation.spec.ts.snap +0 -10
- package/e2e/alternates.test.ts +34 -0
- package/e2e/preprocess.test.ts +4 -0
- package/e2e/translation.spec.ts +1 -1
- package/fixtures/utils/test.ts +2 -0
- package/mocks/alternates/input/.yfm +1 -0
- package/mocks/alternates/input/az/about.md +3 -0
- package/mocks/alternates/input/az/deep/test.md +3 -0
- package/mocks/alternates/input/az/index.yaml +3 -0
- package/mocks/alternates/input/az/toc.yaml +6 -0
- package/mocks/alternates/input/en/about.md +3 -0
- package/mocks/alternates/input/en/deep/test.md +3 -0
- package/mocks/alternates/input/en/index.yaml +3 -0
- package/mocks/alternates/input/en/toc.yaml +6 -0
- package/mocks/alternates/input/ru/about.md +8 -0
- package/mocks/alternates/input/ru/deep/test.md +3 -0
- package/mocks/alternates/input/ru/index.yaml +3 -0
- package/mocks/alternates/input/ru/toc.yaml +6 -0
- package/mocks/preprocess/input/_assets/1.svg +15 -0
- package/mocks/preprocess/input/autotitle.md +13 -0
- package/mocks/preprocess/input/images.md +92 -1
- package/package.json +1 -1
|
@@ -58,6 +58,8 @@ exports[`Check bundles > bundles list is correct 2`] = `
|
|
|
58
58
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
59
59
|
<base href="./" />
|
|
60
60
|
<title>Header | Skip html extension</title>
|
|
61
|
+
|
|
62
|
+
|
|
61
63
|
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
62
64
|
<meta name="availableLangs" content="en,ru">
|
|
63
65
|
<meta http-equiv="Content-Security-Policy" content="worker-src 'self';">
|
|
@@ -70,7 +72,7 @@ exports[`Check bundles > bundles list is correct 2`] = `
|
|
|
70
72
|
<body class="g-root g-root_theme_light">
|
|
71
73
|
<div id="root"></div>
|
|
72
74
|
<script type="application/json" id="diplodoc-state">
|
|
73
|
-
{"data":{"leading":false,"html":"<p>Content</p>/n<p><a href=\\"page1.html\\">Link 1</a><br />/n<a href=\\"page2.html\\">Link 2</a></p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"availableLangs":["en","ru"],"vcsPath":"index.md"
|
|
75
|
+
{"data":{"leading":false,"html":"<p>Content</p>/n<p><a href=\\"page1.html\\">Link 1</a><br />/n<a href=\\"page2.html\\">Link 2</a></p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"availableLangs":["en","ru"],"vcsPath":"index.md"},"headings":[],"title":"Header"},"router":{"pathname":"index","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc-header":false,"favicon-src":"https://storage.yandexcloud.net/diplodoc-www-assets/favicon/favicon.ico","toc":true,"search":true,"feedback":true},"search":{"provider":"local","tolerance":2,"confidense":"phrased","enabled":true,"api":"_search/api.js","link":"_search/ru/index.html"}}
|
|
74
76
|
</script>
|
|
75
77
|
<script type="application/javascript">
|
|
76
78
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -97,6 +99,8 @@ exports[`Check bundles > bundles list is correct 3`] = `
|
|
|
97
99
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
98
100
|
<base href="./" />
|
|
99
101
|
<title>Page 1 | Skip html extension</title>
|
|
102
|
+
|
|
103
|
+
|
|
100
104
|
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
101
105
|
<meta http-equiv="Content-Security-Policy" content="worker-src 'self';">
|
|
102
106
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
@@ -108,7 +112,7 @@ exports[`Check bundles > bundles list is correct 3`] = `
|
|
|
108
112
|
<body class="g-root g-root_theme_light">
|
|
109
113
|
<div id="root"></div>
|
|
110
114
|
<script type="application/json" id="diplodoc-state">
|
|
111
|
-
{"data":{"leading":false,"html":"<p><a href=\\"page2.html#hash\\">Link</a></p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"page1.md"
|
|
115
|
+
{"data":{"leading":false,"html":"<p><a href=\\"page2.html#hash\\">Link</a></p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"page1.md"},"headings":[],"title":"Page 1"},"router":{"pathname":"page1","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc-header":false,"favicon-src":"https://storage.yandexcloud.net/diplodoc-www-assets/favicon/favicon.ico","toc":true,"search":true,"feedback":true},"search":{"provider":"local","tolerance":2,"confidense":"phrased","enabled":true,"api":"_search/api.js","link":"_search/ru/index.html"}}
|
|
112
116
|
</script>
|
|
113
117
|
<script type="application/javascript">
|
|
114
118
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -135,6 +139,8 @@ exports[`Check bundles > bundles list is correct 4`] = `
|
|
|
135
139
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
136
140
|
<base href="./" />
|
|
137
141
|
<title>Page 2 | Skip html extension</title>
|
|
142
|
+
|
|
143
|
+
|
|
138
144
|
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
139
145
|
<meta http-equiv="Content-Security-Policy" content="worker-src 'self';">
|
|
140
146
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
@@ -146,7 +152,7 @@ exports[`Check bundles > bundles list is correct 4`] = `
|
|
|
146
152
|
<body class="g-root g-root_theme_light">
|
|
147
153
|
<div id="root"></div>
|
|
148
154
|
<script type="application/json" id="diplodoc-state">
|
|
149
|
-
{"data":{"leading":false,"html":"<h2 id=\\"hash\\"><a href=\\"page2.html#hash\\" class=\\"yfm-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">hash</span></a>hash</h2>/n<p><a href=\\"https://example.com\\" target=\\"_blank\\" rel=\\"noreferrer noopener\\">External link</a></p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"page2.md"
|
|
155
|
+
{"data":{"leading":false,"html":"<h2 id=\\"hash\\"><a href=\\"page2.html#hash\\" class=\\"yfm-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">hash</span></a>hash</h2>/n<p><a href=\\"https://example.com\\" target=\\"_blank\\" rel=\\"noreferrer noopener\\">External link</a></p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"page2.md"},"headings":[{"title":"hash","href":"page2.html#hash","level":2}],"title":"Page 2"},"router":{"pathname":"page2","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc-header":false,"favicon-src":"https://storage.yandexcloud.net/diplodoc-www-assets/favicon/favicon.ico","toc":true,"search":true,"feedback":true},"search":{"provider":"local","tolerance":2,"confidense":"phrased","enabled":true,"api":"_search/api.js","link":"_search/ru/index.html"}}
|
|
150
156
|
</script>
|
|
151
157
|
<script type="application/javascript">
|
|
152
158
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -125,7 +125,6 @@ metadata:
|
|
|
125
125
|
- name: generator
|
|
126
126
|
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
127
127
|
vcsPath: product2/p2.md
|
|
128
|
-
sourcePath: product2/p2.md
|
|
129
128
|
---
|
|
130
129
|
This is the product 2 specific article.
|
|
131
130
|
|
|
@@ -169,7 +168,6 @@ metadata:
|
|
|
169
168
|
- name: generator
|
|
170
169
|
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
171
170
|
vcsPath: a1.md
|
|
172
|
-
sourcePath: a1.md
|
|
173
171
|
---
|
|
174
172
|
This is the /a1.md file content.
|
|
175
173
|
"
|
|
@@ -181,7 +179,6 @@ metadata:
|
|
|
181
179
|
- name: generator
|
|
182
180
|
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
183
181
|
vcsPath: folder1/a1.md
|
|
184
|
-
sourcePath: folder1/a1.md
|
|
185
182
|
---
|
|
186
183
|
This is the /folder1/a1.md file content.
|
|
187
184
|
"
|
|
@@ -193,7 +190,6 @@ metadata:
|
|
|
193
190
|
- name: generator
|
|
194
191
|
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
195
192
|
vcsPath: folder1/folder2/a1.md
|
|
196
|
-
sourcePath: folder1/folder2/a1.md
|
|
197
193
|
---
|
|
198
194
|
This is the /folder1/folder1/a1.md file content.
|
|
199
195
|
"
|
|
@@ -238,7 +234,6 @@ metadata:
|
|
|
238
234
|
- name: generator
|
|
239
235
|
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
240
236
|
vcsPath: file1.md
|
|
241
|
-
sourcePath: file1.md
|
|
242
237
|
---
|
|
243
238
|
# File 1
|
|
244
239
|
"
|
|
@@ -302,7 +297,6 @@ metadata:
|
|
|
302
297
|
- name: generator
|
|
303
298
|
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
304
299
|
vcsPath: fileX.md
|
|
305
|
-
sourcePath: fileX.md
|
|
306
300
|
---
|
|
307
301
|
# File X
|
|
308
302
|
"
|
|
@@ -347,7 +341,10 @@ meta:
|
|
|
347
341
|
metadata:
|
|
348
342
|
- name: generator
|
|
349
343
|
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
344
|
+
alternate:
|
|
345
|
+
- ru/
|
|
350
346
|
sourcePath: ru/sub/folder/index.yaml
|
|
347
|
+
canonical: ru/index.html
|
|
351
348
|
vcsPath: ru/sub/folder/index.yaml
|
|
352
349
|
"
|
|
353
350
|
`;
|
|
@@ -375,7 +372,6 @@ metadata:
|
|
|
375
372
|
- name: generator
|
|
376
373
|
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
377
374
|
vcsPath: a1.md
|
|
378
|
-
sourcePath: a1.md
|
|
379
375
|
---
|
|
380
376
|
This is the /a1.md file content.
|
|
381
377
|
"
|
|
@@ -391,7 +387,6 @@ meta:
|
|
|
391
387
|
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
392
388
|
title: Meta A
|
|
393
389
|
vcsPath: index.yaml
|
|
394
|
-
sourcePath: index.yaml
|
|
395
390
|
links:
|
|
396
391
|
- title: A1
|
|
397
392
|
description: A1 desc
|
|
@@ -426,7 +421,6 @@ metadata:
|
|
|
426
421
|
- name: generator
|
|
427
422
|
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
428
423
|
vcsPath: test/index.md
|
|
429
|
-
sourcePath: test/index.md
|
|
430
424
|
---
|
|
431
425
|
# H1
|
|
432
426
|
|
|
@@ -441,7 +435,6 @@ metadata:
|
|
|
441
435
|
- name: generator
|
|
442
436
|
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
443
437
|
vcsPath: test/sub/sub-1.md
|
|
444
|
-
sourcePath: test/sub/sub-1.md
|
|
445
438
|
---
|
|
446
439
|
# H1
|
|
447
440
|
|
|
@@ -457,7 +450,6 @@ metadata:
|
|
|
457
450
|
- name: generator
|
|
458
451
|
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
459
452
|
vcsPath: test/sub/sub-2.md
|
|
460
|
-
sourcePath: test/sub/sub-2.md
|
|
461
453
|
---
|
|
462
454
|
# H1"
|
|
463
455
|
`;
|
|
@@ -468,7 +460,6 @@ metadata:
|
|
|
468
460
|
- name: generator
|
|
469
461
|
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
470
462
|
vcsPath: test/sub/sub/sub-3.md
|
|
471
|
-
sourcePath: test/sub/sub/sub-3.md
|
|
472
463
|
---
|
|
473
464
|
# H1"
|
|
474
465
|
`;
|
|
@@ -479,7 +470,6 @@ metadata:
|
|
|
479
470
|
- name: generator
|
|
480
471
|
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
481
472
|
vcsPath: test/test.md
|
|
482
|
-
sourcePath: test/test.md
|
|
483
473
|
---
|
|
484
474
|
# H1"
|
|
485
475
|
`;
|
|
@@ -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');
|
|
@@ -306,7 +306,6 @@ meta:
|
|
|
306
306
|
title: Documentation
|
|
307
307
|
noIndex: true
|
|
308
308
|
vcsPath: index.yaml
|
|
309
|
-
sourcePath: index.yaml
|
|
310
309
|
links:
|
|
311
310
|
- title: Getting started with Documentation
|
|
312
311
|
description: This guide will show you the basics of working with Documentation
|
|
@@ -331,7 +330,6 @@ interface:
|
|
|
331
330
|
toc: false
|
|
332
331
|
favicon-src: /favicon.ico
|
|
333
332
|
vcsPath: page.md
|
|
334
|
-
sourcePath: page.md
|
|
335
333
|
---
|
|
336
334
|
|
|
337
335
|
Lorem"
|
|
@@ -347,7 +345,6 @@ style:
|
|
|
347
345
|
script:
|
|
348
346
|
- _assets/script/test1.js
|
|
349
347
|
vcsPath: project/config.md
|
|
350
|
-
sourcePath: project/config.md
|
|
351
348
|
---
|
|
352
349
|
Lorem"
|
|
353
350
|
`;
|
|
@@ -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');
|
|
@@ -128,7 +128,6 @@ meta:
|
|
|
128
128
|
title: Documentation
|
|
129
129
|
noIndex: true
|
|
130
130
|
vcsPath: index.yaml
|
|
131
|
-
sourcePath: index.yaml
|
|
132
131
|
links:
|
|
133
132
|
- title: Getting started with Documentation
|
|
134
133
|
description: This guide will show you the basics of working with Documentation
|
|
@@ -153,7 +152,6 @@ interface:
|
|
|
153
152
|
toc: false
|
|
154
153
|
favicon-src: /favicon.ico
|
|
155
154
|
vcsPath: page.md
|
|
156
|
-
sourcePath: page.md
|
|
157
155
|
---
|
|
158
156
|
|
|
159
157
|
Lorem"
|
|
@@ -171,7 +169,6 @@ metadata:
|
|
|
171
169
|
- name: yfm
|
|
172
170
|
value: builder in config
|
|
173
171
|
vcsPath: project/config.md
|
|
174
|
-
sourcePath: project/config.md
|
|
175
172
|
---
|
|
176
173
|
|
|
177
174
|
Lorem"
|
|
Binary file
|