@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
|
@@ -37,196 +37,166 @@ exports[`Allow load custom resources > md2html single page with custom resources
|
|
|
37
37
|
`;
|
|
38
38
|
|
|
39
39
|
exports[`Allow load custom resources > md2html single page with custom resources > index.html 1`] = `
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
<meta name="
|
|
48
|
-
<meta name="
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
<
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
<
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
<script src="toc.js" type="application/javascript"></script>
|
|
78
|
-
|
|
79
|
-
<script type="application/javascript" src="_bundle/search-js-0"></script>
|
|
80
|
-
<script type="application/javascript" src="_bundle/app-js-1"></script>
|
|
81
|
-
<script type="application/javascript" src="_bundle/search-js-2"></script>
|
|
82
|
-
</body>
|
|
83
|
-
</html>
|
|
84
|
-
"
|
|
40
|
+
"<!DOCTYPE html>
|
|
41
|
+
<html lang="ru" dir="ltr">
|
|
42
|
+
<head>
|
|
43
|
+
<meta charset="utf-8">
|
|
44
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
45
|
+
<base href="./" />
|
|
46
|
+
<title>Documentation | Documentation</title>
|
|
47
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
48
|
+
<meta name="title" content="Documentation">
|
|
49
|
+
<meta name="noIndex" content="true">
|
|
50
|
+
|
|
51
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
52
|
+
|
|
53
|
+
<link type="text/css" rel="stylesheet" href="_bundle/search-css-0"/>
|
|
54
|
+
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
55
|
+
<link type="text/css" rel="stylesheet" href="_assets/style/test.css"/>
|
|
56
|
+
</head>
|
|
57
|
+
<body class="g-root g-root_theme_light">
|
|
58
|
+
<div id="root"></div>
|
|
59
|
+
<script type="application/json" id="diplodoc-state">
|
|
60
|
+
{"data":{"leading":true,"data":{"title":"Documentation","description":"","links":[{"title":"Getting started with Documentation","description":"This guide will show you the basics of working with Documentation","href":"page.html"}]},"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"],"title":"Documentation","noIndex":true},"title":"Documentation"},"router":{"pathname":"index","depth":1,"base":"./"},"lang":"ru","langs":["ru"]}
|
|
61
|
+
</script>
|
|
62
|
+
<script type="application/javascript">
|
|
63
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
64
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
65
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
66
|
+
})(data.innerText));
|
|
67
|
+
window.STATIC_CONTENT = false;
|
|
68
|
+
</script>
|
|
69
|
+
<script type="application/javascript" defer src="toc.js"></script>
|
|
70
|
+
<script type="application/javascript" defer src="_bundle/search-js-0"></script>
|
|
71
|
+
<script type="application/javascript" defer src="_bundle/app-js-1"></script>
|
|
72
|
+
<script type="application/javascript" defer src="_bundle/search-js-2"></script>
|
|
73
|
+
<script type="application/javascript" defer src="_assets/script/test1.js"></script>
|
|
74
|
+
|
|
75
|
+
</body>
|
|
76
|
+
</html>"
|
|
85
77
|
`;
|
|
86
78
|
|
|
87
79
|
exports[`Allow load custom resources > md2html single page with custom resources > page.html 1`] = `
|
|
88
|
-
"
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
<meta name="
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
<
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
<
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
<script src="toc.js" type="application/javascript"></script>
|
|
125
|
-
|
|
126
|
-
<script type="application/javascript" src="_bundle/search-js-0"></script>
|
|
127
|
-
<script type="application/javascript" src="_bundle/app-js-1"></script>
|
|
128
|
-
<script type="application/javascript" src="_bundle/search-js-2"></script>
|
|
129
|
-
</body>
|
|
130
|
-
</html>
|
|
131
|
-
"
|
|
80
|
+
"<!DOCTYPE html>
|
|
81
|
+
<html lang="ru" dir="ltr">
|
|
82
|
+
<head>
|
|
83
|
+
<meta charset="utf-8">
|
|
84
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
85
|
+
<base href="./" />
|
|
86
|
+
<title>Documentation</title>
|
|
87
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
88
|
+
<meta name="yfm" content="builder">
|
|
89
|
+
|
|
90
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
91
|
+
|
|
92
|
+
<link type="text/css" rel="stylesheet" href="_bundle/search-css-0"/>
|
|
93
|
+
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
94
|
+
<link type="text/css" rel="stylesheet" href="_assets/style/test.css"/>
|
|
95
|
+
</head>
|
|
96
|
+
<body class="g-root g-root_theme_light">
|
|
97
|
+
<div id="root"></div>
|
|
98
|
+
<script type="application/json" id="diplodoc-state">
|
|
99
|
+
{"data":{"leading":false,"html":"<p>Lorem</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"},{"name":"yfm","content":"builder"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"]},"headings":[],"title":""},"router":{"pathname":"page","depth":1,"base":"./"},"lang":"ru","langs":["ru"]}
|
|
100
|
+
</script>
|
|
101
|
+
<script type="application/javascript">
|
|
102
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
103
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
104
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
105
|
+
})(data.innerText));
|
|
106
|
+
window.STATIC_CONTENT = false;
|
|
107
|
+
</script>
|
|
108
|
+
<script type="application/javascript" defer src="toc.js"></script>
|
|
109
|
+
<script type="application/javascript" defer src="_bundle/search-js-0"></script>
|
|
110
|
+
<script type="application/javascript" defer src="_bundle/app-js-1"></script>
|
|
111
|
+
<script type="application/javascript" defer src="_bundle/search-js-2"></script>
|
|
112
|
+
<script type="application/javascript" defer src="_assets/script/test1.js"></script>
|
|
113
|
+
|
|
114
|
+
</body>
|
|
115
|
+
</html>"
|
|
132
116
|
`;
|
|
133
117
|
|
|
134
118
|
exports[`Allow load custom resources > md2html single page with custom resources > project/config.html 1`] = `
|
|
135
|
-
"
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
<
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
<
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
<script src="toc.js" type="application/javascript"></script>
|
|
171
|
-
|
|
172
|
-
<script type="application/javascript" src="_bundle/search-js-0"></script>
|
|
173
|
-
<script type="application/javascript" src="_bundle/app-js-1"></script>
|
|
174
|
-
<script type="application/javascript" src="_bundle/search-js-2"></script>
|
|
175
|
-
</body>
|
|
176
|
-
</html>
|
|
177
|
-
"
|
|
119
|
+
"<!DOCTYPE html>
|
|
120
|
+
<html lang="ru" dir="ltr">
|
|
121
|
+
<head>
|
|
122
|
+
<meta charset="utf-8">
|
|
123
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
124
|
+
<base href="../" />
|
|
125
|
+
<title>Documentation</title>
|
|
126
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
127
|
+
|
|
128
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
129
|
+
|
|
130
|
+
<link type="text/css" rel="stylesheet" href="_bundle/search-css-0"/>
|
|
131
|
+
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
132
|
+
<link type="text/css" rel="stylesheet" href="_assets/style/test.css"/>
|
|
133
|
+
</head>
|
|
134
|
+
<body class="g-root g-root_theme_light">
|
|
135
|
+
<div id="root"></div>
|
|
136
|
+
<script type="application/json" id="diplodoc-state">
|
|
137
|
+
{"data":{"leading":false,"html":"<p>Lorem</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"]},"headings":[],"title":""},"router":{"pathname":"project/config","depth":2,"base":"../"},"lang":"ru","langs":["ru"]}
|
|
138
|
+
</script>
|
|
139
|
+
<script type="application/javascript">
|
|
140
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
141
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
142
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
143
|
+
})(data.innerText));
|
|
144
|
+
window.STATIC_CONTENT = false;
|
|
145
|
+
</script>
|
|
146
|
+
<script type="application/javascript" defer src="toc.js"></script>
|
|
147
|
+
<script type="application/javascript" defer src="_bundle/search-js-0"></script>
|
|
148
|
+
<script type="application/javascript" defer src="_bundle/app-js-1"></script>
|
|
149
|
+
<script type="application/javascript" defer src="_bundle/search-js-2"></script>
|
|
150
|
+
<script type="application/javascript" defer src="_assets/script/test1.js"></script>
|
|
151
|
+
|
|
152
|
+
</body>
|
|
153
|
+
</html>"
|
|
178
154
|
`;
|
|
179
155
|
|
|
180
156
|
exports[`Allow load custom resources > md2html single page with custom resources > single-page.html 1`] = `
|
|
181
|
-
"
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
<
|
|
198
|
-
|
|
199
|
-
<script
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
<script type="application/javascript" src="_bundle/search-js-0"></script>
|
|
218
|
-
<script type="application/javascript" src="_bundle/app-js-1"></script>
|
|
219
|
-
<script type="application/javascript" src="_bundle/search-js-2"></script>
|
|
220
|
-
</body>
|
|
221
|
-
</html>
|
|
222
|
-
"
|
|
157
|
+
"<!DOCTYPE html>
|
|
158
|
+
<html lang="ru" dir="ltr">
|
|
159
|
+
<head>
|
|
160
|
+
<meta charset="utf-8">
|
|
161
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
162
|
+
<base href="./" />
|
|
163
|
+
<title>Documentation | Documentation</title>
|
|
164
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
165
|
+
<meta name="yfm" content="builder">
|
|
166
|
+
|
|
167
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
168
|
+
|
|
169
|
+
<link type="text/css" rel="stylesheet" href="_bundle/search-css-0"/>
|
|
170
|
+
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
171
|
+
<link type="text/css" rel="stylesheet" href="_assets/style/test.css"/>
|
|
172
|
+
</head>
|
|
173
|
+
<body class="g-root g-root_theme_light">
|
|
174
|
+
<div id="root"></div>
|
|
175
|
+
<script type="application/json" id="diplodoc-state">
|
|
176
|
+
{"data":{"leading":false,"html":"<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"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"]},"title":"Documentation"},"router":{"pathname":"single-page","depth":1,"base":"./"},"lang":"ru","langs":["ru"]}
|
|
177
|
+
</script>
|
|
178
|
+
<script type="application/javascript">
|
|
179
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
180
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
181
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
182
|
+
})(data.innerText));
|
|
183
|
+
window.STATIC_CONTENT = false;
|
|
184
|
+
</script>
|
|
185
|
+
<script type="application/javascript" defer src="single-page-toc.js"></script>
|
|
186
|
+
<script type="application/javascript" defer src="_bundle/search-js-0"></script>
|
|
187
|
+
<script type="application/javascript" defer src="_bundle/app-js-1"></script>
|
|
188
|
+
<script type="application/javascript" defer src="_bundle/search-js-2"></script>
|
|
189
|
+
<script type="application/javascript" defer src="_assets/script/test1.js"></script>
|
|
190
|
+
|
|
191
|
+
</body>
|
|
192
|
+
</html>"
|
|
223
193
|
`;
|
|
224
194
|
|
|
225
|
-
exports[`Allow load custom resources > md2html single page with custom resources > single-page.json 1`] = `"{"data":{"leading":false,"html":"<p>Lorem</p>/n<hr class=\\"yfm-page__delimeter\\"><p>Lorem</p>/n","headings":[],"meta":{"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"]},"title":"Documentation"},"router":{"pathname":"single-page
|
|
195
|
+
exports[`Allow load custom resources > md2html single page with custom resources > single-page.json 1`] = `"{"data":{"leading":false,"html":"<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"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"]},"title":"Documentation","toc":{"title":"Documentation","href":"index.html","items":[{"name":"Documentation","href":"page.html","id":"UUID"},{"name":"Config","href":"project/config.html","id":"UUID"}],"path":"toc.yaml","id":"UUID"}},"router":{"pathname":"single-page","depth":1,"base":"./"},"lang":"ru","langs":["ru"]}"`;
|
|
226
196
|
|
|
227
|
-
exports[`Allow load custom resources > md2html single page with custom resources > single-page-toc.js 1`] = `"window.__DATA__.data.toc = {"title":"Documentation","href":"#index","items":[{"name":"Documentation","href":"#page"},{"name":"Config","href":"#project_config"}]};"`;
|
|
197
|
+
exports[`Allow load custom resources > md2html single page with custom resources > single-page-toc.js 1`] = `"window.__DATA__.data.toc = {"title":"Documentation","href":"#index","items":[{"name":"Documentation","href":"#page","id":"UUID"},{"name":"Config","href":"#project_config","id":"UUID"}],"path":"toc.yaml","id":"UUID"};"`;
|
|
228
198
|
|
|
229
|
-
exports[`Allow load custom resources > md2html single page with custom resources > toc.js 1`] = `"window.__DATA__.data.toc = {"title":"Documentation","href":"index.html","items":[{"name":"Documentation","href":"page.html","id":"UUID"},{"name":"Config","href":"project/config.html","id":"UUID"}],"id":"UUID"};"`;
|
|
199
|
+
exports[`Allow load custom resources > md2html single page with custom resources > toc.js 1`] = `"window.__DATA__.data.toc = {"title":"Documentation","href":"index.html","items":[{"name":"Documentation","href":"page.html","id":"UUID"},{"name":"Config","href":"project/config.html","id":"UUID"}],"path":"toc.yaml","id":"UUID"};"`;
|
|
230
200
|
|
|
231
201
|
exports[`Allow load custom resources > md2html with custom resources > .yfm 1`] = `
|
|
232
202
|
"resources:
|
|
@@ -262,147 +232,123 @@ exports[`Allow load custom resources > md2html with custom resources > filelist
|
|
|
262
232
|
`;
|
|
263
233
|
|
|
264
234
|
exports[`Allow load custom resources > md2html with custom resources > index.html 1`] = `
|
|
265
|
-
"
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
<meta name="
|
|
273
|
-
<meta name="
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
<
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
<
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
<script src="toc.js" type="application/javascript"></script>
|
|
303
|
-
|
|
304
|
-
<script type="application/javascript" src="_bundle/search-js-0"></script>
|
|
305
|
-
<script type="application/javascript" src="_bundle/app-js-1"></script>
|
|
306
|
-
<script type="application/javascript" src="_bundle/search-js-2"></script>
|
|
307
|
-
</body>
|
|
308
|
-
</html>
|
|
309
|
-
"
|
|
235
|
+
"<!DOCTYPE html>
|
|
236
|
+
<html lang="ru" dir="ltr">
|
|
237
|
+
<head>
|
|
238
|
+
<meta charset="utf-8">
|
|
239
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
240
|
+
<base href="./" />
|
|
241
|
+
<title>Documentation | Documentation</title>
|
|
242
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
243
|
+
<meta name="title" content="Documentation">
|
|
244
|
+
<meta name="noIndex" content="true">
|
|
245
|
+
|
|
246
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
247
|
+
|
|
248
|
+
<link type="text/css" rel="stylesheet" href="_bundle/search-css-0"/>
|
|
249
|
+
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
250
|
+
<link type="text/css" rel="stylesheet" href="_assets/style/test.css"/>
|
|
251
|
+
</head>
|
|
252
|
+
<body class="g-root g-root_theme_light">
|
|
253
|
+
<div id="root"></div>
|
|
254
|
+
<script type="application/json" id="diplodoc-state">
|
|
255
|
+
{"data":{"leading":true,"data":{"title":"Documentation","description":"","links":[{"title":"Getting started with Documentation","description":"This guide will show you the basics of working with Documentation","href":"page.html"}]},"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"],"title":"Documentation","noIndex":true},"title":"Documentation"},"router":{"pathname":"index","depth":1,"base":"./"},"lang":"ru","langs":["ru"]}
|
|
256
|
+
</script>
|
|
257
|
+
<script type="application/javascript">
|
|
258
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
259
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
260
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
261
|
+
})(data.innerText));
|
|
262
|
+
window.STATIC_CONTENT = false;
|
|
263
|
+
</script>
|
|
264
|
+
<script type="application/javascript" defer src="toc.js"></script>
|
|
265
|
+
<script type="application/javascript" defer src="_bundle/search-js-0"></script>
|
|
266
|
+
<script type="application/javascript" defer src="_bundle/app-js-1"></script>
|
|
267
|
+
<script type="application/javascript" defer src="_bundle/search-js-2"></script>
|
|
268
|
+
<script type="application/javascript" defer src="_assets/script/test1.js"></script>
|
|
269
|
+
|
|
270
|
+
</body>
|
|
271
|
+
</html>"
|
|
310
272
|
`;
|
|
311
273
|
|
|
312
274
|
exports[`Allow load custom resources > md2html with custom resources > page.html 1`] = `
|
|
313
|
-
"
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
<meta name="
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
<
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
<
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
<script src="toc.js" type="application/javascript"></script>
|
|
350
|
-
|
|
351
|
-
<script type="application/javascript" src="_bundle/search-js-0"></script>
|
|
352
|
-
<script type="application/javascript" src="_bundle/app-js-1"></script>
|
|
353
|
-
<script type="application/javascript" src="_bundle/search-js-2"></script>
|
|
354
|
-
</body>
|
|
355
|
-
</html>
|
|
356
|
-
"
|
|
275
|
+
"<!DOCTYPE html>
|
|
276
|
+
<html lang="ru" dir="ltr">
|
|
277
|
+
<head>
|
|
278
|
+
<meta charset="utf-8">
|
|
279
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
280
|
+
<base href="./" />
|
|
281
|
+
<title>Documentation</title>
|
|
282
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
283
|
+
<meta name="yfm" content="builder">
|
|
284
|
+
|
|
285
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
286
|
+
|
|
287
|
+
<link type="text/css" rel="stylesheet" href="_bundle/search-css-0"/>
|
|
288
|
+
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
289
|
+
<link type="text/css" rel="stylesheet" href="_assets/style/test.css"/>
|
|
290
|
+
</head>
|
|
291
|
+
<body class="g-root g-root_theme_light">
|
|
292
|
+
<div id="root"></div>
|
|
293
|
+
<script type="application/json" id="diplodoc-state">
|
|
294
|
+
{"data":{"leading":false,"html":"<p>Lorem</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"},{"name":"yfm","content":"builder"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"]},"headings":[],"title":""},"router":{"pathname":"page","depth":1,"base":"./"},"lang":"ru","langs":["ru"]}
|
|
295
|
+
</script>
|
|
296
|
+
<script type="application/javascript">
|
|
297
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
298
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
299
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
300
|
+
})(data.innerText));
|
|
301
|
+
window.STATIC_CONTENT = false;
|
|
302
|
+
</script>
|
|
303
|
+
<script type="application/javascript" defer src="toc.js"></script>
|
|
304
|
+
<script type="application/javascript" defer src="_bundle/search-js-0"></script>
|
|
305
|
+
<script type="application/javascript" defer src="_bundle/app-js-1"></script>
|
|
306
|
+
<script type="application/javascript" defer src="_bundle/search-js-2"></script>
|
|
307
|
+
<script type="application/javascript" defer src="_assets/script/test1.js"></script>
|
|
308
|
+
|
|
309
|
+
</body>
|
|
310
|
+
</html>"
|
|
357
311
|
`;
|
|
358
312
|
|
|
359
313
|
exports[`Allow load custom resources > md2html with custom resources > project/config.html 1`] = `
|
|
360
|
-
"
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
<
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
<
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
<script src="toc.js" type="application/javascript"></script>
|
|
396
|
-
|
|
397
|
-
<script type="application/javascript" src="_bundle/search-js-0"></script>
|
|
398
|
-
<script type="application/javascript" src="_bundle/app-js-1"></script>
|
|
399
|
-
<script type="application/javascript" src="_bundle/search-js-2"></script>
|
|
400
|
-
</body>
|
|
401
|
-
</html>
|
|
402
|
-
"
|
|
314
|
+
"<!DOCTYPE html>
|
|
315
|
+
<html lang="ru" dir="ltr">
|
|
316
|
+
<head>
|
|
317
|
+
<meta charset="utf-8">
|
|
318
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
319
|
+
<base href="../" />
|
|
320
|
+
<title>Documentation</title>
|
|
321
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
322
|
+
|
|
323
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
324
|
+
|
|
325
|
+
<link type="text/css" rel="stylesheet" href="_bundle/search-css-0"/>
|
|
326
|
+
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
327
|
+
<link type="text/css" rel="stylesheet" href="_assets/style/test.css"/>
|
|
328
|
+
</head>
|
|
329
|
+
<body class="g-root g-root_theme_light">
|
|
330
|
+
<div id="root"></div>
|
|
331
|
+
<script type="application/json" id="diplodoc-state">
|
|
332
|
+
{"data":{"leading":false,"html":"<p>Lorem</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"style":["_assets/style/test.css"],"script":["_assets/script/test1.js"]},"headings":[],"title":""},"router":{"pathname":"project/config","depth":2,"base":"../"},"lang":"ru","langs":["ru"]}
|
|
333
|
+
</script>
|
|
334
|
+
<script type="application/javascript">
|
|
335
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
336
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
337
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
338
|
+
})(data.innerText));
|
|
339
|
+
window.STATIC_CONTENT = false;
|
|
340
|
+
</script>
|
|
341
|
+
<script type="application/javascript" defer src="toc.js"></script>
|
|
342
|
+
<script type="application/javascript" defer src="_bundle/search-js-0"></script>
|
|
343
|
+
<script type="application/javascript" defer src="_bundle/app-js-1"></script>
|
|
344
|
+
<script type="application/javascript" defer src="_bundle/search-js-2"></script>
|
|
345
|
+
<script type="application/javascript" defer src="_assets/script/test1.js"></script>
|
|
346
|
+
|
|
347
|
+
</body>
|
|
348
|
+
</html>"
|
|
403
349
|
`;
|
|
404
350
|
|
|
405
|
-
exports[`Allow load custom resources > md2html with custom resources > toc.js 1`] = `"window.__DATA__.data.toc = {"title":"Documentation","href":"index.html","items":[{"name":"Documentation","href":"page.html","id":"UUID"},{"name":"Config","href":"project/config.html","id":"UUID"}],"id":"UUID"};"`;
|
|
351
|
+
exports[`Allow load custom resources > md2html with custom resources > toc.js 1`] = `"window.__DATA__.data.toc = {"title":"Documentation","href":"index.html","items":[{"name":"Documentation","href":"page.html","id":"UUID"},{"name":"Config","href":"project/config.html","id":"UUID"}],"path":"toc.yaml","id":"UUID"};"`;
|
|
406
352
|
|
|
407
353
|
exports[`Allow load custom resources > md2md with custom resources > .yfm 1`] = `
|
|
408
354
|
"resources:
|
|
@@ -483,5 +429,6 @@ items:
|
|
|
483
429
|
href: page.md
|
|
484
430
|
- name: Config
|
|
485
431
|
href: project/config.md
|
|
432
|
+
path: toc.yaml
|
|
486
433
|
"
|
|
487
434
|
`;
|