-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revise documentation deployment (#365)
Uses built-in Jekyll to publish to Github pages. Refines FORD processing.
- Loading branch information
1 parent
e74fdbc
commit 63b5468
Showing
26 changed files
with
39 additions
and
69 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 |
---|---|---|
|
@@ -8,83 +8,47 @@ on: | |
|
||
jobs: | ||
Build: | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
# | ||
# Checks-out repository under $GITHUB_WORKSPACE | ||
# | ||
- uses: actions/checkout@v4 | ||
# | ||
# Synchronize the package index | ||
# | ||
- name: Synchronize the package index | ||
run: sudo apt-get update | ||
# | ||
# Install dependencies | ||
# | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install graphviz | ||
sudo pip install 'markdown<3.4' ford | ||
# | ||
# Install Ruby | ||
# | ||
- name: Install Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 3.1 | ||
# | ||
# Install Jekyll | ||
# | ||
- name: Install Jekyll | ||
run: | | ||
cd doc/jekyll_site | ||
sudo gem install bundler jekyll | ||
bundle update | ||
# | ||
# Build documentation | ||
# | ||
- name: Build Documentation | ||
- name: Build FORD files | ||
id: build | ||
run: | | ||
cd doc | ||
./build_documentation.sh -ci | ||
# | ||
# Upload documentation | ||
# | ||
- name: Upload Documentation | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: documentation | ||
path: public/ | ||
if-no-files-found: error | ||
# | ||
# Check broken links | ||
# | ||
- name: Broken Link Check | ||
if: ${{ github.ref == 'refs/heads/main'}} | ||
uses: technote-space/broken-link-checker-action@v2 | ||
with: | ||
TARGET: file://${{ github.workspace }}/doc/ford_site/pages/index.html | ||
RECURSIVE: true | ||
ASSIGNEES: ${{ github.actor }} | ||
cd docs | ||
ford ford_templates/rrtmgp-fortran-interface.md | ||
ford ford_templates/rrtmgp-kernels.md | ||
ford ford_templates/rte-fortran-interface.md | ||
ford ford_templates/rte-kernels.md | ||
# | ||
# Deploy | ||
# | ||
- name: Deploy to Github Pages root | ||
- name: Deploy to Github Pages | ||
uses: JamesIves/[email protected] | ||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | ||
with: | ||
branch: gh-pages | ||
folder: public/ | ||
folder: docs/ | ||
|
||
# | ||
# Deploy documentation (can add target-folder) | ||
# Won't run on pull requests or push unless a new branch is added to the on: section | ||
# | ||
- name: Deploy to Github Pages folder | ||
# | ||
# Deploy from workflow dispatch | ||
# | ||
- name: Deploy to Github Pages from workflow_dispatch | ||
uses: JamesIves/[email protected] | ||
if: ${{ github.event_name == 'push' && github.ref != 'refs/heads/main' }} | ||
if: ${{ github.event_name == 'workflow_dispatch' }} | ||
with: | ||
branch: gh-pages | ||
folder: public/ | ||
target-folder: staging/ | ||
folder: docs/ |
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 |
---|---|---|
|
@@ -5,3 +5,4 @@ _site | |
.bundle | ||
vendor | ||
Gemfile.lock | ||
**/.DS_Store |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 2 additions & 3 deletions
5
doc/ford_site/rrtmgp-fortran-interface.md → ...ord_templates/rrtmgp-fortran-interface.md
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
9 changes: 5 additions & 4 deletions
9
doc/ford_site/rrtmgp-kernels.md → docs/ford_templates/rrtmgp-kernels.md
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
5 changes: 2 additions & 3 deletions
5
doc/ford_site/rte-fortran-interface.md → docs/ford_templates/rte-fortran-interface.md
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
9 changes: 5 additions & 4 deletions
9
doc/ford_site/rte-kernels.md → docs/ford_templates/rte-kernels.md
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.