-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2208 from iotaledger/develop
- Loading branch information
Showing
33 changed files
with
12,410 additions
and
2,798 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 |
---|---|---|
@@ -1,43 +1,21 @@ | ||
name: Test Docs Wiki Build | ||
name: Test Docs Build | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- develop | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
checks: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '16.x' | ||
- name: Install dependencies | ||
run: | | ||
cd documentation | ||
npm ci | ||
- name: Setup Wiki and Test Build | ||
- uses: actions/checkout@v3 | ||
- name: Test Build | ||
run: | | ||
# Move into the documentation folder | ||
cd documentation | ||
# Export this projects configuration as a variable | ||
export config=$(cat EXTERNAL_DOCS_CONFIG) | ||
# Set up the wiki using iota wiki cli. This will clone the wiki repository as well the current repository | ||
npm run setup | ||
# Sync the PRs static content with the freshly created wiki instance | ||
rsync -av --progress ./static/img/ ./local-wiki/iota-wiki/static/img/ | ||
cd ../ | ||
# Sync the PR content with the freshly created wiki instance | ||
rsync -av --progress ./ ./documentation/local-wiki/iota-wiki/external/goshimmer --exclude .git --exclude node_modules --exclude local-wiki | ||
# Change directory into the wiki | ||
cd documentation/local-wiki/iota-wiki | ||
# Install docusaurus and it's dependencies | ||
yarn | ||
# Replace the configuration placeholder with the configuration variable text | ||
export replace_string='/\* AUTO GENERATED EXTERNAL DOCS CONFIG \*/' | ||
perl -0pe 's#$ENV{replace_string}#$ENV{config}#' docusaurus.config.js > docusaurus.config.js.cpy | ||
# Replace the existing configuration file with the edited one | ||
rm -f docusaurus.config.js && mv docusaurus.config.js.cpy docusaurus.config.js | ||
sed -i "s+baseUrl: '/',+baseUrl: '/goshimmer/',+g" docusaurus.config.js | ||
# Run the build process to test for any errors | ||
yarn install --immutable | ||
yarn build |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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,3 @@ | ||
nodeLinker: node-modules | ||
|
||
yarnPath: .yarn/releases/yarn-3.2.0.cjs |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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
Oops, something went wrong.