Skip to content

Commit

Permalink
update docs check for jb
Browse files Browse the repository at this point in the history
  • Loading branch information
jdebacker committed Jul 17, 2024
1 parent 04495d0 commit 7f106db
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/check_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,12 @@ jobs:
with:
activate-environment: cge_env
environment-file: environment.yml
python-version: 3.7
python-version: 3.12
auto-activate-base: false

- name: Install and Build # install Sphinx and build docs
- name: Build # Build Jupyter Book
shell: bash -l {0}
run: |
conda install sphinx
conda list
pip install -e .
cd docs
make html
python -m ipykernel install --user --name=cge_env
jb build ./docs/book
12 changes: 5 additions & 7 deletions .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,19 @@ jobs:
with:
activate-environment: cge_env
environment-file: environment.yml
python-version: 3.7
python-version: 3.12
auto-activate-base: false

- name: Install and Build # install Sphinx and build docs
- name: Build # Build Jupyter Book
shell: bash -l {0}
run: |
conda install sphinx
conda list
pip install -e .
cd docs
make html
python -m ipykernel install --user --name=cge_env
jb build ./docs/book
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: docs/build/html # The folder the action should deploy.
FOLDER: docs/book/_build/html # The folder the action should deploy.

0 comments on commit 7f106db

Please sign in to comment.