-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Co-authored-by: George McCabe <[email protected]> Co-authored-by: George McCabe <[email protected]> Co-authored-by: j-opatz <[email protected]> Co-authored-by: jprestop <[email protected]> Co-authored-by: John Halley Gotway <[email protected]>
- Loading branch information
1 parent
f3bbc32
commit 1b3776c
Showing
92 changed files
with
1,678 additions
and
1,000 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#! /bin/bash | ||
|
||
# path to docs directory relative to top level of repository | ||
# $GITHUB_WORKSPACE is set if the actions/checkout@v2 action is run first | ||
|
||
DOCS_DIR=${GITHUB_WORKSPACE}/docs | ||
|
||
# run Make to build the documentation and return to previous directory | ||
cd ${DOCS_DIR} | ||
make clean html | ||
cd - | ||
|
||
# copy HTML output into directory to create an artifact | ||
mkdir -p artifact/documentation | ||
cp -r ${DOCS_DIR}/_build/html/* artifact/documentation | ||
|
||
# check if the warnings.log file is empty | ||
# Copy it into the artifact and documeentation directories | ||
# so it will be available in the artifacts | ||
warning_file=${DOCS_DIR}/_build/warnings.log | ||
if [ -s $warning_file ]; then | ||
cp -r ${DOCS_DIR}/_build/warnings.log artifact/doc_warnings.log | ||
cp artifact/doc_warnings.log artifact/documentation | ||
fi |
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,39 @@ | ||
name: Documentation Workflow | ||
on: | ||
push: | ||
branches: | ||
- develop | ||
- develop-ref | ||
- feature_* | ||
- main_* | ||
- bugfix_* | ||
paths: | ||
- docs/** | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
|
||
jobs: | ||
documentation: | ||
name: Documentation | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.6' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade sphinx sphinx-gallery sphinx_rtd_theme | ||
python -m pip install python-dateutil requests Pillow | ||
- name: Build Documentation | ||
continue-on-error: true | ||
run: ./.github/jobs/build_documentation.sh | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: METplus_documentation | ||
path: artifact/documentation | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: documentation_warnings.log | ||
path: artifact/doc_warnings.log | ||
if-no-files-found: ignore |
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.