Skip to content

Commit

Permalink
Merge pull request #162 from SamGuay/update-doc
Browse files Browse the repository at this point in the history
[BUG, ENH] Update tutorial and documentation
  • Loading branch information
arnaudbore authored Apr 19, 2022
2 parents 7c5e2f2 + 160cb59 commit fb5b05f
Show file tree
Hide file tree
Showing 31 changed files with 2,196 additions and 465 deletions.
62 changes: 39 additions & 23 deletions .github/workflows/publish_doc.yaml
Original file line number Diff line number Diff line change
@@ -1,30 +1,46 @@
name: Publish documentation

on: [push]
on:
push:
branches:
- master
pull_request:

jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Upgrade pip
run: |
# install pip=>20.1 to use "pip cache dir"
python3 -m pip install --upgrade pip
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
- name: Get pip cache dir
id: pip-cache
run: echo "::set-output name=dir::$(pip cache dir)"

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
- name: run portray
run: |
portray as_html
- name: Deploy to gh-pages branch
uses: peaceiris/actions-gh-pages@v3.7.3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements-dev.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: python3 -m pip install -r ./requirements-dev.txt

- name: run portray
run: |
portray as_html
- name: Deploy to gh-pages branch
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/master' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site
Binary file removed art/dcm_qa_nih_repo.png
Binary file not shown.
84 changes: 0 additions & 84 deletions docs/1-usage.md

This file was deleted.

182 changes: 0 additions & 182 deletions docs/2-tutorial.md

This file was deleted.

Loading

0 comments on commit fb5b05f

Please sign in to comment.