@diplodoc/cli-tests 5.0.12 → 5.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/e2e/__snapshots__/load-custom-resources.spec.ts.snap +7 -0
- package/e2e/__snapshots__/metadata.spec.ts.snap +3 -0
- package/e2e/__snapshots__/regression.test.ts.snap +20 -0
- package/e2e/__snapshots__/rtl.spec.ts.snap +7 -0
- package/e2e/__snapshots__/search.test.ts.snap +1 -0
- package/e2e/__snapshots__/translation.spec.ts.snap +36 -0
- package/mocks/translation/no-translate/input/no-translate.md +20 -0
- package/package.json +1 -1
|
@@ -55,6 +55,7 @@ exports[`Allow load custom resources > md2html single page with custom resources
|
|
|
55
55
|
|
|
56
56
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
57
57
|
|
|
58
|
+
|
|
58
59
|
<link type="text/css" rel="stylesheet" href="_bundle/search-css-1"/>
|
|
59
60
|
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
60
61
|
<link type="text/css" rel="stylesheet" href="_assets/style/test.css"/>
|
|
@@ -94,6 +95,7 @@ exports[`Allow load custom resources > md2html single page with custom resources
|
|
|
94
95
|
|
|
95
96
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
96
97
|
|
|
98
|
+
|
|
97
99
|
<link type="text/css" rel="stylesheet" href="_bundle/search-css-1"/>
|
|
98
100
|
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
99
101
|
<link type="text/css" rel="stylesheet" href="_assets/style/test.css"/>
|
|
@@ -132,6 +134,7 @@ exports[`Allow load custom resources > md2html single page with custom resources
|
|
|
132
134
|
|
|
133
135
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
134
136
|
|
|
137
|
+
|
|
135
138
|
<link type="text/css" rel="stylesheet" href="_bundle/search-css-1"/>
|
|
136
139
|
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
137
140
|
<link type="text/css" rel="stylesheet" href="_assets/style/test.css"/>
|
|
@@ -173,6 +176,7 @@ exports[`Allow load custom resources > md2html single page with custom resources
|
|
|
173
176
|
|
|
174
177
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
175
178
|
|
|
179
|
+
|
|
176
180
|
<link type="text/css" rel="stylesheet" href="_bundle/search-css-1"/>
|
|
177
181
|
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
178
182
|
<link type="text/css" rel="stylesheet" href="_assets/style/test.css"/>
|
|
@@ -255,6 +259,7 @@ exports[`Allow load custom resources > md2html with custom resources 2`] = `
|
|
|
255
259
|
|
|
256
260
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
257
261
|
|
|
262
|
+
|
|
258
263
|
<link type="text/css" rel="stylesheet" href="_bundle/search-css-1"/>
|
|
259
264
|
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
260
265
|
<link type="text/css" rel="stylesheet" href="_assets/style/test.css"/>
|
|
@@ -294,6 +299,7 @@ exports[`Allow load custom resources > md2html with custom resources 3`] = `
|
|
|
294
299
|
|
|
295
300
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
296
301
|
|
|
302
|
+
|
|
297
303
|
<link type="text/css" rel="stylesheet" href="_bundle/search-css-1"/>
|
|
298
304
|
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
299
305
|
<link type="text/css" rel="stylesheet" href="_assets/style/test.css"/>
|
|
@@ -332,6 +338,7 @@ exports[`Allow load custom resources > md2html with custom resources 4`] = `
|
|
|
332
338
|
|
|
333
339
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
334
340
|
|
|
341
|
+
|
|
335
342
|
<link type="text/css" rel="stylesheet" href="_bundle/search-css-1"/>
|
|
336
343
|
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
337
344
|
<link type="text/css" rel="stylesheet" href="_assets/style/test.css"/>
|
|
@@ -42,6 +42,7 @@ exports[`Allow load custom resources > md2html with metadata 1`] = `
|
|
|
42
42
|
|
|
43
43
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
44
44
|
|
|
45
|
+
|
|
45
46
|
<link type="text/css" rel="stylesheet" href="_bundle/search-css-1"/>
|
|
46
47
|
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
47
48
|
</head>
|
|
@@ -81,6 +82,7 @@ exports[`Allow load custom resources > md2html with metadata 2`] = `
|
|
|
81
82
|
|
|
82
83
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
83
84
|
|
|
85
|
+
|
|
84
86
|
<link type="text/css" rel="stylesheet" href="_bundle/search-css-1"/>
|
|
85
87
|
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
86
88
|
</head>
|
|
@@ -120,6 +122,7 @@ exports[`Allow load custom resources > md2html with metadata 3`] = `
|
|
|
120
122
|
|
|
121
123
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
122
124
|
|
|
125
|
+
|
|
123
126
|
<link type="text/css" rel="stylesheet" href="_bundle/search-css-1"/>
|
|
124
127
|
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
125
128
|
</head>
|
|
@@ -658,6 +658,7 @@ exports[`Regression > internal 26`] = `
|
|
|
658
658
|
|
|
659
659
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
660
660
|
|
|
661
|
+
|
|
661
662
|
<link type="text/css" rel="stylesheet" href="_bundle/search-css-1"/>
|
|
662
663
|
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
663
664
|
</head>
|
|
@@ -694,6 +695,7 @@ exports[`Regression > internal 27`] = `
|
|
|
694
695
|
|
|
695
696
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
696
697
|
|
|
698
|
+
|
|
697
699
|
<link type="text/css" rel="stylesheet" href="_bundle/search-css-1"/>
|
|
698
700
|
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
699
701
|
</head>
|
|
@@ -729,6 +731,7 @@ exports[`Regression > internal 28`] = `
|
|
|
729
731
|
<meta http-equiv="refresh" content="0; url=d.md">
|
|
730
732
|
|
|
731
733
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
734
|
+
|
|
732
735
|
<script type="application/javascript">
|
|
733
736
|
window.location.replace("d.md");
|
|
734
737
|
</script>
|
|
@@ -755,6 +758,7 @@ exports[`Regression > internal 29`] = `
|
|
|
755
758
|
|
|
756
759
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
757
760
|
|
|
761
|
+
|
|
758
762
|
<link type="text/css" rel="stylesheet" href="_bundle/search-css-1"/>
|
|
759
763
|
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
760
764
|
</head>
|
|
@@ -791,6 +795,7 @@ exports[`Regression > internal 30`] = `
|
|
|
791
795
|
|
|
792
796
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
793
797
|
|
|
798
|
+
|
|
794
799
|
<link type="text/css" rel="stylesheet" href="_bundle/search-css-1"/>
|
|
795
800
|
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
796
801
|
</head>
|
|
@@ -827,6 +832,7 @@ exports[`Regression > internal 31`] = `
|
|
|
827
832
|
|
|
828
833
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
829
834
|
|
|
835
|
+
|
|
830
836
|
<link type="text/css" rel="stylesheet" href="_bundle/search-css-1"/>
|
|
831
837
|
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
832
838
|
</head>
|
|
@@ -863,6 +869,7 @@ exports[`Regression > internal 32`] = `
|
|
|
863
869
|
|
|
864
870
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
865
871
|
|
|
872
|
+
|
|
866
873
|
<link type="text/css" rel="stylesheet" href="_bundle/search-css-1"/>
|
|
867
874
|
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
868
875
|
</head>
|
|
@@ -899,6 +906,7 @@ exports[`Regression > internal 33`] = `
|
|
|
899
906
|
|
|
900
907
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
901
908
|
|
|
909
|
+
|
|
902
910
|
<link type="text/css" rel="stylesheet" href="_bundle/search-css-1"/>
|
|
903
911
|
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
904
912
|
</head>
|
|
@@ -935,6 +943,7 @@ exports[`Regression > internal 34`] = `
|
|
|
935
943
|
|
|
936
944
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
937
945
|
|
|
946
|
+
|
|
938
947
|
<link type="text/css" rel="stylesheet" href="_bundle/search-css-1"/>
|
|
939
948
|
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
940
949
|
</head>
|
|
@@ -971,6 +980,7 @@ exports[`Regression > internal 35`] = `
|
|
|
971
980
|
|
|
972
981
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
973
982
|
|
|
983
|
+
|
|
974
984
|
<link type="text/css" rel="stylesheet" href="_bundle/search-css-1"/>
|
|
975
985
|
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
976
986
|
</head>
|
|
@@ -1007,6 +1017,7 @@ exports[`Regression > internal 36`] = `
|
|
|
1007
1017
|
|
|
1008
1018
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
1009
1019
|
|
|
1020
|
+
|
|
1010
1021
|
<link type="text/css" rel="stylesheet" href="_bundle/search-css-1"/>
|
|
1011
1022
|
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
1012
1023
|
</head>
|
|
@@ -1043,6 +1054,7 @@ exports[`Regression > internal 37`] = `
|
|
|
1043
1054
|
|
|
1044
1055
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
1045
1056
|
|
|
1057
|
+
|
|
1046
1058
|
<link type="text/css" rel="stylesheet" href="_bundle/search-css-1"/>
|
|
1047
1059
|
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
1048
1060
|
</head>
|
|
@@ -1079,6 +1091,7 @@ exports[`Regression > internal 38`] = `
|
|
|
1079
1091
|
|
|
1080
1092
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
1081
1093
|
|
|
1094
|
+
|
|
1082
1095
|
<link type="text/css" rel="stylesheet" href="_bundle/search-css-1"/>
|
|
1083
1096
|
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
1084
1097
|
<link type="text/css" rel="stylesheet" href="_bundle/latex-extension.css"/>
|
|
@@ -1117,6 +1130,7 @@ exports[`Regression > internal 39`] = `
|
|
|
1117
1130
|
|
|
1118
1131
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
1119
1132
|
|
|
1133
|
+
|
|
1120
1134
|
<link type="text/css" rel="stylesheet" href="_bundle/search-css-1"/>
|
|
1121
1135
|
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
1122
1136
|
</head>
|
|
@@ -1153,6 +1167,7 @@ exports[`Regression > internal 40`] = `
|
|
|
1153
1167
|
|
|
1154
1168
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
1155
1169
|
|
|
1170
|
+
|
|
1156
1171
|
<link type="text/css" rel="stylesheet" href="_bundle/search-css-1"/>
|
|
1157
1172
|
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
1158
1173
|
</head>
|
|
@@ -1191,6 +1206,7 @@ exports[`Regression > internal 42`] = `
|
|
|
1191
1206
|
|
|
1192
1207
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
1193
1208
|
|
|
1209
|
+
|
|
1194
1210
|
<link type="text/css" rel="stylesheet" href="_bundle/search-css-1"/>
|
|
1195
1211
|
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
1196
1212
|
</head>
|
|
@@ -1228,6 +1244,7 @@ exports[`Regression > internal 43`] = `
|
|
|
1228
1244
|
|
|
1229
1245
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
1230
1246
|
|
|
1247
|
+
|
|
1231
1248
|
<link type="text/css" rel="stylesheet" href="_bundle/search-css-1"/>
|
|
1232
1249
|
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
1233
1250
|
<link type="text/css" rel="stylesheet" href="_assets/cut-extension.css"/>
|
|
@@ -1266,6 +1283,7 @@ exports[`Regression > internal 44`] = `
|
|
|
1266
1283
|
|
|
1267
1284
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
1268
1285
|
|
|
1286
|
+
|
|
1269
1287
|
<link type="text/css" rel="stylesheet" href="_bundle/search-css-1"/>
|
|
1270
1288
|
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
1271
1289
|
<link type="text/css" rel="stylesheet" href="_assets/cut-extension.css"/>
|
|
@@ -1304,6 +1322,7 @@ exports[`Regression > internal 45`] = `
|
|
|
1304
1322
|
|
|
1305
1323
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
1306
1324
|
|
|
1325
|
+
|
|
1307
1326
|
<link type="text/css" rel="stylesheet" href="_bundle/search-css-1"/>
|
|
1308
1327
|
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
1309
1328
|
</head>
|
|
@@ -1340,6 +1359,7 @@ exports[`Regression > internal 46`] = `
|
|
|
1340
1359
|
|
|
1341
1360
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
1342
1361
|
|
|
1362
|
+
|
|
1343
1363
|
<link type="text/css" rel="stylesheet" href="_bundle/search-css-1"/>
|
|
1344
1364
|
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
1345
1365
|
</head>
|
|
@@ -40,6 +40,7 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
40
40
|
|
|
41
41
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
42
42
|
|
|
43
|
+
|
|
43
44
|
<link type="text/css" rel="stylesheet" href="_bundle/search-css-2"/>
|
|
44
45
|
<link type="text/css" rel="stylesheet" href="_bundle/app-css-3"/>
|
|
45
46
|
</head>
|
|
@@ -76,6 +77,7 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
76
77
|
|
|
77
78
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
78
79
|
|
|
80
|
+
|
|
79
81
|
<link type="text/css" rel="stylesheet" href="_bundle/search-css-2"/>
|
|
80
82
|
<link type="text/css" rel="stylesheet" href="_bundle/app-css-3"/>
|
|
81
83
|
</head>
|
|
@@ -146,6 +148,7 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
146
148
|
|
|
147
149
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
148
150
|
|
|
151
|
+
|
|
149
152
|
<link type="text/css" rel="stylesheet" href="_bundle/search-css-2"/>
|
|
150
153
|
<link type="text/css" rel="stylesheet" href="_bundle/app-css-3"/>
|
|
151
154
|
</head>
|
|
@@ -182,6 +185,7 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
182
185
|
|
|
183
186
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
184
187
|
|
|
188
|
+
|
|
185
189
|
<link type="text/css" rel="stylesheet" href="_bundle/search-css-2"/>
|
|
186
190
|
<link type="text/css" rel="stylesheet" href="_bundle/app-css-3"/>
|
|
187
191
|
</head>
|
|
@@ -222,6 +226,7 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
222
226
|
|
|
223
227
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
224
228
|
|
|
229
|
+
|
|
225
230
|
<link type="text/css" rel="stylesheet" href="_bundle/search-css-1"/>
|
|
226
231
|
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
227
232
|
</head>
|
|
@@ -259,6 +264,7 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
259
264
|
|
|
260
265
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
261
266
|
|
|
267
|
+
|
|
262
268
|
<link type="text/css" rel="stylesheet" href="_bundle/search-css-1"/>
|
|
263
269
|
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
264
270
|
</head>
|
|
@@ -296,6 +302,7 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
296
302
|
<meta http-equiv="refresh" content="0; url=./ar/index.html">
|
|
297
303
|
|
|
298
304
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
305
|
+
|
|
299
306
|
<script type="application/javascript">
|
|
300
307
|
window.location.replace("./ar/index.html");
|
|
301
308
|
</script>
|
|
@@ -42,6 +42,7 @@ exports[`Local search > internal 1`] = `
|
|
|
42
42
|
|
|
43
43
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
44
44
|
|
|
45
|
+
|
|
45
46
|
<link type="text/css" rel="stylesheet" href="_bundle/search-css-1"/>
|
|
46
47
|
<link type="text/css" rel="stylesheet" href="_bundle/app-css-1"/>
|
|
47
48
|
</head>
|
|
@@ -36,9 +36,27 @@ metadata:
|
|
|
36
36
|
|
|
37
37
|
## Block directive
|
|
38
38
|
### No-translate header
|
|
39
|
+
|
|
40
|
+
:::html-block
|
|
41
|
+
testsetsets
|
|
42
|
+
:::
|
|
43
|
+
|
|
44
|
+
::: any-other-directive
|
|
45
|
+
content test
|
|
46
|
+
:::
|
|
47
|
+
|
|
39
48
|
Should not be translated.
|
|
40
49
|
Can use **markup** inside.
|
|
41
50
|
|
|
51
|
+
|
|
52
|
+
::: some-other-directive
|
|
53
|
+
content here
|
|
54
|
+
:::
|
|
55
|
+
content here
|
|
56
|
+
::: some-other-directive
|
|
57
|
+
nested content
|
|
58
|
+
:::
|
|
59
|
+
|
|
42
60
|
## Leaf directive
|
|
43
61
|
|
|
44
62
|
## /usr/local/bin/application
|
|
@@ -324,9 +342,27 @@ metadata:
|
|
|
324
342
|
|
|
325
343
|
## Block directive
|
|
326
344
|
### No-translate header
|
|
345
|
+
|
|
346
|
+
:::html-block
|
|
347
|
+
testsetsets
|
|
348
|
+
:::
|
|
349
|
+
|
|
350
|
+
::: any-other-directive
|
|
351
|
+
content test
|
|
352
|
+
:::
|
|
353
|
+
|
|
327
354
|
Should not be translated.
|
|
328
355
|
Can use **markup** inside.
|
|
329
356
|
|
|
357
|
+
|
|
358
|
+
::: some-other-directive
|
|
359
|
+
content here
|
|
360
|
+
:::
|
|
361
|
+
content here
|
|
362
|
+
::: some-other-directive
|
|
363
|
+
nested content
|
|
364
|
+
:::
|
|
365
|
+
|
|
330
366
|
## Leaf directive
|
|
331
367
|
|
|
332
368
|
## /usr/local/bin/application
|
|
@@ -3,10 +3,30 @@
|
|
|
3
3
|
## Block directive
|
|
4
4
|
:::no-translate
|
|
5
5
|
### No-translate header
|
|
6
|
+
|
|
7
|
+
:::html-block
|
|
8
|
+
testsetsets
|
|
9
|
+
:::
|
|
10
|
+
|
|
11
|
+
::: any-other-directive
|
|
12
|
+
content test
|
|
13
|
+
:::
|
|
14
|
+
|
|
6
15
|
Should not be translated.
|
|
7
16
|
Can use **markup** inside.
|
|
8
17
|
:::
|
|
9
18
|
|
|
19
|
+
|
|
20
|
+
::: some-other-directive
|
|
21
|
+
content here
|
|
22
|
+
:::
|
|
23
|
+
::: no-translate
|
|
24
|
+
content here
|
|
25
|
+
::: some-other-directive
|
|
26
|
+
nested content
|
|
27
|
+
:::
|
|
28
|
+
:::
|
|
29
|
+
|
|
10
30
|
## Leaf directive
|
|
11
31
|
|
|
12
32
|
::no-translate [## /usr/local/bin/application]
|