We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent adabeea commit 926fe16Copy full SHA for 926fe16
1 file changed
deploy-guides-local.sh
@@ -0,0 +1,17 @@
1
+#!/bin/sh
2
+set -e
3
+
4
+TUTORIALS_DIR="${1:-$(pwd)}"
5
+WEBSITE_DIR="${2:-$(pwd)/../infinispan.github.io}"
6
7
+echo "Building guides from: $TUTORIALS_DIR"
8
+echo "Deploying to website: $WEBSITE_DIR"
9
10
+cd "$TUTORIALS_DIR"
11
+./mvnw -Pguides -pl docs-maven-plugin package -DskipTests -q
12
13
+cp target/guides/index.yaml "$WEBSITE_DIR/_data/guides.yaml"
14
+mkdir -p "$WEBSITE_DIR/_guides"
15
+cp target/guides/guides/*.adoc "$WEBSITE_DIR/_guides/"
16
17
+echo "Done. $(ls target/guides/guides/*.adoc | wc -l | tr -d ' ') guides deployed."
0 commit comments