-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update sphinx version, update actions and release docs (#812)
* Update actions, sphinx version and build docs for every PR * Add separate action for testing docs * Fix Release documentation * Fix typo in docs workflow Co-authored-by: Patricia Grubel <pagrubel@lanl.gov>
- Loading branch information
Showing
8 changed files
with
68 additions
and
44 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 |
---|---|---|
@@ -1,44 +1,18 @@ | ||
# Based on https://github.com/actions/starter-workflows/blob/main/pages/static.yml | ||
name: Publish docs | ||
name: Build Docs | ||
|
||
on: | ||
workflow_dispatch: {} | ||
push: | ||
branches: [main] | ||
|
||
# Needed for publishing to Github Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: true | ||
branches: [main, develop] | ||
pull_request: | ||
types: [opened, synchronize, edited] | ||
branches: [main, develop] | ||
|
||
jobs: | ||
publish: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
docs: | ||
name: Build Docs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: BEE Install | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install python3 python3-venv curl build-essential \ | ||
zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libsqlite3-dev \ | ||
libreadline-dev libffi-dev libbz2-dev libyaml-dev | ||
curl -sSL https://install.python-poetry.org | python3 - | ||
poetry update | ||
poetry install | ||
- name: Build Docs | ||
run: | | ||
poetry run make -C docs/sphinx html | ||
- name: Upload | ||
uses: actions/upload-pages-artifact@v1 | ||
with: | ||
path: docs/sphinx/_build/html | ||
- name: Publish | ||
id: deployment | ||
uses: actions/deploy-pages@v1 | ||
- uses: actions/checkout@v4 | ||
- name: Install BEE and Build Docs | ||
run: ./ci/docs.sh |
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,35 @@ | ||
# Based on https://github.com/actions/starter-workflows/blob/main/pages/static.yml | ||
name: Publish docs | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
|
||
# Needed for publishing to Github Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
publish: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: BEE Install and Build Docs | ||
run: | | ||
./ci/docs.sh | ||
- name: Upload | ||
uses: actions/upload-pages-artifact@v1 | ||
with: | ||
path: docs/sphinx/_build/html | ||
- name: Publish | ||
id: deployment | ||
uses: actions/deploy-pages@v1 |
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,10 @@ | ||
#!/bin/sh | ||
# Install BEE and build the docs in CI. | ||
sudo apt-get update | ||
sudo apt-get install python3 python3-venv curl build-essential \ | ||
zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libsqlite3-dev \ | ||
libreadline-dev libffi-dev libbz2-dev libyaml-dev | ||
curl -sSL https://install.python-poetry.org | python3 - | ||
poetry update | ||
poetry install | ||
poetry run make -C docs/sphinx 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