@diplodoc/cli-tests 0.0.0-rc-reusable-e2es-202504041505 → 0.0.0-rc-fix-lint-202505221548
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/bin.mjs +4 -6
- package/e2e/__snapshots__/include-toc.test.ts.snap +21 -13
- package/e2e/__snapshots__/load-custom-resources.spec.ts.snap +257 -310
- package/e2e/__snapshots__/metadata.spec.ts.snap +111 -137
- package/e2e/__snapshots__/plugin-corner-cases.spec.ts.snap +0 -0
- package/e2e/__snapshots__/regression.test.ts.snap +799 -604
- package/e2e/__snapshots__/rtl.spec.ts.snap +226 -282
- package/e2e/__snapshots__/translation.spec.ts.snap +426 -0
- package/e2e/generate-map.spec.ts +2 -5
- package/e2e/include-toc.test.ts +15 -18
- package/e2e/load-custom-resources.spec.ts +3 -6
- package/e2e/metadata.spec.ts +3 -6
- package/e2e/plugin-corner-cases.spec.ts +3 -6
- package/e2e/regression.test.ts +13 -11
- package/e2e/rtl.spec.ts +3 -6
- package/e2e/translation.spec.ts +55 -0
- package/fixtures/cliAdapter.ts +46 -6
- package/fixtures/runners/binary.ts +5 -19
- package/fixtures/runners/source.ts +3 -8
- package/fixtures/utils/file.ts +23 -16
- package/fixtures/utils/test.ts +2 -2
- package/mocks/include-toc/test6/input/toc.yaml +1 -0
- package/mocks/regression/input/1.md +6 -0
- package/mocks/regression/input/generic/1.md +3 -0
- package/mocks/regression/input/generic/2.md +3 -0
- package/mocks/regression/input/generic/3.md +1 -0
- package/mocks/regression/input/generic/Sub notes/1.md +3 -0
- package/mocks/regression/input/generic/Sub notes/2.md +3 -0
- package/mocks/regression/input/includes/deep.md +1 -0
- package/mocks/regression/input/includes.md +2 -0
- package/mocks/regression/input/redirects.yaml +6 -0
- package/mocks/regression/input/sub/folder/item-1.md +2 -0
- package/mocks/regression/input/toc.yaml +7 -3
- package/mocks/translation/dir-files/input/ru/_includes/test.md +1 -0
- package/mocks/translation/dir-files/input/ru/_no-translate/exclude.md +1 -0
- package/mocks/translation/dir-files/input/ru/aboba.md +7 -0
- package/mocks/translation/dir-files/input/ru/index.md +3 -0
- package/mocks/translation/dir-files/input/ru/nested/index-yfm.md +2 -0
- package/mocks/translation/dir-files/input/ru/nested/index.yaml +24 -0
- package/mocks/translation/dir-files/input/ru/nested/not-in-toc.md +20 -0
- package/mocks/translation/dir-files/input/ru/nested/syntax/base.md +1 -0
- package/mocks/translation/dir-files/input/ru/nested/syntax/index.md +2 -0
- package/mocks/translation/dir-files/input/ru/nested/syntax/lists.md +1 -0
- package/mocks/translation/dir-files/input/ru/nested/toc.yaml +18 -0
- package/mocks/translation/dir-files/input/ru/not-in-toc.md +20 -0
- package/mocks/translation/dir-files/input/ru/toc.yaml +7 -0
- package/mocks/translation/yaml-scheme/input/ru/.yfm +1 -0
- package/mocks/translation/yaml-scheme/input/ru/index-direct.yaml +133 -0
- package/mocks/translation/yaml-scheme/input/ru/index.yaml +32 -0
- package/mocks/translation/yaml-scheme/input/ru/toc.yaml +19 -0
- package/package.json +8 -6
|
@@ -24,285 +24,231 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
24
24
|
`;
|
|
25
25
|
|
|
26
26
|
exports[`Generate html document with correct lang and dir attributes. Load correct bundles. > documentation with only one rtl lang > index.html 1`] = `
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
<
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
</script>
|
|
61
|
-
<script src="toc.js" type="application/javascript"></script>
|
|
62
|
-
|
|
63
|
-
<script type="application/javascript" src="_bundle/search-js-0"></script>
|
|
64
|
-
<script type="application/javascript" src="_bundle/app-js-1"></script>
|
|
65
|
-
<script type="application/javascript" src="_bundle/search-js-2"></script>
|
|
66
|
-
</body>
|
|
67
|
-
</html>
|
|
68
|
-
"
|
|
27
|
+
"<!DOCTYPE html>
|
|
28
|
+
<html lang="he" dir="rtl">
|
|
29
|
+
<head>
|
|
30
|
+
<meta charset="utf-8">
|
|
31
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
32
|
+
<base href="./" />
|
|
33
|
+
<title>Documentation | Documentation</title>
|
|
34
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
35
|
+
|
|
36
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
37
|
+
|
|
38
|
+
<link type="text/css" rel="stylesheet" href="_bundle/search-css-1"/>
|
|
39
|
+
<link type="text/css" rel="stylesheet" href="_bundle/search-css-2"/>
|
|
40
|
+
</head>
|
|
41
|
+
<body class="g-root g-root_theme_light">
|
|
42
|
+
<div id="root"></div>
|
|
43
|
+
<script type="application/json" id="diplodoc-state">
|
|
44
|
+
{"data":{"leading":true,"data":{"title":"Documentation","links":[{"title":"Documentation","href":"page.html"}]},"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}]},"title":"Documentation"},"router":{"pathname":"index","depth":1,"base":"./"},"lang":"he","langs":["he"]}
|
|
45
|
+
</script>
|
|
46
|
+
<script type="application/javascript">
|
|
47
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
48
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
49
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
50
|
+
})(data.innerText));
|
|
51
|
+
window.STATIC_CONTENT = false;
|
|
52
|
+
</script>
|
|
53
|
+
<script type="application/javascript" defer src="toc.js"></script>
|
|
54
|
+
<script type="application/javascript" defer src="_bundle/search-js-0"></script>
|
|
55
|
+
<script type="application/javascript" defer src="_bundle/app-js-1"></script>
|
|
56
|
+
<script type="application/javascript" defer src="_bundle/search-js-2"></script>
|
|
57
|
+
|
|
58
|
+
</body>
|
|
59
|
+
</html>"
|
|
69
60
|
`;
|
|
70
61
|
|
|
71
62
|
exports[`Generate html document with correct lang and dir attributes. Load correct bundles. > documentation with only one rtl lang > page.html 1`] = `
|
|
72
|
-
"
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
<
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
</script>
|
|
106
|
-
<script src="toc.js" type="application/javascript"></script>
|
|
107
|
-
|
|
108
|
-
<script type="application/javascript" src="_bundle/search-js-0"></script>
|
|
109
|
-
<script type="application/javascript" src="_bundle/app-js-1"></script>
|
|
110
|
-
<script type="application/javascript" src="_bundle/search-js-2"></script>
|
|
111
|
-
</body>
|
|
112
|
-
</html>
|
|
113
|
-
"
|
|
63
|
+
"<!DOCTYPE html>
|
|
64
|
+
<html lang="he" dir="rtl">
|
|
65
|
+
<head>
|
|
66
|
+
<meta charset="utf-8">
|
|
67
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
68
|
+
<base href="./" />
|
|
69
|
+
<title>Documentation</title>
|
|
70
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
71
|
+
|
|
72
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
73
|
+
|
|
74
|
+
<link type="text/css" rel="stylesheet" href="_bundle/search-css-1"/>
|
|
75
|
+
<link type="text/css" rel="stylesheet" href="_bundle/search-css-2"/>
|
|
76
|
+
</head>
|
|
77
|
+
<body class="g-root g-root_theme_light">
|
|
78
|
+
<div id="root"></div>
|
|
79
|
+
<script type="application/json" id="diplodoc-state">
|
|
80
|
+
{"data":{"leading":false,"html":"<p>תיעוד</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}]},"headings":[],"title":""},"router":{"pathname":"page","depth":1,"base":"./"},"lang":"he","langs":["he"]}
|
|
81
|
+
</script>
|
|
82
|
+
<script type="application/javascript">
|
|
83
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
84
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
85
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
86
|
+
})(data.innerText));
|
|
87
|
+
window.STATIC_CONTENT = false;
|
|
88
|
+
</script>
|
|
89
|
+
<script type="application/javascript" defer src="toc.js"></script>
|
|
90
|
+
<script type="application/javascript" defer src="_bundle/search-js-0"></script>
|
|
91
|
+
<script type="application/javascript" defer src="_bundle/app-js-1"></script>
|
|
92
|
+
<script type="application/javascript" defer src="_bundle/search-js-2"></script>
|
|
93
|
+
|
|
94
|
+
</body>
|
|
95
|
+
</html>"
|
|
114
96
|
`;
|
|
115
97
|
|
|
116
|
-
exports[`Generate html document with correct lang and dir attributes. Load correct bundles. > documentation with only one rtl lang > toc.js 1`] = `"window.__DATA__.data.toc = {"title":"Documentation","href":"index.html","items":[{"name":"Documentation","href":"page.html","id":"UUID"}],"id":"UUID"};"`;
|
|
98
|
+
exports[`Generate html document with correct lang and dir attributes. Load correct bundles. > documentation with only one rtl lang > toc.js 1`] = `"window.__DATA__.data.toc = {"title":"Documentation","href":"index.html","items":[{"name":"Documentation","href":"page.html","id":"UUID"}],"path":"toc.yaml","id":"UUID"};"`;
|
|
117
99
|
|
|
118
100
|
exports[`Generate html document with correct lang and dir attributes. Load correct bundles. > documentation with rtl and ltr langs > .yfm 1`] = `"langs: ['ar', 'en']"`;
|
|
119
101
|
|
|
120
102
|
exports[`Generate html document with correct lang and dir attributes. Load correct bundles. > documentation with rtl and ltr langs > ar/index.html 1`] = `
|
|
121
|
-
"
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
<
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
</script>
|
|
155
|
-
<script src="ar/toc.js" type="application/javascript"></script>
|
|
156
|
-
|
|
157
|
-
<script type="application/javascript" src="_bundle/search-js-0"></script>
|
|
158
|
-
<script type="application/javascript" src="_bundle/app-js-1"></script>
|
|
159
|
-
<script type="application/javascript" src="_bundle/search-js-2"></script>
|
|
160
|
-
</body>
|
|
161
|
-
</html>
|
|
162
|
-
"
|
|
103
|
+
"<!DOCTYPE html>
|
|
104
|
+
<html lang="ar" dir="rtl">
|
|
105
|
+
<head>
|
|
106
|
+
<meta charset="utf-8">
|
|
107
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
108
|
+
<base href="../" />
|
|
109
|
+
<title>Documentation | Documentation</title>
|
|
110
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
111
|
+
|
|
112
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
113
|
+
|
|
114
|
+
<link type="text/css" rel="stylesheet" href="_bundle/search-css-1"/>
|
|
115
|
+
<link type="text/css" rel="stylesheet" href="_bundle/search-css-2"/>
|
|
116
|
+
</head>
|
|
117
|
+
<body class="g-root g-root_theme_light">
|
|
118
|
+
<div id="root"></div>
|
|
119
|
+
<script type="application/json" id="diplodoc-state">
|
|
120
|
+
{"data":{"leading":true,"data":{"title":"Documentation","links":[{"title":"Documentation","href":"ar/page.html"}]},"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}]},"title":"Documentation"},"router":{"pathname":"ar/index","depth":2,"base":"../"},"lang":"ar","langs":["ar","en"]}
|
|
121
|
+
</script>
|
|
122
|
+
<script type="application/javascript">
|
|
123
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
124
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
125
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
126
|
+
})(data.innerText));
|
|
127
|
+
window.STATIC_CONTENT = false;
|
|
128
|
+
</script>
|
|
129
|
+
<script type="application/javascript" defer src="ar/toc.js"></script>
|
|
130
|
+
<script type="application/javascript" defer src="_bundle/search-js-0"></script>
|
|
131
|
+
<script type="application/javascript" defer src="_bundle/app-js-1"></script>
|
|
132
|
+
<script type="application/javascript" defer src="_bundle/search-js-2"></script>
|
|
133
|
+
|
|
134
|
+
</body>
|
|
135
|
+
</html>"
|
|
163
136
|
`;
|
|
164
137
|
|
|
165
138
|
exports[`Generate html document with correct lang and dir attributes. Load correct bundles. > documentation with rtl and ltr langs > ar/page.html 1`] = `
|
|
166
|
-
"
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
<
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
</script>
|
|
200
|
-
<script src="ar/toc.js" type="application/javascript"></script>
|
|
201
|
-
|
|
202
|
-
<script type="application/javascript" src="_bundle/search-js-0"></script>
|
|
203
|
-
<script type="application/javascript" src="_bundle/app-js-1"></script>
|
|
204
|
-
<script type="application/javascript" src="_bundle/search-js-2"></script>
|
|
205
|
-
</body>
|
|
206
|
-
</html>
|
|
207
|
-
"
|
|
139
|
+
"<!DOCTYPE html>
|
|
140
|
+
<html lang="ar" dir="rtl">
|
|
141
|
+
<head>
|
|
142
|
+
<meta charset="utf-8">
|
|
143
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
144
|
+
<base href="../" />
|
|
145
|
+
<title>Documentation</title>
|
|
146
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
147
|
+
|
|
148
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
149
|
+
|
|
150
|
+
<link type="text/css" rel="stylesheet" href="_bundle/search-css-1"/>
|
|
151
|
+
<link type="text/css" rel="stylesheet" href="_bundle/search-css-2"/>
|
|
152
|
+
</head>
|
|
153
|
+
<body class="g-root g-root_theme_light">
|
|
154
|
+
<div id="root"></div>
|
|
155
|
+
<script type="application/json" id="diplodoc-state">
|
|
156
|
+
{"data":{"leading":false,"html":"<p>توثيق</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}]},"headings":[],"title":""},"router":{"pathname":"ar/page","depth":2,"base":"../"},"lang":"ar","langs":["ar","en"]}
|
|
157
|
+
</script>
|
|
158
|
+
<script type="application/javascript">
|
|
159
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
160
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
161
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
162
|
+
})(data.innerText));
|
|
163
|
+
window.STATIC_CONTENT = false;
|
|
164
|
+
</script>
|
|
165
|
+
<script type="application/javascript" defer src="ar/toc.js"></script>
|
|
166
|
+
<script type="application/javascript" defer src="_bundle/search-js-0"></script>
|
|
167
|
+
<script type="application/javascript" defer src="_bundle/app-js-1"></script>
|
|
168
|
+
<script type="application/javascript" defer src="_bundle/search-js-2"></script>
|
|
169
|
+
|
|
170
|
+
</body>
|
|
171
|
+
</html>"
|
|
208
172
|
`;
|
|
209
173
|
|
|
210
|
-
exports[`Generate html document with correct lang and dir attributes. Load correct bundles. > documentation with rtl and ltr langs > ar/toc.js 1`] = `"window.__DATA__.data.toc = {"title":"Documentation","href":"ar/index.html","items":[{"name":"Documentation","href":"ar/page.html","id":"UUID"}],"id":"UUID"};"`;
|
|
174
|
+
exports[`Generate html document with correct lang and dir attributes. Load correct bundles. > documentation with rtl and ltr langs > ar/toc.js 1`] = `"window.__DATA__.data.toc = {"title":"Documentation","href":"ar/index.html","items":[{"name":"Documentation","href":"ar/page.html","id":"UUID"}],"path":"ar/toc.yaml","id":"UUID"};"`;
|
|
211
175
|
|
|
212
176
|
exports[`Generate html document with correct lang and dir attributes. Load correct bundles. > documentation with rtl and ltr langs > en/index.html 1`] = `
|
|
213
|
-
"
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
<meta name="
|
|
221
|
-
<meta name="
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
<
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
</script>
|
|
249
|
-
<script src="en/toc.js" type="application/javascript"></script>
|
|
250
|
-
|
|
251
|
-
<script type="application/javascript" src="_bundle/search-js-0"></script>
|
|
252
|
-
<script type="application/javascript" src="_bundle/app-js-1"></script>
|
|
253
|
-
<script type="application/javascript" src="_bundle/search-js-2"></script>
|
|
254
|
-
</body>
|
|
255
|
-
</html>
|
|
256
|
-
"
|
|
177
|
+
"<!DOCTYPE html>
|
|
178
|
+
<html lang="en" dir="ltr">
|
|
179
|
+
<head>
|
|
180
|
+
<meta charset="utf-8">
|
|
181
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
182
|
+
<base href="../" />
|
|
183
|
+
<title>Documentation | Documentation</title>
|
|
184
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
185
|
+
<meta name="title" content="Documentation">
|
|
186
|
+
<meta name="noIndex" content="true">
|
|
187
|
+
|
|
188
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
189
|
+
|
|
190
|
+
<link type="text/css" rel="stylesheet" href="_bundle/search-css-0"/>
|
|
191
|
+
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
192
|
+
</head>
|
|
193
|
+
<body class="g-root g-root_theme_light">
|
|
194
|
+
<div id="root"></div>
|
|
195
|
+
<script type="application/json" id="diplodoc-state">
|
|
196
|
+
{"data":{"leading":true,"data":{"title":"Documentation","description":"","links":[{"title":"Getting started with Documentation","description":"This guide will show you the basics of working with Documentation","href":"en/page.html"}]},"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"title":"Documentation","noIndex":true},"title":"Documentation"},"router":{"pathname":"en/index","depth":2,"base":"../"},"lang":"en","langs":["ar","en"]}
|
|
197
|
+
</script>
|
|
198
|
+
<script type="application/javascript">
|
|
199
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
200
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
201
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
202
|
+
})(data.innerText));
|
|
203
|
+
window.STATIC_CONTENT = false;
|
|
204
|
+
</script>
|
|
205
|
+
<script type="application/javascript" defer src="en/toc.js"></script>
|
|
206
|
+
<script type="application/javascript" defer src="_bundle/search-js-0"></script>
|
|
207
|
+
<script type="application/javascript" defer src="_bundle/app-js-1"></script>
|
|
208
|
+
<script type="application/javascript" defer src="_bundle/search-js-2"></script>
|
|
209
|
+
|
|
210
|
+
</body>
|
|
211
|
+
</html>"
|
|
257
212
|
`;
|
|
258
213
|
|
|
259
214
|
exports[`Generate html document with correct lang and dir attributes. Load correct bundles. > documentation with rtl and ltr langs > en/page.html 1`] = `
|
|
260
|
-
"
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
<meta name="
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
<
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
</script>
|
|
295
|
-
<script src="en/toc.js" type="application/javascript"></script>
|
|
296
|
-
|
|
297
|
-
<script type="application/javascript" src="_bundle/search-js-0"></script>
|
|
298
|
-
<script type="application/javascript" src="_bundle/app-js-1"></script>
|
|
299
|
-
<script type="application/javascript" src="_bundle/search-js-2"></script>
|
|
300
|
-
</body>
|
|
301
|
-
</html>
|
|
302
|
-
"
|
|
215
|
+
"<!DOCTYPE html>
|
|
216
|
+
<html lang="en" dir="ltr">
|
|
217
|
+
<head>
|
|
218
|
+
<meta charset="utf-8">
|
|
219
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
220
|
+
<base href="../" />
|
|
221
|
+
<title>Documentation</title>
|
|
222
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
223
|
+
<meta name="yfm" content="builder">
|
|
224
|
+
|
|
225
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
226
|
+
|
|
227
|
+
<link type="text/css" rel="stylesheet" href="_bundle/search-css-0"/>
|
|
228
|
+
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
229
|
+
</head>
|
|
230
|
+
<body class="g-root g-root_theme_light">
|
|
231
|
+
<div id="root"></div>
|
|
232
|
+
<script type="application/json" id="diplodoc-state">
|
|
233
|
+
{"data":{"leading":false,"html":"<p>Lorem</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"},{"name":"yfm","content":"builder"}]},"headings":[],"title":""},"router":{"pathname":"en/page","depth":2,"base":"../"},"lang":"en","langs":["ar","en"]}
|
|
234
|
+
</script>
|
|
235
|
+
<script type="application/javascript">
|
|
236
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
237
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
238
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
239
|
+
})(data.innerText));
|
|
240
|
+
window.STATIC_CONTENT = false;
|
|
241
|
+
</script>
|
|
242
|
+
<script type="application/javascript" defer src="en/toc.js"></script>
|
|
243
|
+
<script type="application/javascript" defer src="_bundle/search-js-0"></script>
|
|
244
|
+
<script type="application/javascript" defer src="_bundle/app-js-1"></script>
|
|
245
|
+
<script type="application/javascript" defer src="_bundle/search-js-2"></script>
|
|
246
|
+
|
|
247
|
+
</body>
|
|
248
|
+
</html>"
|
|
303
249
|
`;
|
|
304
250
|
|
|
305
|
-
exports[`Generate html document with correct lang and dir attributes. Load correct bundles. > documentation with rtl and ltr langs > en/toc.js 1`] = `"window.__DATA__.data.toc = {"title":"Documentation","href":"en/index.html","items":[{"name":"Documentation","href":"en/page.html","id":"UUID"}],"id":"UUID"};"`;
|
|
251
|
+
exports[`Generate html document with correct lang and dir attributes. Load correct bundles. > documentation with rtl and ltr langs > en/toc.js 1`] = `"window.__DATA__.data.toc = {"title":"Documentation","href":"en/index.html","items":[{"name":"Documentation","href":"en/page.html","id":"UUID"}],"path":"en/toc.yaml","id":"UUID"};"`;
|
|
306
252
|
|
|
307
253
|
exports[`Generate html document with correct lang and dir attributes. Load correct bundles. > documentation with rtl and ltr langs > filelist 1`] = `
|
|
308
254
|
"[
|
|
@@ -330,28 +276,26 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
330
276
|
`;
|
|
331
277
|
|
|
332
278
|
exports[`Generate html document with correct lang and dir attributes. Load correct bundles. > documentation with rtl and ltr langs > index.html 1`] = `
|
|
333
|
-
"
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
</html>
|
|
356
|
-
"
|
|
279
|
+
"<!DOCTYPE html>
|
|
280
|
+
<html lang="ar" dir="rtl">
|
|
281
|
+
<head>
|
|
282
|
+
<meta charset="utf-8">
|
|
283
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
284
|
+
<base href="./" />
|
|
285
|
+
<title>Redirect to ./ar/index.html</title>
|
|
286
|
+
<meta http-equiv="refresh" content="0; url=./ar/index.html">
|
|
287
|
+
|
|
288
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
289
|
+
<script type="application/javascript">
|
|
290
|
+
window.location.replace("./ar/index.html");
|
|
291
|
+
</script>
|
|
292
|
+
|
|
293
|
+
</head>
|
|
294
|
+
<body class="g-root g-root_theme_light">
|
|
295
|
+
If you are not redirected automatically, follow this <a href="./ar/index.html">link</a>.
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
</body>
|
|
300
|
+
</html>"
|
|
357
301
|
`;
|