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
Fix ES|QL build.gradle for configuration-cache (elastic#125097)
Earlier work on the ES|QL port of docs to V3 introduced an issue in the build.gradle file making it fail with --configuration-cache. This fixes that, as well as one other broken link and removes some unused files.
In addition we bring back partial support for deleting unused files. It is tricky to have full support for this due to the mix of static and generated content, particularly in the operators snippets.
// 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