@diplodoc/cli-tests 0.0.0-rc-fix-translate-openapi-includer-202507171205 → 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__/generate-map.spec.ts.snap +345 -0
- package/e2e/__snapshots__/include-toc.test.ts.snap +42 -0
- package/e2e/__snapshots__/load-custom-resources.spec.ts.snap +31 -117
- package/e2e/__snapshots__/metadata.spec.ts.snap +18 -51
- package/e2e/__snapshots__/plugin-corner-cases.spec.ts.snap +0 -0
- package/e2e/__snapshots__/preprocess.test.ts.snap +581 -0
- package/e2e/__snapshots__/regression.test.ts.snap +151 -268
- package/e2e/__snapshots__/restricted-access.test.ts.snap +20 -0
- package/e2e/__snapshots__/rtl.spec.ts.snap +6 -102
- package/e2e/__snapshots__/search.test.ts.snap +21 -36
- package/e2e/__snapshots__/single-page.spec.ts.snap +157 -0
- package/e2e/__snapshots__/skip-html-extension.spec.ts.snap +152 -0
- package/e2e/__snapshots__/translation.spec.ts.snap +469 -1186
- package/e2e/bundles.spec.ts +15 -0
- package/e2e/errors.spec.ts +33 -2
- package/e2e/generate-map.spec.ts +9 -3
- package/e2e/preprocess.test.ts +33 -0
- package/e2e/redirects-validation.spec.ts +61 -0
- package/e2e/search.test.ts +1 -1
- package/e2e/single-page.spec.ts +22 -0
- package/e2e/skip-html-extension.spec.ts +15 -0
- package/e2e/translation.spec.ts +21 -2
- package/fixtures/cliAdapter.ts +23 -0
- package/fixtures/globals.d.ts +4 -0
- package/fixtures/runners/binary.ts +4 -3
- package/fixtures/runners/types.ts +1 -2
- package/fixtures/utils/file.ts +53 -10
- package/fixtures/utils/test.ts +17 -8
- 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/docs-viewer-interface/input/.yfm +6 -0
- package/mocks/docs-viewer-interface/input/index.md +3 -0
- package/mocks/docs-viewer-interface/input/toc.yaml +5 -0
- package/mocks/errors/extract-filtered-link/input/filtered.md +1 -0
- package/mocks/errors/extract-filtered-link/input/filtered2.md +0 -0
- package/mocks/errors/extract-filtered-link/input/index.md +7 -0
- package/mocks/errors/extract-filtered-link/input/toc.yaml +1 -0
- package/mocks/load-custom-resources/md2html-with-resources/input/page.md +9 -2
- package/mocks/load-custom-resources/md2md-with-resources/input/page.md +9 -2
- package/mocks/load-custom-resources/single-page-with-resources/input/page.md +9 -2
- package/mocks/metadata/md2html-with-metadata/input/page.md +8 -1
- package/mocks/metadata/md2md-with-metadata/input/page.md +7 -0
- package/mocks/preprocess/input/.yfm +1 -0
- package/mocks/preprocess/input/1.md +29 -0
- package/mocks/preprocess/input/_assets/1.png +0 -0
- package/mocks/preprocess/input/_assets/1.svg +0 -0
- package/mocks/preprocess/input/autotitle.md +23 -0
- package/mocks/preprocess/input/commented-include.md +3 -0
- package/mocks/preprocess/input/images.md +5 -0
- package/mocks/preprocess/input/included-item.md +12 -0
- package/mocks/preprocess/input/includes/deep.md +1 -0
- package/mocks/preprocess/input/includes/deepWithIndent.md +6 -0
- package/mocks/preprocess/input/includes/presets.yaml +2 -0
- package/mocks/preprocess/input/includes/sub/user.md +1 -0
- package/mocks/preprocess/input/includes/sub/userWithIndent.md +5 -0
- package/mocks/preprocess/input/includes/test.md +1 -0
- package/mocks/preprocess/input/includes/user.md +1 -0
- package/mocks/preprocess/input/includes.md +18 -0
- package/mocks/preprocess/input/latex.md +3 -0
- package/mocks/preprocess/input/mermaid.md +13 -0
- package/mocks/preprocess/input/presets.yaml +8 -0
- package/mocks/preprocess/input/sub/folder/item-1.md +7 -0
- package/mocks/preprocess/input/sub/toc.yaml +5 -0
- package/mocks/preprocess/input/toc-i.yaml +3 -0
- package/mocks/preprocess/input/toc.yaml +16 -0
- package/mocks/redirects-validation/extensions-deprecation/input/blah.md +0 -0
- package/mocks/redirects-validation/extensions-deprecation/input/redirects.yaml +5 -0
- package/mocks/redirects-validation/extensions-deprecation/input/toc.yaml +4 -0
- package/mocks/redirects-validation/invalid-regex/input/blah.md +0 -0
- package/mocks/redirects-validation/invalid-regex/input/redirects.yaml +3 -0
- package/mocks/redirects-validation/invalid-regex/input/toc.yaml +4 -0
- package/mocks/redirects-validation/malformed-redirect/input/blah.md +0 -0
- package/mocks/redirects-validation/malformed-redirect/input/redirects.yaml +6 -0
- package/mocks/redirects-validation/malformed-redirect/input/toc.yaml +4 -0
- package/mocks/redirects-validation/same-path/input/blah.md +0 -0
- package/mocks/redirects-validation/same-path/input/redirects.yaml +3 -0
- package/mocks/redirects-validation/same-path/input/toc.yaml +4 -0
- package/mocks/redirects-validation/unparseable/input/blah.md +0 -0
- package/mocks/redirects-validation/unparseable/input/redirects.yaml +11 -0
- package/mocks/redirects-validation/unparseable/input/toc.yaml +4 -0
- package/mocks/regression/input/.yfm +2 -0
- package/mocks/regression/input/autotitle.md +3 -0
- package/mocks/regression/input/images.md +2 -0
- package/mocks/regression/input/includes/deep.md +2 -0
- package/mocks/regression/input/includes/presets.yaml +1 -0
- package/mocks/regression/input/includes/tools.md +1 -0
- package/mocks/regression/input/includes.md +5 -0
- package/mocks/regression/input/merge/merge.md +2 -0
- package/mocks/regression/input/merge/presets.yaml +1 -0
- package/mocks/regression/input/merge/toc.yaml +2 -0
- package/mocks/regression/input/presets.yaml +1 -0
- package/mocks/regression/input/toc.yaml +2 -0
- package/mocks/search/input/.yfm +12 -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/mocks/skip-html-extension/input/.yfm +1 -0
- package/mocks/skip-html-extension/input/folder/index.md +1 -0
- package/mocks/skip-html-extension/input/index-test-html/index.md +4 -0
- package/mocks/skip-html-extension/input/index.md +6 -0
- package/mocks/skip-html-extension/input/page1.md +3 -0
- package/mocks/skip-html-extension/input/page2.md +6 -0
- package/mocks/skip-html-extension/input/toc.yaml +13 -0
- package/mocks/translation/dir-files/input/.yfm +6 -0
- package/mocks/translation/dir-files/input/ru/aboba.md +2 -4
- package/mocks/translation/dir-files/input/ru/nested/a1.md +3 -0
- package/mocks/translation/dir-files/input/ru/nested/folder1/a1.md +3 -0
- package/mocks/translation/dir-files/input/ru/nested/folder1/toc-i.yaml +3 -0
- package/mocks/translation/dir-files/input/ru/nested/syntax/base.md +2 -0
- package/mocks/translation/dir-files/input/ru/nested/toc.yaml +1 -0
- package/mocks/translation/dir-files/input/ru/no-var-page.md +3 -0
- package/mocks/translation/dir-files/input/ru/to-be-excluded.md +1 -0
- package/mocks/translation/dir-files/input/ru/toc.yaml +7 -1
- package/mocks/translation/openapi/input/toc.yaml +1 -1
- package/mocks/warning/unreachable-autotitle/input/index.md +1 -0
- package/mocks/warning/unreachable-autotitle/input/link.md +0 -0
- package/mocks/warning/unreachable-autotitle/input/toc.yaml +4 -0
- package/package.json +5 -5
|
@@ -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/search-async-1",
|
|
7
|
-
"_bundle/search-async-0",
|
|
8
|
-
"_bundle/app-css-1",
|
|
9
|
-
"_bundle/app-js-1",
|
|
10
|
-
"_bundle/app-css-3",
|
|
11
|
-
"_bundle/latex-extension.css",
|
|
12
|
-
"_bundle/latex-extension.js",
|
|
13
|
-
"_bundle/mermaid-extension.js",
|
|
14
|
-
"_bundle/page-constructor-extension.css",
|
|
15
|
-
"_bundle/page-constructor-extension.js",
|
|
16
|
-
"_bundle/search-js-0",
|
|
17
|
-
"_bundle/search-css-0",
|
|
18
|
-
"_bundle/search-js-1",
|
|
19
|
-
"_bundle/search-css-3",
|
|
20
|
-
"_bundle/search-css-1",
|
|
21
|
-
"_bundle/search-js-2",
|
|
22
|
-
"_bundle/search-css-2",
|
|
23
6
|
"index.html",
|
|
24
7
|
"page.html",
|
|
25
8
|
"toc.js"
|
|
@@ -37,17 +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/app-css-3"/>
|
|
46
24
|
</head>
|
|
47
25
|
<body class="g-root g-root_theme_light">
|
|
48
26
|
<div id="root"></div>
|
|
49
27
|
<script type="application/json" id="diplodoc-state">
|
|
50
|
-
{"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"]}
|
|
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}}
|
|
51
29
|
</script>
|
|
52
30
|
<script type="application/javascript">
|
|
53
31
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -57,10 +35,6 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
57
35
|
window.STATIC_CONTENT = false;
|
|
58
36
|
</script>
|
|
59
37
|
<script type="application/javascript" defer src="toc.js"></script>
|
|
60
|
-
<script type="application/javascript" defer src="_bundle/search-js-0"></script>
|
|
61
|
-
<script type="application/javascript" defer src="_bundle/app-js-1"></script>
|
|
62
|
-
<script type="application/javascript" defer src="_bundle/search-js-2"></script>
|
|
63
|
-
|
|
64
38
|
</body>
|
|
65
39
|
</html>"
|
|
66
40
|
`;
|
|
@@ -74,17 +48,12 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
74
48
|
<base href="./" />
|
|
75
49
|
<title>Documentation</title>
|
|
76
50
|
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
77
|
-
|
|
78
51
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
<link type="text/css" rel="stylesheet" href="_bundle/search-css-2"/>
|
|
82
|
-
<link type="text/css" rel="stylesheet" href="_bundle/app-css-3"/>
|
|
83
52
|
</head>
|
|
84
53
|
<body class="g-root g-root_theme_light">
|
|
85
54
|
<div id="root"></div>
|
|
86
55
|
<script type="application/json" id="diplodoc-state">
|
|
87
|
-
{"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"]}
|
|
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}}
|
|
88
57
|
</script>
|
|
89
58
|
<script type="application/javascript">
|
|
90
59
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -94,10 +63,6 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
94
63
|
window.STATIC_CONTENT = false;
|
|
95
64
|
</script>
|
|
96
65
|
<script type="application/javascript" defer src="toc.js"></script>
|
|
97
|
-
<script type="application/javascript" defer src="_bundle/search-js-0"></script>
|
|
98
|
-
<script type="application/javascript" defer src="_bundle/app-js-1"></script>
|
|
99
|
-
<script type="application/javascript" defer src="_bundle/search-js-2"></script>
|
|
100
|
-
|
|
101
66
|
</body>
|
|
102
67
|
</html>"
|
|
103
68
|
`;
|
|
@@ -107,23 +72,6 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
107
72
|
exports[`Generate html document with correct lang and dir attributes. Load correct bundles. > documentation with rtl and ltr langs > filelist 1`] = `
|
|
108
73
|
"[
|
|
109
74
|
".yfm",
|
|
110
|
-
"_bundle/search-async-1",
|
|
111
|
-
"_bundle/search-async-0",
|
|
112
|
-
"_bundle/app-css-1",
|
|
113
|
-
"_bundle/app-js-1",
|
|
114
|
-
"_bundle/app-css-3",
|
|
115
|
-
"_bundle/latex-extension.css",
|
|
116
|
-
"_bundle/latex-extension.js",
|
|
117
|
-
"_bundle/mermaid-extension.js",
|
|
118
|
-
"_bundle/page-constructor-extension.css",
|
|
119
|
-
"_bundle/page-constructor-extension.js",
|
|
120
|
-
"_bundle/search-js-0",
|
|
121
|
-
"_bundle/search-css-0",
|
|
122
|
-
"_bundle/search-js-1",
|
|
123
|
-
"_bundle/search-css-3",
|
|
124
|
-
"_bundle/search-css-1",
|
|
125
|
-
"_bundle/search-js-2",
|
|
126
|
-
"_bundle/search-css-2",
|
|
127
75
|
"ar/index.html",
|
|
128
76
|
"ar/page.html",
|
|
129
77
|
"ar/toc.js",
|
|
@@ -145,17 +93,12 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
145
93
|
<base href="../" />
|
|
146
94
|
<title>Documentation | Documentation</title>
|
|
147
95
|
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
148
|
-
|
|
149
96
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
<link type="text/css" rel="stylesheet" href="_bundle/search-css-2"/>
|
|
153
|
-
<link type="text/css" rel="stylesheet" href="_bundle/app-css-3"/>
|
|
154
97
|
</head>
|
|
155
98
|
<body class="g-root g-root_theme_light">
|
|
156
99
|
<div id="root"></div>
|
|
157
100
|
<script type="application/json" id="diplodoc-state">
|
|
158
|
-
{"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"]}
|
|
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}}
|
|
159
102
|
</script>
|
|
160
103
|
<script type="application/javascript">
|
|
161
104
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -165,10 +108,6 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
165
108
|
window.STATIC_CONTENT = false;
|
|
166
109
|
</script>
|
|
167
110
|
<script type="application/javascript" defer src="ar/toc.js"></script>
|
|
168
|
-
<script type="application/javascript" defer src="_bundle/search-js-0"></script>
|
|
169
|
-
<script type="application/javascript" defer src="_bundle/app-js-1"></script>
|
|
170
|
-
<script type="application/javascript" defer src="_bundle/search-js-2"></script>
|
|
171
|
-
|
|
172
111
|
</body>
|
|
173
112
|
</html>"
|
|
174
113
|
`;
|
|
@@ -182,17 +121,12 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
182
121
|
<base href="../" />
|
|
183
122
|
<title>Documentation</title>
|
|
184
123
|
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
185
|
-
|
|
186
124
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
<link type="text/css" rel="stylesheet" href="_bundle/search-css-2"/>
|
|
190
|
-
<link type="text/css" rel="stylesheet" href="_bundle/app-css-3"/>
|
|
191
125
|
</head>
|
|
192
126
|
<body class="g-root g-root_theme_light">
|
|
193
127
|
<div id="root"></div>
|
|
194
128
|
<script type="application/json" id="diplodoc-state">
|
|
195
|
-
{"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"]}
|
|
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}}
|
|
196
130
|
</script>
|
|
197
131
|
<script type="application/javascript">
|
|
198
132
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -202,10 +136,6 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
202
136
|
window.STATIC_CONTENT = false;
|
|
203
137
|
</script>
|
|
204
138
|
<script type="application/javascript" defer src="ar/toc.js"></script>
|
|
205
|
-
<script type="application/javascript" defer src="_bundle/search-js-0"></script>
|
|
206
|
-
<script type="application/javascript" defer src="_bundle/app-js-1"></script>
|
|
207
|
-
<script type="application/javascript" defer src="_bundle/search-js-2"></script>
|
|
208
|
-
|
|
209
139
|
</body>
|
|
210
140
|
</html>"
|
|
211
141
|
`;
|
|
@@ -221,19 +151,12 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
221
151
|
<base href="../" />
|
|
222
152
|
<title>Documentation | Documentation</title>
|
|
223
153
|
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
224
|
-
<meta name="title" content="Documentation">
|
|
225
|
-
<meta name="noIndex" content="true">
|
|
226
|
-
|
|
227
154
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
<link type="text/css" rel="stylesheet" href="_bundle/search-css-1"/>
|
|
231
|
-
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
232
155
|
</head>
|
|
233
156
|
<body class="g-root g-root_theme_light">
|
|
234
157
|
<div id="root"></div>
|
|
235
158
|
<script type="application/json" id="diplodoc-state">
|
|
236
|
-
{"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"]}
|
|
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}}
|
|
237
160
|
</script>
|
|
238
161
|
<script type="application/javascript">
|
|
239
162
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -243,10 +166,6 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
243
166
|
window.STATIC_CONTENT = false;
|
|
244
167
|
</script>
|
|
245
168
|
<script type="application/javascript" defer src="en/toc.js"></script>
|
|
246
|
-
<script type="application/javascript" defer src="_bundle/search-js-0"></script>
|
|
247
|
-
<script type="application/javascript" defer src="_bundle/app-js-1"></script>
|
|
248
|
-
<script type="application/javascript" defer src="_bundle/search-js-2"></script>
|
|
249
|
-
|
|
250
169
|
</body>
|
|
251
170
|
</html>"
|
|
252
171
|
`;
|
|
@@ -261,17 +180,12 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
261
180
|
<title>Documentation</title>
|
|
262
181
|
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
263
182
|
<meta name="yfm" content="builder">
|
|
264
|
-
|
|
265
183
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
<link type="text/css" rel="stylesheet" href="_bundle/search-css-1"/>
|
|
269
|
-
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
270
184
|
</head>
|
|
271
185
|
<body class="g-root g-root_theme_light">
|
|
272
186
|
<div id="root"></div>
|
|
273
187
|
<script type="application/json" id="diplodoc-state">
|
|
274
|
-
{"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"]}
|
|
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}}
|
|
275
189
|
</script>
|
|
276
190
|
<script type="application/javascript">
|
|
277
191
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -281,10 +195,6 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
281
195
|
window.STATIC_CONTENT = false;
|
|
282
196
|
</script>
|
|
283
197
|
<script type="application/javascript" defer src="en/toc.js"></script>
|
|
284
|
-
<script type="application/javascript" defer src="_bundle/search-js-0"></script>
|
|
285
|
-
<script type="application/javascript" defer src="_bundle/app-js-1"></script>
|
|
286
|
-
<script type="application/javascript" defer src="_bundle/search-js-2"></script>
|
|
287
|
-
|
|
288
198
|
</body>
|
|
289
199
|
</html>"
|
|
290
200
|
`;
|
|
@@ -300,19 +210,13 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
300
210
|
<base href="./" />
|
|
301
211
|
<title>Redirect to ./ar/index.html</title>
|
|
302
212
|
<meta http-equiv="refresh" content="0; url=./ar/index.html">
|
|
303
|
-
|
|
304
213
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
305
|
-
|
|
306
214
|
<script type="application/javascript">
|
|
307
215
|
window.location.replace("./ar/index.html");
|
|
308
216
|
</script>
|
|
309
|
-
|
|
310
217
|
</head>
|
|
311
218
|
<body class="g-root g-root_theme_light">
|
|
312
219
|
If you are not redirected automatically, follow this <a href="./ar/index.html">link</a>.
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
220
|
</body>
|
|
317
221
|
</html>"
|
|
318
222
|
`;
|
|
@@ -2,54 +2,44 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`Local search > internal > filelist 1`] = `
|
|
4
4
|
"[
|
|
5
|
-
"
|
|
6
|
-
"_bundle/search-async-0",
|
|
7
|
-
"_bundle/app-css-1",
|
|
8
|
-
"_bundle/app-js-1",
|
|
9
|
-
"_bundle/app-css-3",
|
|
10
|
-
"_bundle/latex-extension.css",
|
|
11
|
-
"_bundle/latex-extension.js",
|
|
12
|
-
"_bundle/mermaid-extension.js",
|
|
13
|
-
"_bundle/page-constructor-extension.css",
|
|
14
|
-
"_bundle/page-constructor-extension.js",
|
|
15
|
-
"_bundle/search-js-0",
|
|
16
|
-
"_bundle/search-css-0",
|
|
17
|
-
"_bundle/search-js-1",
|
|
18
|
-
"_bundle/search-css-3",
|
|
19
|
-
"_bundle/search-css-1",
|
|
20
|
-
"_bundle/search-js-2",
|
|
21
|
-
"_bundle/search-css-2",
|
|
22
|
-
"_search/api.js",
|
|
23
|
-
"_search/ru/hash-index.js",
|
|
24
|
-
"_search/ru/hash-resources.js",
|
|
25
|
-
"_search/ru/hash-registry.js",
|
|
26
|
-
"_search/ru/index.html",
|
|
27
|
-
"_search/ru/language.js",
|
|
5
|
+
".yfm",
|
|
28
6
|
"index.html",
|
|
29
7
|
"toc.js"
|
|
30
8
|
]"
|
|
31
9
|
`;
|
|
32
10
|
|
|
33
11
|
exports[`Local search > internal 1`] = `
|
|
12
|
+
"allowHTML: true
|
|
13
|
+
langs: ['en','ru']
|
|
14
|
+
|
|
15
|
+
interface:
|
|
16
|
+
toc-header: false
|
|
17
|
+
favicon-src: https://storage.yandexcloud.net/diplodoc-www-assets/favicon/favicon.ico
|
|
18
|
+
|
|
19
|
+
search:
|
|
20
|
+
provider: local
|
|
21
|
+
tolerance: 2
|
|
22
|
+
confidense: phrased
|
|
23
|
+
"
|
|
24
|
+
`;
|
|
25
|
+
|
|
26
|
+
exports[`Local search > internal 2`] = `
|
|
34
27
|
"<!DOCTYPE html>
|
|
35
|
-
<html lang="
|
|
28
|
+
<html lang="en" dir="ltr">
|
|
36
29
|
<head>
|
|
37
30
|
<meta charset="utf-8">
|
|
38
31
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
39
32
|
<base href="./" />
|
|
40
33
|
<title>Header</title>
|
|
41
34
|
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
42
|
-
|
|
35
|
+
<meta http-equiv="Content-Security-Policy" content="worker-src 'self';">
|
|
43
36
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
<link type="text/css" rel="stylesheet" href="_bundle/search-css-1"/>
|
|
47
|
-
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
37
|
+
<link rel="icon" type="image/x-icon" href="https://storage.yandexcloud.net/diplodoc-www-assets/favicon/favicon.ico">
|
|
48
38
|
</head>
|
|
49
39
|
<body class="g-root g-root_theme_light">
|
|
50
40
|
<div id="root"></div>
|
|
51
41
|
<script type="application/json" id="diplodoc-state">
|
|
52
|
-
{"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":"
|
|
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"}}
|
|
53
43
|
</script>
|
|
54
44
|
<script type="application/javascript">
|
|
55
45
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -59,13 +49,8 @@ exports[`Local search > internal 1`] = `
|
|
|
59
49
|
window.STATIC_CONTENT = false;
|
|
60
50
|
</script>
|
|
61
51
|
<script type="application/javascript" defer src="toc.js"></script>
|
|
62
|
-
<script type="application/javascript" defer src="_search/ru/hash-resources.js"></script>
|
|
63
|
-
<script type="application/javascript" defer src="_bundle/search-js-0"></script>
|
|
64
|
-
<script type="application/javascript" defer src="_bundle/app-js-1"></script>
|
|
65
|
-
<script type="application/javascript" defer src="_bundle/search-js-2"></script>
|
|
66
|
-
|
|
67
52
|
</body>
|
|
68
53
|
</html>"
|
|
69
54
|
`;
|
|
70
55
|
|
|
71
|
-
exports[`Local search > internal
|
|
56
|
+
exports[`Local search > internal 3`] = `"window.__DATA__.data.toc = {"href":"index.html","path":"toc.yaml","id":"UUID"};"`;
|
|
@@ -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"};"`;
|