[doit] add task Documentation

This commit is contained in:
umarcor 2021-09-18 05:39:07 +02:00
parent 9d3fc2e1da
commit 6222857465
2 changed files with 13 additions and 1 deletions

View file

@ -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

9
do.py
View file

@ -15,6 +15,15 @@ DOIT_CONFIG = {"verbosity": 2, "action_string_formatting": "both"}
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 {