Skip to content

Commit

Permalink
Merge pull request #163 from umarcor/doit-docs
Browse files Browse the repository at this point in the history
[doit] add task Documentation
  • Loading branch information
stnolting authored Sep 18, 2021
2 parents 9d3fc2e + 6222857 commit 51f3b86
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 51f3b86

Please sign in to comment.