Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG, ENH] Update tutorial and documentation #162

Merged
merged 16 commits into from
Apr 19, 2022
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/[email protected]
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