You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// The snippets directory contains generated and static content, so we must preserve all MD files.
118
-
include '**/*.md'
123
+
if (countSnippets <=100) {
124
+
// If we do not run the full test of tests, do not attempt to remove potentially unused files
125
+
preserve {
126
+
// The snippets directory contains generated and static content, so we must preserve all MD files.
127
+
include '**/*.md'
128
+
}
129
+
} else {
130
+
// If we do run the full test of tests, be careful about what we need to preserve
131
+
preserve {
132
+
// The lists are static, and the operators are a mix of generated and static content
133
+
include '*.md', '**/operators/*.md', '**/operators/**/*.md', '**/lists/*.md'
134
+
}
119
135
}
120
136
}
121
137
}
122
138
123
-
List images = fileTree(imagesFolder).matching {
124
-
include "**/*.svg"// Recursively include all SVG files
125
-
}.files.collect { it.name }
139
+
List images = imagesTree.files.collect { it.name }
126
140
int countImages = images.size()
127
141
Closure replaceFont = line -> {
128
142
// The es-docs team has a recommended set of fonts for use with code, and they size similarly to the previous Roboto Mono, which is no longer available in the docs webpage
143
+
// We do not change the original SVG generator to use these because it requires the fonts to exist in the JVM running the code
0 commit comments