-
Notifications
You must be signed in to change notification settings - Fork 9
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 #334 from dice-group/general_adjustments
Removed conda, updated docs workflow, updated docs
- Loading branch information
Showing
21 changed files
with
177 additions
and
353 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 |
---|---|---|
@@ -1,56 +1,63 @@ | ||
#name: Build docs | ||
# | ||
#on: | ||
# push: | ||
# branches: | ||
# - master | ||
# - develop | ||
# pull_request: | ||
# | ||
#jobs: | ||
# docs: | ||
# runs-on: ubuntu-latest | ||
# strategy: | ||
# max-parallel: 5 | ||
# | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - name: Install tox | ||
# id: install-tox | ||
# run: | | ||
# pip install tox | ||
# echo "tox_version=$(pip list | grep tox | tr -d ' ')" >> $GITHUB_OUTPUT | ||
# - name: prepare required software | ||
# run: | | ||
# # epstopdf & dot & noto-fonts | ||
# sudo apt update && sudo apt install texlive-font-utils graphviz fonts-noto | ||
# - uses: actions/cache@v3 | ||
# with: | ||
# key: ${{ runner.os }}-${{ steps.install-tox.outputs.tox_version }}-docs-${{ hashFiles('environment.yml', 'tox.ini') }} | ||
# path: .tox | ||
# - name: Build docs with tox | ||
# run: | | ||
# tox -o -e docs | ||
# - name: Build latex docs with tox | ||
# run: | | ||
# tox -o -e docs -- latex | ||
# - name: Compile LaTeX document | ||
# uses: docker://texlive/texlive:latest | ||
# with: | ||
# args: make -C docs/_build/latex | ||
# - run: | | ||
# cp docs/_build/latex/ontolearn.pdf docs/_build/html/ | ||
# - name: Deploy to netlify | ||
# uses: nwtgck/actions-netlify@v1.2 | ||
# with: | ||
# publish-dir: 'docs/_build/html' | ||
# production-branch: develop | ||
# github-token: ${{ secrets.GITHUB_TOKEN }} | ||
# deploy-message: "Deploy from GitHub Actions ${{ github.sha }}" | ||
# alias: ${{ github.head_ref }} | ||
# enable-pull-request-comment: false | ||
# enable-commit-comment: false | ||
# env: | ||
# NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | ||
# NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | ||
# timeout-minutes: 5 | ||
name: Build docs | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
pull_request: | ||
|
||
jobs: | ||
docs: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [ "3.9.18" ] | ||
max-parallel: 5 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- name: Prepare required software | ||
run: | | ||
# epstopdf & dot & noto-fonts | ||
sudo apt update && sudo apt install texlive-font-utils graphviz fonts-noto\ | ||
- name: Build docs | ||
run: | | ||
sphinx-build -M html docs/ docs/_build/ | ||
- name: Build LaTeX docs | ||
run: | | ||
sphinx-build -M latex docs/ docs/_build/ | ||
- name: Compile LaTeX document | ||
uses: docker://texlive/texlive:latest | ||
with: | ||
args: make -C docs/_build/latex | ||
- run: | | ||
cp docs/_build/latex/ontolearn.pdf docs/_build/html/ | ||
- name: Deploy to netlify | ||
uses: nwtgck/actions-netlify@v1.2 | ||
with: | ||
publish-dir: 'docs/_build/html' | ||
production-branch: develop | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
deploy-message: "Deploy from GitHub Actions ${{ github.sha }}" | ||
alias: ${{ github.head_ref }} | ||
enable-pull-request-comment: false | ||
enable-commit-comment: false | ||
env: | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | ||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | ||
timeout-minutes: 5 |
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 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 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
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.