-
Notifications
You must be signed in to change notification settings - Fork 8
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
0 parents
commit fcaa5e7
Showing
622 changed files
with
157,667 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 @@ | ||
name: GitHub Pages Deploy | ||
on: | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.x | ||
- name: Setup Python | ||
run: | | ||
python -m venv ./venv --clear | ||
source ./venv/bin/activate | ||
pip install -r ./requirements.txt | ||
- name: Build and Deploy | ||
run: | | ||
source ./venv/bin/activate | ||
./build.sh | ||
- name: Deploy to GH Pages | ||
run: | | ||
pip install ghp-import | ||
ghp-import --push --force --no-history --no-jekyll \ | ||
--message="Deployed $(git rev-parse --short HEAD)" \ | ||
./docs/ |
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,44 @@ | ||
name: Pull Request Build | ||
|
||
on: | ||
pull_request: | ||
branches: [master] | ||
types: [opened, synchronize, reopened] | ||
|
||
concurrency: | ||
group: pr-build-${{ github.ref }} | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
preview: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout PR | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.x | ||
|
||
- name: Setup Python | ||
run: | | ||
python -m venv ./venv --clear | ||
source ./venv/bin/activate | ||
pip install -r ./requirements.txt | ||
- name: Build docs | ||
run: | | ||
source ./venv/bin/activate | ||
bash ./build.sh | ||
- name: Save PR Number | ||
run: echo ${{ github.event.number }} > ./docs/pr-number.txt | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-artifact@v2 | ||
if: success() | ||
with: | ||
name: site | ||
path: ./docs/ | ||
if-no-files-found: error |
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,78 @@ | ||
name: Pull Request Deploy | ||
|
||
# Based on the surge deploy script at https://github.com/ant-design/ant-design-pro | ||
|
||
on: | ||
workflow_run: | ||
workflows: | ||
- "Pull Request Build" | ||
types: | ||
- completed | ||
|
||
concurrency: | ||
group: pr-build-${{ github.ref }} | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
preview: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' }} | ||
|
||
steps: | ||
- name: Download Artifact | ||
uses: dawidd6/action-download-artifact@v2 | ||
with: | ||
workflow: ${{ github.event.workflow_run.workflow_id }} | ||
name: site | ||
path: ./docs/ | ||
|
||
- name: Get PR Number | ||
id: pr | ||
run: echo "::set-output name=id::$(< ./docs/pr-number.txt)" | ||
|
||
- name: Create Redirect | ||
run: | | ||
mkdir site | ||
echo "<html><body><div>Redirecting... <a href=\"/docs\">Click Here</a></div><script>window.location = \"/docs\";</script></body></html>" > ./site/index.html | ||
- name: Setup NPM | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 8 | ||
|
||
- name: Install Surge | ||
run: npm install -g surge | ||
|
||
- name: Deploy Surge | ||
run: | | ||
mv docs site/docs | ||
surge ./site/ https://chunky-dev-docs-pr-${{ steps.pr.outputs.id }}.surge.sh --token ${{ secrets.SURGE_TOKEN }} | ||
- name: Update Comment - Success | ||
uses: actions-cool/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
body: | | ||
🎉 PR Preview has been sucessfully built and deployed to https://chunky-dev-docs-pr-${{ steps.pr.outputs.id }}.surge.sh | ||
<a href="https://chunky-dev-docs-pr-${{ steps.pr.outputs.id }}.surge.sh"> | ||
<img width="300" src="https://user-images.githubusercontent.com/507615/90250366-88233900-de6e-11ea-95a5-84f0762ffd39.png"> | ||
</a> | ||
<!-- Sticky Pull Request Comment --> | ||
body-include: "<!-- Sticky Pull Request Comment -->" | ||
number: ${{ steps.pr.outputs.id }} | ||
|
||
- name: Update Comment - Fail | ||
if: ${{ failure() }} | ||
uses: actions-cool/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
body: | | ||
😭 PR Preview deployment failed. | ||
<img width="300" src="https://user-images.githubusercontent.com/507615/90250824-4e066700-de6f-11ea-8230-600ecc3d6a6b.png"> | ||
<!-- Sticky Pull Request Comment --> | ||
body-include: "<!-- Sticky Pull Request Comment -->" | ||
number: ${{ steps.pr.outputs.id }} |
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,38 @@ | ||
name: Pull Request Teardown | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- closed | ||
|
||
concurrency: | ||
group: pr-build-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
teardown: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Setup NPM | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 8 | ||
|
||
- name: Install Surge | ||
run: npm install -g surge | ||
|
||
- name: Teardown Surge | ||
run: | | ||
surge teardown https://chunky-dev-docs-pr-${{ github.event.pull_request.number }}.surge.sh --token ${{ secrets.SURGE_TOKEN }} || true | ||
- name: Update Comment | ||
uses: actions-cool/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
body: | | ||
PR Preview has been destroyed since this PR is closed. | ||
<!-- Sticky Pull Request Comment --> | ||
body-include: "<!-- Sticky Pull Request Comment -->" | ||
number: ${{ github.event.pull_request.number }} |
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 @@ | ||
.idea | ||
/docs | ||
__pycache__ |
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,15 @@ | ||
|
||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Redirecting...</title> | ||
<link rel="canonical" href="../reference/user_interface/chunky/map/"> | ||
<meta name="robots" content="noindex"> | ||
<script>var anchor=window.location.hash.substr(1);location.href="../reference/user_interface/chunky/map/"+(anchor?"#"+anchor:"")</script> | ||
<meta http-equiv="refresh" content="0; url=../reference/user_interface/chunky/map/"> | ||
</head> | ||
<body> | ||
Redirecting... | ||
</body> | ||
</html> |
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,15 @@ | ||
|
||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Redirecting...</title> | ||
<link rel="canonical" href="../reference/user_interface/chunky/render_controls/scene/"> | ||
<meta name="robots" content="noindex"> | ||
<script>var anchor=window.location.hash.substr(1);location.href="../reference/user_interface/chunky/render_controls/scene/"+(anchor?"#"+anchor:"")</script> | ||
<meta http-equiv="refresh" content="0; url=../reference/user_interface/chunky/render_controls/scene/"> | ||
</head> | ||
<body> | ||
Redirecting... | ||
</body> | ||
</html> |
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,15 @@ | ||
|
||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Redirecting...</title> | ||
<link rel="canonical" href="../reference/user_interface/chunky/right_panel_controls/chunks/"> | ||
<meta name="robots" content="noindex"> | ||
<script>var anchor=window.location.hash.substr(1);location.href="../reference/user_interface/chunky/right_panel_controls/chunks/"+(anchor?"#"+anchor:"")</script> | ||
<meta http-equiv="refresh" content="0; url=../reference/user_interface/chunky/right_panel_controls/chunks/"> | ||
</head> | ||
<body> | ||
Redirecting... | ||
</body> | ||
</html> |
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,15 @@ | ||
|
||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Redirecting...</title> | ||
<link rel="canonical" href="../reference/user_interface/chunky/right_panel_controls/map_view/"> | ||
<meta name="robots" content="noindex"> | ||
<script>var anchor=window.location.hash.substr(1);location.href="../reference/user_interface/chunky/right_panel_controls/map_view/"+(anchor?"#"+anchor:"")</script> | ||
<meta http-equiv="refresh" content="0; url=../reference/user_interface/chunky/right_panel_controls/map_view/"> | ||
</head> | ||
<body> | ||
Redirecting... | ||
</body> | ||
</html> |
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,15 @@ | ||
|
||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Redirecting...</title> | ||
<link rel="canonical" href="../reference/user_interface/chunky/right_panel_controls/map_view/"> | ||
<meta name="robots" content="noindex"> | ||
<script>var anchor=window.location.hash.substr(1);location.href="../reference/user_interface/chunky/right_panel_controls/map_view/"+(anchor?"#"+anchor:"")</script> | ||
<meta http-equiv="refresh" content="0; url=../reference/user_interface/chunky/right_panel_controls/map_view/"> | ||
</head> | ||
<body> | ||
Redirecting... | ||
</body> | ||
</html> |
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,15 @@ | ||
|
||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Redirecting...</title> | ||
<link rel="canonical" href="../reference/user_interface/chunky/right_panel_controls/options/"> | ||
<meta name="robots" content="noindex"> | ||
<script>var anchor=window.location.hash.substr(1);location.href="../reference/user_interface/chunky/right_panel_controls/options/"+(anchor?"#"+anchor:"")</script> | ||
<meta http-equiv="refresh" content="0; url=../reference/user_interface/chunky/right_panel_controls/options/"> | ||
</head> | ||
<body> | ||
Redirecting... | ||
</body> | ||
</html> |
Oops, something went wrong.