-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* New Website * Fix kepler example in website * Add website action * What's new
- Loading branch information
1 parent
e65f573
commit 19e4303
Showing
47 changed files
with
8,014 additions
and
15,544 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,58 @@ | ||
name: website | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*-release' | ||
|
||
jobs: | ||
check_branch: | ||
runs-on: ubuntu-22.04 | ||
outputs: | ||
should_deploy: ${{ endsWith(github.ref, steps.get_version.outputs.latest) }} | ||
|
||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
|
||
- name: Get version | ||
id: get_version | ||
run: | | ||
LATEST=$(npm show hubble.gl version | grep -o -E "^[0-9]+\.[0-9]+") | ||
echo "latest=${LATEST}-release" >> "$GITHUB_OUTPUT" | ||
deploy: | ||
runs-on: ubuntu-22.04 | ||
needs: check_branch | ||
|
||
permissions: | ||
contents: write | ||
|
||
if: ${{ github.repository_owner == 'visgl' && needs.check_branch.outputs.should_deploy }} | ||
|
||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
token: ${{ secrets.WEBSITE_DEPLOY_TOKEN }} | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 | ||
with: | ||
node-version: '18.x' | ||
|
||
- name: Install dependencies | ||
run: | | ||
yarn bootstrap | ||
(cd website && yarn) | ||
- name: Build website | ||
env: | ||
MapboxAccessToken: ${{ secrets.MAPBOX_ACCESS_TOKEN }} | ||
run: (cd website && yarn build) | ||
|
||
- name: Deploy | ||
uses: JamesIves/github-pages-deploy-action@132898c54c57c7cc6b80eb3a89968de8fc283505 # 3.7.1 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BRANCH: gh-pages | ||
FOLDER: website/build | ||
CLEAN: true |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,88 +1,60 @@ | ||
{ | ||
"id": "table-of-contents", | ||
"chapters": [ | ||
{ | ||
"title": "Overview", | ||
"entries": [ | ||
{ | ||
"entry": "docs" | ||
}, | ||
{ | ||
"entry": "docs/whats-new" | ||
} | ||
] | ||
}, | ||
{ | ||
"title": "Guide Book", | ||
"entries": [ | ||
{ | ||
"entry": "docs/convert-video" | ||
}, | ||
{ | ||
"entry": "docs/post-processing" | ||
} | ||
] | ||
}, | ||
{ | ||
"title": "@hubble.gl/core", | ||
"chapters": [ | ||
{ | ||
"title": "Adapter", | ||
"entries": [ | ||
{ | ||
"entry": "docs/api-reference/deck-adapter" | ||
} | ||
] | ||
}, | ||
{ | ||
"title": "Animations", | ||
"entries": [ | ||
{ | ||
"entry": "docs/api-reference/animations/animation-manager" | ||
} | ||
] | ||
}, | ||
{ | ||
"title": "Keyframes", | ||
"entries": [ | ||
{ | ||
"entry": "docs/api-reference/keyframe" | ||
}, | ||
{ | ||
"entry": "docs/api-reference/keyframe/keyframes" | ||
}, | ||
{ | ||
"entry": "docs/api-reference/keyframe/camera-keyframes" | ||
}, | ||
{ | ||
"entry": "docs/api-reference/keyframe/deck-layer-keyframes" | ||
} | ||
] | ||
}, | ||
{ | ||
"title": "Encoders", | ||
"entries": [ | ||
{ | ||
"entry": "docs/api-reference/encoder" | ||
}, | ||
{ | ||
"entry": "docs/api-reference/encoder/frame-encoder" | ||
}, | ||
{ | ||
"entry": "docs/api-reference/encoder/webm-encoder" | ||
}, | ||
{ | ||
"entry": "docs/api-reference/encoder/gif-encoder" | ||
}, | ||
{ | ||
"entry": "docs/api-reference/encoder/jpeg-sequence-encoder" | ||
}, | ||
{ | ||
"entry": "docs/api-reference/encoder/png-sequence-encoder" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
[ | ||
{ | ||
"type": "category", | ||
"label": "Overview", | ||
"items": [ | ||
"README", | ||
"whats-new" | ||
] | ||
}, | ||
{ | ||
"type": "category", | ||
"label": "Guide Book", | ||
"items": [ | ||
"convert-video", | ||
"post-processing" | ||
] | ||
}, | ||
{ | ||
"type": "category", | ||
"label": "API Reference", | ||
"items": [ | ||
{ | ||
"type": "category", | ||
"label": "Adapters", | ||
"items": [ | ||
"api-reference/deck-adapter" | ||
] | ||
}, | ||
{ | ||
"type": "category", | ||
"label": "Animations", | ||
"items": [ | ||
"api-reference/animations/animation-manager" | ||
] | ||
}, | ||
{ | ||
"type": "category", | ||
"label": "Keyframes", | ||
"items": [ | ||
"api-reference/keyframe/README", | ||
"api-reference/keyframe/keyframes", | ||
"api-reference/keyframe/camera-keyframes", | ||
"api-reference/keyframe/deck-layer-keyframes" | ||
] | ||
}, | ||
{ | ||
"type": "category", | ||
"label": "Encoders", | ||
"items": [ | ||
"api-reference/encoder/README", | ||
"api-reference/encoder/frame-encoder", | ||
"api-reference/encoder/webm-encoder", | ||
"api-reference/encoder/gif-encoder", | ||
"api-reference/encoder/jpeg-sequence-encoder", | ||
"api-reference/encoder/png-sequence-encoder" | ||
] | ||
} | ||
] | ||
} | ||
] |
Oops, something went wrong.