-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #182 from NREL/update-v2024.6.0
Update to v2024.6.0
- Loading branch information
Showing
1,266 changed files
with
1,477,063 additions
and
4,345,466 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,51 @@ | ||
# this workflow sets up dependencies, builds the documentation, and updates the gh-pages branch | ||
# the gh-pages branch is what's used for GitHub Pages | ||
|
||
name: Documentation | ||
|
||
on: | ||
# Triggers the workflow on push or pull request events but only for the "main" branch | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install sphinx==7.2.6 | ||
pip install myst-parser==2.0.0 | ||
pip install sphinx_rtd_theme==2.0.0 | ||
pip install pandas | ||
pip install argparse | ||
- name: Set variables for public github repo | ||
run: | | ||
echo "BASE_URL=https://github.com/NREL/ReEDS-2.0" >> $GITHUB_ENV | ||
cd ${GITHUB_WORKSPACE}/docs/source/documentation_tools/ | ||
sh generate_sources_md_file.sh | ||
cd ${GITHUB_WORKSPACE} | ||
python docs/source/documentation_tools/generate_markdown.py --githubURL "https://github.com/NREL/ReEDS-2.0/blob/main" --reedsPath "${GITHUB_WORKSPACE}" | ||
- name: Build Sphinx documentation | ||
run: sphinx-build docs/source docs/build/ | ||
|
||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: docs/build |
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.