-
-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add version switcher #827
Open
philippjfr
wants to merge
9
commits into
main
Choose a base branch
from
version_switcher
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add version switcher #827
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
0fa2e41
Add version switcher
philippjfr 6674e8f
Small fixes
philippjfr 1153cfd
Ensure add_version does not error out
philippjfr 30ce664
Add switcher.json
philippjfr 679563d
Fix paths
philippjfr 9e14088
Add version_match
philippjfr dd9a565
Define AWS region
philippjfr ab76cf6
Attempt to use custom action
philippjfr 80d934f
Fix version
philippjfr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -37,7 +37,9 @@ jobs: | |
python-version: '3.9' | ||
- name: Set output | ||
id: vars | ||
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT | ||
run: | | ||
echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT | ||
echo "path=en/${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT | ||
- name: graphviz | ||
run: sudo apt install graphviz graphviz-dev | ||
- name: env setup | ||
|
@@ -46,16 +48,18 @@ jobs: | |
python -m pip install hatch | ||
- name: build docs | ||
run: hatch -v run docs:build | ||
- name: Deploy dev | ||
uses: peaceiris/actions-gh-pages@v3 | ||
|
||
- uses: shallwefootball/[email protected] | ||
if: | | ||
(github.event_name == 'workflow_dispatch' && github.event.inputs.target == 'dev') || | ||
(github.event_name == 'push' && (contains(steps.vars.outputs.tag, 'a') || contains(steps.vars.outputs.tag, 'b') || contains(steps.vars.outputs.tag, 'rc'))) | ||
name: Upload Dev Docs to S3 | ||
with: | ||
personal_token: ${{ secrets.ACCESS_TOKEN }} | ||
external_repository: holoviz-dev/param | ||
publish_dir: ./builtdocs | ||
force_orphan: true | ||
aws_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws_bucket: param.holoviz.org | ||
source_dir: ./builtdocs | ||
destination_dir: ${{ steps.vars.outputs.path }} | ||
- name: Deploy main | ||
if: | | ||
(github.event_name == 'workflow_dispatch' && github.event.inputs.target == 'main') || | ||
|
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[ | ||
{ | ||
"name": "latest", | ||
"url": "https://param.holoviz.org/en/latest/" | ||
}, | ||
{ | ||
"name": "Version 2.0.0 RC2", | ||
"version": "v2.0.0rc2", | ||
"url": "https://param.holoviz.org/en/2.0.0rc2/" | ||
} | ||
] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this file manually written, or will it be auto-updated over time?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something will have to commit an update to the file. Will see what bokeh does.