Skip to content

Commit

Permalink
[doit] add task Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
umarcor committed Sep 18, 2021
1 parent 9d3fc2e commit 6222857
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/Documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,11 @@ jobs:
with:
fetch-depth: 0

- name: '🐍 Install doit'
run: pip install doit

- name: '📚 Build Datasheet and User Guide (PDF and HTML)'
run: make -C docs container
run: ./do.py Documentation container

- name: '📤 Upload Artifact: HTML'
uses: actions/upload-artifact@v2
Expand Down
9 changes: 9 additions & 0 deletions do.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@
ROOT = Path(__file__).parent


def task_Documentation():
return {
"actions": ["make -C docs {posargs}"],
"doc": "Run a target in subdir 'doc'",
"uptodate": [False],
"pos_arg": "posargs",
}


def task_DeployToGitHubPages():
cwd = str(ROOT / "public")
return {
Expand Down

0 comments on commit 6222857

Please sign in to comment.