@diplodoc/cli-tests 5.39.7 → 5.40.0
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__/include-toc.test.ts.snap +23 -50
- package/e2e/__snapshots__/includes-conditions.test.ts.snap +15 -29
- package/e2e/__snapshots__/includes.test.ts.snap +437 -147
- package/e2e/__snapshots__/merge-includes.spec.ts.snap +400 -1
- package/e2e/__snapshots__/pdf-page.spec.ts.snap +0 -1
- package/e2e/__snapshots__/preprocess.test.ts.snap +108 -171
- package/e2e/__snapshots__/regression.test.ts.snap +167 -208
- package/e2e/merge-includes.spec.ts +70 -0
- package/mocks/merge-includes/html-comment-blanks/input/_includes/examples.md +27 -0
- package/mocks/merge-includes/html-comment-blanks/input/index.md +3 -0
- package/mocks/merge-includes/html-comment-blanks/input/main.md +15 -0
- package/mocks/merge-includes/html-comment-blanks/input/toc.yaml +5 -0
- package/mocks/merge-includes/include-after-fence/input/_includes/chat-button.md +1 -0
- package/mocks/merge-includes/include-after-fence/input/_includes/footer.md +1 -0
- package/mocks/merge-includes/include-after-fence/input/index.md +3 -0
- package/mocks/merge-includes/include-after-fence/input/main.md +14 -0
- package/mocks/merge-includes/include-after-fence/input/toc.yaml +5 -0
- package/mocks/merge-includes/include-in-code-block/input/_includes/glossary.md +1 -0
- package/mocks/merge-includes/include-in-code-block/input/index.md +3 -0
- package/mocks/merge-includes/include-in-code-block/input/main.md +19 -0
- package/mocks/merge-includes/include-in-code-block/input/toc.yaml +5 -0
- package/mocks/merge-includes/indent-paragraph-in-include/input/_includes/requirements.md +9 -0
- package/mocks/merge-includes/indent-paragraph-in-include/input/index.md +3 -0
- package/mocks/merge-includes/indent-paragraph-in-include/input/main.md +12 -0
- package/mocks/merge-includes/indent-paragraph-in-include/input/toc.yaml +5 -0
- package/mocks/merge-includes/yfm-table-html-block/input/_includes/button.md +8 -0
- package/mocks/merge-includes/yfm-table-html-block/input/index.md +3 -0
- package/mocks/merge-includes/yfm-table-html-block/input/main.md +12 -0
- package/mocks/merge-includes/yfm-table-html-block/input/toc.yaml +5 -0
- package/mocks/merge-includes/yfm-table-pipe-in-content/input/_includes/example.md +1 -0
- package/mocks/merge-includes/yfm-table-pipe-in-content/input/index.md +3 -0
- package/mocks/merge-includes/yfm-table-pipe-in-content/input/main.md +22 -0
- package/mocks/merge-includes/yfm-table-pipe-in-content/input/toc.yaml +5 -0
- package/package.json +1 -1
|
@@ -4,18 +4,9 @@ exports[`Includes > Various include scenarios > filelist 1`] = `
|
|
|
4
4
|
"[
|
|
5
5
|
".yfm",
|
|
6
6
|
"_assets/4.png",
|
|
7
|
-
"includes/deep-include-hash.md",
|
|
8
|
-
"includes/fragments-hash.md",
|
|
9
|
-
"includes/nested-include-hash.md",
|
|
10
|
-
"includes/no-title-include-hash.md",
|
|
11
|
-
"includes/root-include-hash.md",
|
|
12
|
-
"includes/user-hash.md",
|
|
13
7
|
"index.md",
|
|
14
|
-
"level1/includes/level1-include-hash.md",
|
|
15
|
-
"level1/level2/includes/level2-include-hash.md",
|
|
16
8
|
"level1/level2/page2.md",
|
|
17
9
|
"level1/page1.md",
|
|
18
|
-
"toc-include-hash.md",
|
|
19
10
|
"toc-include.md",
|
|
20
11
|
"toc.yaml"
|
|
21
12
|
]"
|
|
@@ -36,34 +27,56 @@ exports[`Includes > Various include scenarios > filelist 2`] = `
|
|
|
36
27
|
exports[`Includes > Various include scenarios 1`] = `"projectTitle: Test Includes"`;
|
|
37
28
|
|
|
38
29
|
exports[`Includes > Various include scenarios 2`] = `
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
30
|
+
"---
|
|
31
|
+
metadata:
|
|
32
|
+
- name: generator
|
|
33
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
34
|
+
vcsPath: index.md
|
|
35
|
+
---
|
|
36
|
+
# Test Includes
|
|
44
37
|
|
|
45
|
-
|
|
38
|
+
This is a test page for various include scenarios.
|
|
46
39
|
|
|
47
|
-
|
|
40
|
+
## Include from root level
|
|
48
41
|
|
|
49
|
-
|
|
42
|
+
<!-- source: includes/root-include.md -->
|
|
43
|
+
This is an include from the root level.
|
|
50
44
|
|
|
51
|
-
|
|
52
|
-
`;
|
|
45
|
+
[Link to level1](level1/page1.md)
|
|
53
46
|
|
|
54
|
-
|
|
55
|
-
"# Fragments for include
|
|
47
|
+
[Link to level2](level1/level2/page2.md)
|
|
56
48
|
|
|
57
|
-
|
|
49
|
+
[Link to index](index.md)
|
|
58
50
|
|
|
59
|
-
|
|
51
|
+
## Include with anchor [→ level1](level1/page1.md) {#include-with-anchor}
|
|
60
52
|
|
|
53
|
+
<!-- source: includes/fragments.md -->
|
|
61
54
|
## Section 2 {#section2}
|
|
62
55
|
|
|
63
56
|
This is content of section 2.
|
|
64
57
|
|
|
65
58
|
### Subsection 2.1 {#subsection21}
|
|
66
59
|
|
|
60
|
+
This is content of subsection 2.1.
|
|
61
|
+
<!-- endsource: includes/fragments.md -->
|
|
62
|
+
<!-- endsource: includes/root-include.md -->
|
|
63
|
+
|
|
64
|
+
## Include from level1
|
|
65
|
+
|
|
66
|
+
<!-- source: level1/includes/level1-include.md -->
|
|
67
|
+
This is an include from level 1.
|
|
68
|
+
|
|
69
|
+
[Link to page1](level1/page1.md)
|
|
70
|
+
|
|
71
|
+
[Link to index](index.md)
|
|
72
|
+
|
|
73
|
+
[Link to level2](level1/level2/page2.md)
|
|
74
|
+
|
|
75
|
+
## Include with anchor [→ root](index.md) {#include-with-anchor}
|
|
76
|
+
|
|
77
|
+
<!-- source: includes/fragments.md -->
|
|
78
|
+
### Subsection 2.1 {#subsection21}
|
|
79
|
+
|
|
67
80
|
This is content of subsection 2.1.
|
|
68
81
|
|
|
69
82
|
## Section 3 {#section3}
|
|
@@ -74,119 +87,155 @@ Some paragraph with anchor {#p1}
|
|
|
74
87
|
|
|
75
88
|
Some paragraph without anchor
|
|
76
89
|
|
|
77
|
-
Some paragraph with anchor {#p2}
|
|
78
|
-
|
|
90
|
+
Some paragraph with anchor {#p2}
|
|
91
|
+
<!-- endsource: includes/fragments.md -->
|
|
92
|
+
<!-- endsource: level1/includes/level1-include.md -->
|
|
79
93
|
|
|
80
|
-
|
|
81
|
-
"# Nested include [→ index](../index.md) {#nested-include}
|
|
94
|
+
## Include from level2
|
|
82
95
|
|
|
83
|
-
|
|
96
|
+
<!-- source: level1/level2/includes/level2-include.md -->
|
|
97
|
+
This is an include from level 2.
|
|
84
98
|
|
|
85
|
-
|
|
86
|
-
`;
|
|
99
|
+
[Link to page2](level1/level2/page2.md)
|
|
87
100
|
|
|
88
|
-
|
|
89
|
-
"# Include without title [→ index](../index.md) {#include-without-title}
|
|
101
|
+
[Link to page1](level1/page1.md)
|
|
90
102
|
|
|
91
|
-
[Link to index](
|
|
103
|
+
[Link to index](index.md)
|
|
92
104
|
|
|
93
|
-
|
|
105
|
+
## Include with anchor [→ level1](level1/page1.md) {#include-with-anchor}
|
|
94
106
|
|
|
95
|
-
|
|
107
|
+
<!-- source: includes/fragments.md -->
|
|
108
|
+
## Section 3 {#section3}
|
|
96
109
|
|
|
97
|
-
|
|
110
|
+
This is content of section 3.
|
|
98
111
|
|
|
99
|
-
|
|
112
|
+
Some paragraph with anchor {#p1}
|
|
100
113
|
|
|
101
|
-
|
|
114
|
+
Some paragraph without anchor
|
|
102
115
|
|
|
103
|
-
|
|
116
|
+
Some paragraph with anchor {#p2}
|
|
117
|
+
<!-- endsource: includes/fragments.md -->
|
|
118
|
+
<!-- endsource: level1/level2/includes/level2-include.md -->
|
|
104
119
|
|
|
105
|
-
|
|
120
|
+
## Include with missing file
|
|
106
121
|
|
|
107
|
-
|
|
108
|
-
`;
|
|
122
|
+
<!-- {% include [missing](includes/missing.md) %} -->
|
|
109
123
|
|
|
110
|
-
|
|
111
|
-
"This is an include from the root level.
|
|
124
|
+
## Include file that is in toc
|
|
112
125
|
|
|
113
|
-
[Link to
|
|
126
|
+
[Link to toc-include](toc-include.md)
|
|
114
127
|
|
|
115
|
-
|
|
128
|
+
<!-- source: toc-include.md -->
|
|
129
|
+
# Toc Include
|
|
116
130
|
|
|
117
|
-
|
|
131
|
+
This file is included in the toc.
|
|
118
132
|
|
|
119
|
-
|
|
133
|
+
[Link to index](index.md)
|
|
120
134
|
|
|
121
|
-
|
|
122
|
-
`;
|
|
135
|
+
[Link to page1](level1/page1.md)
|
|
123
136
|
|
|
124
|
-
|
|
125
|
-
"# User include [→ index](../index.md) {#user-include}
|
|
137
|
+
[Link to page2](level1/level2/page2.md)
|
|
126
138
|
|
|
127
|
-
|
|
139
|
+
## Include with anchor
|
|
128
140
|
|
|
129
|
-
|
|
130
|
-
|
|
141
|
+
<!-- source: includes/fragments.md -->
|
|
142
|
+
## Section 1 {#section1}
|
|
131
143
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
- name: generator
|
|
136
|
-
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
137
|
-
vcsPath: index.md
|
|
138
|
-
---
|
|
139
|
-
# Test Includes
|
|
144
|
+
This is content of section 1.
|
|
145
|
+
<!-- endsource: includes/fragments.md -->
|
|
146
|
+
<!-- endsource: toc-include.md -->
|
|
140
147
|
|
|
141
|
-
|
|
148
|
+
## Links to different levels
|
|
142
149
|
|
|
143
|
-
|
|
150
|
+
[Link to level1](level1/page1.md)
|
|
144
151
|
|
|
145
|
-
|
|
152
|
+
[Link to level2](level1/level2/page2.md)
|
|
146
153
|
|
|
147
|
-
## Include
|
|
154
|
+
## Include with anchor
|
|
148
155
|
|
|
149
|
-
|
|
156
|
+
<!-- source: includes/fragments.md -->
|
|
157
|
+
## Section 1 {#section1}
|
|
150
158
|
|
|
151
|
-
|
|
159
|
+
This is content of section 1.
|
|
160
|
+
<!-- endsource: includes/fragments.md -->
|
|
152
161
|
|
|
153
|
-
|
|
162
|
+
## Include with multiple anchors
|
|
154
163
|
|
|
155
|
-
|
|
164
|
+
<!-- source: includes/fragments.md -->
|
|
165
|
+
## Section 2 {#section2}
|
|
156
166
|
|
|
157
|
-
|
|
167
|
+
This is content of section 2.
|
|
158
168
|
|
|
159
|
-
|
|
169
|
+
### Subsection 2.1 {#subsection21}
|
|
160
170
|
|
|
161
|
-
|
|
171
|
+
This is content of subsection 2.1.
|
|
172
|
+
<!-- endsource: includes/fragments.md -->
|
|
162
173
|
|
|
163
|
-
|
|
174
|
+
## Include with paragraph anchor
|
|
164
175
|
|
|
165
|
-
|
|
176
|
+
<!-- source: includes/fragments.md -->
|
|
177
|
+
Some paragraph with anchor {#p1}
|
|
178
|
+
<!-- endsource: includes/fragments.md -->
|
|
166
179
|
|
|
167
|
-
|
|
180
|
+
## Nested includes
|
|
181
|
+
|
|
182
|
+
<!-- source: includes/nested-include.md -->
|
|
183
|
+
# Nested include [→ index](index.md) {#nested-include}
|
|
184
|
+
|
|
185
|
+
This is a nested include.
|
|
186
|
+
|
|
187
|
+
<!-- source: level1/includes/level1-include.md -->
|
|
188
|
+
This is an include from level 1.
|
|
189
|
+
|
|
190
|
+
[Link to page1](level1/page1.md)
|
|
191
|
+
|
|
192
|
+
[Link to index](index.md)
|
|
168
193
|
|
|
169
194
|
[Link to level2](level1/level2/page2.md)
|
|
170
195
|
|
|
171
|
-
## Include with anchor
|
|
196
|
+
## Include with anchor [→ root](index.md) {#include-with-anchor}
|
|
172
197
|
|
|
173
|
-
|
|
198
|
+
<!-- source: includes/fragments.md -->
|
|
199
|
+
### Subsection 2.1 {#subsection21}
|
|
174
200
|
|
|
175
|
-
|
|
201
|
+
This is content of subsection 2.1.
|
|
176
202
|
|
|
177
|
-
|
|
203
|
+
## Section 3 {#section3}
|
|
178
204
|
|
|
179
|
-
|
|
205
|
+
This is content of section 3.
|
|
180
206
|
|
|
181
|
-
|
|
207
|
+
Some paragraph with anchor {#p1}
|
|
182
208
|
|
|
183
|
-
|
|
209
|
+
Some paragraph without anchor
|
|
184
210
|
|
|
185
|
-
|
|
211
|
+
Some paragraph with anchor {#p2}
|
|
212
|
+
<!-- endsource: includes/fragments.md -->
|
|
213
|
+
<!-- endsource: level1/includes/level1-include.md -->
|
|
214
|
+
<!-- endsource: includes/nested-include.md -->
|
|
186
215
|
|
|
187
216
|
## Deep nested includes
|
|
188
217
|
|
|
189
|
-
|
|
218
|
+
<!-- source: includes/deep-include.md -->
|
|
219
|
+
# Deep nested include [→ index](index.md) {#deep-nested-include}
|
|
220
|
+
|
|
221
|
+
[Link to index](index.md)
|
|
222
|
+
|
|
223
|
+
[Link to level1 page1](level1/page1.md)
|
|
224
|
+
|
|
225
|
+
[Link to level2 page2](level1/level2/page2.md)
|
|
226
|
+
|
|
227
|
+
This is a deep nested include.
|
|
228
|
+
|
|
229
|
+
<!-- source: includes/user.md -->
|
|
230
|
+
# User include [→ index](index.md) {#user-include}
|
|
231
|
+
|
|
232
|
+
[Link to index](index.md)
|
|
233
|
+
|
|
234
|
+
This is a user include with variable substitution: Alice
|
|
235
|
+
<!-- endsource: includes/user.md -->
|
|
236
|
+
|
|
237
|
+

|
|
238
|
+
<!-- endsource: includes/deep-include.md -->
|
|
190
239
|
|
|
191
240
|
## Commented includes
|
|
192
241
|
|
|
@@ -194,49 +243,83 @@ This is a test page for various include scenarios.
|
|
|
194
243
|
|
|
195
244
|
## Include with variable substitution
|
|
196
245
|
|
|
197
|
-
|
|
246
|
+
<!-- source: includes/user.md -->
|
|
247
|
+
# User include [→ index](index.md) {#user-include}
|
|
248
|
+
|
|
249
|
+
[Link to index](index.md)
|
|
250
|
+
|
|
251
|
+
This is a user include with variable substitution: Alice
|
|
252
|
+
<!-- endsource: includes/user.md -->
|
|
198
253
|
## Include without title
|
|
199
254
|
|
|
200
|
-
|
|
255
|
+
<!-- source: includes/no-title-include.md -->
|
|
256
|
+
# Include without title [→ index](index.md) {#include-without-title}
|
|
257
|
+
|
|
258
|
+
[Link to index](index.md)
|
|
259
|
+
|
|
260
|
+
This is a test for include without title.
|
|
261
|
+
|
|
262
|
+
## Include without title from the same directory
|
|
263
|
+
|
|
264
|
+
<!-- source: includes/user.md -->
|
|
265
|
+
[Link to index](index.md)
|
|
266
|
+
|
|
267
|
+
This is a user include with variable substitution: Alice
|
|
268
|
+
<!-- endsource: includes/user.md -->
|
|
269
|
+
|
|
270
|
+
## Include without title with anchor
|
|
271
|
+
|
|
272
|
+
<!-- source: includes/fragments.md -->
|
|
273
|
+
This is content of section 1.
|
|
274
|
+
<!-- endsource: includes/fragments.md -->
|
|
275
|
+
|
|
276
|
+
## Include without title with paragraph anchor
|
|
277
|
+
|
|
278
|
+
<!-- source: includes/fragments.md -->
|
|
279
|
+
Some paragraph with anchor {#p1}
|
|
280
|
+
<!-- endsource: includes/fragments.md -->
|
|
281
|
+
|
|
282
|
+
[Link to index](index.md)
|
|
283
|
+
<!-- endsource: includes/no-title-include.md -->
|
|
201
284
|
|
|
202
285
|
## Include with anchor {#anchor}
|
|
203
286
|
|
|
204
287
|
{% include notitle [anchor](#anchor) %}
|
|
205
288
|
{% include [anchor](#anchor) %}
|
|
206
289
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
`;
|
|
210
|
-
|
|
211
|
-
exports[`Includes > Various include scenarios 9`] = `
|
|
212
|
-
"This is an include from level 1.
|
|
290
|
+
<!-- source: includes/no-title-include.md -->
|
|
291
|
+
# Include without title [→ index](index.md) {#include-without-title}
|
|
213
292
|
|
|
214
|
-
[Link to
|
|
215
|
-
|
|
216
|
-
[Link to index](../../index.md)
|
|
293
|
+
[Link to index](index.md)
|
|
217
294
|
|
|
218
|
-
|
|
295
|
+
This is a test for include without title.
|
|
219
296
|
|
|
220
|
-
## Include
|
|
297
|
+
## Include without title from the same directory
|
|
221
298
|
|
|
222
|
-
|
|
223
|
-
|
|
299
|
+
<!-- source: includes/user.md -->
|
|
300
|
+
[Link to index](index.md)
|
|
224
301
|
|
|
225
|
-
|
|
226
|
-
|
|
302
|
+
This is a user include with variable substitution: Alice
|
|
303
|
+
<!-- endsource: includes/user.md -->
|
|
227
304
|
|
|
228
|
-
|
|
305
|
+
## Include without title with anchor
|
|
229
306
|
|
|
230
|
-
|
|
307
|
+
<!-- source: includes/fragments.md -->
|
|
308
|
+
This is content of section 1.
|
|
309
|
+
<!-- endsource: includes/fragments.md -->
|
|
231
310
|
|
|
232
|
-
|
|
311
|
+
## Include without title with paragraph anchor
|
|
233
312
|
|
|
234
|
-
|
|
313
|
+
<!-- source: includes/fragments.md -->
|
|
314
|
+
Some paragraph with anchor {#p1}
|
|
315
|
+
<!-- endsource: includes/fragments.md -->
|
|
235
316
|
|
|
236
|
-
|
|
317
|
+
[Link to index](index.md)
|
|
318
|
+
<!-- endsource: includes/no-title-include.md -->
|
|
319
|
+
"
|
|
237
320
|
`;
|
|
238
321
|
|
|
239
|
-
exports[`Includes > Various include scenarios
|
|
322
|
+
exports[`Includes > Various include scenarios 3`] = `
|
|
240
323
|
"---
|
|
241
324
|
metadata:
|
|
242
325
|
- name: generator
|
|
@@ -249,15 +332,83 @@ This is page 2 at level 2.
|
|
|
249
332
|
|
|
250
333
|
## Include from level2
|
|
251
334
|
|
|
252
|
-
|
|
335
|
+
<!-- source: level1/level2/includes/level2-include.md -->
|
|
336
|
+
This is an include from level 2.
|
|
337
|
+
|
|
338
|
+
[Link to page2](page2.md)
|
|
339
|
+
|
|
340
|
+
[Link to page1](../page1.md)
|
|
341
|
+
|
|
342
|
+
[Link to index](../../index.md)
|
|
343
|
+
|
|
344
|
+
## Include with anchor [→ level1](../page1.md) {#include-with-anchor}
|
|
345
|
+
|
|
346
|
+
<!-- source: includes/fragments.md -->
|
|
347
|
+
## Section 3 {#section3}
|
|
348
|
+
|
|
349
|
+
This is content of section 3.
|
|
350
|
+
|
|
351
|
+
Some paragraph with anchor {#p1}
|
|
352
|
+
|
|
353
|
+
Some paragraph without anchor
|
|
354
|
+
|
|
355
|
+
Some paragraph with anchor {#p2}
|
|
356
|
+
<!-- endsource: includes/fragments.md -->
|
|
357
|
+
<!-- endsource: level1/level2/includes/level2-include.md -->
|
|
253
358
|
|
|
254
359
|
## Include from level1
|
|
255
360
|
|
|
256
|
-
|
|
361
|
+
<!-- source: level1/includes/level1-include.md -->
|
|
362
|
+
This is an include from level 1.
|
|
363
|
+
|
|
364
|
+
[Link to page1](../page1.md)
|
|
365
|
+
|
|
366
|
+
[Link to index](../../index.md)
|
|
367
|
+
|
|
368
|
+
[Link to level2](page2.md)
|
|
369
|
+
|
|
370
|
+
## Include with anchor [→ root](../../index.md) {#include-with-anchor}
|
|
371
|
+
|
|
372
|
+
<!-- source: includes/fragments.md -->
|
|
373
|
+
### Subsection 2.1 {#subsection21}
|
|
374
|
+
|
|
375
|
+
This is content of subsection 2.1.
|
|
376
|
+
|
|
377
|
+
## Section 3 {#section3}
|
|
378
|
+
|
|
379
|
+
This is content of section 3.
|
|
380
|
+
|
|
381
|
+
Some paragraph with anchor {#p1}
|
|
382
|
+
|
|
383
|
+
Some paragraph without anchor
|
|
384
|
+
|
|
385
|
+
Some paragraph with anchor {#p2}
|
|
386
|
+
<!-- endsource: includes/fragments.md -->
|
|
387
|
+
<!-- endsource: level1/includes/level1-include.md -->
|
|
257
388
|
|
|
258
389
|
## Include from root
|
|
259
390
|
|
|
260
|
-
|
|
391
|
+
<!-- source: includes/root-include.md -->
|
|
392
|
+
This is an include from the root level.
|
|
393
|
+
|
|
394
|
+
[Link to level1](../page1.md)
|
|
395
|
+
|
|
396
|
+
[Link to level2](page2.md)
|
|
397
|
+
|
|
398
|
+
[Link to index](../../index.md)
|
|
399
|
+
|
|
400
|
+
## Include with anchor [→ level1](../page1.md) {#include-with-anchor}
|
|
401
|
+
|
|
402
|
+
<!-- source: includes/fragments.md -->
|
|
403
|
+
## Section 2 {#section2}
|
|
404
|
+
|
|
405
|
+
This is content of section 2.
|
|
406
|
+
|
|
407
|
+
### Subsection 2.1 {#subsection21}
|
|
408
|
+
|
|
409
|
+
This is content of subsection 2.1.
|
|
410
|
+
<!-- endsource: includes/fragments.md -->
|
|
411
|
+
<!-- endsource: includes/root-include.md -->
|
|
261
412
|
|
|
262
413
|
## Links to different levels
|
|
263
414
|
|
|
@@ -267,14 +418,56 @@ This is page 2 at level 2.
|
|
|
267
418
|
|
|
268
419
|
## Nested include
|
|
269
420
|
|
|
270
|
-
|
|
421
|
+
<!-- source: includes/nested-include.md -->
|
|
422
|
+
# Nested include [→ index](../../index.md) {#nested-include}
|
|
423
|
+
|
|
424
|
+
This is a nested include.
|
|
425
|
+
|
|
426
|
+
<!-- source: level1/includes/level1-include.md -->
|
|
427
|
+
This is an include from level 1.
|
|
428
|
+
|
|
429
|
+
[Link to page1](../page1.md)
|
|
430
|
+
|
|
431
|
+
[Link to index](../../index.md)
|
|
432
|
+
|
|
433
|
+
[Link to level2](page2.md)
|
|
434
|
+
|
|
435
|
+
## Include with anchor [→ root](../../index.md) {#include-with-anchor}
|
|
436
|
+
|
|
437
|
+
<!-- source: includes/fragments.md -->
|
|
438
|
+
### Subsection 2.1 {#subsection21}
|
|
439
|
+
|
|
440
|
+
This is content of subsection 2.1.
|
|
441
|
+
|
|
442
|
+
## Section 3 {#section3}
|
|
443
|
+
|
|
444
|
+
This is content of section 3.
|
|
445
|
+
|
|
446
|
+
Some paragraph with anchor {#p1}
|
|
447
|
+
|
|
448
|
+
Some paragraph without anchor
|
|
449
|
+
|
|
450
|
+
Some paragraph with anchor {#p2}
|
|
451
|
+
<!-- endsource: includes/fragments.md -->
|
|
452
|
+
<!-- endsource: level1/includes/level1-include.md -->
|
|
453
|
+
<!-- endsource: includes/nested-include.md -->
|
|
271
454
|
|
|
272
455
|
## Include with anchor
|
|
273
456
|
|
|
274
|
-
|
|
457
|
+
<!-- source: includes/fragments.md -->
|
|
458
|
+
## Section 3 {#section3}
|
|
459
|
+
|
|
460
|
+
This is content of section 3.
|
|
461
|
+
|
|
462
|
+
Some paragraph with anchor {#p1}
|
|
463
|
+
|
|
464
|
+
Some paragraph without anchor
|
|
465
|
+
|
|
466
|
+
Some paragraph with anchor {#p2}
|
|
467
|
+
<!-- endsource: includes/fragments.md -->"
|
|
275
468
|
`;
|
|
276
469
|
|
|
277
|
-
exports[`Includes > Various include scenarios
|
|
470
|
+
exports[`Includes > Various include scenarios 4`] = `
|
|
278
471
|
"---
|
|
279
472
|
metadata:
|
|
280
473
|
- name: generator
|
|
@@ -287,15 +480,83 @@ This is page 1 at level 1.
|
|
|
287
480
|
|
|
288
481
|
## Include from level1
|
|
289
482
|
|
|
290
|
-
|
|
483
|
+
<!-- source: level1/includes/level1-include.md -->
|
|
484
|
+
This is an include from level 1.
|
|
485
|
+
|
|
486
|
+
[Link to page1](page1.md)
|
|
487
|
+
|
|
488
|
+
[Link to index](../index.md)
|
|
489
|
+
|
|
490
|
+
[Link to level2](level2/page2.md)
|
|
491
|
+
|
|
492
|
+
## Include with anchor [→ root](../index.md) {#include-with-anchor}
|
|
493
|
+
|
|
494
|
+
<!-- source: includes/fragments.md -->
|
|
495
|
+
### Subsection 2.1 {#subsection21}
|
|
496
|
+
|
|
497
|
+
This is content of subsection 2.1.
|
|
498
|
+
|
|
499
|
+
## Section 3 {#section3}
|
|
500
|
+
|
|
501
|
+
This is content of section 3.
|
|
502
|
+
|
|
503
|
+
Some paragraph with anchor {#p1}
|
|
504
|
+
|
|
505
|
+
Some paragraph without anchor
|
|
506
|
+
|
|
507
|
+
Some paragraph with anchor {#p2}
|
|
508
|
+
<!-- endsource: includes/fragments.md -->
|
|
509
|
+
<!-- endsource: level1/includes/level1-include.md -->
|
|
291
510
|
|
|
292
511
|
## Include from root
|
|
293
512
|
|
|
294
|
-
|
|
513
|
+
<!-- source: includes/root-include.md -->
|
|
514
|
+
This is an include from the root level.
|
|
515
|
+
|
|
516
|
+
[Link to level1](page1.md)
|
|
517
|
+
|
|
518
|
+
[Link to level2](level2/page2.md)
|
|
519
|
+
|
|
520
|
+
[Link to index](../index.md)
|
|
521
|
+
|
|
522
|
+
## Include with anchor [→ level1](page1.md) {#include-with-anchor}
|
|
523
|
+
|
|
524
|
+
<!-- source: includes/fragments.md -->
|
|
525
|
+
## Section 2 {#section2}
|
|
526
|
+
|
|
527
|
+
This is content of section 2.
|
|
528
|
+
|
|
529
|
+
### Subsection 2.1 {#subsection21}
|
|
530
|
+
|
|
531
|
+
This is content of subsection 2.1.
|
|
532
|
+
<!-- endsource: includes/fragments.md -->
|
|
533
|
+
<!-- endsource: includes/root-include.md -->
|
|
295
534
|
|
|
296
535
|
## Include from level2
|
|
297
536
|
|
|
298
|
-
|
|
537
|
+
<!-- source: level1/level2/includes/level2-include.md -->
|
|
538
|
+
This is an include from level 2.
|
|
539
|
+
|
|
540
|
+
[Link to page2](level2/page2.md)
|
|
541
|
+
|
|
542
|
+
[Link to page1](page1.md)
|
|
543
|
+
|
|
544
|
+
[Link to index](../index.md)
|
|
545
|
+
|
|
546
|
+
## Include with anchor [→ level1](page1.md) {#include-with-anchor}
|
|
547
|
+
|
|
548
|
+
<!-- source: includes/fragments.md -->
|
|
549
|
+
## Section 3 {#section3}
|
|
550
|
+
|
|
551
|
+
This is content of section 3.
|
|
552
|
+
|
|
553
|
+
Some paragraph with anchor {#p1}
|
|
554
|
+
|
|
555
|
+
Some paragraph without anchor
|
|
556
|
+
|
|
557
|
+
Some paragraph with anchor {#p2}
|
|
558
|
+
<!-- endsource: includes/fragments.md -->
|
|
559
|
+
<!-- endsource: level1/level2/includes/level2-include.md -->
|
|
299
560
|
|
|
300
561
|
## Links to different levels
|
|
301
562
|
|
|
@@ -305,35 +566,60 @@ This is page 1 at level 1.
|
|
|
305
566
|
|
|
306
567
|
## Nested include
|
|
307
568
|
|
|
308
|
-
|
|
569
|
+
<!-- source: includes/nested-include.md -->
|
|
570
|
+
# Nested include [→ index](../index.md) {#nested-include}
|
|
309
571
|
|
|
310
|
-
|
|
572
|
+
This is a nested include.
|
|
311
573
|
|
|
312
|
-
|
|
313
|
-
|
|
574
|
+
<!-- source: level1/includes/level1-include.md -->
|
|
575
|
+
This is an include from level 1.
|
|
314
576
|
|
|
315
|
-
|
|
316
|
-
"---
|
|
317
|
-
metadata:
|
|
318
|
-
- name: generator
|
|
319
|
-
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
320
|
-
---
|
|
321
|
-
# Toc Include
|
|
577
|
+
[Link to page1](page1.md)
|
|
322
578
|
|
|
323
|
-
|
|
579
|
+
[Link to index](../index.md)
|
|
324
580
|
|
|
325
|
-
[Link to
|
|
581
|
+
[Link to level2](level2/page2.md)
|
|
326
582
|
|
|
327
|
-
[
|
|
583
|
+
## Include with anchor [→ root](../index.md) {#include-with-anchor}
|
|
328
584
|
|
|
329
|
-
|
|
585
|
+
<!-- source: includes/fragments.md -->
|
|
586
|
+
### Subsection 2.1 {#subsection21}
|
|
587
|
+
|
|
588
|
+
This is content of subsection 2.1.
|
|
589
|
+
|
|
590
|
+
## Section 3 {#section3}
|
|
591
|
+
|
|
592
|
+
This is content of section 3.
|
|
593
|
+
|
|
594
|
+
Some paragraph with anchor {#p1}
|
|
595
|
+
|
|
596
|
+
Some paragraph without anchor
|
|
597
|
+
|
|
598
|
+
Some paragraph with anchor {#p2}
|
|
599
|
+
<!-- endsource: includes/fragments.md -->
|
|
600
|
+
<!-- endsource: level1/includes/level1-include.md -->
|
|
601
|
+
<!-- endsource: includes/nested-include.md -->
|
|
330
602
|
|
|
331
603
|
## Include with anchor
|
|
332
604
|
|
|
333
|
-
|
|
605
|
+
<!-- source: includes/fragments.md -->
|
|
606
|
+
### Subsection 2.1 {#subsection21}
|
|
607
|
+
|
|
608
|
+
This is content of subsection 2.1.
|
|
609
|
+
|
|
610
|
+
## Section 3 {#section3}
|
|
611
|
+
|
|
612
|
+
This is content of section 3.
|
|
613
|
+
|
|
614
|
+
Some paragraph with anchor {#p1}
|
|
615
|
+
|
|
616
|
+
Some paragraph without anchor
|
|
617
|
+
|
|
618
|
+
Some paragraph with anchor {#p2}
|
|
619
|
+
<!-- endsource: includes/fragments.md -->"
|
|
334
620
|
`;
|
|
335
621
|
|
|
336
|
-
exports[`Includes > Various include scenarios
|
|
622
|
+
exports[`Includes > Various include scenarios 5`] = `
|
|
337
623
|
"---
|
|
338
624
|
metadata:
|
|
339
625
|
- name: generator
|
|
@@ -352,10 +638,14 @@ This file is included in the toc.
|
|
|
352
638
|
|
|
353
639
|
## Include with anchor
|
|
354
640
|
|
|
355
|
-
|
|
641
|
+
<!-- source: includes/fragments.md -->
|
|
642
|
+
## Section 1 {#section1}
|
|
643
|
+
|
|
644
|
+
This is content of section 1.
|
|
645
|
+
<!-- endsource: includes/fragments.md -->"
|
|
356
646
|
`;
|
|
357
647
|
|
|
358
|
-
exports[`Includes > Various include scenarios
|
|
648
|
+
exports[`Includes > Various include scenarios 6`] = `
|
|
359
649
|
"items:
|
|
360
650
|
- name: Test Includes
|
|
361
651
|
href: index.md
|
|
@@ -373,9 +663,9 @@ path: toc.yaml
|
|
|
373
663
|
"
|
|
374
664
|
`;
|
|
375
665
|
|
|
376
|
-
exports[`Includes > Various include scenarios
|
|
666
|
+
exports[`Includes > Various include scenarios 7`] = `"projectTitle: Test Includes"`;
|
|
377
667
|
|
|
378
|
-
exports[`Includes > Various include scenarios
|
|
668
|
+
exports[`Includes > Various include scenarios 8`] = `
|
|
379
669
|
"<!DOCTYPE html>
|
|
380
670
|
<html lang="ru" dir="ltr">
|
|
381
671
|
<head>
|
|
@@ -389,7 +679,7 @@ exports[`Includes > Various include scenarios 17`] = `
|
|
|
389
679
|
<body class="g-root g-root_theme_light">
|
|
390
680
|
<div id="root"></div>
|
|
391
681
|
<script type="application/json" id="diplodoc-state">
|
|
392
|
-
{"data":{"leading":false,"html":"<p>This is a test page for various include scenarios.</p>/n<h2 id=\\"include-from-root-level\\"><a href=\\"index.html#include-from-root-level\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from root level</span></a>Include from root level</h2>/n<p>This is an include from the root level.</p>/n<p><a href=\\"level1/page1.html\\">Link to level1</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<h2 id=\\"include-with-anchor\\"><a href=\\"index.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → level1</span></a>Include with anchor <a href=\\"level1/page1.html\\">→ level1</a></h2>/n<h2 id=\\"section2\\"><a href=\\"index.html#section2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 2</span></a>Section 2</h2>/n<p>This is content of section 2.</p>/n<h3 id=\\"subsection21\\"><a href=\\"index.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"include-from-level1\\"><a href=\\"index.html#include-from-level1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from level1</span></a>Include from level1</h2>/n<p>This is an include from level 1.</p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<h2 id=\\"include-with-anchor1\\"><a id=\\"include-with-anchor\\" href=\\"index.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → root</span></a>Include with anchor <a href=\\"index.html\\">→ root</a></h2>/n<h3 id=\\"subsection211\\"><a id=\\"subsection21\\" href=\\"index.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"include-from-level2\\"><a href=\\"index.html#include-from-level2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from level2</span></a>Include from level2</h2>/n<p>This is an include from level 2.</p>/n<p><a href=\\"level1/level2/page2.html\\">Link to page2</a></p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<h2 id=\\"include-with-anchor2\\"><a id=\\"include-with-anchor\\" href=\\"index.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → level1</span></a>Include with anchor <a href=\\"level1/page1.html\\">→ level1</a></h2>/n<h2 id=\\"section3\\"><a href=\\"index.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 3</span></a>Section 3</h2>/n<p>This is content of section 3.</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p>Some paragraph without anchor</p>/n<p id=\\"p2\\">Some paragraph with anchor</p>/n<h2 id=\\"include-with-missing-file\\"><a href=\\"index.html#include-with-missing-file\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with missing file</span></a>Include with missing file</h2>/n/n<h2 id=\\"include-file-that-is-in-toc\\"><a href=\\"index.html#include-file-that-is-in-toc\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include file that is in toc</span></a>Include file that is in toc</h2>/n<p><a href=\\"toc-include.html\\">Link to toc-include</a></p>/n<h1>Toc Include</h1>/n<p>This file is included in the toc.</p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to page2</a></p>/n<h2 id=\\"include-with-anchor3\\"><a href=\\"index.html#include-with-anchor3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor</span></a>Include with anchor</h2>/n<h2 id=\\"section1\\"><a href=\\"index.html#section1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 1</span></a>Section 1</h2>/n<p>This is content of section 1.</p>/n<h2 id=\\"links-to-different-levels\\"><a href=\\"index.html#links-to-different-levels\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Links to different levels</span></a>Links to different levels</h2>/n<p><a href=\\"level1/page1.html\\">Link to level1</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<h2 id=\\"include-with-anchor4\\"><a href=\\"index.html#include-with-anchor4\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor</span></a>Include with anchor</h2>/n<h2 id=\\"section11\\"><a id=\\"section1\\" href=\\"index.html#section1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 1</span></a>Section 1</h2>/n<p>This is content of section 1.</p>/n<h2 id=\\"include-with-multiple-anchors\\"><a href=\\"index.html#include-with-multiple-anchors\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with multiple anchors</span></a>Include with multiple anchors</h2>/n<h2 id=\\"section21\\"><a id=\\"section2\\" href=\\"index.html#section2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 2</span></a>Section 2</h2>/n<p>This is content of section 2.</p>/n<h3 id=\\"subsection212\\"><a id=\\"subsection21\\" href=\\"index.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"include-with-paragraph-anchor\\"><a href=\\"index.html#include-with-paragraph-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with paragraph anchor</span></a>Include with paragraph anchor</h2>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<h2 id=\\"nested-includes\\"><a href=\\"index.html#nested-includes\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Nested includes</span></a>Nested includes</h2>/n<h1 id=\\"nested-include\\">Nested include <a href=\\"index.html\\">→ index</a></h1>/n<p>This is a nested include.</p>/n<p>This is an include from level 1.</p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<h2 id=\\"include-with-anchor5\\"><a id=\\"include-with-anchor\\" href=\\"index.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → root</span></a>Include with anchor <a href=\\"index.html\\">→ root</a></h2>/n<h3 id=\\"subsection213\\"><a id=\\"subsection21\\" href=\\"index.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"deep-nested-includes\\"><a href=\\"index.html#deep-nested-includes\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Deep nested includes</span></a>Deep nested includes</h2>/n<h1 id=\\"deep-nested-include\\">Deep nested include <a href=\\"index.html\\">→ index</a></h1>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/page1.html\\">Link to level1 page1</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2 page2</a></p>/n<p>This is a deep nested include.</p>/n<h1 id=\\"user-include\\">User include <a href=\\"index.html\\">→ index</a></h1>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p>This is a user include with variable substitution: Alice</p>/n<p><img src=\\"_assets/4.png\\" alt=\\"img 3\\" /></p>/n<h2 id=\\"commented-includes\\"><a href=\\"index.html#commented-includes\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Commented includes</span></a>Commented includes</h2>/n/n<h2 id=\\"include-with-variable-substitution\\"><a href=\\"index.html#include-with-variable-substitution\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with variable substitution</span></a>Include with variable substitution</h2>/n<h1 id=\\"user-include\\">User include <a href=\\"index.html\\">→ index</a></h1>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p>This is a user include with variable substitution: Alice</p>/n<h2 id=\\"include-without-title\\"><a href=\\"index.html#include-without-title\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include without title</span></a>Include without title</h2>/n<h1 id=\\"include-without-title\\">Include without title <a href=\\"index.html\\">→ index</a></h1>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p>This is a test for include without title.</p>/n<h2 id=\\"include-without-title-from-the-same-directory\\"><a href=\\"index.html#include-without-title-from-the-same-directory\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include without title from the same directory</span></a>Include without title from the same directory</h2>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p>This is a user include with variable substitution: Alice</p>/n<h2 id=\\"include-without-title-with-anchor\\"><a href=\\"index.html#include-without-title-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include without title with anchor</span></a>Include without title with anchor</h2>/n<p>This is content of section 1.</p>/n<h2 id=\\"include-without-title-with-paragraph-anchor\\"><a href=\\"index.html#include-without-title-with-paragraph-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include without title with paragraph anchor</span></a>Include without title with paragraph anchor</h2>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<h2 id=\\"anchor\\"><a href=\\"index.html#anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor</span></a>Include with anchor</h2>/n<p>{% include notitle <a href=\\"index.html#anchor\\">anchor</a> %}<br />/n{% include <a href=\\"index.html#anchor\\">anchor</a> %}</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"index.md"},"headings":[{"title":"Include from root level","href":"index.html#include-from-root-level","level":2},{"title":"Include with anchor → level1","href":"index.html#include-with-anchor","level":2},{"title":"Section 2","href":"index.html#section2","level":2,"items":[{"title":"Subsection 2.1","href":"index.html#subsection21","level":3}]},{"title":"Include from level1","href":"index.html#include-from-level1","level":2},{"title":"Include with anchor → root","href":"index.html#include-with-anchor1","level":2,"items":[{"title":"Subsection 2.1","href":"index.html#subsection211","level":3}]},{"title":"Include from level2","href":"index.html#include-from-level2","level":2},{"title":"Include with anchor → level1","href":"index.html#include-with-anchor2","level":2},{"title":"Section 3","href":"index.html#section3","level":2},{"title":"Include with missing file","href":"index.html#include-with-missing-file","level":2},{"title":"Include file that is in toc","href":"index.html#include-file-that-is-in-toc","level":2},{"title":"Include with anchor","href":"index.html#include-with-anchor3","level":2},{"title":"Section 1","href":"index.html#section1","level":2},{"title":"Links to different levels","href":"index.html#links-to-different-levels","level":2},{"title":"Include with anchor","href":"index.html#include-with-anchor4","level":2},{"title":"Section 1","href":"index.html#section11","level":2},{"title":"Include with multiple anchors","href":"index.html#include-with-multiple-anchors","level":2},{"title":"Section 2","href":"index.html#section21","level":2,"items":[{"title":"Subsection 2.1","href":"index.html#subsection212","level":3}]},{"title":"Include with paragraph anchor","href":"index.html#include-with-paragraph-anchor","level":2},{"title":"Nested includes","href":"index.html#nested-includes","level":2},{"title":"Include with anchor → root","href":"index.html#include-with-anchor5","level":2,"items":[{"title":"Subsection 2.1","href":"index.html#subsection213","level":3}]},{"title":"Deep nested includes","href":"index.html#deep-nested-includes","level":2},{"title":"Commented includes","href":"index.html#commented-includes","level":2},{"title":"Include with variable substitution","href":"index.html#include-with-variable-substitution","level":2},{"title":"Include without title","href":"index.html#include-without-title","level":2},{"title":"Include without title from the same directory","href":"index.html#include-without-title-from-the-same-directory","level":2},{"title":"Include without title with anchor","href":"index.html#include-without-title-with-anchor","level":2},{"title":"Include without title with paragraph anchor","href":"index.html#include-without-title-with-paragraph-anchor","level":2},{"title":"Include with anchor","href":"index.html#anchor","level":2}],"title":"Test Includes"},"router":{"pathname":"index","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
682
|
+
{"data":{"leading":false,"html":"<p>This is a test page for various include scenarios.</p>/n<h2 id=\\"include-from-root-level\\"><a href=\\"index.html#include-from-root-level\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from root level</span></a>Include from root level</h2>/n/n<p>This is an include from the root level.</p>/n<p><a href=\\"level1/page1.html\\">Link to level1</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<h2 id=\\"include-with-anchor\\"><a href=\\"index.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → level1</span></a>Include with anchor <a href=\\"level1/page1.html\\">→ level1</a></h2>/n/n<h2 id=\\"section2\\"><a href=\\"index.html#section2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 2</span></a>Section 2</h2>/n<p>This is content of section 2.</p>/n<h3 id=\\"subsection21\\"><a href=\\"index.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n/n/n<h2 id=\\"include-from-level1\\"><a href=\\"index.html#include-from-level1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from level1</span></a>Include from level1</h2>/n/n<p>This is an include from level 1.</p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<h2 id=\\"include-with-anchor1\\"><a id=\\"include-with-anchor\\" href=\\"index.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → root</span></a>Include with anchor <a href=\\"index.html\\">→ root</a></h2>/n/n<h3 id=\\"subsection211\\"><a id=\\"subsection21\\" href=\\"index.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"section3\\"><a href=\\"index.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 3</span></a>Section 3</h2>/n<p>This is content of section 3.</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p>Some paragraph without anchor</p>/n<p id=\\"p2\\">Some paragraph with anchor</p>/n/n/n<h2 id=\\"include-from-level2\\"><a href=\\"index.html#include-from-level2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from level2</span></a>Include from level2</h2>/n/n<p>This is an include from level 2.</p>/n<p><a href=\\"level1/level2/page2.html\\">Link to page2</a></p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<h2 id=\\"include-with-anchor2\\"><a id=\\"include-with-anchor\\" href=\\"index.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → level1</span></a>Include with anchor <a href=\\"level1/page1.html\\">→ level1</a></h2>/n/n<h2 id=\\"section31\\"><a id=\\"section3\\" href=\\"index.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 3</span></a>Section 3</h2>/n<p>This is content of section 3.</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p>Some paragraph without anchor</p>/n<p id=\\"p2\\">Some paragraph with anchor</p>/n/n/n<h2 id=\\"include-with-missing-file\\"><a href=\\"index.html#include-with-missing-file\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with missing file</span></a>Include with missing file</h2>/n/n<h2 id=\\"include-file-that-is-in-toc\\"><a href=\\"index.html#include-file-that-is-in-toc\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include file that is in toc</span></a>Include file that is in toc</h2>/n<p><a href=\\"toc-include.html\\">Link to toc-include</a></p>/n/n<h1>Toc Include</h1>/n<p>This file is included in the toc.</p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to page2</a></p>/n<h2 id=\\"include-with-anchor3\\"><a href=\\"index.html#include-with-anchor3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor</span></a>Include with anchor</h2>/n/n<h2 id=\\"section1\\"><a href=\\"index.html#section1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 1</span></a>Section 1</h2>/n<p>This is content of section 1.</p>/n/n/n<h2 id=\\"links-to-different-levels\\"><a href=\\"index.html#links-to-different-levels\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Links to different levels</span></a>Links to different levels</h2>/n<p><a href=\\"level1/page1.html\\">Link to level1</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<h2 id=\\"include-with-anchor4\\"><a href=\\"index.html#include-with-anchor4\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor</span></a>Include with anchor</h2>/n/n<h2 id=\\"section11\\"><a id=\\"section1\\" href=\\"index.html#section1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 1</span></a>Section 1</h2>/n<p>This is content of section 1.</p>/n/n<h2 id=\\"include-with-multiple-anchors\\"><a href=\\"index.html#include-with-multiple-anchors\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with multiple anchors</span></a>Include with multiple anchors</h2>/n/n<h2 id=\\"section21\\"><a id=\\"section2\\" href=\\"index.html#section2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 2</span></a>Section 2</h2>/n<p>This is content of section 2.</p>/n<h3 id=\\"subsection212\\"><a id=\\"subsection21\\" href=\\"index.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n/n<h2 id=\\"include-with-paragraph-anchor\\"><a href=\\"index.html#include-with-paragraph-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with paragraph anchor</span></a>Include with paragraph anchor</h2>/n/n<p id=\\"p1\\">Some paragraph with anchor</p>/n/n<h2 id=\\"nested-includes\\"><a href=\\"index.html#nested-includes\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Nested includes</span></a>Nested includes</h2>/n/n<h1 id=\\"nested-include\\">Nested include <a href=\\"index.html\\">→ index</a></h1>/n<p>This is a nested include.</p>/n/n<p>This is an include from level 1.</p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<h2 id=\\"include-with-anchor5\\"><a id=\\"include-with-anchor\\" href=\\"index.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → root</span></a>Include with anchor <a href=\\"index.html\\">→ root</a></h2>/n/n<h3 id=\\"subsection213\\"><a id=\\"subsection21\\" href=\\"index.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"section32\\"><a id=\\"section3\\" href=\\"index.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 3</span></a>Section 3</h2>/n<p>This is content of section 3.</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p>Some paragraph without anchor</p>/n<p id=\\"p2\\">Some paragraph with anchor</p>/n/n/n/n<h2 id=\\"deep-nested-includes\\"><a href=\\"index.html#deep-nested-includes\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Deep nested includes</span></a>Deep nested includes</h2>/n/n<h1 id=\\"deep-nested-include\\">Deep nested include <a href=\\"index.html\\">→ index</a></h1>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/page1.html\\">Link to level1 page1</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2 page2</a></p>/n<p>This is a deep nested include.</p>/n/n<h1 id=\\"user-include\\">User include <a href=\\"index.html\\">→ index</a></h1>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p>This is a user include with variable substitution: Alice</p>/n/n<p><img src=\\"_assets/4.png\\" alt=\\"img 3\\" /></p>/n/n<h2 id=\\"commented-includes\\"><a href=\\"index.html#commented-includes\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Commented includes</span></a>Commented includes</h2>/n/n<h2 id=\\"include-with-variable-substitution\\"><a href=\\"index.html#include-with-variable-substitution\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with variable substitution</span></a>Include with variable substitution</h2>/n/n<h1 id=\\"user-include\\">User include <a href=\\"index.html\\">→ index</a></h1>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p>This is a user include with variable substitution: Alice</p>/n/n<h2 id=\\"include-without-title\\"><a href=\\"index.html#include-without-title\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include without title</span></a>Include without title</h2>/n/n<h1 id=\\"include-without-title\\">Include without title <a href=\\"index.html\\">→ index</a></h1>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p>This is a test for include without title.</p>/n<h2 id=\\"include-without-title-from-the-same-directory\\"><a href=\\"index.html#include-without-title-from-the-same-directory\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include without title from the same directory</span></a>Include without title from the same directory</h2>/n/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p>This is a user include with variable substitution: Alice</p>/n/n<h2 id=\\"include-without-title-with-anchor\\"><a href=\\"index.html#include-without-title-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include without title with anchor</span></a>Include without title with anchor</h2>/n/n<p>This is content of section 1.</p>/n/n<h2 id=\\"include-without-title-with-paragraph-anchor\\"><a href=\\"index.html#include-without-title-with-paragraph-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include without title with paragraph anchor</span></a>Include without title with paragraph anchor</h2>/n/n<p id=\\"p1\\">Some paragraph with anchor</p>/n/n<p><a href=\\"index.html\\">Link to index</a></p>/n/n<h2 id=\\"anchor\\"><a href=\\"index.html#anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor</span></a>Include with anchor</h2>/n<p>{% include notitle <a href=\\"index.html#anchor\\">anchor</a> %}<br />/n{% include <a href=\\"index.html#anchor\\">anchor</a> %}</p>/n/n<h1 id=\\"include-without-title\\">Include without title <a href=\\"index.html\\">→ index</a></h1>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p>This is a test for include without title.</p>/n<h2 id=\\"include-without-title-from-the-same-directory1\\"><a href=\\"index.html#include-without-title-from-the-same-directory1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include without title from the same directory</span></a>Include without title from the same directory</h2>/n/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p>This is a user include with variable substitution: Alice</p>/n/n<h2 id=\\"include-without-title-with-anchor1\\"><a href=\\"index.html#include-without-title-with-anchor1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include without title with anchor</span></a>Include without title with anchor</h2>/n/n<p>This is content of section 1.</p>/n/n<h2 id=\\"include-without-title-with-paragraph-anchor1\\"><a href=\\"index.html#include-without-title-with-paragraph-anchor1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include without title with paragraph anchor</span></a>Include without title with paragraph anchor</h2>/n/n<p id=\\"p1\\">Some paragraph with anchor</p>/n/n<p><a href=\\"index.html\\">Link to index</a></p>/n/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"index.md"},"headings":[{"title":"Include from root level","href":"index.html#include-from-root-level","level":2},{"title":"Include with anchor → level1","href":"index.html#include-with-anchor","level":2},{"title":"Section 2","href":"index.html#section2","level":2,"items":[{"title":"Subsection 2.1","href":"index.html#subsection21","level":3}]},{"title":"Include from level1","href":"index.html#include-from-level1","level":2},{"title":"Include with anchor → root","href":"index.html#include-with-anchor1","level":2,"items":[{"title":"Subsection 2.1","href":"index.html#subsection211","level":3}]},{"title":"Section 3","href":"index.html#section3","level":2},{"title":"Include from level2","href":"index.html#include-from-level2","level":2},{"title":"Include with anchor → level1","href":"index.html#include-with-anchor2","level":2},{"title":"Section 3","href":"index.html#section31","level":2},{"title":"Include with missing file","href":"index.html#include-with-missing-file","level":2},{"title":"Include file that is in toc","href":"index.html#include-file-that-is-in-toc","level":2},{"title":"Include with anchor","href":"index.html#include-with-anchor3","level":2},{"title":"Section 1","href":"index.html#section1","level":2},{"title":"Links to different levels","href":"index.html#links-to-different-levels","level":2},{"title":"Include with anchor","href":"index.html#include-with-anchor4","level":2},{"title":"Section 1","href":"index.html#section11","level":2},{"title":"Include with multiple anchors","href":"index.html#include-with-multiple-anchors","level":2},{"title":"Section 2","href":"index.html#section21","level":2,"items":[{"title":"Subsection 2.1","href":"index.html#subsection212","level":3}]},{"title":"Include with paragraph anchor","href":"index.html#include-with-paragraph-anchor","level":2},{"title":"Nested includes","href":"index.html#nested-includes","level":2},{"title":"Include with anchor → root","href":"index.html#include-with-anchor5","level":2,"items":[{"title":"Subsection 2.1","href":"index.html#subsection213","level":3}]},{"title":"Section 3","href":"index.html#section32","level":2},{"title":"Deep nested includes","href":"index.html#deep-nested-includes","level":2},{"title":"Commented includes","href":"index.html#commented-includes","level":2},{"title":"Include with variable substitution","href":"index.html#include-with-variable-substitution","level":2},{"title":"Include without title","href":"index.html#include-without-title","level":2},{"title":"Include without title from the same directory","href":"index.html#include-without-title-from-the-same-directory","level":2},{"title":"Include without title with anchor","href":"index.html#include-without-title-with-anchor","level":2},{"title":"Include without title with paragraph anchor","href":"index.html#include-without-title-with-paragraph-anchor","level":2},{"title":"Include with anchor","href":"index.html#anchor","level":2},{"title":"Include without title from the same directory","href":"index.html#include-without-title-from-the-same-directory1","level":2},{"title":"Include without title with anchor","href":"index.html#include-without-title-with-anchor1","level":2},{"title":"Include without title with paragraph anchor","href":"index.html#include-without-title-with-paragraph-anchor1","level":2}],"title":"Test Includes"},"router":{"pathname":"index","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
393
683
|
</script>
|
|
394
684
|
<script type="application/javascript">
|
|
395
685
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -403,7 +693,7 @@ exports[`Includes > Various include scenarios 17`] = `
|
|
|
403
693
|
</html>"
|
|
404
694
|
`;
|
|
405
695
|
|
|
406
|
-
exports[`Includes > Various include scenarios
|
|
696
|
+
exports[`Includes > Various include scenarios 9`] = `
|
|
407
697
|
"<!DOCTYPE html>
|
|
408
698
|
<html lang="ru" dir="ltr">
|
|
409
699
|
<head>
|
|
@@ -417,7 +707,7 @@ exports[`Includes > Various include scenarios 18`] = `
|
|
|
417
707
|
<body class="g-root g-root_theme_light">
|
|
418
708
|
<div id="root"></div>
|
|
419
709
|
<script type="application/json" id="diplodoc-state">
|
|
420
|
-
{"data":{"leading":false,"html":"<p>This is page 2 at level 2.</p>/n<h2 id=\\"include-from-level2\\"><a href=\\"level1/level2/page2.html#include-from-level2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from level2</span></a>Include from level2</h2>/n<p>This is an include from level 2.</p>/n<p><a href=\\"level1/level2/page2.html\\">Link to page2</a></p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<h2 id=\\"include-with-anchor\\"><a href=\\"level1/level2/page2.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → level1</span></a>Include with anchor <a href=\\"level1/page1.html\\">→ level1</a></h2>/n<h2 id=\\"section3\\"><a href=\\"level1/level2/page2.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 3</span></a>Section 3</h2>/n<p>This is content of section 3.</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p>Some paragraph without anchor</p>/n<p id=\\"p2\\">Some paragraph with anchor</p>/n<h2 id=\\"include-from-level1\\"><a href=\\"level1/level2/page2.html#include-from-level1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from level1</span></a>Include from level1</h2>/n<p>This is an include from level 1.</p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<h2 id=\\"include-with-anchor1\\"><a id=\\"include-with-anchor\\" href=\\"level1/level2/page2.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → root</span></a>Include with anchor <a href=\\"index.html\\">→ root</a></h2>/n<h3 id=\\"subsection21\\"><a href=\\"level1/level2/page2.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"include-from-root\\"><a href=\\"level1/level2/page2.html#include-from-root\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from root</span></a>Include from root</h2>/n<p>This is an include from the root level.</p>/n<p><a href=\\"level1/page1.html\\">Link to level1</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<h2 id=\\"include-with-anchor2\\"><a id=\\"include-with-anchor\\" href=\\"level1/level2/page2.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → level1</span></a>Include with anchor <a href=\\"level1/page1.html\\">→ level1</a></h2>/n<h2 id=\\"section2\\"><a href=\\"level1/level2/page2.html#section2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 2</span></a>Section 2</h2>/n<p>This is content of section 2.</p>/n<h3 id=\\"subsection211\\"><a id=\\"subsection21\\" href=\\"level1/level2/page2.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"links-to-different-levels\\"><a href=\\"level1/level2/page2.html#links-to-different-levels\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Links to different levels</span></a>Links to different levels</h2>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<h2 id=\\"nested-include\\"><a href=\\"level1/level2/page2.html#nested-include\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Nested include</span></a>Nested include</h2>/n<h1 id=\\"nested-include\\">Nested include <a href=\\"index.html\\">→ index</a></h1>/n<p>This is a nested include.</p>/n<p>This is an include from level 1.</p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<h2 id=\\"include-with-anchor3\\"><a id=\\"include-with-anchor\\" href=\\"level1/level2/page2.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → root</span></a>Include with anchor <a href=\\"index.html\\">→ root</a></h2>/n<h3 id=\\"subsection212\\"><a id=\\"subsection21\\" href=\\"level1/level2/page2.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"include-with-anchor4\\"><a href=\\"level1/level2/page2.html#include-with-anchor4\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor</span></a>Include with anchor</h2>/n<h2 id=\\"section31\\"><a id=\\"section3\\" href=\\"level1/level2/page2.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 3</span></a>Section 3</h2>/n<p>This is content of section 3.</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p>Some paragraph without anchor</p>/n<p id=\\"p2\\">Some paragraph with anchor</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"level1/level2/page2.md"},"headings":[{"title":"Include from level2","href":"level1/level2/page2.html#include-from-level2","level":2},{"title":"Include with anchor → level1","href":"level1/level2/page2.html#include-with-anchor","level":2},{"title":"Section 3","href":"level1/level2/page2.html#section3","level":2},{"title":"Include from level1","href":"level1/level2/page2.html#include-from-level1","level":2},{"title":"Include with anchor → root","href":"level1/level2/page2.html#include-with-anchor1","level":2,"items":[{"title":"Subsection 2.1","href":"level1/level2/page2.html#subsection21","level":3}]},{"title":"Include from root","href":"level1/level2/page2.html#include-from-root","level":2},{"title":"Include with anchor → level1","href":"level1/level2/page2.html#include-with-anchor2","level":2},{"title":"Section 2","href":"level1/level2/page2.html#section2","level":2,"items":[{"title":"Subsection 2.1","href":"level1/level2/page2.html#subsection211","level":3}]},{"title":"Links to different levels","href":"level1/level2/page2.html#links-to-different-levels","level":2},{"title":"Nested include","href":"level1/level2/page2.html#nested-include","level":2},{"title":"Include with anchor → root","href":"level1/level2/page2.html#include-with-anchor3","level":2,"items":[{"title":"Subsection 2.1","href":"level1/level2/page2.html#subsection212","level":3}]},{"title":"Include with anchor","href":"level1/level2/page2.html#include-with-anchor4","level":2},{"title":"Section 3","href":"level1/level2/page2.html#section31","level":2}],"title":"Page 2"},"router":{"pathname":"level1/level2/page2","depth":3,"base":"../../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
710
|
+
{"data":{"leading":false,"html":"<p>This is page 2 at level 2.</p>/n<h2 id=\\"include-from-level2\\"><a href=\\"level1/level2/page2.html#include-from-level2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from level2</span></a>Include from level2</h2>/n/n<p>This is an include from level 2.</p>/n<p><a href=\\"level1/level2/page2.html\\">Link to page2</a></p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<h2 id=\\"include-with-anchor\\"><a href=\\"level1/level2/page2.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → level1</span></a>Include with anchor <a href=\\"level1/page1.html\\">→ level1</a></h2>/n/n<h2 id=\\"section3\\"><a href=\\"level1/level2/page2.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 3</span></a>Section 3</h2>/n<p>This is content of section 3.</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p>Some paragraph without anchor</p>/n<p id=\\"p2\\">Some paragraph with anchor</p>/n/n/n<h2 id=\\"include-from-level1\\"><a href=\\"level1/level2/page2.html#include-from-level1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from level1</span></a>Include from level1</h2>/n/n<p>This is an include from level 1.</p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<h2 id=\\"include-with-anchor1\\"><a id=\\"include-with-anchor\\" href=\\"level1/level2/page2.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → root</span></a>Include with anchor <a href=\\"index.html\\">→ root</a></h2>/n/n<h3 id=\\"subsection21\\"><a href=\\"level1/level2/page2.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"section31\\"><a id=\\"section3\\" href=\\"level1/level2/page2.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 3</span></a>Section 3</h2>/n<p>This is content of section 3.</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p>Some paragraph without anchor</p>/n<p id=\\"p2\\">Some paragraph with anchor</p>/n/n/n<h2 id=\\"include-from-root\\"><a href=\\"level1/level2/page2.html#include-from-root\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from root</span></a>Include from root</h2>/n/n<p>This is an include from the root level.</p>/n<p><a href=\\"level1/page1.html\\">Link to level1</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<h2 id=\\"include-with-anchor2\\"><a id=\\"include-with-anchor\\" href=\\"level1/level2/page2.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → level1</span></a>Include with anchor <a href=\\"level1/page1.html\\">→ level1</a></h2>/n/n<h2 id=\\"section2\\"><a href=\\"level1/level2/page2.html#section2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 2</span></a>Section 2</h2>/n<p>This is content of section 2.</p>/n<h3 id=\\"subsection211\\"><a id=\\"subsection21\\" href=\\"level1/level2/page2.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n/n/n<h2 id=\\"links-to-different-levels\\"><a href=\\"level1/level2/page2.html#links-to-different-levels\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Links to different levels</span></a>Links to different levels</h2>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<h2 id=\\"nested-include\\"><a href=\\"level1/level2/page2.html#nested-include\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Nested include</span></a>Nested include</h2>/n/n<h1 id=\\"nested-include\\">Nested include <a href=\\"index.html\\">→ index</a></h1>/n<p>This is a nested include.</p>/n/n<p>This is an include from level 1.</p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<h2 id=\\"include-with-anchor3\\"><a id=\\"include-with-anchor\\" href=\\"level1/level2/page2.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → root</span></a>Include with anchor <a href=\\"index.html\\">→ root</a></h2>/n/n<h3 id=\\"subsection212\\"><a id=\\"subsection21\\" href=\\"level1/level2/page2.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"section32\\"><a id=\\"section3\\" href=\\"level1/level2/page2.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 3</span></a>Section 3</h2>/n<p>This is content of section 3.</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p>Some paragraph without anchor</p>/n<p id=\\"p2\\">Some paragraph with anchor</p>/n/n/n/n<h2 id=\\"include-with-anchor4\\"><a href=\\"level1/level2/page2.html#include-with-anchor4\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor</span></a>Include with anchor</h2>/n/n<h2 id=\\"section33\\"><a id=\\"section3\\" href=\\"level1/level2/page2.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 3</span></a>Section 3</h2>/n<p>This is content of section 3.</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p>Some paragraph without anchor</p>/n<p id=\\"p2\\">Some paragraph with anchor</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"level1/level2/page2.md"},"headings":[{"title":"Include from level2","href":"level1/level2/page2.html#include-from-level2","level":2},{"title":"Include with anchor → level1","href":"level1/level2/page2.html#include-with-anchor","level":2},{"title":"Section 3","href":"level1/level2/page2.html#section3","level":2},{"title":"Include from level1","href":"level1/level2/page2.html#include-from-level1","level":2},{"title":"Include with anchor → root","href":"level1/level2/page2.html#include-with-anchor1","level":2,"items":[{"title":"Subsection 2.1","href":"level1/level2/page2.html#subsection21","level":3}]},{"title":"Section 3","href":"level1/level2/page2.html#section31","level":2},{"title":"Include from root","href":"level1/level2/page2.html#include-from-root","level":2},{"title":"Include with anchor → level1","href":"level1/level2/page2.html#include-with-anchor2","level":2},{"title":"Section 2","href":"level1/level2/page2.html#section2","level":2,"items":[{"title":"Subsection 2.1","href":"level1/level2/page2.html#subsection211","level":3}]},{"title":"Links to different levels","href":"level1/level2/page2.html#links-to-different-levels","level":2},{"title":"Nested include","href":"level1/level2/page2.html#nested-include","level":2},{"title":"Include with anchor → root","href":"level1/level2/page2.html#include-with-anchor3","level":2,"items":[{"title":"Subsection 2.1","href":"level1/level2/page2.html#subsection212","level":3}]},{"title":"Section 3","href":"level1/level2/page2.html#section32","level":2},{"title":"Include with anchor","href":"level1/level2/page2.html#include-with-anchor4","level":2},{"title":"Section 3","href":"level1/level2/page2.html#section33","level":2}],"title":"Page 2"},"router":{"pathname":"level1/level2/page2","depth":3,"base":"../../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
421
711
|
</script>
|
|
422
712
|
<script type="application/javascript">
|
|
423
713
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -431,7 +721,7 @@ exports[`Includes > Various include scenarios 18`] = `
|
|
|
431
721
|
</html>"
|
|
432
722
|
`;
|
|
433
723
|
|
|
434
|
-
exports[`Includes > Various include scenarios
|
|
724
|
+
exports[`Includes > Various include scenarios 10`] = `
|
|
435
725
|
"<!DOCTYPE html>
|
|
436
726
|
<html lang="ru" dir="ltr">
|
|
437
727
|
<head>
|
|
@@ -445,7 +735,7 @@ exports[`Includes > Various include scenarios 19`] = `
|
|
|
445
735
|
<body class="g-root g-root_theme_light">
|
|
446
736
|
<div id="root"></div>
|
|
447
737
|
<script type="application/json" id="diplodoc-state">
|
|
448
|
-
{"data":{"leading":false,"html":"<p>This is page 1 at level 1.</p>/n<h2 id=\\"include-from-level1\\"><a href=\\"level1/page1.html#include-from-level1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from level1</span></a>Include from level1</h2>/n<p>This is an include from level 1.</p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<h2 id=\\"include-with-anchor\\"><a href=\\"level1/page1.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → root</span></a>Include with anchor <a href=\\"index.html\\">→ root</a></h2>/n<h3 id=\\"subsection21\\"><a href=\\"level1/page1.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"include-from-root\\"><a href=\\"level1/page1.html#include-from-root\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from root</span></a>Include from root</h2>/n<p>This is an include from the root level.</p>/n<p><a href=\\"level1/page1.html\\">Link to level1</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<h2 id=\\"include-with-anchor1\\"><a id=\\"include-with-anchor\\" href=\\"level1/page1.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → level1</span></a>Include with anchor <a href=\\"level1/page1.html\\">→ level1</a></h2>/n<h2 id=\\"section2\\"><a href=\\"level1/page1.html#section2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 2</span></a>Section 2</h2>/n<p>This is content of section 2.</p>/n<h3 id=\\"subsection211\\"><a id=\\"subsection21\\" href=\\"level1/page1.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"include-from-level2\\"><a href=\\"level1/page1.html#include-from-level2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from level2</span></a>Include from level2</h2>/n<p>This is an include from level 2.</p>/n<p><a href=\\"level1/level2/page2.html\\">Link to page2</a></p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<h2 id=\\"include-with-anchor2\\"><a id=\\"include-with-anchor\\" href=\\"level1/page1.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → level1</span></a>Include with anchor <a href=\\"level1/page1.html\\">→ level1</a></h2>/n<h2 id=\\"section3\\"><a href=\\"level1/page1.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 3</span></a>Section 3</h2>/n<p>This is content of section 3.</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p>Some paragraph without anchor</p>/n<p id=\\"p2\\">Some paragraph with anchor</p>/n<h2 id=\\"links-to-different-levels\\"><a href=\\"level1/page1.html#links-to-different-levels\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Links to different levels</span></a>Links to different levels</h2>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<h2 id=\\"nested-include\\"><a href=\\"level1/page1.html#nested-include\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Nested include</span></a>Nested include</h2>/n<h1 id=\\"nested-include\\">Nested include <a href=\\"index.html\\">→ index</a></h1>/n<p>This is a nested include.</p>/n<p>This is an include from level 1.</p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<h2 id=\\"include-with-anchor3\\"><a id=\\"include-with-anchor\\" href=\\"level1/page1.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → root</span></a>Include with anchor <a href=\\"index.html\\">→ root</a></h2>/n<h3 id=\\"subsection212\\"><a id=\\"subsection21\\" href=\\"level1/page1.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"include-with-anchor4\\"><a href=\\"level1/page1.html#include-with-anchor4\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor</span></a>Include with anchor</h2>/n<h3 id=\\"subsection213\\"><a id=\\"subsection21\\" href=\\"level1/page1.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"level1/page1.md"},"headings":[{"title":"Include from level1","href":"level1/page1.html#include-from-level1","level":2},{"title":"Include with anchor → root","href":"level1/page1.html#include-with-anchor","level":2,"items":[{"title":"Subsection 2.1","href":"level1/page1.html#subsection21","level":3}]},{"title":"Include from root","href":"level1/page1.html#include-from-root","level":2},{"title":"Include with anchor → level1","href":"level1/page1.html#include-with-anchor1","level":2},{"title":"Section 2","href":"level1/page1.html#section2","level":2,"items":[{"title":"Subsection 2.1","href":"level1/page1.html#subsection211","level":3}]},{"title":"Include from level2","href":"level1/page1.html#include-from-level2","level":2},{"title":"Include with anchor → level1","href":"level1/page1.html#include-with-anchor2","level":2},{"title":"Section 3","href":"level1/page1.html#section3","level":2},{"title":"Links to different levels","href":"level1/page1.html#links-to-different-levels","level":2},{"title":"Nested include","href":"level1/page1.html#nested-include","level":2},{"title":"Include with anchor → root","href":"level1/page1.html#include-with-anchor3","level":2,"items":[{"title":"Subsection 2.1","href":"level1/page1.html#subsection212","level":3}]},{"title":"Include with anchor","href":"level1/page1.html#include-with-anchor4","level":2,"items":[{"title":"Subsection 2.1","href":"level1/page1.html#subsection213","level":3}]}],"title":"Page 1"},"router":{"pathname":"level1/page1","depth":2,"base":"../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
738
|
+
{"data":{"leading":false,"html":"<p>This is page 1 at level 1.</p>/n<h2 id=\\"include-from-level1\\"><a href=\\"level1/page1.html#include-from-level1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from level1</span></a>Include from level1</h2>/n/n<p>This is an include from level 1.</p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<h2 id=\\"include-with-anchor\\"><a href=\\"level1/page1.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → root</span></a>Include with anchor <a href=\\"index.html\\">→ root</a></h2>/n/n<h3 id=\\"subsection21\\"><a href=\\"level1/page1.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"section3\\"><a href=\\"level1/page1.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 3</span></a>Section 3</h2>/n<p>This is content of section 3.</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p>Some paragraph without anchor</p>/n<p id=\\"p2\\">Some paragraph with anchor</p>/n/n/n<h2 id=\\"include-from-root\\"><a href=\\"level1/page1.html#include-from-root\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from root</span></a>Include from root</h2>/n/n<p>This is an include from the root level.</p>/n<p><a href=\\"level1/page1.html\\">Link to level1</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<h2 id=\\"include-with-anchor1\\"><a id=\\"include-with-anchor\\" href=\\"level1/page1.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → level1</span></a>Include with anchor <a href=\\"level1/page1.html\\">→ level1</a></h2>/n/n<h2 id=\\"section2\\"><a href=\\"level1/page1.html#section2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 2</span></a>Section 2</h2>/n<p>This is content of section 2.</p>/n<h3 id=\\"subsection211\\"><a id=\\"subsection21\\" href=\\"level1/page1.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n/n/n<h2 id=\\"include-from-level2\\"><a href=\\"level1/page1.html#include-from-level2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from level2</span></a>Include from level2</h2>/n/n<p>This is an include from level 2.</p>/n<p><a href=\\"level1/level2/page2.html\\">Link to page2</a></p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<h2 id=\\"include-with-anchor2\\"><a id=\\"include-with-anchor\\" href=\\"level1/page1.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → level1</span></a>Include with anchor <a href=\\"level1/page1.html\\">→ level1</a></h2>/n/n<h2 id=\\"section31\\"><a id=\\"section3\\" href=\\"level1/page1.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 3</span></a>Section 3</h2>/n<p>This is content of section 3.</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p>Some paragraph without anchor</p>/n<p id=\\"p2\\">Some paragraph with anchor</p>/n/n/n<h2 id=\\"links-to-different-levels\\"><a href=\\"level1/page1.html#links-to-different-levels\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Links to different levels</span></a>Links to different levels</h2>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<h2 id=\\"nested-include\\"><a href=\\"level1/page1.html#nested-include\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Nested include</span></a>Nested include</h2>/n/n<h1 id=\\"nested-include\\">Nested include <a href=\\"index.html\\">→ index</a></h1>/n<p>This is a nested include.</p>/n/n<p>This is an include from level 1.</p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<h2 id=\\"include-with-anchor3\\"><a id=\\"include-with-anchor\\" href=\\"level1/page1.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → root</span></a>Include with anchor <a href=\\"index.html\\">→ root</a></h2>/n/n<h3 id=\\"subsection212\\"><a id=\\"subsection21\\" href=\\"level1/page1.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"section32\\"><a id=\\"section3\\" href=\\"level1/page1.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 3</span></a>Section 3</h2>/n<p>This is content of section 3.</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p>Some paragraph without anchor</p>/n<p id=\\"p2\\">Some paragraph with anchor</p>/n/n/n/n<h2 id=\\"include-with-anchor4\\"><a href=\\"level1/page1.html#include-with-anchor4\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor</span></a>Include with anchor</h2>/n/n<h3 id=\\"subsection213\\"><a id=\\"subsection21\\" href=\\"level1/page1.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"section33\\"><a id=\\"section3\\" href=\\"level1/page1.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 3</span></a>Section 3</h2>/n<p>This is content of section 3.</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p>Some paragraph without anchor</p>/n<p id=\\"p2\\">Some paragraph with anchor</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"level1/page1.md"},"headings":[{"title":"Include from level1","href":"level1/page1.html#include-from-level1","level":2},{"title":"Include with anchor → root","href":"level1/page1.html#include-with-anchor","level":2,"items":[{"title":"Subsection 2.1","href":"level1/page1.html#subsection21","level":3}]},{"title":"Section 3","href":"level1/page1.html#section3","level":2},{"title":"Include from root","href":"level1/page1.html#include-from-root","level":2},{"title":"Include with anchor → level1","href":"level1/page1.html#include-with-anchor1","level":2},{"title":"Section 2","href":"level1/page1.html#section2","level":2,"items":[{"title":"Subsection 2.1","href":"level1/page1.html#subsection211","level":3}]},{"title":"Include from level2","href":"level1/page1.html#include-from-level2","level":2},{"title":"Include with anchor → level1","href":"level1/page1.html#include-with-anchor2","level":2},{"title":"Section 3","href":"level1/page1.html#section31","level":2},{"title":"Links to different levels","href":"level1/page1.html#links-to-different-levels","level":2},{"title":"Nested include","href":"level1/page1.html#nested-include","level":2},{"title":"Include with anchor → root","href":"level1/page1.html#include-with-anchor3","level":2,"items":[{"title":"Subsection 2.1","href":"level1/page1.html#subsection212","level":3}]},{"title":"Section 3","href":"level1/page1.html#section32","level":2},{"title":"Include with anchor","href":"level1/page1.html#include-with-anchor4","level":2,"items":[{"title":"Subsection 2.1","href":"level1/page1.html#subsection213","level":3}]},{"title":"Section 3","href":"level1/page1.html#section33","level":2}],"title":"Page 1"},"router":{"pathname":"level1/page1","depth":2,"base":"../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
449
739
|
</script>
|
|
450
740
|
<script type="application/javascript">
|
|
451
741
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -459,7 +749,7 @@ exports[`Includes > Various include scenarios 19`] = `
|
|
|
459
749
|
</html>"
|
|
460
750
|
`;
|
|
461
751
|
|
|
462
|
-
exports[`Includes > Various include scenarios
|
|
752
|
+
exports[`Includes > Various include scenarios 11`] = `
|
|
463
753
|
"<!DOCTYPE html>
|
|
464
754
|
<html lang="ru" dir="ltr">
|
|
465
755
|
<head>
|
|
@@ -473,7 +763,7 @@ exports[`Includes > Various include scenarios 20`] = `
|
|
|
473
763
|
<body class="g-root g-root_theme_light">
|
|
474
764
|
<div id="root"></div>
|
|
475
765
|
<script type="application/json" id="diplodoc-state">
|
|
476
|
-
{"data":{"leading":false,"html":"<p>This file is included in the toc.</p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to page2</a></p>/n<h2 id=\\"include-with-anchor\\"><a href=\\"toc-include.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor</span></a>Include with anchor</h2>/n<h2 id=\\"section1\\"><a href=\\"toc-include.html#section1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 1</span></a>Section 1</h2>/n<p>This is content of section 1.</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"toc-include.md"},"headings":[{"title":"Include with anchor","href":"toc-include.html#include-with-anchor","level":2},{"title":"Section 1","href":"toc-include.html#section1","level":2}],"title":"Toc Include"},"router":{"pathname":"toc-include","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
766
|
+
{"data":{"leading":false,"html":"<p>This file is included in the toc.</p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to page2</a></p>/n<h2 id=\\"include-with-anchor\\"><a href=\\"toc-include.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor</span></a>Include with anchor</h2>/n/n<h2 id=\\"section1\\"><a href=\\"toc-include.html#section1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 1</span></a>Section 1</h2>/n<p>This is content of section 1.</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"toc-include.md"},"headings":[{"title":"Include with anchor","href":"toc-include.html#include-with-anchor","level":2},{"title":"Section 1","href":"toc-include.html#section1","level":2}],"title":"Toc Include"},"router":{"pathname":"toc-include","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
477
767
|
</script>
|
|
478
768
|
<script type="application/javascript">
|
|
479
769
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -487,4 +777,4 @@ exports[`Includes > Various include scenarios 20`] = `
|
|
|
487
777
|
</html>"
|
|
488
778
|
`;
|
|
489
779
|
|
|
490
|
-
exports[`Includes > Various include scenarios
|
|
780
|
+
exports[`Includes > Various include scenarios 12`] = `"window.__DATA__.data.toc = {"items":[{"name":"Test Includes","href":"index.html","id":"UUID"},{"name":"Toc Include","href":"toc-include.html","id":"UUID"},{"name":"Level 1","items":[{"name":"Page 1","href":"level1/page1.html","id":"UUID"},{"name":"Level 2","items":[{"name":"Page 2","href":"level1/level2/page2.html","id":"UUID"}],"id":"UUID"}],"id":"UUID"}],"path":"toc.yaml","id":"UUID"};"`;
|