Skip to content

Commit

Permalink
feat(docs): implement docs task (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
luismayta committed Dec 30, 2024
1 parent 0e1eb7b commit 453ba03
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
version: "3"

tasks:
check:
desc: Exist mkdocs and grip dependences
run: once
deps:
- task: check:python
- task: check:poetry
- task: check:mkdocs
- task: check:grip

check:python:
desc: Exist Python
run: once
preconditions:
- sh: command -v python
msg: "Please Install python"

check:poetry:
desc: Exist Poetry
run: once
preconditions:
- sh: command -v poetry
msg: "Please Install poetry"

check:mkdocs:
desc: Exist mkdocs
run: once
preconditions:
- sh: test "poetry run command -v mkdocs"
msg: "Please Install mkdocs"

check:grip:
desc: Exist grip
run: once
preconditions:
- sh: test "poetry run command -v grip"
msg: "Please Install grip"

show:
desc: Show grip readme.
run: once
cmds:
- poetry run grip
deps:
- task: check:grip

build:
desc: Build documentation with mkdocs.
run: once
cmds:
- poetry run mkdocs build
deps:
- task: check:mkdocs

serve:
desc: Server make documentation.
run: once
cmds:
- poetry run mkdocs serve --dev-addr '127.0.0.1:8001'
deps:
- task: check:mkdocs

0 comments on commit 453ba03

Please sign in to comment.