Skip to content

Commit

Permalink
update script
Browse files Browse the repository at this point in the history
  • Loading branch information
eladb committed Jun 20, 2024
1 parent 1bf9a9a commit 02aa69f
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions wingdocs/build-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ if [ -z "${STAGING_DIR}" ]; then
exit 1
fi


echo STAGING_DIR=$STAGING_DIR
echo WING_DIRNAME=$WING_DIRNAME
echo DOCS_SOURCE=$DOCS_SOURCE
Expand All @@ -22,14 +23,12 @@ mkdir -p "${STAGING_DIR}"

cd "${STAGING_DIR}"

cp -r "${WING_DIRNAME}/base-template/" .

DOCS_TARGET="versioned_docs/version-latest"
mkdir -p "${DOCS_TARGET}"
echo "Staging docs: ${DOCS_SOURCE} => ${DOCS_TARGET}"
cp -r "${DOCS_SOURCE}/" "${DOCS_TARGET}"
rsync -av "$WING_DIRNAME/base-template/" .

find .
echo "Copying docs... $DOCS_SOURCE => $PWD/$docs_target"
docs_target="versioned_docs/version-latest/"
mkdir -p "$docs_target"
rsync -av "$DOCS_SOURCE" "$docs_target"

echo "Installing dependencies..."
npm install
Expand Down

0 comments on commit 02aa69f

Please sign in to comment.