-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…3028) * DOC-2220: Add latest build * DOC-2220: Build site script * DOC-2220: Update staging and release docs to build latest site * DOC-2220: Fix links * DOC-2220: Update messages * DOC-2220: Change generation * DOC-2220: Update Changelog
- Loading branch information
1 parent
fa3af54
commit 5f0a7d7
Showing
10 changed files
with
45 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
PLAYBOOK="$1" | ||
|
||
|
||
BUILD_DIR="build" | ||
SITE_DIR="$BUILD_DIR/site/tinymce" | ||
|
||
SOURCE_VERSION="latest" | ||
SOURCE_DIR="$SITE_DIR/$SOURCE_VERSION/" | ||
|
||
DEST_VERSION=6 | ||
DEST_DIR="$SITE_DIR/$DEST_VERSION/" | ||
|
||
echo -e "\nRemoving existing $SITE_DIR directory." | ||
rm -rf "$BUILD_DIR" | ||
|
||
echo -e "\nGenerating antora documentation." | ||
antora "$PLAYBOOK" | ||
|
||
echo -e "\nCopying all $SOURCE_VERSION content to $DEST_VERSION directory." | ||
mkdir "$DEST_DIR" | ||
cp -a "$SOURCE_DIR" "$DEST_DIR" | ||
|
||
echo "$DEST_VERSION site now in sync with $SOURCE_VERSION." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters