-
Notifications
You must be signed in to change notification settings - Fork 659
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
[docs] update docs.yml and docs workflow to support versioning #3365
Conversation
4e9c6bf
to
0023085
Compare
.github/workflows/docs.yml
Outdated
- name: Configure Deployment AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: us-east-2 | ||
|
||
- name: Build docs website | ||
run: tools/scripts/build-website.sh "${{ github.event.inputs.version-number || 'master' }}" |
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.
build-website doesn't need aws credentials, why move to here?
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.
I am working on section in build-website that would download the previous versions.json and then prepend the new version info to it. I moved the aws credentials up to download the versions.json file
tools/scripts/build-website.sh
Outdated
git checkout gh-pages | ||
|
||
echo "Attempting to update versions.json" | ||
aws s3 cp s3://djl-ai/documentation/nightly/versions.json . |
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.
- Can we just generate this
versions.json
file without download it? - We don't need use awscli to download it, we can use curl:
curl -O https://docs.djl.ai/versions.json
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.
Probably, I'll look into using curl, I am unfamiliar with it
Chages to mkdocs.yml
Changes to docs workflow
Changes to build-website.sh
Testing:
TODO