Skip to content

Commit

Permalink
Merge pull request #2279 from opencobra/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
rmtfleming authored Aug 28, 2024
2 parents d906aa3 + 5f030fa commit 7b17829
Show file tree
Hide file tree
Showing 243 changed files with 56,121 additions and 2,212 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/UpdateContributors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Update Contributors list

on:
pull_request_target:
types:
- closed
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Install dependencies
working-directory: ./docs/source/Contributions
run: |
pip install -r requirements.txt
- name: Update contributors
working-directory: ./docs/source/Contributions
run: |
python UpdateContributorsList.py
- name: generate HTML file
working-directory: ./docs/source/Contributions
run: |
python GenerateContributorsHTML.py
- name: Deploy to latest/gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/source/Contributions/contributors
publish_branch: gh-pages
keep_files: true
destination_dir: latest
- name: Deploy to stable/gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/source/Contributions/contributors
publish_branch: gh-pages
keep_files: true
destination_dir: stable


57 changes: 54 additions & 3 deletions .github/workflows/UpdateFunctionDocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
branches: [ master ]
jobs:
build:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest

steps:
Expand All @@ -20,14 +19,66 @@ jobs:
working-directory: ./docs
run: |
pip install -r requirements.txt
- name: Generate publications rst file
working-directory: ./docs/source/sphinxext
run: |
python GenerateCitationsRST.py
- name: Update packages
working-directory: ./docs/source
run: |
python ./sphinxext/copy_files.py
- name: Generate functions rst files
working-directory: ./docs/source/modules
run: |
python ./GetRSTfiles.py
- name: generate documentation
working-directory: ./docs
run: |
make html
- name: Deploy
- name: Copy the citations html page
run: |
cp ./docs/build/html/citations.html ./docs/source/Citations/citations.html
- name: Deploy the function modules in the latest site
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ./docs/build/html/modules
branch: gh-pages
target-folder: latest/modules

- name: Deploy the function modules in the stable site
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ./docs/build/html/modules
branch: gh-pages
target-folder: stable/modules
- name: Deploy the citations page in latest site
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/source/Citations
publish_branch: gh-pages
keep_files: true
destination_dir: latest
- name: Deploy the citations static page in latest site
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build/html/_static
publish_branch: gh-pages
keep_files: true
destination_dir: latest/_static
- name: Deploy the citations page in stable site
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/source/Citations
publish_branch: gh-pages
keep_files: true
destination_dir: stable
- name: Deploy the citations static page in stable site
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build/html/_static
publish_branch: gh-pages
keep_files: true
destination_dir: stable/_static
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 7b17829

Please sign in to comment.