@diplodoc/cli-tests 5.35.3 → 5.36.1
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 +26 -26
- package/e2e/__snapshots__/files.spec.ts.snap +1 -2
- package/e2e/__snapshots__/merge-includes.spec.ts.snap +241 -30
- package/e2e/__snapshots__/pdf-page.spec.ts.snap +157 -6
- package/e2e/__snapshots__/preprocess.test.ts.snap +78 -78
- package/e2e/__snapshots__/regression.test.ts.snap +216 -55
- package/e2e/merge-includes.spec.ts +45 -1
- package/e2e/pdf-page.spec.ts +27 -0
- package/e2e/preprocess.test.ts +2 -2
- package/e2e/regression.test.ts +3 -3
- package/fixtures/utils/test.ts +112 -22
- package/mocks/merge-includes/hash-section-html/input/_includes/mixed.md +11 -0
- package/mocks/merge-includes/hash-section-html/input/index.md +3 -0
- package/mocks/merge-includes/hash-section-html/input/main.md +13 -0
- package/mocks/merge-includes/hash-section-html/input/toc.yaml +5 -0
- package/mocks/merge-includes/html-in-list/input/_includes/styles.md +7 -0
- package/mocks/merge-includes/html-in-list/input/index.md +3 -0
- package/mocks/merge-includes/html-in-list/input/main.md +11 -0
- package/mocks/merge-includes/html-in-list/input/toc.yaml +5 -0
- package/mocks/merge-includes/term-extract/input/_includes/chapter.md +7 -0
- package/mocks/merge-includes/term-extract/input/index.md +3 -0
- package/mocks/merge-includes/term-extract/input/main.md +7 -0
- package/mocks/merge-includes/term-extract/input/toc.yaml +5 -0
- package/mocks/merge-includes/yfm-table/input/_includes/cell-content.md +1 -0
- package/mocks/merge-includes/yfm-table/input/index.md +3 -0
- package/mocks/merge-includes/yfm-table/input/main.md +12 -0
- package/mocks/merge-includes/yfm-table/input/toc.yaml +5 -0
- package/mocks/pdf-page/custom-pdf-icon/input/.yfm +6 -0
- package/mocks/pdf-page/custom-pdf-icon/input/_assets/custom-pdf-icon.svg +1 -0
- package/mocks/pdf-page/custom-pdf-icon/input/index.md +1 -0
- package/mocks/pdf-page/custom-pdf-icon/input/pdf/output.pdf +0 -0
- package/mocks/pdf-page/custom-pdf-icon/input/toc.yaml +2 -0
- package/mocks/regression/input/autotitle.md +33 -1
- package/mocks/regression/input/includes/fragments.md +24 -0
- package/mocks/regression/input/includes/styles.md +8 -0
- package/mocks/regression/input/includes.md +6 -0
- package/mocks/regression/input/toc.yaml +2 -0
- package/package.json +1 -1
|
@@ -3,22 +3,22 @@
|
|
|
3
3
|
exports[`Check bundles > bundles list is correct > filelist 1`] = `
|
|
4
4
|
"[
|
|
5
5
|
".yfm",
|
|
6
|
-
"_bundle/app-css
|
|
7
|
-
"_bundle/app-js
|
|
6
|
+
"_bundle/app-css",
|
|
7
|
+
"_bundle/app-js",
|
|
8
|
+
"_bundle/app-rtl-css",
|
|
9
|
+
"_bundle/chunk-js",
|
|
8
10
|
"_bundle/latex-extension.css",
|
|
9
11
|
"_bundle/latex-extension.js",
|
|
10
12
|
"_bundle/mermaid-extension.js",
|
|
11
13
|
"_bundle/page-constructor-extension.css",
|
|
12
14
|
"_bundle/page-constructor-extension.js",
|
|
13
|
-
"_bundle/
|
|
14
|
-
"_bundle/search-css
|
|
15
|
-
"_bundle/search-
|
|
16
|
-
"_bundle/search-css
|
|
17
|
-
"_bundle/
|
|
18
|
-
"_bundle/
|
|
19
|
-
"_bundle/
|
|
20
|
-
"_bundle/search-js-1",
|
|
21
|
-
"_bundle/search-js-2",
|
|
15
|
+
"_bundle/react-js",
|
|
16
|
+
"_bundle/search-css",
|
|
17
|
+
"_bundle/search-js",
|
|
18
|
+
"_bundle/search-rtl-css",
|
|
19
|
+
"_bundle/vendor-css",
|
|
20
|
+
"_bundle/vendor-js",
|
|
21
|
+
"_bundle/vendor-rtl-css",
|
|
22
22
|
"_search/api.js",
|
|
23
23
|
"_search/ru/hash-index.js",
|
|
24
24
|
"_search/ru/hash-registry.js",
|
|
@@ -65,8 +65,8 @@ exports[`Check bundles > bundles list is correct 2`] = `
|
|
|
65
65
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
66
66
|
<link rel="icon" type="image/x-icon" href="https://storage.yandexcloud.net/diplodoc-www-assets/favicon/favicon.ico">
|
|
67
67
|
|
|
68
|
-
<link type="text/css" rel="stylesheet" href="_bundle/
|
|
69
|
-
<link type="text/css" rel="stylesheet" href="_bundle/
|
|
68
|
+
<link type="text/css" rel="stylesheet" href="_bundle/app-css"/>
|
|
69
|
+
<link type="text/css" rel="stylesheet" href="_bundle/vendor-css"/>
|
|
70
70
|
</head>
|
|
71
71
|
<body class="g-root g-root_theme_light">
|
|
72
72
|
<div id="root"></div>
|
|
@@ -82,9 +82,9 @@ exports[`Check bundles > bundles list is correct 2`] = `
|
|
|
82
82
|
</script>
|
|
83
83
|
<script type="application/javascript" defer src="toc.js"></script>
|
|
84
84
|
<script type="application/javascript" defer src="_search/ru/hash-resources.js"></script>
|
|
85
|
-
<script type="application/javascript" defer src="_bundle/app-js
|
|
86
|
-
<script type="application/javascript" defer src="_bundle/
|
|
87
|
-
<script type="application/javascript" defer src="_bundle/
|
|
85
|
+
<script type="application/javascript" defer src="_bundle/app-js"></script>
|
|
86
|
+
<script type="application/javascript" defer src="_bundle/react-js"></script>
|
|
87
|
+
<script type="application/javascript" defer src="_bundle/vendor-js"></script>
|
|
88
88
|
|
|
89
89
|
</body>
|
|
90
90
|
</html>"
|
|
@@ -105,8 +105,8 @@ exports[`Check bundles > bundles list is correct 3`] = `
|
|
|
105
105
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
106
106
|
<link rel="icon" type="image/x-icon" href="https://storage.yandexcloud.net/diplodoc-www-assets/favicon/favicon.ico">
|
|
107
107
|
|
|
108
|
-
<link type="text/css" rel="stylesheet" href="_bundle/
|
|
109
|
-
<link type="text/css" rel="stylesheet" href="_bundle/
|
|
108
|
+
<link type="text/css" rel="stylesheet" href="_bundle/app-css"/>
|
|
109
|
+
<link type="text/css" rel="stylesheet" href="_bundle/vendor-css"/>
|
|
110
110
|
</head>
|
|
111
111
|
<body class="g-root g-root_theme_light">
|
|
112
112
|
<div id="root"></div>
|
|
@@ -122,9 +122,9 @@ exports[`Check bundles > bundles list is correct 3`] = `
|
|
|
122
122
|
</script>
|
|
123
123
|
<script type="application/javascript" defer src="toc.js"></script>
|
|
124
124
|
<script type="application/javascript" defer src="_search/ru/hash-resources.js"></script>
|
|
125
|
-
<script type="application/javascript" defer src="_bundle/app-js
|
|
126
|
-
<script type="application/javascript" defer src="_bundle/
|
|
127
|
-
<script type="application/javascript" defer src="_bundle/
|
|
125
|
+
<script type="application/javascript" defer src="_bundle/app-js"></script>
|
|
126
|
+
<script type="application/javascript" defer src="_bundle/react-js"></script>
|
|
127
|
+
<script type="application/javascript" defer src="_bundle/vendor-js"></script>
|
|
128
128
|
|
|
129
129
|
</body>
|
|
130
130
|
</html>"
|
|
@@ -145,8 +145,8 @@ exports[`Check bundles > bundles list is correct 4`] = `
|
|
|
145
145
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
146
146
|
<link rel="icon" type="image/x-icon" href="https://storage.yandexcloud.net/diplodoc-www-assets/favicon/favicon.ico">
|
|
147
147
|
|
|
148
|
-
<link type="text/css" rel="stylesheet" href="_bundle/
|
|
149
|
-
<link type="text/css" rel="stylesheet" href="_bundle/
|
|
148
|
+
<link type="text/css" rel="stylesheet" href="_bundle/app-css"/>
|
|
149
|
+
<link type="text/css" rel="stylesheet" href="_bundle/vendor-css"/>
|
|
150
150
|
</head>
|
|
151
151
|
<body class="g-root g-root_theme_light">
|
|
152
152
|
<div id="root"></div>
|
|
@@ -162,9 +162,9 @@ exports[`Check bundles > bundles list is correct 4`] = `
|
|
|
162
162
|
</script>
|
|
163
163
|
<script type="application/javascript" defer src="toc.js"></script>
|
|
164
164
|
<script type="application/javascript" defer src="_search/ru/hash-resources.js"></script>
|
|
165
|
-
<script type="application/javascript" defer src="_bundle/app-js
|
|
166
|
-
<script type="application/javascript" defer src="_bundle/
|
|
167
|
-
<script type="application/javascript" defer src="_bundle/
|
|
165
|
+
<script type="application/javascript" defer src="_bundle/app-js"></script>
|
|
166
|
+
<script type="application/javascript" defer src="_bundle/react-js"></script>
|
|
167
|
+
<script type="application/javascript" defer src="_bundle/vendor-js"></script>
|
|
168
168
|
|
|
169
169
|
</body>
|
|
170
170
|
</html>"
|
|
@@ -110,12 +110,11 @@ exports[`Static files from _assets directory > Download link should be enabled 4
|
|
|
110
110
|
<title>Test123</title>
|
|
111
111
|
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
112
112
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
113
|
-
<link type="text/css" rel="stylesheet" href="_assets/file-extension.css"/>
|
|
114
113
|
</head>
|
|
115
114
|
<body class="g-root g-root_theme_light">
|
|
116
115
|
<div id="root"></div>
|
|
117
116
|
<script type="application/json" id="diplodoc-state">
|
|
118
|
-
{"data":{"leading":false,"html":"<h3 id=\\"download-static-file\\"><a href=\\"index.html#download-static-file\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Download static file</span></a>Download static file</h3>/n<p>Текст <a href=\\"_assets/test.yaml\\" download=\\"Configuration File\\" class=\\"yfm-file\\"><span class=\\"yfm-file__icon\\"></span>Configuration File</a> потом текст</p>/n<p>Текст <a href=\\"_assets/test.txt\\" download=\\"Configuration File txt\\" class=\\"yfm-file\\"><span class=\\"yfm-file__icon\\"></span>Configuration File txt</a> потом текст</p>/n<p>Текст <a href=\\"_assets/test.docx\\" download=\\"Configuration File txt\\" class=\\"yfm-file\\"><span class=\\"yfm-file__icon\\"></span>Configuration File txt</a> потом текст</p>/n<p>Текст <a href=\\"_assets/test.xlsx\\" download=\\"Configuration File txt\\" class=\\"yfm-file\\"><span class=\\"yfm-file__icon\\"></span>Configuration File txt</a> потом текст</p>/n<p>Текст <a href=\\"_assets/test.csv\\" download=\\"Configuration File txt\\" class=\\"yfm-file\\"><span class=\\"yfm-file__icon\\"></span>Configuration File txt</a> потом текст</p>/n<p>Текс <a href=\\"_assets/test.yaml\\" download=\\"Config\\">Скачать</a> потом текст</p>/n<p>Текс <a href=\\"_assets/test.yaml\\" download=\\"Config\\">Download</a> потом текст</p>/n<p><a href=\\"pc-index.html\\">Link to pc page</a></p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"style":[
|
|
117
|
+
{"data":{"leading":false,"html":"<h3 id=\\"download-static-file\\"><a href=\\"index.html#download-static-file\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Download static file</span></a>Download static file</h3>/n<p>Текст <a href=\\"_assets/test.yaml\\" download=\\"Configuration File\\" class=\\"yfm-file\\"><span class=\\"yfm-file__icon\\"></span>Configuration File</a> потом текст</p>/n<p>Текст <a href=\\"_assets/test.txt\\" download=\\"Configuration File txt\\" class=\\"yfm-file\\"><span class=\\"yfm-file__icon\\"></span>Configuration File txt</a> потом текст</p>/n<p>Текст <a href=\\"_assets/test.docx\\" download=\\"Configuration File txt\\" class=\\"yfm-file\\"><span class=\\"yfm-file__icon\\"></span>Configuration File txt</a> потом текст</p>/n<p>Текст <a href=\\"_assets/test.xlsx\\" download=\\"Configuration File txt\\" class=\\"yfm-file\\"><span class=\\"yfm-file__icon\\"></span>Configuration File txt</a> потом текст</p>/n<p>Текст <a href=\\"_assets/test.csv\\" download=\\"Configuration File txt\\" class=\\"yfm-file\\"><span class=\\"yfm-file__icon\\"></span>Configuration File txt</a> потом текст</p>/n<p>Текс <a href=\\"_assets/test.yaml\\" download=\\"Config\\">Скачать</a> потом текст</p>/n<p>Текс <a href=\\"_assets/test.yaml\\" download=\\"Config\\">Download</a> потом текст</p>/n<p><a href=\\"pc-index.html\\">Link to pc page</a></p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"style":[],"vcsPath":"index.md"},"headings":[],"title":""},"router":{"pathname":"index","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
119
118
|
</script>
|
|
120
119
|
<script type="application/javascript">
|
|
121
120
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -36,7 +36,6 @@ Content before include.
|
|
|
36
36
|
## Included Section
|
|
37
37
|
|
|
38
38
|
This is the included content.
|
|
39
|
-
|
|
40
39
|
<!-- endsource: _includes/simple.md -->
|
|
41
40
|
|
|
42
41
|
Content after include.
|
|
@@ -111,6 +110,124 @@ path: toc.yaml
|
|
|
111
110
|
"
|
|
112
111
|
`;
|
|
113
112
|
|
|
113
|
+
exports[`Merge includes (md2md) > hash-section-html: hash-section include in list is inlined when only other section has <style> > filelist 1`] = `
|
|
114
|
+
"[
|
|
115
|
+
"index.md",
|
|
116
|
+
"main.md",
|
|
117
|
+
"toc.yaml"
|
|
118
|
+
]"
|
|
119
|
+
`;
|
|
120
|
+
|
|
121
|
+
exports[`Merge includes (md2md) > hash-section-html: hash-section include in list is inlined when only other section has <style> 1`] = `
|
|
122
|
+
"---
|
|
123
|
+
metadata:
|
|
124
|
+
- name: generator
|
|
125
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
126
|
+
vcsPath: index.md
|
|
127
|
+
---
|
|
128
|
+
# Index
|
|
129
|
+
|
|
130
|
+
Welcome page.
|
|
131
|
+
"
|
|
132
|
+
`;
|
|
133
|
+
|
|
134
|
+
exports[`Merge includes (md2md) > hash-section-html: hash-section include in list is inlined when only other section has <style> 2`] = `
|
|
135
|
+
"---
|
|
136
|
+
metadata:
|
|
137
|
+
- name: generator
|
|
138
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
139
|
+
vcsPath: main.md
|
|
140
|
+
---
|
|
141
|
+
# Main Document
|
|
142
|
+
|
|
143
|
+
Content before list.
|
|
144
|
+
|
|
145
|
+
1. First item
|
|
146
|
+
|
|
147
|
+
2. Second item with hash-section include (section has no HTML, but other section in same file does):
|
|
148
|
+
|
|
149
|
+
<!-- source: _includes/mixed.md -->
|
|
150
|
+
Just plain text content without any HTML blocks.
|
|
151
|
+
<!-- endsource: _includes/mixed.md -->
|
|
152
|
+
|
|
153
|
+
3. Third item
|
|
154
|
+
|
|
155
|
+
Content after list.
|
|
156
|
+
"
|
|
157
|
+
`;
|
|
158
|
+
|
|
159
|
+
exports[`Merge includes (md2md) > hash-section-html: hash-section include in list is inlined when only other section has <style> 3`] = `
|
|
160
|
+
"title: Merge Includes Hash Section HTML
|
|
161
|
+
href: index.md
|
|
162
|
+
items:
|
|
163
|
+
- name: Main
|
|
164
|
+
href: main.md
|
|
165
|
+
path: toc.yaml
|
|
166
|
+
"
|
|
167
|
+
`;
|
|
168
|
+
|
|
169
|
+
exports[`Merge includes (md2md) > html-in-list: include with <style> in list (any indent) uses fallback > filelist 1`] = `
|
|
170
|
+
"[
|
|
171
|
+
"index.md",
|
|
172
|
+
"main.md",
|
|
173
|
+
"toc.yaml"
|
|
174
|
+
]"
|
|
175
|
+
`;
|
|
176
|
+
|
|
177
|
+
exports[`Merge includes (md2md) > html-in-list: include with <style> in list (any indent) uses fallback 1`] = `
|
|
178
|
+
"---
|
|
179
|
+
metadata:
|
|
180
|
+
- name: generator
|
|
181
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
182
|
+
vcsPath: index.md
|
|
183
|
+
---
|
|
184
|
+
# Index
|
|
185
|
+
|
|
186
|
+
Welcome page.
|
|
187
|
+
"
|
|
188
|
+
`;
|
|
189
|
+
|
|
190
|
+
exports[`Merge includes (md2md) > html-in-list: include with <style> in list (any indent) uses fallback 2`] = `
|
|
191
|
+
"---
|
|
192
|
+
metadata:
|
|
193
|
+
- name: generator
|
|
194
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
195
|
+
vcsPath: main.md
|
|
196
|
+
---
|
|
197
|
+
# Main Document
|
|
198
|
+
|
|
199
|
+
Content before list.
|
|
200
|
+
|
|
201
|
+
- List item with inline include (any non-zero indent → HTML block must use fallback)
|
|
202
|
+
|
|
203
|
+
{% include [styles](_includes/styles.md) %}
|
|
204
|
+
|
|
205
|
+
- Another list item
|
|
206
|
+
|
|
207
|
+
Content after list.
|
|
208
|
+
|
|
209
|
+
{% included (_includes/styles.md) %}
|
|
210
|
+
<style>
|
|
211
|
+
|
|
212
|
+
.yfm .highlight {
|
|
213
|
+
background: yellow;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
</style>
|
|
217
|
+
|
|
218
|
+
{% endincluded %}"
|
|
219
|
+
`;
|
|
220
|
+
|
|
221
|
+
exports[`Merge includes (md2md) > html-in-list: include with <style> in list (any indent) uses fallback 3`] = `
|
|
222
|
+
"title: Merge Includes HTML in List
|
|
223
|
+
href: index.md
|
|
224
|
+
items:
|
|
225
|
+
- name: Main
|
|
226
|
+
href: main.md
|
|
227
|
+
path: toc.yaml
|
|
228
|
+
"
|
|
229
|
+
`;
|
|
230
|
+
|
|
114
231
|
exports[`Merge includes (md2md) > inline-context: non-standalone includes use fallback > filelist 1`] = `
|
|
115
232
|
"[
|
|
116
233
|
"index.md",
|
|
@@ -228,20 +345,17 @@ Before outer include.
|
|
|
228
345
|
|
|
229
346
|
Content from outer include.
|
|
230
347
|
|
|
231
|
-
|
|
348
|
+
<!-- source: _includes/inner.md -->
|
|
349
|
+
### Inner Section
|
|
232
350
|
|
|
233
|
-
|
|
351
|
+
Content from inner include.
|
|
352
|
+
<!-- endsource: _includes/inner.md -->
|
|
234
353
|
|
|
354
|
+
End of outer include.
|
|
235
355
|
<!-- endsource: _includes/outer.md -->
|
|
236
356
|
|
|
237
357
|
After outer include.
|
|
238
|
-
|
|
239
|
-
{% included (_includes/inner.md) %}
|
|
240
|
-
### Inner Section
|
|
241
|
-
|
|
242
|
-
Content from inner include.
|
|
243
|
-
|
|
244
|
-
{% endincluded %}"
|
|
358
|
+
"
|
|
245
359
|
`;
|
|
246
360
|
|
|
247
361
|
exports[`Merge includes (md2md) > nested: outer inlined, inner as fallback 3`] = `
|
|
@@ -292,7 +406,6 @@ See [the guide](_includes/guide.md) for more details.
|
|
|
292
406
|

|
|
293
407
|
|
|
294
408
|
[ref-link]: _includes/reference.md "Reference"
|
|
295
|
-
|
|
296
409
|
<!-- endsource: _includes/sub/with-links.md -->
|
|
297
410
|
"
|
|
298
411
|
`;
|
|
@@ -307,6 +420,59 @@ path: toc.yaml
|
|
|
307
420
|
"
|
|
308
421
|
`;
|
|
309
422
|
|
|
423
|
+
exports[`Merge includes (md2md) > term-extract: dep with terms → terms extracted, content inlined (Step 4) > filelist 1`] = `
|
|
424
|
+
"[
|
|
425
|
+
"index.md",
|
|
426
|
+
"main.md",
|
|
427
|
+
"toc.yaml"
|
|
428
|
+
]"
|
|
429
|
+
`;
|
|
430
|
+
|
|
431
|
+
exports[`Merge includes (md2md) > term-extract: dep with terms → terms extracted, content inlined (Step 4) 1`] = `
|
|
432
|
+
"---
|
|
433
|
+
metadata:
|
|
434
|
+
- name: generator
|
|
435
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
436
|
+
vcsPath: index.md
|
|
437
|
+
---
|
|
438
|
+
# Index
|
|
439
|
+
|
|
440
|
+
Welcome page.
|
|
441
|
+
"
|
|
442
|
+
`;
|
|
443
|
+
|
|
444
|
+
exports[`Merge includes (md2md) > term-extract: dep with terms → terms extracted, content inlined (Step 4) 2`] = `
|
|
445
|
+
"---
|
|
446
|
+
metadata:
|
|
447
|
+
- name: generator
|
|
448
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
449
|
+
vcsPath: main.md
|
|
450
|
+
---
|
|
451
|
+
# API Docs
|
|
452
|
+
|
|
453
|
+
Use the [API](*api) and [SDK](*sdk) to build apps.
|
|
454
|
+
|
|
455
|
+
<!-- source: _includes/chapter.md -->
|
|
456
|
+
## Chapter
|
|
457
|
+
|
|
458
|
+
Chapter content with [link](_includes/local.md).
|
|
459
|
+
<!-- endsource: _includes/chapter.md -->
|
|
460
|
+
|
|
461
|
+
[*api]: Application Programming Interface
|
|
462
|
+
|
|
463
|
+
[*sdk]: Software Development Kit"
|
|
464
|
+
`;
|
|
465
|
+
|
|
466
|
+
exports[`Merge includes (md2md) > term-extract: dep with terms → terms extracted, content inlined (Step 4) 3`] = `
|
|
467
|
+
"title: Merge Includes Term Extract
|
|
468
|
+
href: index.md
|
|
469
|
+
items:
|
|
470
|
+
- name: Main
|
|
471
|
+
href: main.md
|
|
472
|
+
path: toc.yaml
|
|
473
|
+
"
|
|
474
|
+
`;
|
|
475
|
+
|
|
310
476
|
exports[`Merge includes (md2md) > term-inline: includes inside term defs use fallback (not inlined) > filelist 1`] = `
|
|
311
477
|
"[
|
|
312
478
|
"index.md",
|
|
@@ -351,37 +517,26 @@ vcsPath: main.md
|
|
|
351
517
|
Обязательный параметр.
|
|
352
518
|
<!-- endsource: _includes/defs.md -->
|
|
353
519
|
|
|
354
|
-
[*placeID]:
|
|
355
|
-
|
|
356
|
-
[*syncFactor]: {% include notitle [desc](_includes/defs.md#syncFactor) %}
|
|
357
|
-
|
|
358
|
-
[*requiredParam]: {% include notitle [desc](_includes/defs.md#requiredParam) %}
|
|
359
|
-
|
|
360
|
-
{% include notitle [note](_includes/defs.md#placeID) %}
|
|
361
|
-
|
|
362
|
-
{% included (_includes/defs.md) %}
|
|
363
|
-
## PlaceID {#placeID}
|
|
364
|
-
|
|
365
|
-
ID площадки.
|
|
520
|
+
[*placeID]: ID площадки.
|
|
366
521
|
|
|
367
522
|
Читайте также:
|
|
368
523
|
|
|
369
|
-
- [Получить список](
|
|
370
|
-
|
|
371
|
-
## SyncFactor {#syncFactor}
|
|
524
|
+
- [Получить список](list.md)
|
|
372
525
|
|
|
373
|
-
Вид кода.
|
|
526
|
+
[*syncFactor]: Вид кода.
|
|
374
527
|
|
|
375
528
|
Допустимые значения:
|
|
376
529
|
|
|
377
530
|
- \`1\` — асинхронный;
|
|
378
531
|
- \`2\` — синхронный.
|
|
379
532
|
|
|
380
|
-
|
|
533
|
+
[*requiredParam]: Обязательный параметр.
|
|
534
|
+
|
|
535
|
+
ID площадки.
|
|
381
536
|
|
|
382
|
-
|
|
537
|
+
Читайте также:
|
|
383
538
|
|
|
384
|
-
|
|
539
|
+
- [Получить список](list.md)"
|
|
385
540
|
`;
|
|
386
541
|
|
|
387
542
|
exports[`Merge includes (md2md) > term-inline: includes inside term defs use fallback (not inlined) 3`] = `
|
|
@@ -449,3 +604,59 @@ items:
|
|
|
449
604
|
path: toc.yaml
|
|
450
605
|
"
|
|
451
606
|
`;
|
|
607
|
+
|
|
608
|
+
exports[`Merge includes (md2md) > yfm-table: include followed by || separator is inlined > filelist 1`] = `
|
|
609
|
+
"[
|
|
610
|
+
"index.md",
|
|
611
|
+
"main.md",
|
|
612
|
+
"toc.yaml"
|
|
613
|
+
]"
|
|
614
|
+
`;
|
|
615
|
+
|
|
616
|
+
exports[`Merge includes (md2md) > yfm-table: include followed by || separator is inlined 1`] = `
|
|
617
|
+
"---
|
|
618
|
+
metadata:
|
|
619
|
+
- name: generator
|
|
620
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
621
|
+
vcsPath: index.md
|
|
622
|
+
---
|
|
623
|
+
# Index
|
|
624
|
+
|
|
625
|
+
Welcome page.
|
|
626
|
+
"
|
|
627
|
+
`;
|
|
628
|
+
|
|
629
|
+
exports[`Merge includes (md2md) > yfm-table: include followed by || separator is inlined 2`] = `
|
|
630
|
+
"---
|
|
631
|
+
metadata:
|
|
632
|
+
- name: generator
|
|
633
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
634
|
+
vcsPath: main.md
|
|
635
|
+
---
|
|
636
|
+
# Main Document
|
|
637
|
+
|
|
638
|
+
#|
|
|
639
|
+
|| **Option** | **Details** ||
|
|
640
|
+
|| Option A |
|
|
641
|
+
Some description of option A.
|
|
642
|
+
|
|
643
|
+
<!-- source: _includes/cell-content.md -->
|
|
644
|
+
Buy now at [our store](https://example.com/store).
|
|
645
|
+
<!-- endsource: _includes/cell-content.md -->
|
|
646
|
+
||
|
|
647
|
+
|| Option B | Plain text cell. ||
|
|
648
|
+
|#
|
|
649
|
+
|
|
650
|
+
Content after table.
|
|
651
|
+
"
|
|
652
|
+
`;
|
|
653
|
+
|
|
654
|
+
exports[`Merge includes (md2md) > yfm-table: include followed by || separator is inlined 3`] = `
|
|
655
|
+
"title: Merge Includes YFM Table
|
|
656
|
+
href: index.md
|
|
657
|
+
items:
|
|
658
|
+
- name: Main
|
|
659
|
+
href: main.md
|
|
660
|
+
path: toc.yaml
|
|
661
|
+
"
|
|
662
|
+
`;
|