From f2c11d59494979cf4146bec4dca7c9d21ae2dccb Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Thu, 26 Jan 2023 15:45:26 +0100 Subject: [PATCH 1/2] sync-web-site.sh - only sync config files if available --- docs/sync-web-site.sh | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/docs/sync-web-site.sh b/docs/sync-web-site.sh index 95bb850049cf7..63bfc36629eda 100755 --- a/docs/sync-web-site.sh +++ b/docs/sync-web-site.sh @@ -95,15 +95,17 @@ rsync -vr --delete \ target/asciidoc/sources/ \ $TARGET_GUIDES -echo -echo "Copying from ../target/asciidoc/generated/ to $TARGET_CONFIG" -echo -rsync -vr --delete \ - --exclude='**/*.html' \ - --exclude='**/index.adoc' \ - --exclude='**/_attributes.adoc' \ - ../target/asciidoc/generated/ \ - $TARGET_CONFIG +if [ -f ../target/asciidoc/generated/ ]; then + echo + echo "Copying from ../target/asciidoc/generated/ to $TARGET_CONFIG" + echo + rsync -vr --delete \ + --exclude='**/*.html' \ + --exclude='**/index.adoc' \ + --exclude='**/_attributes.adoc' \ + ../target/asciidoc/generated/ \ + $TARGET_CONFIG +fi if [ -f target/indexByType.yaml ]; then echo From c245a6c879396372f700d0ad13aaaf834c33b153 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Thu, 26 Jan 2023 16:34:08 +0100 Subject: [PATCH 2/2] sync-web-site.sh - use the new serve-only-latest-guides.sh --- docs/sync-web-site.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/sync-web-site.sh b/docs/sync-web-site.sh index 63bfc36629eda..3867714766a96 100755 --- a/docs/sync-web-site.sh +++ b/docs/sync-web-site.sh @@ -132,9 +132,15 @@ else Run one of the following command to check the web site (if not done already): - If you have Jekyll set up locally: + + ./target/web-site/serve-only-latest-guides.sh + + OR if you want to generate all versions include the maintenance branches (2.7, 2.13...): + (cd target/web-site && bundle exec jekyll serve) - If you have Docker or Podman: + cd target/web-site docker run --rm --volume=\"$PWD:/srv/jekyll:Z\" \\ --publish 4000:4000 jekyll/jekyll:4.1.0 jekyll serve --incremental