-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of https://github.com/dice-group/dice-embeddings…
… into documentation
- Loading branch information
Showing
52 changed files
with
3,016 additions
and
1,698 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
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,33 +1,56 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
name: Build docs | ||
|
||
name: Build-sphinx-docs | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
- documentation # just for testing | ||
pull_request: | ||
|
||
on: [push,pull_request] | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
jobs: | ||
docs: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [ "3.10.11" ] | ||
max-parallel: 5 | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python 3.9.18 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.9.18" | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
# # pip install -r requirements.txt | ||
|
||
- name: Build HTML and import | ||
run: | | ||
# sphinx-apidoc -o docs dicee/ && make -C docs/ html && ghp-import -n -p -f docs/_build/html | ||
|
||
|
||
- 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 | ||
- name: Copy Latex pdf to ./html | ||
run: | | ||
cp docs/_build/latex/diceembeddings.pdf docs/_build/html/ | ||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: 'docs/_build/html' |
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.