@diplodoc/cli-tests 5.19.6 → 5.19.7

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.
@@ -16,7 +16,12 @@ exports[`Include toc > Nested toc inclusions with mixed including modes > fileli
16
16
  ]"
17
17
  `;
18
18
 
19
- exports[`Include toc > Nested toc inclusions with mixed including modes 1`] = `"This is the core include."`;
19
+ exports[`Include toc > Nested toc inclusions with mixed including modes 1`] = `
20
+ "---
21
+ sourcePath: product1/core/_includes/inc.md
22
+ ---
23
+ This is the core include."
24
+ `;
20
25
 
21
26
  exports[`Include toc > Nested toc inclusions with mixed including modes 2`] = `
22
27
  "---
@@ -63,7 +68,10 @@ path: product1/toc.yaml
63
68
  `;
64
69
 
65
70
  exports[`Include toc > Nested toc inclusions with mixed including modes 4`] = `
66
- "This is the core include.
71
+ "---
72
+ sourcePath: product2/core/_includes/inc.md
73
+ ---
74
+ This is the core include.
67
75
  "
68
76
  `;
69
77
 
@@ -82,7 +90,10 @@ This is the overlay content of Article 1 for product 2.
82
90
  `;
83
91
 
84
92
  exports[`Include toc > Nested toc inclusions with mixed including modes 6`] = `
85
- "This is the core include.
93
+ "---
94
+ sourcePath: product2/core/_includes/inc.md
95
+ ---
96
+ This is the core include.
86
97
  "
87
98
  `;
88
99
 
@@ -101,7 +112,10 @@ This is the overlay number #2 of Article 1 content for product 2.
101
112
  `;
102
113
 
103
114
  exports[`Include toc > Nested toc inclusions with mixed including modes 8`] = `
104
- "This is the core include.
115
+ "---
116
+ sourcePath: product2/core/_includes/inc.md
117
+ ---
118
+ This is the core include.
105
119
  "
106
120
  `;
107
121
 
@@ -305,7 +305,12 @@ This is page 1 at level 1.
305
305
  `;
306
306
 
307
307
  exports[`Includes > Various include scenarios 13`] = `
308
- "# Toc Include
308
+ "---
309
+ metadata:
310
+ - name: generator
311
+ content: Diplodoc Platform vDIPLODOC-VERSION
312
+ ---
313
+ # Toc Include
309
314
 
310
315
  This file is included in the toc.
311
316
 
@@ -10,6 +10,8 @@ exports[`Regression > internal > filelist 1`] = `
10
10
  "_assets/5_1.png",
11
11
  "_assets/empty.pdf",
12
12
  "autotitle.md",
13
+ "entry-as-include-hash.md",
14
+ "entry-as-include.md",
13
15
  "generic/1.md",
14
16
  "generic/2.md",
15
17
  "generic/3.md",
@@ -17,6 +19,7 @@ exports[`Regression > internal > filelist 1`] = `
17
19
  "generic/Sub notes/2.md",
18
20
  "images.md",
19
21
  "included-item.md",
22
+ "includer-of-entry.md",
20
23
  "includes.md",
21
24
  "includes/deep-hash.md",
22
25
  "includes/fragments-hash.md",
@@ -49,6 +52,7 @@ exports[`Regression > internal > filelist 2`] = `
49
52
  "_assets/empty.pdf",
50
53
  "autotitle.html",
51
54
  "c.md",
55
+ "entry-as-include.html",
52
56
  "generic/1.html",
53
57
  "generic/2.html",
54
58
  "generic/3.html",
@@ -56,6 +60,7 @@ exports[`Regression > internal > filelist 2`] = `
56
60
  "generic/Sub notes/2.html",
57
61
  "images.html",
58
62
  "included-item.html",
63
+ "includer-of-entry.html",
59
64
  "includes.html",
60
65
  "index.html",
61
66
  "latex.html",
@@ -82,6 +87,8 @@ exports[`Regression > internal 2`] = `
82
87
  metadata:
83
88
  - name: generator
84
89
  content: Diplodoc Platform vDIPLODOC-VERSION
90
+ __system:
91
+ testVar: test-value
85
92
  vcsPath: 1.md
86
93
  ---
87
94
  # Title
@@ -121,6 +128,8 @@ exports[`Regression > internal 3`] = `
121
128
  metadata:
122
129
  - name: generator
123
130
  content: Diplodoc Platform vDIPLODOC-VERSION
131
+ __system:
132
+ testVar: test-value
124
133
  vcsPath: autotitle.md
125
134
  ---
126
135
  # Autotitles
@@ -157,6 +166,38 @@ exports[`Regression > internal 4`] = `
157
166
  metadata:
158
167
  - name: generator
159
168
  content: Diplodoc Platform vDIPLODOC-VERSION
169
+ __system:
170
+ testVar: test-value
171
+ vcsPath: entry-as-include.md
172
+ ---
173
+ # Entry that is also used as include
174
+
175
+ This file is both an entry (in toc) and included by another file.
176
+ "
177
+ `;
178
+
179
+ exports[`Regression > internal 5`] = `
180
+ "---
181
+ metadata:
182
+ - name: generator
183
+ content: Diplodoc Platform vDIPLODOC-VERSION
184
+ __system:
185
+ testVar: test-value
186
+ vcsPath: entry-as-include.md
187
+ ---
188
+ # Entry that is also used as include
189
+
190
+ This file is both an entry (in toc) and included by another file.
191
+ "
192
+ `;
193
+
194
+ exports[`Regression > internal 6`] = `
195
+ "---
196
+ metadata:
197
+ - name: generator
198
+ content: Diplodoc Platform vDIPLODOC-VERSION
199
+ __system:
200
+ testVar: test-value
160
201
  vcsPath: generic/1.md
161
202
  ---
162
203
  # Note 1
@@ -165,11 +206,13 @@ Note content 1
165
206
  "
166
207
  `;
167
208
 
168
- exports[`Regression > internal 5`] = `
209
+ exports[`Regression > internal 7`] = `
169
210
  "---
170
211
  metadata:
171
212
  - name: generator
172
213
  content: Diplodoc Platform vDIPLODOC-VERSION
214
+ __system:
215
+ testVar: test-value
173
216
  vcsPath: generic/2.md
174
217
  ---
175
218
  # Note 1
@@ -178,22 +221,26 @@ Note content 1
178
221
  "
179
222
  `;
180
223
 
181
- exports[`Regression > internal 6`] = `
224
+ exports[`Regression > internal 8`] = `
182
225
  "---
183
226
  metadata:
184
227
  - name: generator
185
228
  content: Diplodoc Platform vDIPLODOC-VERSION
229
+ __system:
230
+ testVar: test-value
186
231
  vcsPath: generic/3.md
187
232
  ---
188
233
  Note content 1
189
234
  "
190
235
  `;
191
236
 
192
- exports[`Regression > internal 7`] = `
237
+ exports[`Regression > internal 9`] = `
193
238
  "---
194
239
  metadata:
195
240
  - name: generator
196
241
  content: Diplodoc Platform vDIPLODOC-VERSION
242
+ __system:
243
+ testVar: test-value
197
244
  vcsPath: generic/Sub notes/1.md
198
245
  ---
199
246
  # Sub note 1
@@ -202,11 +249,13 @@ Note content 1
202
249
  "
203
250
  `;
204
251
 
205
- exports[`Regression > internal 8`] = `
252
+ exports[`Regression > internal 10`] = `
206
253
  "---
207
254
  metadata:
208
255
  - name: generator
209
256
  content: Diplodoc Platform vDIPLODOC-VERSION
257
+ __system:
258
+ testVar: test-value
210
259
  vcsPath: generic/Sub notes/2.md
211
260
  ---
212
261
  # Sub note 2
@@ -215,11 +264,13 @@ Note content 2
215
264
  "
216
265
  `;
217
266
 
218
- exports[`Regression > internal 9`] = `
267
+ exports[`Regression > internal 11`] = `
219
268
  "---
220
269
  metadata:
221
270
  - name: generator
222
271
  content: Diplodoc Platform vDIPLODOC-VERSION
272
+ __system:
273
+ testVar: test-value
223
274
  vcsPath: images.md
224
275
  ---
225
276
  # Images
@@ -237,11 +288,13 @@ vcsPath: images.md
237
288
  [![img 3](_assets/3.png)](latex.md)"
238
289
  `;
239
290
 
240
- exports[`Regression > internal 10`] = `
291
+ exports[`Regression > internal 12`] = `
241
292
  "---
242
293
  metadata:
243
294
  - name: generator
244
295
  content: Diplodoc Platform vDIPLODOC-VERSION
296
+ __system:
297
+ testVar: test-value
245
298
  vcsPath: included-item.md
246
299
  ---
247
300
  # Included item
@@ -260,11 +313,30 @@ Included item text
260
313
  "
261
314
  `;
262
315
 
263
- exports[`Regression > internal 11`] = `
316
+ exports[`Regression > internal 13`] = `
317
+ "---
318
+ metadata:
319
+ - name: generator
320
+ content: Diplodoc Platform vDIPLODOC-VERSION
321
+ __system:
322
+ testVar: test-value
323
+ vcsPath: includer-of-entry.md
324
+ ---
325
+ # Includer of entry
326
+
327
+ This file includes another file that is also an entry.
328
+
329
+ {% include [entry-as-include](entry-as-include-hash.md) %}
330
+ "
331
+ `;
332
+
333
+ exports[`Regression > internal 14`] = `
264
334
  "---
265
335
  metadata:
266
336
  - name: generator
267
337
  content: Diplodoc Platform vDIPLODOC-VERSION
338
+ __system:
339
+ testVar: test-value
268
340
  vcsPath: includes.md
269
341
  ---
270
342
  Text
@@ -287,14 +359,22 @@ Link after include
287
359
  "
288
360
  `;
289
361
 
290
- exports[`Regression > internal 12`] = `
291
- "{% include [user](./user-hash.md) %}
362
+ exports[`Regression > internal 15`] = `
363
+ "---
364
+ __system:
365
+ testVar: test-value
366
+ ---
367
+ {% include [user](./user-hash.md) %}
292
368
 
293
369
  [![img 3](../_assets/3.png)](../latex.md)"
294
370
  `;
295
371
 
296
- exports[`Regression > internal 13`] = `
297
- "### F1 {#f1}
372
+ exports[`Regression > internal 16`] = `
373
+ "---
374
+ __system:
375
+ testVar: test-value
376
+ ---
377
+ ### F1 {#f1}
298
378
  Content F1
299
379
 
300
380
  ## F2 {#f2}
@@ -314,22 +394,34 @@ Some paragraph with anchor {#p2}
314
394
  "
315
395
  `;
316
396
 
317
- exports[`Regression > internal 14`] = `
318
- "Test
397
+ exports[`Regression > internal 17`] = `
398
+ "---
399
+ __system:
400
+ testVar: test-value
401
+ ---
402
+ Test
319
403
  "
320
404
  `;
321
405
 
322
- exports[`Regression > internal 15`] = `
323
- "Tool: Hammer and Laser
406
+ exports[`Regression > internal 18`] = `
407
+ "---
408
+ __system:
409
+ testVar: test-value
410
+ ---
411
+ Tool: Hammer and Laser
324
412
  "
325
413
  `;
326
414
 
327
- exports[`Regression > internal 16`] = `
328
- "Bob
415
+ exports[`Regression > internal 19`] = `
416
+ "---
417
+ __system:
418
+ testVar: test-value
419
+ ---
420
+ Bob
329
421
  "
330
422
  `;
331
423
 
332
- exports[`Regression > internal 17`] = `
424
+ exports[`Regression > internal 20`] = `
333
425
  "description:
334
426
  - Some text
335
427
  links:
@@ -341,15 +433,19 @@ meta:
341
433
  metadata:
342
434
  - name: generator
343
435
  content: Diplodoc Platform vDIPLODOC-VERSION
436
+ __system:
437
+ testVar: test-value
344
438
  vcsPath: index.yaml
345
439
  "
346
440
  `;
347
441
 
348
- exports[`Regression > internal 18`] = `
442
+ exports[`Regression > internal 21`] = `
349
443
  "---
350
444
  metadata:
351
445
  - name: generator
352
446
  content: Diplodoc Platform vDIPLODOC-VERSION
447
+ __system:
448
+ testVar: test-value
353
449
  vcsPath: latex.md
354
450
  ---
355
451
  # Latex usage
@@ -358,11 +454,13 @@ $/sqrt{3x-1}+(1+x)^2$
358
454
  "
359
455
  `;
360
456
 
361
- exports[`Regression > internal 19`] = `
457
+ exports[`Regression > internal 22`] = `
362
458
  "---
363
459
  metadata:
364
460
  - name: generator
365
461
  content: Diplodoc Platform vDIPLODOC-VERSION
462
+ __system:
463
+ testVar: test-value
366
464
  vcsPath: merge/merge.md
367
465
  ---
368
466
  # Should use merged item
@@ -373,12 +471,14 @@ vcsPath: merge/merge.md
373
471
  "
374
472
  `;
375
473
 
376
- exports[`Regression > internal 20`] = `
474
+ exports[`Regression > internal 23`] = `
377
475
  "---
378
476
  metadata:
379
477
  - name: generator
380
478
  content: Diplodoc Platform vDIPLODOC-VERSION
381
479
  sourcePath: merge-source/merged.md
480
+ __system:
481
+ testVar: test-value
382
482
  vcsPath: merge-source/merged.md
383
483
  ---
384
484
  # Merged item
@@ -387,7 +487,7 @@ Should be linked in toc.yaml
387
487
  "
388
488
  `;
389
489
 
390
- exports[`Regression > internal 21`] = `
490
+ exports[`Regression > internal 24`] = `
391
491
  "items:
392
492
  - name: Use merged
393
493
  href: merge.md
@@ -399,11 +499,13 @@ path: merge/toc.yaml
399
499
  "
400
500
  `;
401
501
 
402
- exports[`Regression > internal 22`] = `
502
+ exports[`Regression > internal 25`] = `
403
503
  "---
404
504
  metadata:
405
505
  - name: generator
406
506
  content: Diplodoc Platform vDIPLODOC-VERSION
507
+ __system:
508
+ testVar: test-value
407
509
  vcsPath: mermaid.md
408
510
  ---
409
511
  # Mermaid usage
@@ -422,11 +524,13 @@ Some mermaid info
422
524
  "
423
525
  `;
424
526
 
425
- exports[`Regression > internal 23`] = `
527
+ exports[`Regression > internal 26`] = `
426
528
  "---
427
529
  metadata:
428
530
  - name: generator
429
531
  content: Diplodoc Platform vDIPLODOC-VERSION
532
+ __system:
533
+ testVar: test-value
430
534
  vcsPath: openapi/index.md
431
535
  ---
432
536
  <!-- markdownlint-disable-file -->
@@ -520,11 +624,13 @@ vcsPath: openapi/index.md
520
624
  {% endcut %}"
521
625
  `;
522
626
 
523
- exports[`Regression > internal 24`] = `
627
+ exports[`Regression > internal 27`] = `
524
628
  "---
525
629
  metadata:
526
630
  - name: generator
527
631
  content: Diplodoc Platform vDIPLODOC-VERSION
632
+ __system:
633
+ testVar: test-value
528
634
  vcsPath: openapi/test-controller/getWithPayloadResponse.md
529
635
  ---
530
636
  <div class="openapi">
@@ -600,11 +706,13 @@ _Example:_{.json-schema-reset .json-schema-example} \`example\`
600
706
  [*Deprecated]: No longer supported, please use an alternative and newer version."
601
707
  `;
602
708
 
603
- exports[`Regression > internal 25`] = `
709
+ exports[`Regression > internal 28`] = `
604
710
  "---
605
711
  metadata:
606
712
  - name: generator
607
713
  content: Diplodoc Platform vDIPLODOC-VERSION
714
+ __system:
715
+ testVar: test-value
608
716
  vcsPath: openapi/test-controller/index.md
609
717
  ---
610
718
  # test-controller
@@ -617,7 +725,7 @@ vcsPath: openapi/test-controller/index.md
617
725
  "
618
726
  `;
619
727
 
620
- exports[`Regression > internal 26`] = `
728
+ exports[`Regression > internal 29`] = `
621
729
  "files:
622
730
  - from: c.md
623
731
  to: d.md
@@ -627,11 +735,13 @@ common:
627
735
  "
628
736
  `;
629
737
 
630
- exports[`Regression > internal 27`] = `
738
+ exports[`Regression > internal 30`] = `
631
739
  "---
632
740
  metadata:
633
741
  - name: generator
634
742
  content: Diplodoc Platform vDIPLODOC-VERSION
743
+ __system:
744
+ testVar: test-value
635
745
  vcsPath: sub/folder/item-1.md
636
746
  ---
637
747
  # Item 1
@@ -642,7 +752,7 @@ Item 1 text
642
752
  "
643
753
  `;
644
754
 
645
- exports[`Regression > internal 28`] = `
755
+ exports[`Regression > internal 31`] = `
646
756
  "items:
647
757
  - name: Verbose root (index.yaml) will be transformed to index.html
648
758
  href: index.yaml
@@ -671,6 +781,10 @@ exports[`Regression > internal 28`] = `
671
781
  href: autotitle.md
672
782
  - name: includes
673
783
  href: includes.md
784
+ - name: Entry as include
785
+ href: entry-as-include.md
786
+ - name: Includer of entry
787
+ href: includer-of-entry.md
674
788
  - name: generic
675
789
  items:
676
790
  - name: Note 1
@@ -699,13 +813,13 @@ path: toc.yaml
699
813
  "
700
814
  `;
701
815
 
702
- exports[`Regression > internal 29`] = `
816
+ exports[`Regression > internal 32`] = `
703
817
  "preprocess:
704
818
  mergeAutotitles: true
705
819
  "
706
820
  `;
707
821
 
708
- exports[`Regression > internal 30`] = `
822
+ exports[`Regression > internal 33`] = `
709
823
  "<!DOCTYPE html>
710
824
  <html lang="ru" dir="ltr">
711
825
  <head>
@@ -733,7 +847,7 @@ exports[`Regression > internal 30`] = `
733
847
  </html>"
734
848
  `;
735
849
 
736
- exports[`Regression > internal 31`] = `
850
+ exports[`Regression > internal 34`] = `
737
851
  "<!DOCTYPE html>
738
852
  <html lang="ru" dir="ltr">
739
853
  <head>
@@ -761,7 +875,7 @@ exports[`Regression > internal 31`] = `
761
875
  </html>"
762
876
  `;
763
877
 
764
- exports[`Regression > internal 32`] = `
878
+ exports[`Regression > internal 35`] = `
765
879
  "<!DOCTYPE html>
766
880
  <html lang="ru" dir="ltr">
767
881
  <head>
@@ -789,7 +903,35 @@ exports[`Regression > internal 32`] = `
789
903
  </html>"
790
904
  `;
791
905
 
792
- exports[`Regression > internal 33`] = `
906
+ exports[`Regression > internal 36`] = `
907
+ "<!DOCTYPE html>
908
+ <html lang="ru" dir="ltr">
909
+ <head>
910
+ <meta charset="utf-8">
911
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
912
+ <base href="./" />
913
+ <title>Entry that is also used as include</title>
914
+ <meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
915
+ <style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
916
+ </head>
917
+ <body class="g-root g-root_theme_light">
918
+ <div id="root"></div>
919
+ <script type="application/json" id="diplodoc-state">
920
+ {"data":{"leading":false,"html":"&lt;p&gt;This file is both an entry (in toc) and included by another file.&lt;/p&gt;/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"entry-as-include.md"},"headings":[],"title":"Entry that is also used as include"},"router":{"pathname":"entry-as-include","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
921
+ </script>
922
+ <script type="application/javascript">
923
+ const data = document.querySelector('script#diplodoc-state');
924
+ window.__DATA__ = JSON.parse((function unescape(string) {
925
+ return string.replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&amp;/g, "&");
926
+ })(data.innerText));
927
+ window.STATIC_CONTENT = false;
928
+ </script>
929
+ <script type="application/javascript" defer src="toc.js"></script>
930
+ </body>
931
+ </html>"
932
+ `;
933
+
934
+ exports[`Regression > internal 37`] = `
793
935
  "<!DOCTYPE html>
794
936
  <html lang="ru" dir="ltr">
795
937
  <head>
@@ -817,7 +959,7 @@ exports[`Regression > internal 33`] = `
817
959
  </html>"
818
960
  `;
819
961
 
820
- exports[`Regression > internal 34`] = `
962
+ exports[`Regression > internal 38`] = `
821
963
  "<!DOCTYPE html>
822
964
  <html lang="ru" dir="ltr">
823
965
  <head>
@@ -845,7 +987,7 @@ exports[`Regression > internal 34`] = `
845
987
  </html>"
846
988
  `;
847
989
 
848
- exports[`Regression > internal 35`] = `
990
+ exports[`Regression > internal 39`] = `
849
991
  "<!DOCTYPE html>
850
992
  <html lang="ru" dir="ltr">
851
993
  <head>
@@ -873,7 +1015,7 @@ exports[`Regression > internal 35`] = `
873
1015
  </html>"
874
1016
  `;
875
1017
 
876
- exports[`Regression > internal 36`] = `
1018
+ exports[`Regression > internal 40`] = `
877
1019
  "<!DOCTYPE html>
878
1020
  <html lang="ru" dir="ltr">
879
1021
  <head>
@@ -901,7 +1043,7 @@ exports[`Regression > internal 36`] = `
901
1043
  </html>"
902
1044
  `;
903
1045
 
904
- exports[`Regression > internal 37`] = `
1046
+ exports[`Regression > internal 41`] = `
905
1047
  "<!DOCTYPE html>
906
1048
  <html lang="ru" dir="ltr">
907
1049
  <head>
@@ -929,7 +1071,7 @@ exports[`Regression > internal 37`] = `
929
1071
  </html>"
930
1072
  `;
931
1073
 
932
- exports[`Regression > internal 38`] = `
1074
+ exports[`Regression > internal 42`] = `
933
1075
  "<!DOCTYPE html>
934
1076
  <html lang="ru" dir="ltr">
935
1077
  <head>
@@ -957,7 +1099,7 @@ exports[`Regression > internal 38`] = `
957
1099
  </html>"
958
1100
  `;
959
1101
 
960
- exports[`Regression > internal 39`] = `
1102
+ exports[`Regression > internal 43`] = `
961
1103
  "<!DOCTYPE html>
962
1104
  <html lang="ru" dir="ltr">
963
1105
  <head>
@@ -985,7 +1127,35 @@ exports[`Regression > internal 39`] = `
985
1127
  </html>"
986
1128
  `;
987
1129
 
988
- exports[`Regression > internal 40`] = `
1130
+ exports[`Regression > internal 44`] = `
1131
+ "<!DOCTYPE html>
1132
+ <html lang="ru" dir="ltr">
1133
+ <head>
1134
+ <meta charset="utf-8">
1135
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
1136
+ <base href="./" />
1137
+ <title>Includer of entry</title>
1138
+ <meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
1139
+ <style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
1140
+ </head>
1141
+ <body class="g-root g-root_theme_light">
1142
+ <div id="root"></div>
1143
+ <script type="application/json" id="diplodoc-state">
1144
+ {"data":{"leading":false,"html":"&lt;p&gt;This file includes another file that is also an entry.&lt;/p&gt;/n&lt;h1&gt;Entry that is also used as include&lt;/h1&gt;/n&lt;p&gt;This file is both an entry (in toc) and included by another file.&lt;/p&gt;/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"includer-of-entry.md"},"headings":[],"title":"Includer of entry"},"router":{"pathname":"includer-of-entry","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
1145
+ </script>
1146
+ <script type="application/javascript">
1147
+ const data = document.querySelector('script#diplodoc-state');
1148
+ window.__DATA__ = JSON.parse((function unescape(string) {
1149
+ return string.replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&amp;/g, "&");
1150
+ })(data.innerText));
1151
+ window.STATIC_CONTENT = false;
1152
+ </script>
1153
+ <script type="application/javascript" defer src="toc.js"></script>
1154
+ </body>
1155
+ </html>"
1156
+ `;
1157
+
1158
+ exports[`Regression > internal 45`] = `
989
1159
  "<!DOCTYPE html>
990
1160
  <html lang="ru" dir="ltr">
991
1161
  <head>
@@ -1013,7 +1183,7 @@ exports[`Regression > internal 40`] = `
1013
1183
  </html>"
1014
1184
  `;
1015
1185
 
1016
- exports[`Regression > internal 41`] = `
1186
+ exports[`Regression > internal 46`] = `
1017
1187
  "<!DOCTYPE html>
1018
1188
  <html lang="ru" dir="ltr">
1019
1189
  <head>
@@ -1041,7 +1211,7 @@ exports[`Regression > internal 41`] = `
1041
1211
  </html>"
1042
1212
  `;
1043
1213
 
1044
- exports[`Regression > internal 42`] = `
1214
+ exports[`Regression > internal 47`] = `
1045
1215
  "<!DOCTYPE html>
1046
1216
  <html lang="ru" dir="ltr">
1047
1217
  <head>
@@ -1069,7 +1239,7 @@ exports[`Regression > internal 42`] = `
1069
1239
  </html>"
1070
1240
  `;
1071
1241
 
1072
- exports[`Regression > internal 43`] = `
1242
+ exports[`Regression > internal 48`] = `
1073
1243
  "<!DOCTYPE html>
1074
1244
  <html lang="ru" dir="ltr">
1075
1245
  <head>
@@ -1097,7 +1267,7 @@ exports[`Regression > internal 43`] = `
1097
1267
  </html>"
1098
1268
  `;
1099
1269
 
1100
- exports[`Regression > internal 44`] = `
1270
+ exports[`Regression > internal 49`] = `
1101
1271
  "<!DOCTYPE html>
1102
1272
  <html lang="ru" dir="ltr">
1103
1273
  <head>
@@ -1125,9 +1295,9 @@ exports[`Regression > internal 44`] = `
1125
1295
  </html>"
1126
1296
  `;
1127
1297
 
1128
- exports[`Regression > internal 45`] = `"window.__DATA__.data.toc = {"items":[{"name":"Use merged","href":"merge/merge.html","id":"UUID"},{"name":"Multitoc item","href":"1.html","id":"UUID"},{"name":"Merged item","href":"merge/merged.html","id":"UUID"}],"path":"merge/toc.yaml","id":"UUID"};"`;
1298
+ exports[`Regression > internal 50`] = `"window.__DATA__.data.toc = {"items":[{"name":"Use merged","href":"merge/merge.html","id":"UUID"},{"name":"Multitoc item","href":"1.html","id":"UUID"},{"name":"Merged item","href":"merge/merged.html","id":"UUID"}],"path":"merge/toc.yaml","id":"UUID"};"`;
1129
1299
 
1130
- exports[`Regression > internal 46`] = `
1300
+ exports[`Regression > internal 51`] = `
1131
1301
  "<!DOCTYPE html>
1132
1302
  <html lang="ru" dir="ltr">
1133
1303
  <head>
@@ -1155,7 +1325,7 @@ exports[`Regression > internal 46`] = `
1155
1325
  </html>"
1156
1326
  `;
1157
1327
 
1158
- exports[`Regression > internal 47`] = `
1328
+ exports[`Regression > internal 52`] = `
1159
1329
  "<!DOCTYPE html>
1160
1330
  <html lang="ru" dir="ltr">
1161
1331
  <head>
@@ -1185,7 +1355,7 @@ exports[`Regression > internal 47`] = `
1185
1355
  </html>"
1186
1356
  `;
1187
1357
 
1188
- exports[`Regression > internal 48`] = `
1358
+ exports[`Regression > internal 53`] = `
1189
1359
  "<!DOCTYPE html>
1190
1360
  <html lang="ru" dir="ltr">
1191
1361
  <head>
@@ -1215,7 +1385,7 @@ exports[`Regression > internal 48`] = `
1215
1385
  </html>"
1216
1386
  `;
1217
1387
 
1218
- exports[`Regression > internal 49`] = `
1388
+ exports[`Regression > internal 54`] = `
1219
1389
  "<!DOCTYPE html>
1220
1390
  <html lang="ru" dir="ltr">
1221
1391
  <head>
@@ -1243,7 +1413,7 @@ exports[`Regression > internal 49`] = `
1243
1413
  </html>"
1244
1414
  `;
1245
1415
 
1246
- exports[`Regression > internal 50`] = `
1416
+ exports[`Regression > internal 55`] = `
1247
1417
  "<!DOCTYPE html>
1248
1418
  <html lang="ru" dir="ltr">
1249
1419
  <head>
@@ -1271,4 +1441,4 @@ exports[`Regression > internal 50`] = `
1271
1441
  </html>"
1272
1442
  `;
1273
1443
 
1274
- exports[`Regression > internal 51`] = `"window.__DATA__.data.toc = {"items":[{"name":"Verbose root (index.yaml) will be transformed to index.html","href":"index.html","id":"UUID"},{"name":"Root will be transformed to index.html","href":"index.html","id":"UUID"},{"name":"Md item with not_var syntax","href":"1.html","id":"UUID"},{"name":"Md item named without extension","href":"1.html","id":"UUID"},{"name":"Item with empty href","id":"UUID"},{"name":"Multitoc item","href":"merge/merged.html","id":"UUID"},{"name":"Included Item","href":"included-item.html","id":"UUID"},{"name":"Named include (items is Object here - this is not an error)","items":[{"name":"Item 1","href":"sub/folder/item-1.html","id":"UUID"}],"id":"UUID"},{"href":"mermaid.html","name":"Mermaid usage","id":"UUID"},{"name":"Latex usage","href":"latex.html","id":"UUID"},{"name":"Images","href":"images.html","id":"UUID"},{"name":"Autotitle","href":"autotitle.html","id":"UUID"},{"name":"includes","href":"includes.html","id":"UUID"},{"name":"generic","items":[{"name":"Note 1","href":"generic/1.html","id":"UUID"},{"name":"Note 1","href":"generic/2.html","id":"UUID"},{"name":"3","href":"generic/3.html","id":"UUID"},{"name":"Sub notes","items":[{"name":"Sub note 1","href":"generic/Sub notes/1.html","id":"UUID"},{"name":"Sub note 2","href":"generic/Sub notes/2.html","id":"UUID"}],"id":"UUID"}],"id":"UUID"},{"name":"openapi","items":[{"name":"Overview","href":"openapi/index.html","id":"UUID"},{"name":"test-controller","items":[{"name":"Overview","href":"openapi/test-controller/index.html","id":"UUID"},{"href":"openapi/test-controller/getWithPayloadResponse.html","name":"Simple get operation. тест новой верстки 3","id":"UUID"}],"id":"UUID"}],"id":"UUID"}],"path":"toc.yaml","id":"UUID"};"`;
1444
+ exports[`Regression > internal 56`] = `"window.__DATA__.data.toc = {"items":[{"name":"Verbose root (index.yaml) will be transformed to index.html","href":"index.html","id":"UUID"},{"name":"Root will be transformed to index.html","href":"index.html","id":"UUID"},{"name":"Md item with not_var syntax","href":"1.html","id":"UUID"},{"name":"Md item named without extension","href":"1.html","id":"UUID"},{"name":"Item with empty href","id":"UUID"},{"name":"Multitoc item","href":"merge/merged.html","id":"UUID"},{"name":"Included Item","href":"included-item.html","id":"UUID"},{"name":"Named include (items is Object here - this is not an error)","items":[{"name":"Item 1","href":"sub/folder/item-1.html","id":"UUID"}],"id":"UUID"},{"href":"mermaid.html","name":"Mermaid usage","id":"UUID"},{"name":"Latex usage","href":"latex.html","id":"UUID"},{"name":"Images","href":"images.html","id":"UUID"},{"name":"Autotitle","href":"autotitle.html","id":"UUID"},{"name":"includes","href":"includes.html","id":"UUID"},{"name":"Entry as include","href":"entry-as-include.html","id":"UUID"},{"name":"Includer of entry","href":"includer-of-entry.html","id":"UUID"},{"name":"generic","items":[{"name":"Note 1","href":"generic/1.html","id":"UUID"},{"name":"Note 1","href":"generic/2.html","id":"UUID"},{"name":"3","href":"generic/3.html","id":"UUID"},{"name":"Sub notes","items":[{"name":"Sub note 1","href":"generic/Sub notes/1.html","id":"UUID"},{"name":"Sub note 2","href":"generic/Sub notes/2.html","id":"UUID"}],"id":"UUID"}],"id":"UUID"},{"name":"openapi","items":[{"name":"Overview","href":"openapi/index.html","id":"UUID"},{"name":"test-controller","items":[{"name":"Overview","href":"openapi/test-controller/index.html","id":"UUID"},{"href":"openapi/test-controller/getWithPayloadResponse.html","name":"Simple get operation. тест новой верстки 3","id":"UUID"}],"id":"UUID"}],"id":"UUID"}],"path":"toc.yaml","id":"UUID"};"`;
@@ -10,7 +10,7 @@ function test(_description: string) {
10
10
  await TestAdapter.testBuildPass(inputPath, outputPath, {
11
11
  md2md: true,
12
12
  md2html: false,
13
- args: '-j2 --keep-not-var',
13
+ args: '-j2 --keep-not-var --add-system-meta',
14
14
  });
15
15
  await TestAdapter.testBuildPass(outputPath, outputPath + '-html', {
16
16
  md2md: false,
@@ -0,0 +1,3 @@
1
+ # Entry that is also used as include
2
+
3
+ This file is both an entry (in toc) and included by another file.
@@ -0,0 +1,5 @@
1
+ # Includer of entry
2
+
3
+ This file includes another file that is also an entry.
4
+
5
+ {% include [entry-as-include](entry-as-include.md) %}
@@ -4,6 +4,9 @@ default:
4
4
  product: root
5
5
  user: Bob
6
6
  img_3: 3.png
7
+ # Test for race condition fix - __system should appear in output metadata
8
+ __system:
9
+ testVar: test-value
7
10
 
8
11
  internal:
9
12
  default-var: default-var-internal-value
@@ -22,6 +22,11 @@ items:
22
22
  href: ./autotitle
23
23
  - name: includes
24
24
  href: ./includes
25
+ # Test for race condition: entry-as-include.md is both an entry and included by includer-of-entry.md
26
+ - name: Entry as include
27
+ href: ./entry-as-include.md
28
+ - name: Includer of entry
29
+ href: ./includer-of-entry.md
25
30
  - name: generic
26
31
  include:
27
32
  path: generic
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diplodoc/cli-tests",
3
- "version": "5.19.6",
3
+ "version": "5.19.7",
4
4
  "bin": {
5
5
  "diplodoc-cli-test": "bin.mjs"
6
6
  },