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