-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up docs build for automation (#81)
* Automate doc deployment * And conda environment * remove old build files
- Loading branch information
Showing
481 changed files
with
174 additions
and
1,766,642 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,43 @@ | ||
name: Build and Deploy Documentation | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
fetch-depth: 0 | ||
|
||
- name: Setup Conda Environment | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
activate-environment: mhkit-docs | ||
environment-file: environment.yml | ||
auto-activate-base: false | ||
|
||
- name: Build Documentation | ||
shell: bash -l {0} | ||
run: | | ||
cd docs | ||
rm -rf _build/* | ||
sphinx-build -b html source _build/html | ||
# Create .nojekyll file to prevent GitHub Pages from ignoring files that begin with an underscore | ||
touch _build/html/.nojekyll | ||
- name: Deploy to GitHub Pages | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./docs/_build/html | ||
force_orphan: true | ||
enable_jekyll: false | ||
full_commit_message: ${{ github.event.head_commit.message }} |
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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
# File Types | ||
.buildinfo | ||
*.tws | ||
# Documentation builds | ||
docs/_build/ | ||
docs/doctrees/ | ||
|
||
# Backup files | ||
*~ | ||
*.swp | ||
*.tws | ||
.buildinfo | ||
.buildinfo.bak | ||
|
||
|
||
# Directories | ||
*/latex/* | ||
# IDE settings | ||
*/.vscode/* | ||
|
||
# Other | ||
issues.md | ||
|
||
docs/doctrees | ||
docs/.doctrees |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.