Skip to content

Commit 569057c

Browse files
Upgrade site-ui to antora 3, and upgrading other components
1 parent 7ec8a17 commit 569057c

5 files changed

Lines changed: 11912 additions & 8072 deletions

File tree

site-content/docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ prepare_site_html_for_publication() {
230230
cp -r site-content/build/html/* content/
231231

232232
# remove hardcoded domain name, and empty domain names first before we duplicate and documentation
233-
content_files_to_change=($(grep -rl 'https://cassandra.apache.org/' content/))
233+
content_files_to_change=($(grep -rl 'https://cassandra.apache.org/' content/ || true))
234234
log_message "INFO" "Removing hardcoded domain names in ${#content_files_to_change[*]} files"
235235
for content_file in ${content_files_to_change[*]}
236236
do
@@ -241,7 +241,7 @@ prepare_site_html_for_publication() {
241241
mv /tmp/tmp_sed ${content_file}
242242
done
243243

244-
content_files_to_change=($(grep -rl 'href="//' content/))
244+
content_files_to_change=($(grep -rl 'href="//' content/ || true))
245245
log_message "INFO" "Removing empty domain names in ${#content_files_to_change[*]} files"
246246
for content_file in ${content_files_to_change[*]}
247247
do

site-ui/build/ui-bundle.zip

2.11 MB
Binary file not shown.

site-ui/gulp.d/tasks/build.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ const buffer = require('vinyl-buffer')
66
const concat = require('gulp-concat')
77
const cssnano = require('cssnano')
88
const fs = require('fs-extra')
9-
const imagemin = require('gulp-imagemin')
109
const merge = require('merge-stream')
1110
const ospath = require('path')
1211
const path = ospath.posix
@@ -96,16 +95,7 @@ module.exports = (src, dest, preview) => () => {
9695
.src(['css/site.css', 'css/vendor/docsearch.css'], { ...opts, sourcemaps })
9796
.pipe(postcss((file) => ({ plugins: postcssPlugins, options: { file } }))),
9897
vfs.src('font/*.{ttf,woff*(2)}', opts),
99-
vfs
100-
.src('img/**/*.{gif,ico,jpg,png,svg}', opts)
101-
.pipe(
102-
imagemin([
103-
imagemin.gifsicle(),
104-
imagemin.jpegtran(),
105-
imagemin.optipng(),
106-
imagemin.svgo({ plugins: [{ removeViewBox: false }] }),
107-
])
108-
),
98+
vfs.src('img/**/*.{gif,ico,jpg,png,svg}', opts),
10999
vfs.src('helpers/*.js', opts),
110100
vfs.src('layouts/*.hbs', opts),
111101
vfs.src('partials/*.hbs', opts)

0 commit comments

Comments
 (0)