-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 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,28 @@ | ||
#!/bin/bash | ||
set -xe | ||
|
||
mkdir -p ~/.nvm_${REPONAME}_antora | ||
export NODE_VERSION=18.18.1 | ||
# The container has a pre-installed nodejs. Overwrite those again. | ||
export NVM_BIN="$HOME/.nvm_${REPONAME}_antora/versions/node/v18.18.1/bin" | ||
export NVM_DIR=$HOME/.nvm_${REPONAME}_antora | ||
export NVM_INC=$HOME/.nvm_${REPONAME}_antora/versions/node/v18.18.1/include/node | ||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash | ||
export NVM_DIR=$HOME/.nvm_${REPONAME}_antora | ||
. "$NVM_DIR/nvm.sh" && nvm install ${NODE_VERSION} | ||
. "$NVM_DIR/nvm.sh" && nvm use v${NODE_VERSION} | ||
. "$NVM_DIR/nvm.sh" && nvm alias default v${NODE_VERSION} | ||
export PATH="$HOME/.nvm_${REPONAME}_antora/versions/node/v${NODE_VERSION}/bin/:${PATH}" | ||
node --version | ||
npm --version | ||
npm install [email protected] | ||
npm install @mermaid-js/[email protected] | ||
|
||
cd docs | ||
npm ci | ||
|
||
# While official docs may use "npx antora antora-playbook.yml", it seems that fetches from develop or master. | ||
# In the case of PRs, the local version should be used instead. | ||
# npx antora local-antora-playbook.yml | ||
# npx antora --log-level debug antora-playbook.yml --attribute branchesarray=HEAD | ||
npx antora antora-playbook.yml --attribute branchesarray=HEAD |
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,5 @@ | ||
#!/bin/bash | ||
|
||
set -xe | ||
echo "export PATH_TO_DOCS=docs/build/site" >> jenkinsjobinfo.sh | ||
echo "export PRTEST=prtest2" >> jenkinsjobinfo.sh |