@diplodoc/cli-tests 5.39.8 → 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 -148
- package/e2e/__snapshots__/merge-includes.spec.ts.snap +4 -4
- 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/package.json +1 -1
|
@@ -2,14 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`Include toc > Nested toc inclusions with mixed including modes > filelist 1`] = `
|
|
4
4
|
"[
|
|
5
|
-
"product1/_includes/inc-hash.md",
|
|
6
5
|
"product1/article1.md",
|
|
7
6
|
"product1/toc.yaml",
|
|
8
|
-
"product2/overlay1/_includes/inc-hash.md",
|
|
9
7
|
"product2/overlay1/article1.md",
|
|
10
|
-
"product2/overlay2/_includes/inc-hash.md",
|
|
11
8
|
"product2/overlay2/article1.md",
|
|
12
|
-
"product2/overlay3/_includes/inc-hash.md",
|
|
13
9
|
"product2/overlay3/article1.md",
|
|
14
10
|
"product2/p2.md",
|
|
15
11
|
"product2/toc.yaml"
|
|
@@ -18,13 +14,6 @@ exports[`Include toc > Nested toc inclusions with mixed including modes > fileli
|
|
|
18
14
|
|
|
19
15
|
exports[`Include toc > Nested toc inclusions with mixed including modes 1`] = `
|
|
20
16
|
"---
|
|
21
|
-
sourcePath: product1/core/_includes/inc.md
|
|
22
|
-
---
|
|
23
|
-
This is the core include."
|
|
24
|
-
`;
|
|
25
|
-
|
|
26
|
-
exports[`Include toc > Nested toc inclusions with mixed including modes 2`] = `
|
|
27
|
-
"---
|
|
28
17
|
metadata:
|
|
29
18
|
- name: generator
|
|
30
19
|
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
@@ -33,7 +22,18 @@ vcsPath: product1/core/article1.md
|
|
|
33
22
|
---
|
|
34
23
|
This is the core content of Article 1.
|
|
35
24
|
|
|
36
|
-
|
|
25
|
+
<!-- source: product1/_includes/inc.md -->
|
|
26
|
+
This is the core include.
|
|
27
|
+
<!-- endsource: product1/_includes/inc.md -->
|
|
28
|
+
"
|
|
29
|
+
`;
|
|
30
|
+
|
|
31
|
+
exports[`Include toc > Nested toc inclusions with mixed including modes 2`] = `
|
|
32
|
+
"title: Product 1 title
|
|
33
|
+
items:
|
|
34
|
+
- name: Article1
|
|
35
|
+
href: article1.md
|
|
36
|
+
path: product1/toc.yaml
|
|
37
37
|
"
|
|
38
38
|
`;
|
|
39
39
|
|
|
@@ -59,23 +59,6 @@ path: toc.yaml
|
|
|
59
59
|
`;
|
|
60
60
|
|
|
61
61
|
exports[`Include toc > Nested toc inclusions with mixed including modes 3`] = `
|
|
62
|
-
"title: Product 1 title
|
|
63
|
-
items:
|
|
64
|
-
- name: Article1
|
|
65
|
-
href: article1.md
|
|
66
|
-
path: product1/toc.yaml
|
|
67
|
-
"
|
|
68
|
-
`;
|
|
69
|
-
|
|
70
|
-
exports[`Include toc > Nested toc inclusions with mixed including modes 4`] = `
|
|
71
|
-
"---
|
|
72
|
-
sourcePath: product2/core/_includes/inc.md
|
|
73
|
-
---
|
|
74
|
-
This is the core include.
|
|
75
|
-
"
|
|
76
|
-
`;
|
|
77
|
-
|
|
78
|
-
exports[`Include toc > Nested toc inclusions with mixed including modes 5`] = `
|
|
79
62
|
"---
|
|
80
63
|
metadata:
|
|
81
64
|
- name: generator
|
|
@@ -85,19 +68,13 @@ vcsPath: product2/overlay1/product/article1.md
|
|
|
85
68
|
---
|
|
86
69
|
This is the overlay content of Article 1 for product 2.
|
|
87
70
|
|
|
88
|
-
|
|
89
|
-
"
|
|
90
|
-
`;
|
|
91
|
-
|
|
92
|
-
exports[`Include toc > Nested toc inclusions with mixed including modes 6`] = `
|
|
93
|
-
"---
|
|
94
|
-
sourcePath: product2/core/_includes/inc.md
|
|
95
|
-
---
|
|
71
|
+
<!-- source: product2/overlay1/_includes/inc.md -->
|
|
96
72
|
This is the core include.
|
|
73
|
+
<!-- endsource: product2/overlay1/_includes/inc.md -->
|
|
97
74
|
"
|
|
98
75
|
`;
|
|
99
76
|
|
|
100
|
-
exports[`Include toc > Nested toc inclusions with mixed including modes
|
|
77
|
+
exports[`Include toc > Nested toc inclusions with mixed including modes 4`] = `
|
|
101
78
|
"---
|
|
102
79
|
metadata:
|
|
103
80
|
- name: generator
|
|
@@ -107,19 +84,13 @@ vcsPath: product2/overlay2/product/article1.md
|
|
|
107
84
|
---
|
|
108
85
|
This is the overlay number #2 of Article 1 content for product 2.
|
|
109
86
|
|
|
110
|
-
|
|
111
|
-
"
|
|
112
|
-
`;
|
|
113
|
-
|
|
114
|
-
exports[`Include toc > Nested toc inclusions with mixed including modes 8`] = `
|
|
115
|
-
"---
|
|
116
|
-
sourcePath: product2/core/_includes/inc.md
|
|
117
|
-
---
|
|
87
|
+
<!-- source: product2/overlay2/_includes/inc.md -->
|
|
118
88
|
This is the core include.
|
|
89
|
+
<!-- endsource: product2/overlay2/_includes/inc.md -->
|
|
119
90
|
"
|
|
120
91
|
`;
|
|
121
92
|
|
|
122
|
-
exports[`Include toc > Nested toc inclusions with mixed including modes
|
|
93
|
+
exports[`Include toc > Nested toc inclusions with mixed including modes 5`] = `
|
|
123
94
|
"---
|
|
124
95
|
metadata:
|
|
125
96
|
- name: generator
|
|
@@ -129,11 +100,13 @@ vcsPath: product2/core/article1.md
|
|
|
129
100
|
---
|
|
130
101
|
This is the core content of Article 1.
|
|
131
102
|
|
|
132
|
-
|
|
103
|
+
<!-- source: product2/overlay3/_includes/inc.md -->
|
|
104
|
+
This is the core include.
|
|
105
|
+
<!-- endsource: product2/overlay3/_includes/inc.md -->
|
|
133
106
|
"
|
|
134
107
|
`;
|
|
135
108
|
|
|
136
|
-
exports[`Include toc > Nested toc inclusions with mixed including modes
|
|
109
|
+
exports[`Include toc > Nested toc inclusions with mixed including modes 6`] = `
|
|
137
110
|
"---
|
|
138
111
|
metadata:
|
|
139
112
|
- name: generator
|
|
@@ -146,7 +119,7 @@ Check here link to [Article1 overlay 1](overlay1/article1.md)
|
|
|
146
119
|
Check here link to [Article1 overlay 2](overlay2/article1.md)"
|
|
147
120
|
`;
|
|
148
121
|
|
|
149
|
-
exports[`Include toc > Nested toc inclusions with mixed including modes
|
|
122
|
+
exports[`Include toc > Nested toc inclusions with mixed including modes 7`] = `
|
|
150
123
|
"title: Product 2 title
|
|
151
124
|
items:
|
|
152
125
|
- name: P2 Article
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`Includes with conditions > Consecutive includes with false condition in the middle > filelist 1`] = `
|
|
4
4
|
"[
|
|
5
|
-
"includes/first-hash.md",
|
|
6
|
-
"includes/second-hash.md",
|
|
7
|
-
"includes/third-hash.md",
|
|
8
5
|
"index.md",
|
|
9
6
|
"toc.yaml"
|
|
10
7
|
]"
|
|
@@ -18,25 +15,6 @@ exports[`Includes with conditions > Consecutive includes with false condition in
|
|
|
18
15
|
`;
|
|
19
16
|
|
|
20
17
|
exports[`Includes with conditions > Consecutive includes with false condition in the middle 1`] = `
|
|
21
|
-
"{% note info %}
|
|
22
|
-
|
|
23
|
-
This is the first include.
|
|
24
|
-
|
|
25
|
-
{% endnote %}
|
|
26
|
-
"
|
|
27
|
-
`;
|
|
28
|
-
|
|
29
|
-
exports[`Includes with conditions > Consecutive includes with false condition in the middle 2`] = `
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
`;
|
|
33
|
-
|
|
34
|
-
exports[`Includes with conditions > Consecutive includes with false condition in the middle 3`] = `
|
|
35
|
-
"This is the third include.
|
|
36
|
-
"
|
|
37
|
-
`;
|
|
38
|
-
|
|
39
|
-
exports[`Includes with conditions > Consecutive includes with false condition in the middle 4`] = `
|
|
40
18
|
"---
|
|
41
19
|
metadata:
|
|
42
20
|
- name: generator
|
|
@@ -45,15 +23,23 @@ vcsPath: index.md
|
|
|
45
23
|
---
|
|
46
24
|
# Test Includes Conditions
|
|
47
25
|
|
|
48
|
-
|
|
26
|
+
<!-- source: includes/first.md -->
|
|
27
|
+
{% note info %}
|
|
49
28
|
|
|
50
|
-
|
|
29
|
+
This is the first include.
|
|
51
30
|
|
|
52
|
-
{%
|
|
31
|
+
{% endnote %}
|
|
32
|
+
<!-- endsource: includes/first.md -->
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
<!-- source: includes/third.md -->
|
|
37
|
+
This is the third include.
|
|
38
|
+
<!-- endsource: includes/third.md -->
|
|
53
39
|
"
|
|
54
40
|
`;
|
|
55
41
|
|
|
56
|
-
exports[`Includes with conditions > Consecutive includes with false condition in the middle
|
|
42
|
+
exports[`Includes with conditions > Consecutive includes with false condition in the middle 2`] = `
|
|
57
43
|
"items:
|
|
58
44
|
- name: Test Includes Conditions
|
|
59
45
|
href: index.md
|
|
@@ -61,7 +47,7 @@ path: toc.yaml
|
|
|
61
47
|
"
|
|
62
48
|
`;
|
|
63
49
|
|
|
64
|
-
exports[`Includes with conditions > Consecutive includes with false condition in the middle
|
|
50
|
+
exports[`Includes with conditions > Consecutive includes with false condition in the middle 3`] = `
|
|
65
51
|
"<!DOCTYPE html>
|
|
66
52
|
<html lang="ru" dir="ltr">
|
|
67
53
|
<head>
|
|
@@ -75,7 +61,7 @@ exports[`Includes with conditions > Consecutive includes with false condition in
|
|
|
75
61
|
<body class="g-root g-root_theme_light">
|
|
76
62
|
<div id="root"></div>
|
|
77
63
|
<script type="application/json" id="diplodoc-state">
|
|
78
|
-
{"data":{"leading":false,"html":"<div class=\\"yfm-note yfm-accent-info\\" note-type=\\"info\\"><p class=\\"yfm-note-title\\">Примечание</p>/n<div class=\\"yfm-note-content\\"><p>This is the first include.</p>/n</div></div>
|
|
64
|
+
{"data":{"leading":false,"html":"<div class=\\"yfm-note yfm-accent-info\\" note-type=\\"info\\"><p class=\\"yfm-note-title\\">Примечание</p>/n<div class=\\"yfm-note-content\\"><p>This is the first include.</p>/n</div></div>/n/n<p>This is the third include.</p>/n/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"index.md"},"headings":[],"title":"Test Includes Conditions"},"router":{"pathname":"index","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
79
65
|
</script>
|
|
80
66
|
<script type="application/javascript">
|
|
81
67
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -89,4 +75,4 @@ exports[`Includes with conditions > Consecutive includes with false condition in
|
|
|
89
75
|
</html>"
|
|
90
76
|
`;
|
|
91
77
|
|
|
92
|
-
exports[`Includes with conditions > Consecutive includes with false condition in the middle
|
|
78
|
+
exports[`Includes with conditions > Consecutive includes with false condition in the middle 4`] = `"window.__DATA__.data.toc = {"items":[{"name":"Test Includes Conditions","href":"index.html","id":"UUID"}],"path":"toc.yaml","id":"UUID"};"`;
|