@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
|
@@ -0,0 +1,896 @@
|
|
|
1
|
+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
|
+
|
|
3
|
+
exports[`Alternates > internal > filelist 1`] = `
|
|
4
|
+
"[
|
|
5
|
+
".yfm",
|
|
6
|
+
"az/about.md",
|
|
7
|
+
"az/deep/test.md",
|
|
8
|
+
"az/index.yaml",
|
|
9
|
+
"az/toc.yaml",
|
|
10
|
+
"en/about.md",
|
|
11
|
+
"en/deep/test.md",
|
|
12
|
+
"en/index.yaml",
|
|
13
|
+
"en/toc.yaml",
|
|
14
|
+
"ru/about.md",
|
|
15
|
+
"ru/deep/test.md",
|
|
16
|
+
"ru/index.yaml",
|
|
17
|
+
"ru/toc.yaml"
|
|
18
|
+
]"
|
|
19
|
+
`;
|
|
20
|
+
|
|
21
|
+
exports[`Alternates > internal > filelist 2`] = `
|
|
22
|
+
"[
|
|
23
|
+
".yfm",
|
|
24
|
+
"az/about.html",
|
|
25
|
+
"az/deep/test.html",
|
|
26
|
+
"az/index.html",
|
|
27
|
+
"az/toc.js",
|
|
28
|
+
"en/about.html",
|
|
29
|
+
"en/deep/test.html",
|
|
30
|
+
"en/index.html",
|
|
31
|
+
"en/toc.js",
|
|
32
|
+
"index.html",
|
|
33
|
+
"ru/about.html",
|
|
34
|
+
"ru/deep/test.html",
|
|
35
|
+
"ru/index.html",
|
|
36
|
+
"ru/toc.js"
|
|
37
|
+
]"
|
|
38
|
+
`;
|
|
39
|
+
|
|
40
|
+
exports[`Alternates > internal 1`] = `
|
|
41
|
+
"langs: ['ru', 'en', 'az']
|
|
42
|
+
"
|
|
43
|
+
`;
|
|
44
|
+
|
|
45
|
+
exports[`Alternates > internal 2`] = `
|
|
46
|
+
"---
|
|
47
|
+
metadata:
|
|
48
|
+
- name: generator
|
|
49
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
50
|
+
alternate:
|
|
51
|
+
- az/about
|
|
52
|
+
- en/about
|
|
53
|
+
- ru/about
|
|
54
|
+
canonical: az/about.html
|
|
55
|
+
vcsPath: az/about.md
|
|
56
|
+
---
|
|
57
|
+
# About
|
|
58
|
+
|
|
59
|
+
Content
|
|
60
|
+
"
|
|
61
|
+
`;
|
|
62
|
+
|
|
63
|
+
exports[`Alternates > internal 3`] = `
|
|
64
|
+
"---
|
|
65
|
+
metadata:
|
|
66
|
+
- name: generator
|
|
67
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
68
|
+
alternate:
|
|
69
|
+
- az/deep/test
|
|
70
|
+
- en/deep/test
|
|
71
|
+
- ru/deep/test
|
|
72
|
+
canonical: az/deep/test.html
|
|
73
|
+
vcsPath: az/deep/test.md
|
|
74
|
+
---
|
|
75
|
+
# Test
|
|
76
|
+
|
|
77
|
+
Content
|
|
78
|
+
"
|
|
79
|
+
`;
|
|
80
|
+
|
|
81
|
+
exports[`Alternates > internal 4`] = `
|
|
82
|
+
"links:
|
|
83
|
+
- url: ./about
|
|
84
|
+
name: About
|
|
85
|
+
meta:
|
|
86
|
+
metadata:
|
|
87
|
+
- name: generator
|
|
88
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
89
|
+
alternate:
|
|
90
|
+
- az/
|
|
91
|
+
- en/
|
|
92
|
+
- ru/
|
|
93
|
+
canonical: az/index.html
|
|
94
|
+
vcsPath: az/index.yaml
|
|
95
|
+
"
|
|
96
|
+
`;
|
|
97
|
+
|
|
98
|
+
exports[`Alternates > internal 5`] = `
|
|
99
|
+
"href: index.yaml
|
|
100
|
+
items:
|
|
101
|
+
- href: about.md
|
|
102
|
+
name: About
|
|
103
|
+
- href: deep/test.md
|
|
104
|
+
name: Test
|
|
105
|
+
path: az/toc.yaml
|
|
106
|
+
"
|
|
107
|
+
`;
|
|
108
|
+
|
|
109
|
+
exports[`Alternates > internal 6`] = `
|
|
110
|
+
"---
|
|
111
|
+
metadata:
|
|
112
|
+
- name: generator
|
|
113
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
114
|
+
alternate:
|
|
115
|
+
- az/about
|
|
116
|
+
- en/about
|
|
117
|
+
- ru/about
|
|
118
|
+
canonical: en/about.html
|
|
119
|
+
vcsPath: en/about.md
|
|
120
|
+
---
|
|
121
|
+
# About
|
|
122
|
+
|
|
123
|
+
Content
|
|
124
|
+
"
|
|
125
|
+
`;
|
|
126
|
+
|
|
127
|
+
exports[`Alternates > internal 7`] = `
|
|
128
|
+
"---
|
|
129
|
+
metadata:
|
|
130
|
+
- name: generator
|
|
131
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
132
|
+
alternate:
|
|
133
|
+
- az/deep/test
|
|
134
|
+
- en/deep/test
|
|
135
|
+
- ru/deep/test
|
|
136
|
+
canonical: en/deep/test.html
|
|
137
|
+
vcsPath: en/deep/test.md
|
|
138
|
+
---
|
|
139
|
+
# Test
|
|
140
|
+
|
|
141
|
+
Content
|
|
142
|
+
"
|
|
143
|
+
`;
|
|
144
|
+
|
|
145
|
+
exports[`Alternates > internal 8`] = `
|
|
146
|
+
"links:
|
|
147
|
+
- url: ./about
|
|
148
|
+
name: About
|
|
149
|
+
meta:
|
|
150
|
+
metadata:
|
|
151
|
+
- name: generator
|
|
152
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
153
|
+
alternate:
|
|
154
|
+
- az/
|
|
155
|
+
- en/
|
|
156
|
+
- ru/
|
|
157
|
+
canonical: en/index.html
|
|
158
|
+
vcsPath: en/index.yaml
|
|
159
|
+
"
|
|
160
|
+
`;
|
|
161
|
+
|
|
162
|
+
exports[`Alternates > internal 9`] = `
|
|
163
|
+
"href: index.yaml
|
|
164
|
+
items:
|
|
165
|
+
- href: about.md
|
|
166
|
+
name: About
|
|
167
|
+
- href: deep/test.md
|
|
168
|
+
name: Test
|
|
169
|
+
path: en/toc.yaml
|
|
170
|
+
"
|
|
171
|
+
`;
|
|
172
|
+
|
|
173
|
+
exports[`Alternates > internal 10`] = `
|
|
174
|
+
"---
|
|
175
|
+
metadata:
|
|
176
|
+
- name: generator
|
|
177
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
178
|
+
alternate:
|
|
179
|
+
- az/about
|
|
180
|
+
- en/about
|
|
181
|
+
- ru/about
|
|
182
|
+
- https://my-other-site.com/about
|
|
183
|
+
canonical: ru/about.html
|
|
184
|
+
vcsPath: ru/about.md
|
|
185
|
+
---
|
|
186
|
+
|
|
187
|
+
# About
|
|
188
|
+
|
|
189
|
+
Content
|
|
190
|
+
"
|
|
191
|
+
`;
|
|
192
|
+
|
|
193
|
+
exports[`Alternates > internal 11`] = `
|
|
194
|
+
"---
|
|
195
|
+
metadata:
|
|
196
|
+
- name: generator
|
|
197
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
198
|
+
alternate:
|
|
199
|
+
- az/deep/test
|
|
200
|
+
- en/deep/test
|
|
201
|
+
- ru/deep/test
|
|
202
|
+
canonical: ru/deep/test.html
|
|
203
|
+
vcsPath: ru/deep/test.md
|
|
204
|
+
---
|
|
205
|
+
# Test
|
|
206
|
+
|
|
207
|
+
Content
|
|
208
|
+
"
|
|
209
|
+
`;
|
|
210
|
+
|
|
211
|
+
exports[`Alternates > internal 12`] = `
|
|
212
|
+
"links:
|
|
213
|
+
- url: ./about
|
|
214
|
+
name: About
|
|
215
|
+
meta:
|
|
216
|
+
metadata:
|
|
217
|
+
- name: generator
|
|
218
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
219
|
+
alternate:
|
|
220
|
+
- az/
|
|
221
|
+
- en/
|
|
222
|
+
- ru/
|
|
223
|
+
canonical: ru/index.html
|
|
224
|
+
vcsPath: ru/index.yaml
|
|
225
|
+
"
|
|
226
|
+
`;
|
|
227
|
+
|
|
228
|
+
exports[`Alternates > internal 13`] = `
|
|
229
|
+
"href: index.yaml
|
|
230
|
+
items:
|
|
231
|
+
- href: about.md
|
|
232
|
+
name: About
|
|
233
|
+
- href: deep/test.md
|
|
234
|
+
name: Test
|
|
235
|
+
path: ru/toc.yaml
|
|
236
|
+
"
|
|
237
|
+
`;
|
|
238
|
+
|
|
239
|
+
exports[`Alternates > internal 14`] = `
|
|
240
|
+
"langs: ['ru', 'en', 'az']
|
|
241
|
+
"
|
|
242
|
+
`;
|
|
243
|
+
|
|
244
|
+
exports[`Alternates > internal 15`] = `
|
|
245
|
+
"<!DOCTYPE html>
|
|
246
|
+
<html lang="az" dir="ltr">
|
|
247
|
+
<head>
|
|
248
|
+
<meta charset="utf-8">
|
|
249
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
250
|
+
<base href="../" />
|
|
251
|
+
<title>About</title>
|
|
252
|
+
<link rel="canonical" href="az/about.html">
|
|
253
|
+
<link rel="alternate" href="az/about.html" hreflang="az" />
|
|
254
|
+
<link rel="alternate" href="en/about.html" hreflang="en" />
|
|
255
|
+
<link rel="alternate" href="ru/about.html" hreflang="ru" />
|
|
256
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
257
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
258
|
+
</head>
|
|
259
|
+
<body class="g-root g-root_theme_light">
|
|
260
|
+
<div id="root"></div>
|
|
261
|
+
<script type="application/json" id="diplodoc-state">
|
|
262
|
+
{"data":{"leading":false,"html":"<p>Content</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"alternate":[{"href":"az/about.html","hreflang":"az"},{"href":"en/about.html","hreflang":"en"},{"href":"ru/about.html","hreflang":"ru"}],"canonical":"az/about.html","vcsPath":"az/about.md"},"headings":[],"title":"About"},"router":{"pathname":"az/about","depth":2,"base":"../"},"lang":"az","langs":["ru","en","az"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
263
|
+
</script>
|
|
264
|
+
<script type="application/javascript">
|
|
265
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
266
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
267
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
268
|
+
})(data.innerText));
|
|
269
|
+
window.STATIC_CONTENT = false;
|
|
270
|
+
</script>
|
|
271
|
+
<script type="application/javascript" defer src="az/toc.js"></script>
|
|
272
|
+
</body>
|
|
273
|
+
</html>"
|
|
274
|
+
`;
|
|
275
|
+
|
|
276
|
+
exports[`Alternates > internal 16`] = `
|
|
277
|
+
"<!DOCTYPE html>
|
|
278
|
+
<html lang="az" dir="ltr">
|
|
279
|
+
<head>
|
|
280
|
+
<meta charset="utf-8">
|
|
281
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
282
|
+
<base href="../../" />
|
|
283
|
+
<title>Test</title>
|
|
284
|
+
<link rel="canonical" href="az/deep/test.html">
|
|
285
|
+
<link rel="alternate" href="az/deep/test.html" hreflang="az" />
|
|
286
|
+
<link rel="alternate" href="en/deep/test.html" hreflang="en" />
|
|
287
|
+
<link rel="alternate" href="ru/deep/test.html" hreflang="ru" />
|
|
288
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
289
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
290
|
+
</head>
|
|
291
|
+
<body class="g-root g-root_theme_light">
|
|
292
|
+
<div id="root"></div>
|
|
293
|
+
<script type="application/json" id="diplodoc-state">
|
|
294
|
+
{"data":{"leading":false,"html":"<p>Content</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"alternate":[{"href":"az/deep/test.html","hreflang":"az"},{"href":"en/deep/test.html","hreflang":"en"},{"href":"ru/deep/test.html","hreflang":"ru"}],"canonical":"az/deep/test.html","vcsPath":"az/deep/test.md"},"headings":[],"title":"Test"},"router":{"pathname":"az/deep/test","depth":3,"base":"../../"},"lang":"az","langs":["ru","en","az"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
295
|
+
</script>
|
|
296
|
+
<script type="application/javascript">
|
|
297
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
298
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
299
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
300
|
+
})(data.innerText));
|
|
301
|
+
window.STATIC_CONTENT = false;
|
|
302
|
+
</script>
|
|
303
|
+
<script type="application/javascript" defer src="az/toc.js"></script>
|
|
304
|
+
</body>
|
|
305
|
+
</html>"
|
|
306
|
+
`;
|
|
307
|
+
|
|
308
|
+
exports[`Alternates > internal 17`] = `
|
|
309
|
+
"<!DOCTYPE html>
|
|
310
|
+
<html lang="az" dir="ltr">
|
|
311
|
+
<head>
|
|
312
|
+
<meta charset="utf-8">
|
|
313
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
314
|
+
<base href="../" />
|
|
315
|
+
<title></title>
|
|
316
|
+
<link rel="canonical" href="az/index.html">
|
|
317
|
+
<link rel="alternate" href="az/index.html" hreflang="az" />
|
|
318
|
+
<link rel="alternate" href="en/index.html" hreflang="en" />
|
|
319
|
+
<link rel="alternate" href="ru/index.html" hreflang="ru" />
|
|
320
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
321
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
322
|
+
</head>
|
|
323
|
+
<body class="g-root g-root_theme_light">
|
|
324
|
+
<div id="root"></div>
|
|
325
|
+
<script type="application/json" id="diplodoc-state">
|
|
326
|
+
{"data":{"leading":true,"data":{"links":[{"url":"az/about/index.html","name":"About"}]},"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"alternate":[{"href":"az/index.html","hreflang":"az"},{"href":"en/index.html","hreflang":"en"},{"href":"ru/index.html","hreflang":"ru"}],"canonical":"az/index.html","vcsPath":"az/index.yaml"},"title":""},"router":{"pathname":"az/index","depth":2,"base":"../"},"lang":"az","langs":["ru","en","az"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
327
|
+
</script>
|
|
328
|
+
<script type="application/javascript">
|
|
329
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
330
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
331
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
332
|
+
})(data.innerText));
|
|
333
|
+
window.STATIC_CONTENT = false;
|
|
334
|
+
</script>
|
|
335
|
+
<script type="application/javascript" defer src="az/toc.js"></script>
|
|
336
|
+
</body>
|
|
337
|
+
</html>"
|
|
338
|
+
`;
|
|
339
|
+
|
|
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"};"`;
|
|
341
|
+
|
|
342
|
+
exports[`Alternates > internal 19`] = `
|
|
343
|
+
"<!DOCTYPE html>
|
|
344
|
+
<html lang="en" dir="ltr">
|
|
345
|
+
<head>
|
|
346
|
+
<meta charset="utf-8">
|
|
347
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
348
|
+
<base href="../" />
|
|
349
|
+
<title>About</title>
|
|
350
|
+
<link rel="canonical" href="en/about.html">
|
|
351
|
+
<link rel="alternate" href="az/about.html" hreflang="az" />
|
|
352
|
+
<link rel="alternate" href="en/about.html" hreflang="en" />
|
|
353
|
+
<link rel="alternate" href="ru/about.html" hreflang="ru" />
|
|
354
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
355
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
356
|
+
</head>
|
|
357
|
+
<body class="g-root g-root_theme_light">
|
|
358
|
+
<div id="root"></div>
|
|
359
|
+
<script type="application/json" id="diplodoc-state">
|
|
360
|
+
{"data":{"leading":false,"html":"<p>Content</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"alternate":[{"href":"az/about.html","hreflang":"az"},{"href":"en/about.html","hreflang":"en"},{"href":"ru/about.html","hreflang":"ru"}],"canonical":"en/about.html","vcsPath":"en/about.md"},"headings":[],"title":"About"},"router":{"pathname":"en/about","depth":2,"base":"../"},"lang":"en","langs":["ru","en","az"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
361
|
+
</script>
|
|
362
|
+
<script type="application/javascript">
|
|
363
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
364
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
365
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
366
|
+
})(data.innerText));
|
|
367
|
+
window.STATIC_CONTENT = false;
|
|
368
|
+
</script>
|
|
369
|
+
<script type="application/javascript" defer src="en/toc.js"></script>
|
|
370
|
+
</body>
|
|
371
|
+
</html>"
|
|
372
|
+
`;
|
|
373
|
+
|
|
374
|
+
exports[`Alternates > internal 20`] = `
|
|
375
|
+
"<!DOCTYPE html>
|
|
376
|
+
<html lang="en" dir="ltr">
|
|
377
|
+
<head>
|
|
378
|
+
<meta charset="utf-8">
|
|
379
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
380
|
+
<base href="../../" />
|
|
381
|
+
<title>Test</title>
|
|
382
|
+
<link rel="canonical" href="en/deep/test.html">
|
|
383
|
+
<link rel="alternate" href="az/deep/test.html" hreflang="az" />
|
|
384
|
+
<link rel="alternate" href="en/deep/test.html" hreflang="en" />
|
|
385
|
+
<link rel="alternate" href="ru/deep/test.html" hreflang="ru" />
|
|
386
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
387
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
388
|
+
</head>
|
|
389
|
+
<body class="g-root g-root_theme_light">
|
|
390
|
+
<div id="root"></div>
|
|
391
|
+
<script type="application/json" id="diplodoc-state">
|
|
392
|
+
{"data":{"leading":false,"html":"<p>Content</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"alternate":[{"href":"az/deep/test.html","hreflang":"az"},{"href":"en/deep/test.html","hreflang":"en"},{"href":"ru/deep/test.html","hreflang":"ru"}],"canonical":"en/deep/test.html","vcsPath":"en/deep/test.md"},"headings":[],"title":"Test"},"router":{"pathname":"en/deep/test","depth":3,"base":"../../"},"lang":"en","langs":["ru","en","az"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
393
|
+
</script>
|
|
394
|
+
<script type="application/javascript">
|
|
395
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
396
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
397
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
398
|
+
})(data.innerText));
|
|
399
|
+
window.STATIC_CONTENT = false;
|
|
400
|
+
</script>
|
|
401
|
+
<script type="application/javascript" defer src="en/toc.js"></script>
|
|
402
|
+
</body>
|
|
403
|
+
</html>"
|
|
404
|
+
`;
|
|
405
|
+
|
|
406
|
+
exports[`Alternates > internal 21`] = `
|
|
407
|
+
"<!DOCTYPE html>
|
|
408
|
+
<html lang="en" dir="ltr">
|
|
409
|
+
<head>
|
|
410
|
+
<meta charset="utf-8">
|
|
411
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
412
|
+
<base href="../" />
|
|
413
|
+
<title></title>
|
|
414
|
+
<link rel="canonical" href="en/index.html">
|
|
415
|
+
<link rel="alternate" href="az/index.html" hreflang="az" />
|
|
416
|
+
<link rel="alternate" href="en/index.html" hreflang="en" />
|
|
417
|
+
<link rel="alternate" href="ru/index.html" hreflang="ru" />
|
|
418
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
419
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
420
|
+
</head>
|
|
421
|
+
<body class="g-root g-root_theme_light">
|
|
422
|
+
<div id="root"></div>
|
|
423
|
+
<script type="application/json" id="diplodoc-state">
|
|
424
|
+
{"data":{"leading":true,"data":{"links":[{"url":"en/about/index.html","name":"About"}]},"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"alternate":[{"href":"az/index.html","hreflang":"az"},{"href":"en/index.html","hreflang":"en"},{"href":"ru/index.html","hreflang":"ru"}],"canonical":"en/index.html","vcsPath":"en/index.yaml"},"title":""},"router":{"pathname":"en/index","depth":2,"base":"../"},"lang":"en","langs":["ru","en","az"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
425
|
+
</script>
|
|
426
|
+
<script type="application/javascript">
|
|
427
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
428
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
429
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
430
|
+
})(data.innerText));
|
|
431
|
+
window.STATIC_CONTENT = false;
|
|
432
|
+
</script>
|
|
433
|
+
<script type="application/javascript" defer src="en/toc.js"></script>
|
|
434
|
+
</body>
|
|
435
|
+
</html>"
|
|
436
|
+
`;
|
|
437
|
+
|
|
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"};"`;
|
|
439
|
+
|
|
440
|
+
exports[`Alternates > internal 23`] = `
|
|
441
|
+
"<!DOCTYPE html>
|
|
442
|
+
<html lang="ru" dir="ltr">
|
|
443
|
+
<head>
|
|
444
|
+
<meta charset="utf-8">
|
|
445
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
446
|
+
<base href="./" />
|
|
447
|
+
<title>Redirect to ./ru/index.html</title>
|
|
448
|
+
<meta http-equiv="refresh" content="0; url=./ru/index.html">
|
|
449
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
450
|
+
<script type="application/javascript">
|
|
451
|
+
window.location.replace("./ru/index.html");
|
|
452
|
+
</script>
|
|
453
|
+
</head>
|
|
454
|
+
<body class="g-root g-root_theme_light">
|
|
455
|
+
If you are not redirected automatically, follow this <a href="./ru/index.html">link</a>.
|
|
456
|
+
</body>
|
|
457
|
+
</html>"
|
|
458
|
+
`;
|
|
459
|
+
|
|
460
|
+
exports[`Alternates > internal 24`] = `
|
|
461
|
+
"<!DOCTYPE html>
|
|
462
|
+
<html lang="ru" dir="ltr">
|
|
463
|
+
<head>
|
|
464
|
+
<meta charset="utf-8">
|
|
465
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
466
|
+
<base href="../" />
|
|
467
|
+
<title>About</title>
|
|
468
|
+
<link rel="canonical" href="ru/about.html">
|
|
469
|
+
<link rel="alternate" href="az/about.html" hreflang="az" />
|
|
470
|
+
<link rel="alternate" href="en/about.html" hreflang="en" />
|
|
471
|
+
<link rel="alternate" href="ru/about.html" hreflang="ru" />
|
|
472
|
+
<link rel="alternate" href="https://my-other-site.com/about" />
|
|
473
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
474
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
475
|
+
</head>
|
|
476
|
+
<body class="g-root g-root_theme_light">
|
|
477
|
+
<div id="root"></div>
|
|
478
|
+
<script type="application/json" id="diplodoc-state">
|
|
479
|
+
{"data":{"leading":false,"html":"<p>Content</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"alternate":[{"href":"az/about.html","hreflang":"az"},{"href":"en/about.html","hreflang":"en"},{"href":"ru/about.html","hreflang":"ru"},{"href":"https://my-other-site.com/about"}],"canonical":"ru/about.html","vcsPath":"ru/about.md"},"headings":[],"title":"About"},"router":{"pathname":"ru/about","depth":2,"base":"../"},"lang":"ru","langs":["ru","en","az"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
480
|
+
</script>
|
|
481
|
+
<script type="application/javascript">
|
|
482
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
483
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
484
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
485
|
+
})(data.innerText));
|
|
486
|
+
window.STATIC_CONTENT = false;
|
|
487
|
+
</script>
|
|
488
|
+
<script type="application/javascript" defer src="ru/toc.js"></script>
|
|
489
|
+
</body>
|
|
490
|
+
</html>"
|
|
491
|
+
`;
|
|
492
|
+
|
|
493
|
+
exports[`Alternates > internal 25`] = `
|
|
494
|
+
"<!DOCTYPE html>
|
|
495
|
+
<html lang="ru" dir="ltr">
|
|
496
|
+
<head>
|
|
497
|
+
<meta charset="utf-8">
|
|
498
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
499
|
+
<base href="../../" />
|
|
500
|
+
<title>Test</title>
|
|
501
|
+
<link rel="canonical" href="ru/deep/test.html">
|
|
502
|
+
<link rel="alternate" href="az/deep/test.html" hreflang="az" />
|
|
503
|
+
<link rel="alternate" href="en/deep/test.html" hreflang="en" />
|
|
504
|
+
<link rel="alternate" href="ru/deep/test.html" hreflang="ru" />
|
|
505
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
506
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
507
|
+
</head>
|
|
508
|
+
<body class="g-root g-root_theme_light">
|
|
509
|
+
<div id="root"></div>
|
|
510
|
+
<script type="application/json" id="diplodoc-state">
|
|
511
|
+
{"data":{"leading":false,"html":"<p>Content</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"alternate":[{"href":"az/deep/test.html","hreflang":"az"},{"href":"en/deep/test.html","hreflang":"en"},{"href":"ru/deep/test.html","hreflang":"ru"}],"canonical":"ru/deep/test.html","vcsPath":"ru/deep/test.md"},"headings":[],"title":"Test"},"router":{"pathname":"ru/deep/test","depth":3,"base":"../../"},"lang":"ru","langs":["ru","en","az"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
512
|
+
</script>
|
|
513
|
+
<script type="application/javascript">
|
|
514
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
515
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
516
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
517
|
+
})(data.innerText));
|
|
518
|
+
window.STATIC_CONTENT = false;
|
|
519
|
+
</script>
|
|
520
|
+
<script type="application/javascript" defer src="ru/toc.js"></script>
|
|
521
|
+
</body>
|
|
522
|
+
</html>"
|
|
523
|
+
`;
|
|
524
|
+
|
|
525
|
+
exports[`Alternates > internal 26`] = `
|
|
526
|
+
"<!DOCTYPE html>
|
|
527
|
+
<html lang="ru" dir="ltr">
|
|
528
|
+
<head>
|
|
529
|
+
<meta charset="utf-8">
|
|
530
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
531
|
+
<base href="../" />
|
|
532
|
+
<title></title>
|
|
533
|
+
<link rel="canonical" href="ru/index.html">
|
|
534
|
+
<link rel="alternate" href="az/index.html" hreflang="az" />
|
|
535
|
+
<link rel="alternate" href="en/index.html" hreflang="en" />
|
|
536
|
+
<link rel="alternate" href="ru/index.html" hreflang="ru" />
|
|
537
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
538
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
539
|
+
</head>
|
|
540
|
+
<body class="g-root g-root_theme_light">
|
|
541
|
+
<div id="root"></div>
|
|
542
|
+
<script type="application/json" id="diplodoc-state">
|
|
543
|
+
{"data":{"leading":true,"data":{"links":[{"url":"ru/about/index.html","name":"About"}]},"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"alternate":[{"href":"az/index.html","hreflang":"az"},{"href":"en/index.html","hreflang":"en"},{"href":"ru/index.html","hreflang":"ru"}],"canonical":"ru/index.html","vcsPath":"ru/index.yaml"},"title":""},"router":{"pathname":"ru/index","depth":2,"base":"../"},"lang":"ru","langs":["ru","en","az"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
544
|
+
</script>
|
|
545
|
+
<script type="application/javascript">
|
|
546
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
547
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
548
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
549
|
+
})(data.innerText));
|
|
550
|
+
window.STATIC_CONTENT = false;
|
|
551
|
+
</script>
|
|
552
|
+
<script type="application/javascript" defer src="ru/toc.js"></script>
|
|
553
|
+
</body>
|
|
554
|
+
</html>"
|
|
555
|
+
`;
|
|
556
|
+
|
|
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"};"`;
|
|
558
|
+
|
|
559
|
+
exports[`Alternates > skip-html-extension > filelist 1`] = `
|
|
560
|
+
"[
|
|
561
|
+
".yfm",
|
|
562
|
+
"az/about.html",
|
|
563
|
+
"az/deep/test.html",
|
|
564
|
+
"az/index.html",
|
|
565
|
+
"az/toc.js",
|
|
566
|
+
"en/about.html",
|
|
567
|
+
"en/deep/test.html",
|
|
568
|
+
"en/index.html",
|
|
569
|
+
"en/toc.js",
|
|
570
|
+
"index.html",
|
|
571
|
+
"ru/about.html",
|
|
572
|
+
"ru/deep/test.html",
|
|
573
|
+
"ru/index.html",
|
|
574
|
+
"ru/toc.js"
|
|
575
|
+
]"
|
|
576
|
+
`;
|
|
577
|
+
|
|
578
|
+
exports[`Alternates > skip-html-extension 1`] = `
|
|
579
|
+
"langs: ['ru', 'en', 'az']
|
|
580
|
+
"
|
|
581
|
+
`;
|
|
582
|
+
|
|
583
|
+
exports[`Alternates > skip-html-extension 2`] = `
|
|
584
|
+
"<!DOCTYPE html>
|
|
585
|
+
<html lang="az" dir="ltr">
|
|
586
|
+
<head>
|
|
587
|
+
<meta charset="utf-8">
|
|
588
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
589
|
+
<base href="../" />
|
|
590
|
+
<title>About</title>
|
|
591
|
+
<link rel="canonical" href="az/about">
|
|
592
|
+
<link rel="alternate" href="az/about" hreflang="az" />
|
|
593
|
+
<link rel="alternate" href="en/about" hreflang="en" />
|
|
594
|
+
<link rel="alternate" href="ru/about" hreflang="ru" />
|
|
595
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
596
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
597
|
+
</head>
|
|
598
|
+
<body class="g-root g-root_theme_light">
|
|
599
|
+
<div id="root"></div>
|
|
600
|
+
<script type="application/json" id="diplodoc-state">
|
|
601
|
+
{"data":{"leading":false,"html":"<p>Content</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"alternate":[{"href":"az/about","hreflang":"az"},{"href":"en/about","hreflang":"en"},{"href":"ru/about","hreflang":"ru"}],"canonical":"az/about","vcsPath":"az/about.md"},"headings":[],"title":"About"},"router":{"pathname":"az/about","depth":2,"base":"../"},"lang":"az","langs":["ru","en","az"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
602
|
+
</script>
|
|
603
|
+
<script type="application/javascript">
|
|
604
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
605
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
606
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
607
|
+
})(data.innerText));
|
|
608
|
+
window.STATIC_CONTENT = false;
|
|
609
|
+
</script>
|
|
610
|
+
<script type="application/javascript" defer src="az/toc.js"></script>
|
|
611
|
+
</body>
|
|
612
|
+
</html>"
|
|
613
|
+
`;
|
|
614
|
+
|
|
615
|
+
exports[`Alternates > skip-html-extension 3`] = `
|
|
616
|
+
"<!DOCTYPE html>
|
|
617
|
+
<html lang="az" dir="ltr">
|
|
618
|
+
<head>
|
|
619
|
+
<meta charset="utf-8">
|
|
620
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
621
|
+
<base href="../../" />
|
|
622
|
+
<title>Test</title>
|
|
623
|
+
<link rel="canonical" href="az/deep/test">
|
|
624
|
+
<link rel="alternate" href="az/deep/test" hreflang="az" />
|
|
625
|
+
<link rel="alternate" href="en/deep/test" hreflang="en" />
|
|
626
|
+
<link rel="alternate" href="ru/deep/test" hreflang="ru" />
|
|
627
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
628
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
629
|
+
</head>
|
|
630
|
+
<body class="g-root g-root_theme_light">
|
|
631
|
+
<div id="root"></div>
|
|
632
|
+
<script type="application/json" id="diplodoc-state">
|
|
633
|
+
{"data":{"leading":false,"html":"<p>Content</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"alternate":[{"href":"az/deep/test","hreflang":"az"},{"href":"en/deep/test","hreflang":"en"},{"href":"ru/deep/test","hreflang":"ru"}],"canonical":"az/deep/test","vcsPath":"az/deep/test.md"},"headings":[],"title":"Test"},"router":{"pathname":"az/deep/test","depth":3,"base":"../../"},"lang":"az","langs":["ru","en","az"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
634
|
+
</script>
|
|
635
|
+
<script type="application/javascript">
|
|
636
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
637
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
638
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
639
|
+
})(data.innerText));
|
|
640
|
+
window.STATIC_CONTENT = false;
|
|
641
|
+
</script>
|
|
642
|
+
<script type="application/javascript" defer src="az/toc.js"></script>
|
|
643
|
+
</body>
|
|
644
|
+
</html>"
|
|
645
|
+
`;
|
|
646
|
+
|
|
647
|
+
exports[`Alternates > skip-html-extension 4`] = `
|
|
648
|
+
"<!DOCTYPE html>
|
|
649
|
+
<html lang="az" dir="ltr">
|
|
650
|
+
<head>
|
|
651
|
+
<meta charset="utf-8">
|
|
652
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
653
|
+
<base href="../" />
|
|
654
|
+
<title></title>
|
|
655
|
+
<link rel="canonical" href="az/">
|
|
656
|
+
<link rel="alternate" href="az/" hreflang="az" />
|
|
657
|
+
<link rel="alternate" href="en/" hreflang="en" />
|
|
658
|
+
<link rel="alternate" href="ru/" hreflang="ru" />
|
|
659
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
660
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
661
|
+
</head>
|
|
662
|
+
<body class="g-root g-root_theme_light">
|
|
663
|
+
<div id="root"></div>
|
|
664
|
+
<script type="application/json" id="diplodoc-state">
|
|
665
|
+
{"data":{"leading":true,"data":{"links":[{"url":"az/about/","name":"About"}]},"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"alternate":[{"href":"az/","hreflang":"az"},{"href":"en/","hreflang":"en"},{"href":"ru/","hreflang":"ru"}],"canonical":"az/","vcsPath":"az/index.yaml"},"title":""},"router":{"pathname":"az/index","depth":2,"base":"../"},"lang":"az","langs":["ru","en","az"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
666
|
+
</script>
|
|
667
|
+
<script type="application/javascript">
|
|
668
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
669
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
670
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
671
|
+
})(data.innerText));
|
|
672
|
+
window.STATIC_CONTENT = false;
|
|
673
|
+
</script>
|
|
674
|
+
<script type="application/javascript" defer src="az/toc.js"></script>
|
|
675
|
+
</body>
|
|
676
|
+
</html>"
|
|
677
|
+
`;
|
|
678
|
+
|
|
679
|
+
exports[`Alternates > skip-html-extension 5`] = `"window.__DATA__.data.toc = {"href":"az/","items":[{"href":"az/about","name":"About","id":"UUID"},{"href":"az/deep/test","name":"Test","id":"UUID"}],"path":"az/toc.yaml","id":"UUID"};"`;
|
|
680
|
+
|
|
681
|
+
exports[`Alternates > skip-html-extension 6`] = `
|
|
682
|
+
"<!DOCTYPE html>
|
|
683
|
+
<html lang="en" dir="ltr">
|
|
684
|
+
<head>
|
|
685
|
+
<meta charset="utf-8">
|
|
686
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
687
|
+
<base href="../" />
|
|
688
|
+
<title>About</title>
|
|
689
|
+
<link rel="canonical" href="en/about">
|
|
690
|
+
<link rel="alternate" href="az/about" hreflang="az" />
|
|
691
|
+
<link rel="alternate" href="en/about" hreflang="en" />
|
|
692
|
+
<link rel="alternate" href="ru/about" hreflang="ru" />
|
|
693
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
694
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
695
|
+
</head>
|
|
696
|
+
<body class="g-root g-root_theme_light">
|
|
697
|
+
<div id="root"></div>
|
|
698
|
+
<script type="application/json" id="diplodoc-state">
|
|
699
|
+
{"data":{"leading":false,"html":"<p>Content</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"alternate":[{"href":"az/about","hreflang":"az"},{"href":"en/about","hreflang":"en"},{"href":"ru/about","hreflang":"ru"}],"canonical":"en/about","vcsPath":"en/about.md"},"headings":[],"title":"About"},"router":{"pathname":"en/about","depth":2,"base":"../"},"lang":"en","langs":["ru","en","az"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
700
|
+
</script>
|
|
701
|
+
<script type="application/javascript">
|
|
702
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
703
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
704
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
705
|
+
})(data.innerText));
|
|
706
|
+
window.STATIC_CONTENT = false;
|
|
707
|
+
</script>
|
|
708
|
+
<script type="application/javascript" defer src="en/toc.js"></script>
|
|
709
|
+
</body>
|
|
710
|
+
</html>"
|
|
711
|
+
`;
|
|
712
|
+
|
|
713
|
+
exports[`Alternates > skip-html-extension 7`] = `
|
|
714
|
+
"<!DOCTYPE html>
|
|
715
|
+
<html lang="en" dir="ltr">
|
|
716
|
+
<head>
|
|
717
|
+
<meta charset="utf-8">
|
|
718
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
719
|
+
<base href="../../" />
|
|
720
|
+
<title>Test</title>
|
|
721
|
+
<link rel="canonical" href="en/deep/test">
|
|
722
|
+
<link rel="alternate" href="az/deep/test" hreflang="az" />
|
|
723
|
+
<link rel="alternate" href="en/deep/test" hreflang="en" />
|
|
724
|
+
<link rel="alternate" href="ru/deep/test" hreflang="ru" />
|
|
725
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
726
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
727
|
+
</head>
|
|
728
|
+
<body class="g-root g-root_theme_light">
|
|
729
|
+
<div id="root"></div>
|
|
730
|
+
<script type="application/json" id="diplodoc-state">
|
|
731
|
+
{"data":{"leading":false,"html":"<p>Content</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"alternate":[{"href":"az/deep/test","hreflang":"az"},{"href":"en/deep/test","hreflang":"en"},{"href":"ru/deep/test","hreflang":"ru"}],"canonical":"en/deep/test","vcsPath":"en/deep/test.md"},"headings":[],"title":"Test"},"router":{"pathname":"en/deep/test","depth":3,"base":"../../"},"lang":"en","langs":["ru","en","az"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
732
|
+
</script>
|
|
733
|
+
<script type="application/javascript">
|
|
734
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
735
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
736
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
737
|
+
})(data.innerText));
|
|
738
|
+
window.STATIC_CONTENT = false;
|
|
739
|
+
</script>
|
|
740
|
+
<script type="application/javascript" defer src="en/toc.js"></script>
|
|
741
|
+
</body>
|
|
742
|
+
</html>"
|
|
743
|
+
`;
|
|
744
|
+
|
|
745
|
+
exports[`Alternates > skip-html-extension 8`] = `
|
|
746
|
+
"<!DOCTYPE html>
|
|
747
|
+
<html lang="en" dir="ltr">
|
|
748
|
+
<head>
|
|
749
|
+
<meta charset="utf-8">
|
|
750
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
751
|
+
<base href="../" />
|
|
752
|
+
<title></title>
|
|
753
|
+
<link rel="canonical" href="en/">
|
|
754
|
+
<link rel="alternate" href="az/" hreflang="az" />
|
|
755
|
+
<link rel="alternate" href="en/" hreflang="en" />
|
|
756
|
+
<link rel="alternate" href="ru/" hreflang="ru" />
|
|
757
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
758
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
759
|
+
</head>
|
|
760
|
+
<body class="g-root g-root_theme_light">
|
|
761
|
+
<div id="root"></div>
|
|
762
|
+
<script type="application/json" id="diplodoc-state">
|
|
763
|
+
{"data":{"leading":true,"data":{"links":[{"url":"en/about/","name":"About"}]},"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"alternate":[{"href":"az/","hreflang":"az"},{"href":"en/","hreflang":"en"},{"href":"ru/","hreflang":"ru"}],"canonical":"en/","vcsPath":"en/index.yaml"},"title":""},"router":{"pathname":"en/index","depth":2,"base":"../"},"lang":"en","langs":["ru","en","az"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
764
|
+
</script>
|
|
765
|
+
<script type="application/javascript">
|
|
766
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
767
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
768
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
769
|
+
})(data.innerText));
|
|
770
|
+
window.STATIC_CONTENT = false;
|
|
771
|
+
</script>
|
|
772
|
+
<script type="application/javascript" defer src="en/toc.js"></script>
|
|
773
|
+
</body>
|
|
774
|
+
</html>"
|
|
775
|
+
`;
|
|
776
|
+
|
|
777
|
+
exports[`Alternates > skip-html-extension 9`] = `"window.__DATA__.data.toc = {"href":"en/","items":[{"href":"en/about","name":"About","id":"UUID"},{"href":"en/deep/test","name":"Test","id":"UUID"}],"path":"en/toc.yaml","id":"UUID"};"`;
|
|
778
|
+
|
|
779
|
+
exports[`Alternates > skip-html-extension 10`] = `
|
|
780
|
+
"<!DOCTYPE html>
|
|
781
|
+
<html lang="ru" dir="ltr">
|
|
782
|
+
<head>
|
|
783
|
+
<meta charset="utf-8">
|
|
784
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
785
|
+
<base href="./" />
|
|
786
|
+
<title>Redirect to ./ru</title>
|
|
787
|
+
<meta http-equiv="refresh" content="0; url=./ru">
|
|
788
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
789
|
+
<script type="application/javascript">
|
|
790
|
+
window.location.replace("./ru");
|
|
791
|
+
</script>
|
|
792
|
+
</head>
|
|
793
|
+
<body class="g-root g-root_theme_light">
|
|
794
|
+
If you are not redirected automatically, follow this <a href="./ru">link</a>.
|
|
795
|
+
</body>
|
|
796
|
+
</html>"
|
|
797
|
+
`;
|
|
798
|
+
|
|
799
|
+
exports[`Alternates > skip-html-extension 11`] = `
|
|
800
|
+
"<!DOCTYPE html>
|
|
801
|
+
<html lang="ru" dir="ltr">
|
|
802
|
+
<head>
|
|
803
|
+
<meta charset="utf-8">
|
|
804
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
805
|
+
<base href="../" />
|
|
806
|
+
<title>About</title>
|
|
807
|
+
<link rel="canonical" href="ru/about">
|
|
808
|
+
<link rel="alternate" href="az/about" hreflang="az" />
|
|
809
|
+
<link rel="alternate" href="en/about" hreflang="en" />
|
|
810
|
+
<link rel="alternate" href="ru/about" hreflang="ru" />
|
|
811
|
+
<link rel="alternate" href="https://my-other-site.com/about" />
|
|
812
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
813
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
814
|
+
</head>
|
|
815
|
+
<body class="g-root g-root_theme_light">
|
|
816
|
+
<div id="root"></div>
|
|
817
|
+
<script type="application/json" id="diplodoc-state">
|
|
818
|
+
{"data":{"leading":false,"html":"<p>Content</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"alternate":[{"href":"az/about","hreflang":"az"},{"href":"en/about","hreflang":"en"},{"href":"ru/about","hreflang":"ru"},{"href":"https://my-other-site.com/about"}],"canonical":"ru/about","vcsPath":"ru/about.md"},"headings":[],"title":"About"},"router":{"pathname":"ru/about","depth":2,"base":"../"},"lang":"ru","langs":["ru","en","az"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
819
|
+
</script>
|
|
820
|
+
<script type="application/javascript">
|
|
821
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
822
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
823
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
824
|
+
})(data.innerText));
|
|
825
|
+
window.STATIC_CONTENT = false;
|
|
826
|
+
</script>
|
|
827
|
+
<script type="application/javascript" defer src="ru/toc.js"></script>
|
|
828
|
+
</body>
|
|
829
|
+
</html>"
|
|
830
|
+
`;
|
|
831
|
+
|
|
832
|
+
exports[`Alternates > skip-html-extension 12`] = `
|
|
833
|
+
"<!DOCTYPE html>
|
|
834
|
+
<html lang="ru" dir="ltr">
|
|
835
|
+
<head>
|
|
836
|
+
<meta charset="utf-8">
|
|
837
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
838
|
+
<base href="../../" />
|
|
839
|
+
<title>Test</title>
|
|
840
|
+
<link rel="canonical" href="ru/deep/test">
|
|
841
|
+
<link rel="alternate" href="az/deep/test" hreflang="az" />
|
|
842
|
+
<link rel="alternate" href="en/deep/test" hreflang="en" />
|
|
843
|
+
<link rel="alternate" href="ru/deep/test" hreflang="ru" />
|
|
844
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
845
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
846
|
+
</head>
|
|
847
|
+
<body class="g-root g-root_theme_light">
|
|
848
|
+
<div id="root"></div>
|
|
849
|
+
<script type="application/json" id="diplodoc-state">
|
|
850
|
+
{"data":{"leading":false,"html":"<p>Content</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"alternate":[{"href":"az/deep/test","hreflang":"az"},{"href":"en/deep/test","hreflang":"en"},{"href":"ru/deep/test","hreflang":"ru"}],"canonical":"ru/deep/test","vcsPath":"ru/deep/test.md"},"headings":[],"title":"Test"},"router":{"pathname":"ru/deep/test","depth":3,"base":"../../"},"lang":"ru","langs":["ru","en","az"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
851
|
+
</script>
|
|
852
|
+
<script type="application/javascript">
|
|
853
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
854
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
855
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
856
|
+
})(data.innerText));
|
|
857
|
+
window.STATIC_CONTENT = false;
|
|
858
|
+
</script>
|
|
859
|
+
<script type="application/javascript" defer src="ru/toc.js"></script>
|
|
860
|
+
</body>
|
|
861
|
+
</html>"
|
|
862
|
+
`;
|
|
863
|
+
|
|
864
|
+
exports[`Alternates > skip-html-extension 13`] = `
|
|
865
|
+
"<!DOCTYPE html>
|
|
866
|
+
<html lang="ru" dir="ltr">
|
|
867
|
+
<head>
|
|
868
|
+
<meta charset="utf-8">
|
|
869
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
870
|
+
<base href="../" />
|
|
871
|
+
<title></title>
|
|
872
|
+
<link rel="canonical" href="ru/">
|
|
873
|
+
<link rel="alternate" href="az/" hreflang="az" />
|
|
874
|
+
<link rel="alternate" href="en/" hreflang="en" />
|
|
875
|
+
<link rel="alternate" href="ru/" hreflang="ru" />
|
|
876
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
877
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
878
|
+
</head>
|
|
879
|
+
<body class="g-root g-root_theme_light">
|
|
880
|
+
<div id="root"></div>
|
|
881
|
+
<script type="application/json" id="diplodoc-state">
|
|
882
|
+
{"data":{"leading":true,"data":{"links":[{"url":"ru/about/","name":"About"}]},"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"alternate":[{"href":"az/","hreflang":"az"},{"href":"en/","hreflang":"en"},{"href":"ru/","hreflang":"ru"}],"canonical":"ru/","vcsPath":"ru/index.yaml"},"title":""},"router":{"pathname":"ru/index","depth":2,"base":"../"},"lang":"ru","langs":["ru","en","az"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
883
|
+
</script>
|
|
884
|
+
<script type="application/javascript">
|
|
885
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
886
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
887
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
888
|
+
})(data.innerText));
|
|
889
|
+
window.STATIC_CONTENT = false;
|
|
890
|
+
</script>
|
|
891
|
+
<script type="application/javascript" defer src="ru/toc.js"></script>
|
|
892
|
+
</body>
|
|
893
|
+
</html>"
|
|
894
|
+
`;
|
|
895
|
+
|
|
896
|
+
exports[`Alternates > skip-html-extension 14`] = `"window.__DATA__.data.toc = {"href":"ru/","items":[{"href":"ru/about","name":"About","id":"UUID"},{"href":"ru/deep/test","name":"Test","id":"UUID"}],"path":"ru/toc.yaml","id":"UUID"};"`;
|