@diplodoc/cli-tests 0.0.0-rc-liquid-conditions-saving-202509050811 → 0.0.0-rc-resolve-codeblock-202509151421
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__/bundles.spec.ts.snap +168 -0
- package/e2e/__snapshots__/include-toc.test.ts.snap +34 -0
- package/e2e/__snapshots__/load-custom-resources.spec.ts.snap +15 -106
- package/e2e/__snapshots__/metadata.spec.ts.snap +9 -47
- package/e2e/__snapshots__/plugin-corner-cases.spec.ts.snap +0 -0
- package/e2e/__snapshots__/preprocess.test.ts.snap +32 -0
- package/e2e/__snapshots__/regression.test.ts.snap +59 -211
- package/e2e/__snapshots__/restricted-access.test.ts.snap +20 -0
- package/e2e/__snapshots__/rtl.spec.ts.snap +6 -105
- package/e2e/__snapshots__/search.test.ts.snap +1 -31
- package/e2e/__snapshots__/single-page.spec.ts.snap +157 -0
- package/e2e/__snapshots__/skip-html-extension.spec.ts.snap +4 -63
- package/e2e/__snapshots__/translation.spec.ts.snap +183 -1416
- package/e2e/bundles.spec.ts +15 -0
- package/e2e/single-page.spec.ts +22 -0
- package/e2e/translation.spec.ts +0 -26
- package/fixtures/utils/file.ts +49 -6
- package/mocks/bundles/input/.yfm +13 -0
- package/mocks/bundles/input/index.md +12 -0
- package/mocks/bundles/input/page1.md +3 -0
- package/mocks/bundles/input/page2.md +5 -0
- package/mocks/bundles/input/toc.yaml +9 -0
- package/mocks/errors/extract-filtered-link/input/index.md +1 -1
- package/mocks/regression/input/autotitle.md +3 -0
- package/mocks/single-page/input/ru/index.yaml +9 -0
- package/mocks/single-page/input/ru/page.md +14 -0
- package/mocks/single-page/input/ru/project/config.md +1 -0
- package/mocks/single-page/input/ru/toc.yaml +7 -0
- package/package.json +1 -1
- package/mocks/translation/conditions/input/index.md +0 -37
|
@@ -18,6 +18,8 @@ restricted-access:
|
|
|
18
18
|
- manager
|
|
19
19
|
- - userA
|
|
20
20
|
- userB
|
|
21
|
+
vcsPath: plugins/index.md
|
|
22
|
+
sourcePath: plugins/index.md
|
|
21
23
|
---
|
|
22
24
|
"
|
|
23
25
|
`;
|
|
@@ -30,6 +32,8 @@ metadata:
|
|
|
30
32
|
restricted-access:
|
|
31
33
|
- - userA
|
|
32
34
|
- userB
|
|
35
|
+
vcsPath: project/index.md
|
|
36
|
+
sourcePath: project/index.md
|
|
33
37
|
---
|
|
34
38
|
"
|
|
35
39
|
`;
|
|
@@ -72,6 +76,8 @@ exports[`Restricted access > Nested toc restricted access 1`] = `
|
|
|
72
76
|
metadata:
|
|
73
77
|
- name: generator
|
|
74
78
|
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
79
|
+
vcsPath: a1.md
|
|
80
|
+
sourcePath: a1.md
|
|
75
81
|
---
|
|
76
82
|
This is the /a1.md file content.
|
|
77
83
|
"
|
|
@@ -87,6 +93,8 @@ restricted-access:
|
|
|
87
93
|
- userB
|
|
88
94
|
- - userAtoc2
|
|
89
95
|
- userBtoc2
|
|
96
|
+
vcsPath: folder1/a1.md
|
|
97
|
+
sourcePath: folder1/a1.md
|
|
90
98
|
---
|
|
91
99
|
This is the /folder1/a1.md file content.
|
|
92
100
|
"
|
|
@@ -102,6 +110,8 @@ restricted-access:
|
|
|
102
110
|
- userB
|
|
103
111
|
- - userAtoc3
|
|
104
112
|
- userBtoc3
|
|
113
|
+
vcsPath: folder1/folder2/a1.md
|
|
114
|
+
sourcePath: folder1/folder2/a1.md
|
|
105
115
|
---
|
|
106
116
|
This is the /folder1/folder1/a1.md file content.
|
|
107
117
|
"
|
|
@@ -150,6 +160,8 @@ metadata:
|
|
|
150
160
|
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
151
161
|
restricted-access:
|
|
152
162
|
- - admin
|
|
163
|
+
vcsPath: index.md
|
|
164
|
+
sourcePath: index.md
|
|
153
165
|
---
|
|
154
166
|
"
|
|
155
167
|
`;
|
|
@@ -161,6 +173,8 @@ metadata:
|
|
|
161
173
|
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
162
174
|
restricted-access:
|
|
163
175
|
- - admin
|
|
176
|
+
vcsPath: plugins/index.md
|
|
177
|
+
sourcePath: plugins/index.md
|
|
164
178
|
---
|
|
165
179
|
"
|
|
166
180
|
`;
|
|
@@ -174,6 +188,8 @@ restricted-access:
|
|
|
174
188
|
- - admin
|
|
175
189
|
- - admin
|
|
176
190
|
- user
|
|
191
|
+
vcsPath: plugins/index2.md
|
|
192
|
+
sourcePath: plugins/index2.md
|
|
177
193
|
---
|
|
178
194
|
"
|
|
179
195
|
`;
|
|
@@ -185,6 +201,8 @@ metadata:
|
|
|
185
201
|
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
186
202
|
restricted-access:
|
|
187
203
|
- - admin
|
|
204
|
+
vcsPath: plugins/index3.md
|
|
205
|
+
sourcePath: plugins/index3.md
|
|
188
206
|
---
|
|
189
207
|
"
|
|
190
208
|
`;
|
|
@@ -197,6 +215,8 @@ metadata:
|
|
|
197
215
|
restricted-access:
|
|
198
216
|
- - admin
|
|
199
217
|
- - customInFile
|
|
218
|
+
vcsPath: plugins/index4.md
|
|
219
|
+
sourcePath: plugins/index4.md
|
|
200
220
|
---
|
|
201
221
|
"
|
|
202
222
|
`;
|
|
@@ -3,23 +3,6 @@
|
|
|
3
3
|
exports[`Generate html document with correct lang and dir attributes. Load correct bundles. > documentation with only one rtl lang > filelist 1`] = `
|
|
4
4
|
"[
|
|
5
5
|
".yfm",
|
|
6
|
-
"_bundle/app-css-1",
|
|
7
|
-
"_bundle/app-js-2",
|
|
8
|
-
"_bundle/latex-extension.css",
|
|
9
|
-
"_bundle/latex-extension.js",
|
|
10
|
-
"_bundle/mermaid-extension.js",
|
|
11
|
-
"_bundle/page-constructor-extension.css",
|
|
12
|
-
"_bundle/page-constructor-extension.js",
|
|
13
|
-
"_bundle/search-async-0",
|
|
14
|
-
"_bundle/search-async-1",
|
|
15
|
-
"_bundle/search-css-0",
|
|
16
|
-
"_bundle/search-css-1",
|
|
17
|
-
"_bundle/search-css-2",
|
|
18
|
-
"_bundle/search-css-3",
|
|
19
|
-
"_bundle/search-css-4",
|
|
20
|
-
"_bundle/search-js-0",
|
|
21
|
-
"_bundle/search-js-1",
|
|
22
|
-
"_bundle/search-js-2",
|
|
23
6
|
"index.html",
|
|
24
7
|
"page.html",
|
|
25
8
|
"toc.js"
|
|
@@ -37,18 +20,12 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
37
20
|
<base href="./" />
|
|
38
21
|
<title>Documentation | Documentation</title>
|
|
39
22
|
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
40
|
-
|
|
41
23
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
<link type="text/css" rel="stylesheet" href="_bundle/search-css-2"/>
|
|
45
|
-
<link type="text/css" rel="stylesheet" href="_bundle/search-css-3"/>
|
|
46
|
-
<link type="text/css" rel="stylesheet" href="_bundle/search-css-4"/>
|
|
47
24
|
</head>
|
|
48
25
|
<body class="g-root g-root_theme_light">
|
|
49
26
|
<div id="root"></div>
|
|
50
27
|
<script type="application/json" id="diplodoc-state">
|
|
51
|
-
{"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"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
28
|
+
{"data":{"leading":true,"data":{"title":"Documentation","links":[{"title":"Documentation","href":"page.html"}]},"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"index.yaml","sourcePath":"index.yaml"},"title":"Documentation"},"router":{"pathname":"index","depth":1,"base":"./"},"lang":"he","langs":["he"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
52
29
|
</script>
|
|
53
30
|
<script type="application/javascript">
|
|
54
31
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -58,10 +35,6 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
58
35
|
window.STATIC_CONTENT = false;
|
|
59
36
|
</script>
|
|
60
37
|
<script type="application/javascript" defer src="toc.js"></script>
|
|
61
|
-
<script type="application/javascript" defer src="_bundle/search-js-1"></script>
|
|
62
|
-
<script type="application/javascript" defer src="_bundle/search-js-2"></script>
|
|
63
|
-
<script type="application/javascript" defer src="_bundle/app-js-2"></script>
|
|
64
|
-
|
|
65
38
|
</body>
|
|
66
39
|
</html>"
|
|
67
40
|
`;
|
|
@@ -75,18 +48,12 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
75
48
|
<base href="./" />
|
|
76
49
|
<title>Documentation</title>
|
|
77
50
|
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
78
|
-
|
|
79
51
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
<link type="text/css" rel="stylesheet" href="_bundle/search-css-2"/>
|
|
83
|
-
<link type="text/css" rel="stylesheet" href="_bundle/search-css-3"/>
|
|
84
|
-
<link type="text/css" rel="stylesheet" href="_bundle/search-css-4"/>
|
|
85
52
|
</head>
|
|
86
53
|
<body class="g-root g-root_theme_light">
|
|
87
54
|
<div id="root"></div>
|
|
88
55
|
<script type="application/json" id="diplodoc-state">
|
|
89
|
-
{"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"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
56
|
+
{"data":{"leading":false,"html":"<p>תיעוד</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"page.md","sourcePath":"page.md"},"headings":[],"title":""},"router":{"pathname":"page","depth":1,"base":"./"},"lang":"he","langs":["he"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
90
57
|
</script>
|
|
91
58
|
<script type="application/javascript">
|
|
92
59
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -96,10 +63,6 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
96
63
|
window.STATIC_CONTENT = false;
|
|
97
64
|
</script>
|
|
98
65
|
<script type="application/javascript" defer src="toc.js"></script>
|
|
99
|
-
<script type="application/javascript" defer src="_bundle/search-js-1"></script>
|
|
100
|
-
<script type="application/javascript" defer src="_bundle/search-js-2"></script>
|
|
101
|
-
<script type="application/javascript" defer src="_bundle/app-js-2"></script>
|
|
102
|
-
|
|
103
66
|
</body>
|
|
104
67
|
</html>"
|
|
105
68
|
`;
|
|
@@ -109,23 +72,6 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
109
72
|
exports[`Generate html document with correct lang and dir attributes. Load correct bundles. > documentation with rtl and ltr langs > filelist 1`] = `
|
|
110
73
|
"[
|
|
111
74
|
".yfm",
|
|
112
|
-
"_bundle/app-css-1",
|
|
113
|
-
"_bundle/app-js-2",
|
|
114
|
-
"_bundle/latex-extension.css",
|
|
115
|
-
"_bundle/latex-extension.js",
|
|
116
|
-
"_bundle/mermaid-extension.js",
|
|
117
|
-
"_bundle/page-constructor-extension.css",
|
|
118
|
-
"_bundle/page-constructor-extension.js",
|
|
119
|
-
"_bundle/search-async-0",
|
|
120
|
-
"_bundle/search-async-1",
|
|
121
|
-
"_bundle/search-css-0",
|
|
122
|
-
"_bundle/search-css-1",
|
|
123
|
-
"_bundle/search-css-2",
|
|
124
|
-
"_bundle/search-css-3",
|
|
125
|
-
"_bundle/search-css-4",
|
|
126
|
-
"_bundle/search-js-0",
|
|
127
|
-
"_bundle/search-js-1",
|
|
128
|
-
"_bundle/search-js-2",
|
|
129
75
|
"ar/index.html",
|
|
130
76
|
"ar/page.html",
|
|
131
77
|
"ar/toc.js",
|
|
@@ -147,18 +93,12 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
147
93
|
<base href="../" />
|
|
148
94
|
<title>Documentation | Documentation</title>
|
|
149
95
|
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
150
|
-
|
|
151
96
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
<link type="text/css" rel="stylesheet" href="_bundle/search-css-2"/>
|
|
155
|
-
<link type="text/css" rel="stylesheet" href="_bundle/search-css-3"/>
|
|
156
|
-
<link type="text/css" rel="stylesheet" href="_bundle/search-css-4"/>
|
|
157
97
|
</head>
|
|
158
98
|
<body class="g-root g-root_theme_light">
|
|
159
99
|
<div id="root"></div>
|
|
160
100
|
<script type="application/json" id="diplodoc-state">
|
|
161
|
-
{"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"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
101
|
+
{"data":{"leading":true,"data":{"title":"Documentation","links":[{"title":"Documentation","href":"ar/page.html"}]},"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"ar/index.yaml","sourcePath":"ar/index.yaml"},"title":"Documentation"},"router":{"pathname":"ar/index","depth":2,"base":"../"},"lang":"ar","langs":["ar","en"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
162
102
|
</script>
|
|
163
103
|
<script type="application/javascript">
|
|
164
104
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -168,10 +108,6 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
168
108
|
window.STATIC_CONTENT = false;
|
|
169
109
|
</script>
|
|
170
110
|
<script type="application/javascript" defer src="ar/toc.js"></script>
|
|
171
|
-
<script type="application/javascript" defer src="_bundle/search-js-1"></script>
|
|
172
|
-
<script type="application/javascript" defer src="_bundle/search-js-2"></script>
|
|
173
|
-
<script type="application/javascript" defer src="_bundle/app-js-2"></script>
|
|
174
|
-
|
|
175
111
|
</body>
|
|
176
112
|
</html>"
|
|
177
113
|
`;
|
|
@@ -185,18 +121,12 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
185
121
|
<base href="../" />
|
|
186
122
|
<title>Documentation</title>
|
|
187
123
|
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
188
|
-
|
|
189
124
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
<link type="text/css" rel="stylesheet" href="_bundle/search-css-2"/>
|
|
193
|
-
<link type="text/css" rel="stylesheet" href="_bundle/search-css-3"/>
|
|
194
|
-
<link type="text/css" rel="stylesheet" href="_bundle/search-css-4"/>
|
|
195
125
|
</head>
|
|
196
126
|
<body class="g-root g-root_theme_light">
|
|
197
127
|
<div id="root"></div>
|
|
198
128
|
<script type="application/json" id="diplodoc-state">
|
|
199
|
-
{"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"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
129
|
+
{"data":{"leading":false,"html":"<p>توثيق</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"ar/page.md","sourcePath":"ar/page.md"},"headings":[],"title":""},"router":{"pathname":"ar/page","depth":2,"base":"../"},"lang":"ar","langs":["ar","en"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
200
130
|
</script>
|
|
201
131
|
<script type="application/javascript">
|
|
202
132
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -206,10 +136,6 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
206
136
|
window.STATIC_CONTENT = false;
|
|
207
137
|
</script>
|
|
208
138
|
<script type="application/javascript" defer src="ar/toc.js"></script>
|
|
209
|
-
<script type="application/javascript" defer src="_bundle/search-js-1"></script>
|
|
210
|
-
<script type="application/javascript" defer src="_bundle/search-js-2"></script>
|
|
211
|
-
<script type="application/javascript" defer src="_bundle/app-js-2"></script>
|
|
212
|
-
|
|
213
139
|
</body>
|
|
214
140
|
</html>"
|
|
215
141
|
`;
|
|
@@ -225,18 +151,12 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
225
151
|
<base href="../" />
|
|
226
152
|
<title>Documentation | Documentation</title>
|
|
227
153
|
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
228
|
-
<meta name="noIndex" content="true">
|
|
229
|
-
|
|
230
154
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
<link type="text/css" rel="stylesheet" href="_bundle/search-css-0"/>
|
|
234
|
-
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
235
155
|
</head>
|
|
236
156
|
<body class="g-root g-root_theme_light">
|
|
237
157
|
<div id="root"></div>
|
|
238
158
|
<script type="application/json" id="diplodoc-state">
|
|
239
|
-
{"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"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
159
|
+
{"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,"vcsPath":"en/index.yaml","sourcePath":"en/index.yaml"},"title":"Documentation"},"router":{"pathname":"en/index","depth":2,"base":"../"},"lang":"en","langs":["ar","en"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
240
160
|
</script>
|
|
241
161
|
<script type="application/javascript">
|
|
242
162
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -246,10 +166,6 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
246
166
|
window.STATIC_CONTENT = false;
|
|
247
167
|
</script>
|
|
248
168
|
<script type="application/javascript" defer src="en/toc.js"></script>
|
|
249
|
-
<script type="application/javascript" defer src="_bundle/search-js-1"></script>
|
|
250
|
-
<script type="application/javascript" defer src="_bundle/search-js-2"></script>
|
|
251
|
-
<script type="application/javascript" defer src="_bundle/app-js-2"></script>
|
|
252
|
-
|
|
253
169
|
</body>
|
|
254
170
|
</html>"
|
|
255
171
|
`;
|
|
@@ -264,17 +180,12 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
264
180
|
<title>Documentation</title>
|
|
265
181
|
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
266
182
|
<meta name="yfm" content="builder">
|
|
267
|
-
|
|
268
183
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
<link type="text/css" rel="stylesheet" href="_bundle/search-css-0"/>
|
|
272
|
-
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
273
184
|
</head>
|
|
274
185
|
<body class="g-root g-root_theme_light">
|
|
275
186
|
<div id="root"></div>
|
|
276
187
|
<script type="application/json" id="diplodoc-state">
|
|
277
|
-
{"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"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
188
|
+
{"data":{"leading":false,"html":"<p>Lorem</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"},{"name":"yfm","content":"builder"}],"vcsPath":"en/page.md","sourcePath":"en/page.md"},"headings":[],"title":""},"router":{"pathname":"en/page","depth":2,"base":"../"},"lang":"en","langs":["ar","en"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
278
189
|
</script>
|
|
279
190
|
<script type="application/javascript">
|
|
280
191
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -284,10 +195,6 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
284
195
|
window.STATIC_CONTENT = false;
|
|
285
196
|
</script>
|
|
286
197
|
<script type="application/javascript" defer src="en/toc.js"></script>
|
|
287
|
-
<script type="application/javascript" defer src="_bundle/search-js-1"></script>
|
|
288
|
-
<script type="application/javascript" defer src="_bundle/search-js-2"></script>
|
|
289
|
-
<script type="application/javascript" defer src="_bundle/app-js-2"></script>
|
|
290
|
-
|
|
291
198
|
</body>
|
|
292
199
|
</html>"
|
|
293
200
|
`;
|
|
@@ -303,19 +210,13 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
303
210
|
<base href="./" />
|
|
304
211
|
<title>Redirect to ./ar/index.html</title>
|
|
305
212
|
<meta http-equiv="refresh" content="0; url=./ar/index.html">
|
|
306
|
-
|
|
307
213
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
308
|
-
|
|
309
214
|
<script type="application/javascript">
|
|
310
215
|
window.location.replace("./ar/index.html");
|
|
311
216
|
</script>
|
|
312
|
-
|
|
313
217
|
</head>
|
|
314
218
|
<body class="g-root g-root_theme_light">
|
|
315
219
|
If you are not redirected automatically, follow this <a href="./ar/index.html">link</a>.
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
220
|
</body>
|
|
320
221
|
</html>"
|
|
321
222
|
`;
|
|
@@ -3,28 +3,6 @@
|
|
|
3
3
|
exports[`Local search > internal > filelist 1`] = `
|
|
4
4
|
"[
|
|
5
5
|
".yfm",
|
|
6
|
-
"_bundle/app-css-1",
|
|
7
|
-
"_bundle/app-js-2",
|
|
8
|
-
"_bundle/latex-extension.css",
|
|
9
|
-
"_bundle/latex-extension.js",
|
|
10
|
-
"_bundle/mermaid-extension.js",
|
|
11
|
-
"_bundle/page-constructor-extension.css",
|
|
12
|
-
"_bundle/page-constructor-extension.js",
|
|
13
|
-
"_bundle/search-async-0",
|
|
14
|
-
"_bundle/search-async-1",
|
|
15
|
-
"_bundle/search-css-0",
|
|
16
|
-
"_bundle/search-css-1",
|
|
17
|
-
"_bundle/search-css-2",
|
|
18
|
-
"_bundle/search-css-3",
|
|
19
|
-
"_bundle/search-css-4",
|
|
20
|
-
"_bundle/search-js-0",
|
|
21
|
-
"_bundle/search-js-1",
|
|
22
|
-
"_bundle/search-js-2",
|
|
23
|
-
"_search/api.js",
|
|
24
|
-
"_search/en/hash-resources.js",
|
|
25
|
-
"_search/en/hash-index.js",
|
|
26
|
-
"_search/en/hash-registry.js",
|
|
27
|
-
"_search/en/index.html",
|
|
28
6
|
"index.html",
|
|
29
7
|
"toc.js"
|
|
30
8
|
]"
|
|
@@ -57,14 +35,11 @@ exports[`Local search > internal 2`] = `
|
|
|
57
35
|
<meta http-equiv="Content-Security-Policy" content="worker-src 'self';">
|
|
58
36
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
59
37
|
<link rel="icon" type="image/x-icon" href="https://storage.yandexcloud.net/diplodoc-www-assets/favicon/favicon.ico">
|
|
60
|
-
|
|
61
|
-
<link type="text/css" rel="stylesheet" href="_bundle/search-css-0"/>
|
|
62
|
-
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
63
38
|
</head>
|
|
64
39
|
<body class="g-root g-root_theme_light">
|
|
65
40
|
<div id="root"></div>
|
|
66
41
|
<script type="application/json" id="diplodoc-state">
|
|
67
|
-
{"data":{"leading":false,"html":"<p>Content</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}]},"headings":[],"title":"Header"},"router":{"pathname":"index","depth":1,"base":"./"},"lang":"en","langs":["en","ru"],"viewerInterface":{"toc-header":false,"favicon-src":"https://storage.yandexcloud.net/diplodoc-www-assets/favicon/favicon.ico","toc":false,"search":true,"feedback":true},"search":{"provider":"local","tolerance":2,"confidense":"phrased","enabled":true,"api":"_search/api.js","link":"_search/en/index.html"}}
|
|
42
|
+
{"data":{"leading":false,"html":"<p>Content</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"index.md","sourcePath":"index.md"},"headings":[],"title":"Header"},"router":{"pathname":"index","depth":1,"base":"./"},"lang":"en","langs":["en","ru"],"viewerInterface":{"toc-header":false,"favicon-src":"https://storage.yandexcloud.net/diplodoc-www-assets/favicon/favicon.ico","toc":false,"search":true,"feedback":true},"search":{"provider":"local","tolerance":2,"confidense":"phrased","enabled":true,"api":"_search/api.js","link":"_search/en/index.html"}}
|
|
68
43
|
</script>
|
|
69
44
|
<script type="application/javascript">
|
|
70
45
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -74,11 +49,6 @@ exports[`Local search > internal 2`] = `
|
|
|
74
49
|
window.STATIC_CONTENT = false;
|
|
75
50
|
</script>
|
|
76
51
|
<script type="application/javascript" defer src="toc.js"></script>
|
|
77
|
-
<script type="application/javascript" defer src="_search/en/hash-resources.js"></script>
|
|
78
|
-
<script type="application/javascript" defer src="_bundle/search-js-1"></script>
|
|
79
|
-
<script type="application/javascript" defer src="_bundle/search-js-2"></script>
|
|
80
|
-
<script type="application/javascript" defer src="_bundle/app-js-2"></script>
|
|
81
|
-
|
|
82
52
|
</body>
|
|
83
53
|
</html>"
|
|
84
54
|
`;
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
|
+
|
|
3
|
+
exports[`Single page mode > simple md2html single page with lang dirs > filelist 1`] = `
|
|
4
|
+
"[
|
|
5
|
+
"index.html",
|
|
6
|
+
"ru/index.html",
|
|
7
|
+
"ru/page.html",
|
|
8
|
+
"ru/project/config.html",
|
|
9
|
+
"ru/single-page-toc.js",
|
|
10
|
+
"ru/single-page.html",
|
|
11
|
+
"ru/single-page.json",
|
|
12
|
+
"ru/toc.js"
|
|
13
|
+
]"
|
|
14
|
+
`;
|
|
15
|
+
|
|
16
|
+
exports[`Single page mode > simple md2html single page with lang dirs 1`] = `
|
|
17
|
+
"<!DOCTYPE html>
|
|
18
|
+
<html lang="ru" dir="ltr">
|
|
19
|
+
<head>
|
|
20
|
+
<meta charset="utf-8">
|
|
21
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
22
|
+
<base href="./" />
|
|
23
|
+
<title>Redirect to ./ru/index.html</title>
|
|
24
|
+
<meta http-equiv="refresh" content="0; url=./ru/index.html">
|
|
25
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
26
|
+
<script type="application/javascript">
|
|
27
|
+
window.location.replace("./ru/index.html");
|
|
28
|
+
</script>
|
|
29
|
+
</head>
|
|
30
|
+
<body class="g-root g-root_theme_light">
|
|
31
|
+
If you are not redirected automatically, follow this <a href="./ru/index.html">link</a>.
|
|
32
|
+
</body>
|
|
33
|
+
</html>"
|
|
34
|
+
`;
|
|
35
|
+
|
|
36
|
+
exports[`Single page mode > simple md2html single page with lang dirs 2`] = `
|
|
37
|
+
"<!DOCTYPE html>
|
|
38
|
+
<html lang="ru" dir="ltr">
|
|
39
|
+
<head>
|
|
40
|
+
<meta charset="utf-8">
|
|
41
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
42
|
+
<base href="../" />
|
|
43
|
+
<title>Documentation | Documentation</title>
|
|
44
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
45
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
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":{"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":"ru/page.html"}]},"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"title":"Documentation","noIndex":true,"vcsPath":"ru/index.yaml","sourcePath":"ru/index.yaml"},"title":"Documentation"},"router":{"pathname":"ru/index","depth":2,"base":"../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
51
|
+
</script>
|
|
52
|
+
<script type="application/javascript">
|
|
53
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
54
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
55
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
56
|
+
})(data.innerText));
|
|
57
|
+
window.STATIC_CONTENT = false;
|
|
58
|
+
</script>
|
|
59
|
+
<script type="application/javascript" defer src="ru/toc.js"></script>
|
|
60
|
+
</body>
|
|
61
|
+
</html>"
|
|
62
|
+
`;
|
|
63
|
+
|
|
64
|
+
exports[`Single page mode > simple md2html single page with lang dirs 3`] = `
|
|
65
|
+
"<!DOCTYPE html>
|
|
66
|
+
<html lang="ru" dir="ltr">
|
|
67
|
+
<head>
|
|
68
|
+
<meta charset="utf-8">
|
|
69
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
70
|
+
<base href="../" />
|
|
71
|
+
<title>Page Title | Documentation</title>
|
|
72
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
73
|
+
<meta name="yfm" content="builder in page">
|
|
74
|
+
<meta name="description" content="Some test description">
|
|
75
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
76
|
+
<link rel="icon" type="image/x-icon" href="/favicon.ico">
|
|
77
|
+
</head>
|
|
78
|
+
<body class="g-root g-root_theme_light">
|
|
79
|
+
<div id="root"></div>
|
|
80
|
+
<script type="application/json" id="diplodoc-state">
|
|
81
|
+
{"data":{"leading":false,"html":"<p>Lorem</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"},{"name":"yfm","content":"builder in page"},{"name":"description","content":"Some test description"}],"title":"Page Title","description":"Some test description","interface":{"toc":false,"favicon-src":"/favicon.ico"},"vcsPath":"ru/page.md","sourcePath":"ru/page.md"},"headings":[],"title":"Page Title"},"router":{"pathname":"ru/page","depth":2,"base":"../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":false,"search":true,"feedback":true,"favicon-src":"/favicon.ico"}}
|
|
82
|
+
</script>
|
|
83
|
+
<script type="application/javascript">
|
|
84
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
85
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
86
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
87
|
+
})(data.innerText));
|
|
88
|
+
window.STATIC_CONTENT = false;
|
|
89
|
+
</script>
|
|
90
|
+
<script type="application/javascript" defer src="ru/toc.js"></script>
|
|
91
|
+
</body>
|
|
92
|
+
</html>"
|
|
93
|
+
`;
|
|
94
|
+
|
|
95
|
+
exports[`Single page mode > simple md2html single page with lang dirs 4`] = `
|
|
96
|
+
"<!DOCTYPE html>
|
|
97
|
+
<html lang="ru" dir="ltr">
|
|
98
|
+
<head>
|
|
99
|
+
<meta charset="utf-8">
|
|
100
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
101
|
+
<base href="../../" />
|
|
102
|
+
<title>Documentation</title>
|
|
103
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
104
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
105
|
+
</head>
|
|
106
|
+
<body class="g-root g-root_theme_light">
|
|
107
|
+
<div id="root"></div>
|
|
108
|
+
<script type="application/json" id="diplodoc-state">
|
|
109
|
+
{"data":{"leading":false,"html":"<p>Lorem</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"ru/project/config.md","sourcePath":"ru/project/config.md"},"headings":[],"title":""},"router":{"pathname":"ru/project/config","depth":3,"base":"../../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
110
|
+
</script>
|
|
111
|
+
<script type="application/javascript">
|
|
112
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
113
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
114
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
115
|
+
})(data.innerText));
|
|
116
|
+
window.STATIC_CONTENT = false;
|
|
117
|
+
</script>
|
|
118
|
+
<script type="application/javascript" defer src="ru/toc.js"></script>
|
|
119
|
+
</body>
|
|
120
|
+
</html>"
|
|
121
|
+
`;
|
|
122
|
+
|
|
123
|
+
exports[`Single page mode > simple md2html single page with lang dirs 5`] = `"window.__DATA__.data.toc = {"title":"Documentation","href":"ru/single-page.html#ru_index","items":[{"name":"Documentation","href":"ru/single-page.html#ru_page","id":"UUID"},{"name":"Config","href":"ru/single-page.html#ru_project_config","id":"UUID"}],"path":"ru/toc.yaml","id":"UUID"};"`;
|
|
124
|
+
|
|
125
|
+
exports[`Single page mode > simple md2html single page with lang dirs 6`] = `
|
|
126
|
+
"<!DOCTYPE html>
|
|
127
|
+
<html lang="ru" dir="ltr">
|
|
128
|
+
<head>
|
|
129
|
+
<meta charset="utf-8">
|
|
130
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
131
|
+
<base href="../" />
|
|
132
|
+
<title>Documentation | Documentation</title>
|
|
133
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
134
|
+
<meta name="yfm" content="builder in page">
|
|
135
|
+
<meta name="description" content="Some test description">
|
|
136
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
137
|
+
</head>
|
|
138
|
+
<body class="g-root g-root_theme_light">
|
|
139
|
+
<div id="root"></div>
|
|
140
|
+
<script type="application/json" id="diplodoc-state">
|
|
141
|
+
{"data":{"leading":false,"html":"<h2 data-original-article=\\"ru/page.html\\">Page Title<a class=\\"yfm-anchor\\" aria-hidden=\\"true\\" href=\\"ru/single-page.html#ru_page\\" id=\\"ru_page\\"></a></h2><p>Lorem</p>/n<hr class=\\"yfm-page__delimeter\\"><p>Lorem</p>/n","headings":[],"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"},{"name":"yfm","content":"builder in page"},{"name":"description","content":"Some test description"}]},"title":"Documentation"},"router":{"pathname":"ru/single-page","depth":2,"base":"../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
142
|
+
</script>
|
|
143
|
+
<script type="application/javascript">
|
|
144
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
145
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
146
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
147
|
+
})(data.innerText));
|
|
148
|
+
window.STATIC_CONTENT = false;
|
|
149
|
+
</script>
|
|
150
|
+
<script type="application/javascript" defer src="ru/single-page-toc.js"></script>
|
|
151
|
+
</body>
|
|
152
|
+
</html>"
|
|
153
|
+
`;
|
|
154
|
+
|
|
155
|
+
exports[`Single page mode > simple md2html single page with lang dirs 7`] = `"{"data":{"leading":false,"html":"<h2 data-original-article=\\"ru/page.html\\">Page Title<a class=\\"yfm-anchor\\" aria-hidden=\\"true\\" href=\\"ru/single-page.html#ru_page\\" id=\\"ru_page\\"></a></h2><p>Lorem</p>/n<hr class=\\"yfm-page__delimeter\\"><p>Lorem</p>/n","headings":[],"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"},{"name":"yfm","content":"builder in page"},{"name":"description","content":"Some test description"}]},"title":"Documentation","toc":{"title":"Documentation","href":"ru/index.html","items":[{"name":"Documentation","href":"ru/page.html","id":"UUID"},{"name":"Config","href":"ru/project/config.html","id":"UUID"}],"path":"ru/toc.yaml","id":"UUID"}},"router":{"pathname":"ru/single-page","depth":2,"base":"../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}"`;
|
|
156
|
+
|
|
157
|
+
exports[`Single page mode > simple md2html single page with lang dirs 8`] = `"window.__DATA__.data.toc = {"title":"Documentation","href":"ru/index.html","items":[{"name":"Documentation","href":"ru/page.html","id":"UUID"},{"name":"Config","href":"ru/project/config.html","id":"UUID"}],"path":"ru/toc.yaml","id":"UUID"};"`;
|