@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
|
@@ -0,0 +1,581 @@
|
|
|
1
|
+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
|
+
|
|
3
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=false > filelist 1`] = `
|
|
4
|
+
"[
|
|
5
|
+
".yfm",
|
|
6
|
+
"1.md",
|
|
7
|
+
"_assets/1.png",
|
|
8
|
+
"_assets/1.svg",
|
|
9
|
+
"autotitle.md",
|
|
10
|
+
"images.md",
|
|
11
|
+
"included-item.md",
|
|
12
|
+
"includes.md",
|
|
13
|
+
"includes/deep-hash.md",
|
|
14
|
+
"includes/deepWithIndent-hash.md",
|
|
15
|
+
"includes/sub/user-hash.md",
|
|
16
|
+
"includes/sub/userWithIndent-hash.md",
|
|
17
|
+
"includes/test-hash.md",
|
|
18
|
+
"includes/user-hash.md",
|
|
19
|
+
"latex.md",
|
|
20
|
+
"mermaid.md",
|
|
21
|
+
"sub/folder/item-1.md",
|
|
22
|
+
"toc.yaml"
|
|
23
|
+
]"
|
|
24
|
+
`;
|
|
25
|
+
|
|
26
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=false 1`] = `
|
|
27
|
+
"allowHtml: true
|
|
28
|
+
"
|
|
29
|
+
`;
|
|
30
|
+
|
|
31
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=false 2`] = `
|
|
32
|
+
"---
|
|
33
|
+
metadata:
|
|
34
|
+
- name: generator
|
|
35
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
36
|
+
vcsPath: 1.md
|
|
37
|
+
sourcePath: 1.md
|
|
38
|
+
---
|
|
39
|
+
# Title
|
|
40
|
+
|
|
41
|
+
Text not_var{{not-var}} not_var{{skip()}} default-var-value
|
|
42
|
+
|
|
43
|
+
Text \`not_var{{not-var}}\` \`not_var{{skip()}}\` \`default-var-value\`
|
|
44
|
+
|
|
45
|
+
Text
|
|
46
|
+
\`\`\`
|
|
47
|
+
not_var{{not-var}}
|
|
48
|
+
|
|
49
|
+
not_var{{skip()}}
|
|
50
|
+
|
|
51
|
+
default-var-value
|
|
52
|
+
\`\`\`
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
\`[not a link](./path/to/relative/file.md)\`
|
|
56
|
+
|
|
57
|
+
## Subtitle {#subtitle}
|
|
58
|
+
|
|
59
|
+
[{#T}](mermaid.md)
|
|
60
|
+
|
|
61
|
+
[{#T}](mermaid.md#info)
|
|
62
|
+
|
|
63
|
+
[](latex.md)
|
|
64
|
+
|
|
65
|
+
[noext-link](includes)
|
|
66
|
+
|
|
67
|
+
{% include [user](includes/user-hash.md) %}
|
|
68
|
+
"
|
|
69
|
+
`;
|
|
70
|
+
|
|
71
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=false 3`] = `
|
|
72
|
+
"---
|
|
73
|
+
metadata:
|
|
74
|
+
- name: generator
|
|
75
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
76
|
+
vcsPath: autotitle.md
|
|
77
|
+
sourcePath: autotitle.md
|
|
78
|
+
---
|
|
79
|
+
# Autotitles 
|
|
80
|
+
|
|
81
|
+
Empty title
|
|
82
|
+
[](./1.md)
|
|
83
|
+
|
|
84
|
+
Empty subtitle
|
|
85
|
+
[](./1.md#subtitle)
|
|
86
|
+
|
|
87
|
+
Special title
|
|
88
|
+
[{#T}](./1.md)
|
|
89
|
+
|
|
90
|
+
Special subtitle
|
|
91
|
+
[{#T}](./1.md#subtitle)
|
|
92
|
+
|
|
93
|
+
Empty local title
|
|
94
|
+
[](#header)
|
|
95
|
+
|
|
96
|
+
Special local title
|
|
97
|
+
[{#T}](#header)
|
|
98
|
+
|
|
99
|
+
## Header {#header}
|
|
100
|
+
|
|
101
|
+
Content
|
|
102
|
+
"
|
|
103
|
+
`;
|
|
104
|
+
|
|
105
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=false 4`] = `
|
|
106
|
+
"---
|
|
107
|
+
metadata:
|
|
108
|
+
- name: generator
|
|
109
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
110
|
+
vcsPath: images.md
|
|
111
|
+
sourcePath: images.md
|
|
112
|
+
---
|
|
113
|
+
# Images
|
|
114
|
+
|
|
115
|
+

|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
"
|
|
119
|
+
`;
|
|
120
|
+
|
|
121
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=false 5`] = `
|
|
122
|
+
"---
|
|
123
|
+
metadata:
|
|
124
|
+
- name: generator
|
|
125
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
126
|
+
vcsPath: included-item.md
|
|
127
|
+
sourcePath: included-item.md
|
|
128
|
+
---
|
|
129
|
+
# Included item
|
|
130
|
+
|
|
131
|
+
Included item text
|
|
132
|
+
|
|
133
|
+
<!-- : {% include [rec-off](./commented-include.md) %} -->
|
|
134
|
+
|
|
135
|
+
{% note alert "Alert!" %}
|
|
136
|
+
|
|
137
|
+
<!-- content -->
|
|
138
|
+
|
|
139
|
+
{% endnote %}
|
|
140
|
+
|
|
141
|
+
"
|
|
142
|
+
`;
|
|
143
|
+
|
|
144
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=false 6`] = `
|
|
145
|
+
"---
|
|
146
|
+
metadata:
|
|
147
|
+
- name: generator
|
|
148
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
149
|
+
vcsPath: includes.md
|
|
150
|
+
sourcePath: includes.md
|
|
151
|
+
---
|
|
152
|
+
Text
|
|
153
|
+
|
|
154
|
+
{% include [user](includes/user-hash.md) %}
|
|
155
|
+
|
|
156
|
+
{% include [test](includes/test-hash.md) %}
|
|
157
|
+
|
|
158
|
+
Link after include
|
|
159
|
+
[{#T}](./1.md)
|
|
160
|
+
|
|
161
|
+
<!--{% include [For includes/deep.md](includes/deep.md) %}-->
|
|
162
|
+
{% include [For includes/deep-hash.md](includes/deep-hash.md) %}
|
|
163
|
+
|
|
164
|
+
Include with big indent
|
|
165
|
+
|
|
166
|
+
{% include [For includes/deep.md](includes/deepWithIndent-hash.md) %}
|
|
167
|
+
|
|
168
|
+
Link after include
|
|
169
|
+
[{#T}](./1.md#subtitle)
|
|
170
|
+
"
|
|
171
|
+
`;
|
|
172
|
+
|
|
173
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=false 7`] = `
|
|
174
|
+
"{% include [user](sub/user-hash.md) %}
|
|
175
|
+
"
|
|
176
|
+
`;
|
|
177
|
+
|
|
178
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=false 8`] = `
|
|
179
|
+
"- list item
|
|
180
|
+
|
|
181
|
+
{% include [user](sub/userWithIndent-hash.md) %}
|
|
182
|
+
|
|
183
|
+
Link to mermaid diagram from 1 level
|
|
184
|
+
[](../mermaid.md)
|
|
185
|
+
"
|
|
186
|
+
`;
|
|
187
|
+
|
|
188
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=false 9`] = `
|
|
189
|
+
"Bob
|
|
190
|
+
"
|
|
191
|
+
`;
|
|
192
|
+
|
|
193
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=false 10`] = `
|
|
194
|
+
"Link to mermaid diagram from 2 level
|
|
195
|
+
[](../../mermaid.md)
|
|
196
|
+
|
|
197
|
+
- User
|
|
198
|
+
Bob"
|
|
199
|
+
`;
|
|
200
|
+
|
|
201
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=false 11`] = `
|
|
202
|
+
"Test
|
|
203
|
+
"
|
|
204
|
+
`;
|
|
205
|
+
|
|
206
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=false 12`] = `
|
|
207
|
+
"Bob
|
|
208
|
+
"
|
|
209
|
+
`;
|
|
210
|
+
|
|
211
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=false 13`] = `
|
|
212
|
+
"---
|
|
213
|
+
metadata:
|
|
214
|
+
- name: generator
|
|
215
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
216
|
+
vcsPath: latex.md
|
|
217
|
+
sourcePath: latex.md
|
|
218
|
+
---
|
|
219
|
+
# Latex usage
|
|
220
|
+
|
|
221
|
+
$/sqrt{3x-1}+(1+x)^2$
|
|
222
|
+
"
|
|
223
|
+
`;
|
|
224
|
+
|
|
225
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=false 14`] = `
|
|
226
|
+
"---
|
|
227
|
+
metadata:
|
|
228
|
+
- name: generator
|
|
229
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
230
|
+
vcsPath: mermaid.md
|
|
231
|
+
sourcePath: mermaid.md
|
|
232
|
+
---
|
|
233
|
+
# Mermaid usage
|
|
234
|
+
|
|
235
|
+
\`\`\`mermaid
|
|
236
|
+
|
|
237
|
+
sequenceDiagram
|
|
238
|
+
rect rgba(251, 243, 232, 0.2)
|
|
239
|
+
Alice ->> Bob:
|
|
240
|
+
end
|
|
241
|
+
\`\`\`
|
|
242
|
+
|
|
243
|
+
## Mermaid info {#info}
|
|
244
|
+
|
|
245
|
+
Some mermaid info
|
|
246
|
+
"
|
|
247
|
+
`;
|
|
248
|
+
|
|
249
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=false 15`] = `
|
|
250
|
+
"---
|
|
251
|
+
metadata:
|
|
252
|
+
- name: generator
|
|
253
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
254
|
+
vcsPath: sub/folder/item-1.md
|
|
255
|
+
sourcePath: sub/folder/item-1.md
|
|
256
|
+
---
|
|
257
|
+
# Item 1
|
|
258
|
+
|
|
259
|
+
Item 1 text
|
|
260
|
+
|
|
261
|
+
[{#T}](../../images.md)
|
|
262
|
+
|
|
263
|
+
[{#T}](../../autotitle.md)
|
|
264
|
+
"
|
|
265
|
+
`;
|
|
266
|
+
|
|
267
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=false 16`] = `
|
|
268
|
+
"items:
|
|
269
|
+
- name: Md item with not_var syntax
|
|
270
|
+
href: 1.md
|
|
271
|
+
- name: Md item named without extension
|
|
272
|
+
href: 1.md
|
|
273
|
+
- name: Included Item
|
|
274
|
+
href: included-item.md
|
|
275
|
+
- name: Named include (items is Object here - this is not an error)
|
|
276
|
+
items:
|
|
277
|
+
- name: Item 1
|
|
278
|
+
href: sub/folder/item-1.md
|
|
279
|
+
- href: mermaid.md
|
|
280
|
+
name: Mermaid usage
|
|
281
|
+
- name: Latex usage
|
|
282
|
+
href: latex.md
|
|
283
|
+
- name: Images
|
|
284
|
+
href: images.md
|
|
285
|
+
- name: Autotitle
|
|
286
|
+
href: autotitle.md
|
|
287
|
+
- name: includes
|
|
288
|
+
href: includes.md
|
|
289
|
+
path: toc.yaml
|
|
290
|
+
"
|
|
291
|
+
`;
|
|
292
|
+
|
|
293
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true > filelist 1`] = `
|
|
294
|
+
"[
|
|
295
|
+
".yfm",
|
|
296
|
+
"1.md",
|
|
297
|
+
"_assets/1.png",
|
|
298
|
+
"_assets/1.svg",
|
|
299
|
+
"autotitle.md",
|
|
300
|
+
"images.md",
|
|
301
|
+
"included-item.md",
|
|
302
|
+
"includes.md",
|
|
303
|
+
"includes/deep-hash.md",
|
|
304
|
+
"includes/deepWithIndent-hash.md",
|
|
305
|
+
"includes/sub/user-hash.md",
|
|
306
|
+
"includes/sub/userWithIndent-hash.md",
|
|
307
|
+
"includes/test-hash.md",
|
|
308
|
+
"includes/user-hash.md",
|
|
309
|
+
"latex.md",
|
|
310
|
+
"mermaid.md",
|
|
311
|
+
"sub/folder/item-1.md",
|
|
312
|
+
"toc.yaml"
|
|
313
|
+
]"
|
|
314
|
+
`;
|
|
315
|
+
|
|
316
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true 1`] = `
|
|
317
|
+
"allowHtml: true
|
|
318
|
+
"
|
|
319
|
+
`;
|
|
320
|
+
|
|
321
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true 2`] = `
|
|
322
|
+
"---
|
|
323
|
+
metadata:
|
|
324
|
+
- name: generator
|
|
325
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
326
|
+
vcsPath: 1.md
|
|
327
|
+
sourcePath: 1.md
|
|
328
|
+
---
|
|
329
|
+
# Title
|
|
330
|
+
|
|
331
|
+
Text not_var{{not-var}} not_var{{skip()}} default-var-value
|
|
332
|
+
|
|
333
|
+
Text \`not_var{{not-var}}\` \`not_var{{skip()}}\` \`default-var-value\`
|
|
334
|
+
|
|
335
|
+
Text
|
|
336
|
+
\`\`\`
|
|
337
|
+
not_var{{not-var}}
|
|
338
|
+
|
|
339
|
+
not_var{{skip()}}
|
|
340
|
+
|
|
341
|
+
default-var-value
|
|
342
|
+
\`\`\`
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
\`[not a link](./path/to/relative/file.md)\`
|
|
346
|
+
|
|
347
|
+
## Subtitle {#subtitle}
|
|
348
|
+
|
|
349
|
+
[Mermaid usage](mermaid.md)
|
|
350
|
+
|
|
351
|
+
[Mermaid info](mermaid.md#info)
|
|
352
|
+
|
|
353
|
+
[Latex usage](latex.md)
|
|
354
|
+
|
|
355
|
+
[noext-link](includes)
|
|
356
|
+
|
|
357
|
+
{% include [user](includes/user-hash.md) %}
|
|
358
|
+
"
|
|
359
|
+
`;
|
|
360
|
+
|
|
361
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true 3`] = `
|
|
362
|
+
"---
|
|
363
|
+
metadata:
|
|
364
|
+
- name: generator
|
|
365
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
366
|
+
vcsPath: autotitle.md
|
|
367
|
+
sourcePath: autotitle.md
|
|
368
|
+
---
|
|
369
|
+
# Autotitles 
|
|
370
|
+
|
|
371
|
+
Empty title
|
|
372
|
+
[Title](./1.md)
|
|
373
|
+
|
|
374
|
+
Empty subtitle
|
|
375
|
+
[Subtitle](./1.md#subtitle)
|
|
376
|
+
|
|
377
|
+
Special title
|
|
378
|
+
[Title](./1.md)
|
|
379
|
+
|
|
380
|
+
Special subtitle
|
|
381
|
+
[Subtitle](./1.md#subtitle)
|
|
382
|
+
|
|
383
|
+
Empty local title
|
|
384
|
+
[Header](#header)
|
|
385
|
+
|
|
386
|
+
Special local title
|
|
387
|
+
[Header](#header)
|
|
388
|
+
|
|
389
|
+
## Header {#header}
|
|
390
|
+
|
|
391
|
+
Content
|
|
392
|
+
"
|
|
393
|
+
`;
|
|
394
|
+
|
|
395
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true 4`] = `
|
|
396
|
+
"---
|
|
397
|
+
metadata:
|
|
398
|
+
- name: generator
|
|
399
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
400
|
+
vcsPath: images.md
|
|
401
|
+
sourcePath: images.md
|
|
402
|
+
---
|
|
403
|
+
# Images
|
|
404
|
+
|
|
405
|
+

|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
"
|
|
409
|
+
`;
|
|
410
|
+
|
|
411
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true 5`] = `
|
|
412
|
+
"---
|
|
413
|
+
metadata:
|
|
414
|
+
- name: generator
|
|
415
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
416
|
+
vcsPath: included-item.md
|
|
417
|
+
sourcePath: included-item.md
|
|
418
|
+
---
|
|
419
|
+
# Included item
|
|
420
|
+
|
|
421
|
+
Included item text
|
|
422
|
+
|
|
423
|
+
<!-- : {% include [rec-off](./commented-include.md) %} -->
|
|
424
|
+
|
|
425
|
+
{% note alert "Alert!" %}
|
|
426
|
+
|
|
427
|
+
<!-- content -->
|
|
428
|
+
|
|
429
|
+
{% endnote %}
|
|
430
|
+
|
|
431
|
+
"
|
|
432
|
+
`;
|
|
433
|
+
|
|
434
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true 6`] = `
|
|
435
|
+
"---
|
|
436
|
+
metadata:
|
|
437
|
+
- name: generator
|
|
438
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
439
|
+
vcsPath: includes.md
|
|
440
|
+
sourcePath: includes.md
|
|
441
|
+
---
|
|
442
|
+
Text
|
|
443
|
+
|
|
444
|
+
{% include [user](includes/user-hash.md) %}
|
|
445
|
+
|
|
446
|
+
{% include [test](includes/test-hash.md) %}
|
|
447
|
+
|
|
448
|
+
Link after include
|
|
449
|
+
[Title](./1.md)
|
|
450
|
+
|
|
451
|
+
<!--{% include [For includes/deep.md](includes/deep.md) %}-->
|
|
452
|
+
{% include [For includes/deep-hash.md](includes/deep-hash.md) %}
|
|
453
|
+
|
|
454
|
+
Include with big indent
|
|
455
|
+
|
|
456
|
+
{% include [For includes/deep.md](includes/deepWithIndent-hash.md) %}
|
|
457
|
+
|
|
458
|
+
Link after include
|
|
459
|
+
[Subtitle](./1.md#subtitle)
|
|
460
|
+
"
|
|
461
|
+
`;
|
|
462
|
+
|
|
463
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true 7`] = `
|
|
464
|
+
"{% include [user](sub/user-hash.md) %}
|
|
465
|
+
"
|
|
466
|
+
`;
|
|
467
|
+
|
|
468
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true 8`] = `
|
|
469
|
+
"- list item
|
|
470
|
+
|
|
471
|
+
{% include [user](sub/userWithIndent-hash.md) %}
|
|
472
|
+
|
|
473
|
+
Link to mermaid diagram from 1 level
|
|
474
|
+
[Mermaid usage](../mermaid.md)
|
|
475
|
+
"
|
|
476
|
+
`;
|
|
477
|
+
|
|
478
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true 9`] = `
|
|
479
|
+
"Bob
|
|
480
|
+
"
|
|
481
|
+
`;
|
|
482
|
+
|
|
483
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true 10`] = `
|
|
484
|
+
"Link to mermaid diagram from 2 level
|
|
485
|
+
[Mermaid usage](../../mermaid.md)
|
|
486
|
+
|
|
487
|
+
- User
|
|
488
|
+
Bob"
|
|
489
|
+
`;
|
|
490
|
+
|
|
491
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true 11`] = `
|
|
492
|
+
"Test
|
|
493
|
+
"
|
|
494
|
+
`;
|
|
495
|
+
|
|
496
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true 12`] = `
|
|
497
|
+
"Bob
|
|
498
|
+
"
|
|
499
|
+
`;
|
|
500
|
+
|
|
501
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true 13`] = `
|
|
502
|
+
"---
|
|
503
|
+
metadata:
|
|
504
|
+
- name: generator
|
|
505
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
506
|
+
vcsPath: latex.md
|
|
507
|
+
sourcePath: latex.md
|
|
508
|
+
---
|
|
509
|
+
# Latex usage
|
|
510
|
+
|
|
511
|
+
$/sqrt{3x-1}+(1+x)^2$
|
|
512
|
+
"
|
|
513
|
+
`;
|
|
514
|
+
|
|
515
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true 14`] = `
|
|
516
|
+
"---
|
|
517
|
+
metadata:
|
|
518
|
+
- name: generator
|
|
519
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
520
|
+
vcsPath: mermaid.md
|
|
521
|
+
sourcePath: mermaid.md
|
|
522
|
+
---
|
|
523
|
+
# Mermaid usage
|
|
524
|
+
|
|
525
|
+
\`\`\`mermaid
|
|
526
|
+
|
|
527
|
+
sequenceDiagram
|
|
528
|
+
rect rgba(251, 243, 232, 0.2)
|
|
529
|
+
Alice ->> Bob:
|
|
530
|
+
end
|
|
531
|
+
\`\`\`
|
|
532
|
+
|
|
533
|
+
## Mermaid info {#info}
|
|
534
|
+
|
|
535
|
+
Some mermaid info
|
|
536
|
+
"
|
|
537
|
+
`;
|
|
538
|
+
|
|
539
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true 15`] = `
|
|
540
|
+
"---
|
|
541
|
+
metadata:
|
|
542
|
+
- name: generator
|
|
543
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
544
|
+
vcsPath: sub/folder/item-1.md
|
|
545
|
+
sourcePath: sub/folder/item-1.md
|
|
546
|
+
---
|
|
547
|
+
# Item 1
|
|
548
|
+
|
|
549
|
+
Item 1 text
|
|
550
|
+
|
|
551
|
+
[Images](../../images.md)
|
|
552
|
+
|
|
553
|
+
[Autotitles 
|
|
554
|
+
"
|
|
555
|
+
`;
|
|
556
|
+
|
|
557
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true 16`] = `
|
|
558
|
+
"items:
|
|
559
|
+
- name: Md item with not_var syntax
|
|
560
|
+
href: 1.md
|
|
561
|
+
- name: Md item named without extension
|
|
562
|
+
href: 1.md
|
|
563
|
+
- name: Included Item
|
|
564
|
+
href: included-item.md
|
|
565
|
+
- name: Named include (items is Object here - this is not an error)
|
|
566
|
+
items:
|
|
567
|
+
- name: Item 1
|
|
568
|
+
href: sub/folder/item-1.md
|
|
569
|
+
- href: mermaid.md
|
|
570
|
+
name: Mermaid usage
|
|
571
|
+
- name: Latex usage
|
|
572
|
+
href: latex.md
|
|
573
|
+
- name: Images
|
|
574
|
+
href: images.md
|
|
575
|
+
- name: Autotitle
|
|
576
|
+
href: autotitle.md
|
|
577
|
+
- name: includes
|
|
578
|
+
href: includes.md
|
|
579
|
+
path: toc.yaml
|
|
580
|
+
"
|
|
581
|
+
`;
|