πΊοΈ Be able to export a Taskfile to markdown documentation w. mermaid dependency graph π
#2549
Replies: 9 comments 1 reply
|
You might find this PR interesting #2348, its possible to geneate documentation in any format you want - including MD Doc. |
That inspired me @trulede Made a first try and it seems like it's working , see |
|
I gave it a try on your taskfile (website) :
See by yourself below π Taskfile Workflow DiagramThis content was generated thanks to adriens/task-gomplates. graph TD
build[build]
clean[clean]
default["**default**"]:::defaultNode
deploy:next[deploy:next]
deploy:prod[deploy:prod]
install[install]
lint[lint]
preview[preview]
build -- deps --> install
default -- deps --> install
lint -- deps --> install
preview -- deps --> build
classDef defaultNode fill:#1976D2,color:#fff,stroke:#333,stroke-width:2px;
Task Goals and Descriptions
|
Do you have a taskfile to build yours ? |
|
π |
|
TBH I am hoping @andreynering will agree to make this part of taskfile itself as I don't fancy adding a 3rd party repository dependency just to bake the taskfile dependency graph into my documentation building process. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Description
β About
I use
taska lot, and someimes, I feel the need to :taskfile to non-programmers to explain them a workflow I implemented withtaskπ I only need to export a kind of
javadocortaskdocπ‘ The idea
In addition to
--listoption, would it possible to add the--markdownoption so we could get that kind ofmdoutput :Taskfile Workflow Diagram
This diagram visualizes the dependencies and flow between tasks defined in
Taskfile.yml:graph TD default["**default**"]:::defaultNode -- deps --> generate["generate"] default -- deps --> generate-webp["generate-webp"] default -- deps --> optimize["optimize"] generate -- deps --> setup["setup"] clean["clean"] pdf-logo["pdf-logo"] classDef defaultNode fill:#1976D2,color:#fff,stroke:#333,stroke-width:2px;Task Goals and Descriptions
Copy and paste the Mermaid code into a Markdown viewer that supports Mermaid to see the graph rendered visually.
π Further with
dot/graphvizoptionLike terraform makes it possible, maybe add the option to export to
dot/graphvizAll reactions