Skip to content

Commit

Permalink
Update gh-pages with a circleci job (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdahm authored Nov 28, 2022
1 parent fefdd8a commit 3917938
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,39 @@ jobs:
name: Test notebooks
command: make test_notebooks

push_docs:
docker:
- image: cimg/python:3.8
steps:
- checkout
- run:
name: Update Submodules
command: git submodule update --init
- setup_environment_mpi
- run:
name: Install doc requirements
command: |
. venv/bin/activate
pip install -r requirements_docs.txt -c constraints.txt
- run:
name: Make docs
command: |
. venv/bin/activate
make docs
- run:
name: Move into place
command: |
git clone --branch gh-pages [email protected]:ai2cm/pace.git gh-pages
rm -rf gh-pages/docs
mv docs/_build/html gh-pages/docs
touch gh-pages/docs/.nojekyll
hash=$(git rev-parse --short HEAD)
git config --global user.name "CircleCI"
git config --global user.email "[email protected]"
git -C gh-pages add docs/
git -C gh-pages commit -a -m "Docs for $hash"
git -C gh-pages push
workflows:
version: 2
tagged-build:
Expand Down Expand Up @@ -598,3 +631,10 @@ workflows:
filters:
tags:
only: /^v.*/
- push_docs:
filters:
tags:
only: /^v.*/
branches:
only:
- main
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,6 @@ _dacegraphs
**/testing/output/*
*.png
*.nc

# VSCode
.devcontainer/
1 change: 1 addition & 0 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ We recommend creating a python `venv` or conda environment specifically for Pace
Inside of your pace `venv` or conda environment pip install the Python requirements, GT4Py, and Pace:

.. code-block:: console
$ pip3 install -r requirements_dev.txt -c constraints.txt
There are also separate requirements files which can be installed for linting (`requirements_lint.txt`) and building documentation (`requirements_docs.txt`).

0 comments on commit 3917938

Please sign in to comment.