diff --git a/Taskfile.yaml b/Taskfile.yaml index 3ded199..8a63a95 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -18,3 +18,6 @@ includes: dist: taskfile: ./tasks/dist.yaml dir: ./dist + docs: + taskfile: ./tasks/docs.yaml + dir: ./docs diff --git a/tasks/docs.yaml b/tasks/docs.yaml new file mode 100644 index 0000000..8a41b51 --- /dev/null +++ b/tasks/docs.yaml @@ -0,0 +1,23 @@ +version: '3' + +tasks: + requirements: + desc: Download and install required pip packages + cmds: + - pip install -U -r requirements.txt + serve: + desc: Serve documentation + cmds: + - mkdocs serve + build: + desc: Build documentation + cmds: + - mkdocs build -d ../target/docs + deploy-release: + desc: Deploy release documentation to GitHub Pages + cmds: + - mike deploy --push --update-aliases {{ .GIT_TAG }} latest + deploy-dev: + desc: Deploy development documentation to GitHub Pages + cmds: + - mike deploy --push dev