πΊοΈ Be able to export a Taskfile to markdown documentation w. mermaid dependency graph π
#2549
Replies: 8 comments
-
|
You might find this PR interesting #2348, its possible to geneate documentation in any format you want - including MD Doc. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
That inspired me @trulede Made a first try and it seems like it's working , see |
Beta Was this translation helpful? Give feedback.
-
|
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
|
Beta Was this translation helpful? Give feedback.
-
|
Properly documented here |
Beta Was this translation helpful? Give feedback.
-
|
@adriens very cool! not my site though π |
Beta Was this translation helpful? Give feedback.
-
Do you have a taskfile to build yours ? |
Beta Was this translation helpful? Give feedback.
-
|
π |
Beta Was this translation helpful? Give feedback.
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/graphvizBeta Was this translation helpful? Give feedback.
All reactions