-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: kalpanachinnappan <118010469+kalpanachinnappan@users.noreply.github.com> Co-authored-by: Christopher Ostrouchov <chris.ostrouchov@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: sblair-metrostar <70233904+sblair-metrostar@users.noreply.github.com> Co-authored-by: Scott Blair <sblair@metrostar.com> Co-authored-by: Amit Kumar <dtu.amit@gmail.com> Co-authored-by: Fangchen Li <fangchen.li@outlook.com> Co-authored-by: Travis E. Oliphant <teoliphant@gmail.com> Co-authored-by: Adam Lewis <23342526+Adam-D-Lewis@users.noreply.github.com> Co-authored-by: kenafoster <kfoster@metrostar.com> Co-authored-by: Pavithra Eswaramoorthy <pavithraes@outlook.com> Co-authored-by: Kim Pevey <kcpevey@gmail.com> Co-authored-by: Chuck McAndrew <6248903+dcmcand@users.noreply.github.com>
- Loading branch information
1 parent
6f7a93d
commit a551d4f
Showing
430 changed files
with
12,407 additions
and
12,324 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
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 |
---|---|---|
@@ -0,0 +1,76 @@ | ||
name: Update API docs | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- "src/_nebari/subcommands/**" | ||
- "src/_nebari/cli.py" | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- "src/_nebari/subcommands/**" | ||
- "src/_nebari/cli.py" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
update_api: | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
working-directory: ./docs-sphinx | ||
steps: | ||
- name: Check out repository 🛎️ | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install nebari and docs dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -e "../[docs]" | ||
- name: Generate new API docs | ||
run: | | ||
make html | ||
- name: Copy cli doc | ||
run: | | ||
cp _build/html/cli.html cli.html | ||
- name: Look for changes to generated docs | ||
uses: tj-actions/verify-changed-files@v12 | ||
id: verify-changed-files | ||
with: | ||
files: | | ||
docs-sphinx/cli.html | ||
- name: Create Pull Request in code repo | ||
id: create_pull_request | ||
uses: peter-evans/create-pull-request@v4 | ||
if: steps.verify-changed-files.outputs.files_changed == 'true' && github.event_name != 'pull_request' | ||
with: | ||
token: ${{ secrets.NEBARI_SENSEI_API_DOCS_PR_OPENER }} | ||
commit-message: Update api docs | ||
committer: GitHub <noreply@github.com> | ||
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | ||
signoff: false | ||
branch: auto_cli_doc_update | ||
delete-branch: true | ||
title: '[AUTO] Update CLI doc' | ||
body: | | ||
Update CLI doc | ||
- Auto-generated by [create-pull-request][1] | ||
[1]: https://github.com/peter-evans/create-pull-request | ||
labels: | | ||
"area: documentation 📖" | ||
draft: false | ||
base: ${{ github.head_ref }} |
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
Oops, something went wrong.