This is an automated email from the ASF dual-hosted git repository.
shanedell pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/daffodil.git
The following commit(s) were added to refs/heads/main by this push:
new c5eed61f8 Update release-candidate to install VS Code Extension docs.
c5eed61f8 is described below
commit c5eed61f8557c0e7c6cecb2deea90ad04cd62dcb
Author: Shane Dell <[email protected]>
AuthorDate: Tue Dec 20 13:19:00 2022 -0500
Update release-candidate to install VS Code Extension docs.
- containers/release-candidate/Dockerfile updated to install pandoc, needed
to build the VS Code extension docs.
- containers/release-candidate/src/daffodil-release-candidate updated to
clone the VS Code extension repos wiki, create a docx and html document that
combine all wiki pages into a single file, then add both docx, html files into
the daffodil-site.
---
containers/release-candidate/Dockerfile | 1 +
.../release-candidate/src/daffodil-release-candidate | 15 ++++++++++++++-
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/containers/release-candidate/Dockerfile
b/containers/release-candidate/Dockerfile
index d0ffbe2ec..85f2cb02b 100644
--- a/containers/release-candidate/Dockerfile
+++ b/containers/release-candidate/Dockerfile
@@ -32,6 +32,7 @@ RUN \
llvm \
mxml-devel \
npm \
+ pandoc \
pinentry \
rpm-build \
rpm-sign \
diff --git a/containers/release-candidate/src/daffodil-release-candidate
b/containers/release-candidate/src/daffodil-release-candidate
index 82f44cadb..7440bb07c 100755
--- a/containers/release-candidate/src/daffodil-release-candidate
+++ b/containers/release-candidate/src/daffodil-release-candidate
@@ -224,6 +224,7 @@ fi
DAFFODIL_CODE_DIR=$REPO_ROOT/$DAFFODIL_CODE_REPO
DAFFODIL_SITE_DIR=$REPO_ROOT/$DAFFODIL_SITE_REPO
DAFFODIL_DOCS_DIR=$DAFFODIL_SITE_DIR/site/docs/$VERSION
+DAFFODIL_VSCODE_DOCS_DIR=$DAFFODIL_SITE_DIR/site/docs/vscode/$VERSION
DAFFODIL_TUTORIALS_DIR=$DAFFODIL_SITE_DIR/site/tutorials
DAFFODIL_DIST_DIR=$REPO_ROOT/$DAFFODIL_DIST
DAFFODIL_RELEASE_DIR=$DAFFODIL_DIST_DIR/$VERSION-$PRE_RELEASE
@@ -300,6 +301,18 @@ case $PROJECT_REPO in
yarn package
cp *.vsix $DAFFODIL_RELEASE_DIR/bin/
+ echo "Building Extension Docs..."
+ DOC_NAME="Apache-Daffodil-Extension-for-Visual-Studio-Code-$VERSION"
+ git clone https://github.com/apache/daffodil-vscode.wiki.git .wiki
+ pandoc -t docx -f markdown -o .wiki/$DOC_NAME.docx .wiki/*.md
+ pandoc -t html -f markdown -o .wiki/$DOC_NAME.html .wiki/*.md
+
+ echo "Installing Extension Docs..."
+ rm -rf $DAFFODIL_VSCODE_DOCS_DIR
+ mkdir -p $DAFFODIL_VSCODE_DOCS_DIR
+ mv .wiki/$DOC_NAME.* $DAFFODIL_VSCODE_DOCS_DIR
+ rm -rf .wiki
+
;;
esac
@@ -324,7 +337,7 @@ popd &> /dev/null
pushd $DAFFODIL_SITE_DIR &> /dev/null
echo "Committing Site Changes..."
git add .
-git diff-index --quiet HEAD || git commit -m "Stage release
v$VERSION-$PRE_RELEASE"
+git diff-index --quiet HEAD || git commit -m "Stage $PROJECT_NAME release
v$VERSION-$PRE_RELEASE"
popd &> /dev/null
echo "Adding Release Files..."