Skip to content

Commit

Permalink
feat(taskfile): add targets for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Icikowski committed Jan 6, 2023
1 parent 5741a8e commit a6bec45
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ includes:
dist:
taskfile: ./tasks/dist.yaml
dir: ./dist
docs:
taskfile: ./tasks/docs.yaml
dir: ./docs
23 changes: 23 additions & 0 deletions tasks/docs.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a6bec45

Please sign in to comment.