Skip to content

πŸ—ΊοΈ Be able to export a Taskfile to markdown documentation w. mermaid dependency graph πŸ“ Β #2503

@adriens

Description

@adriens

Description

❔ About

I use task a lot, and someimes, I feel the need to :

  • ➿ Automate documentation (for example within a CI pipeline)
  • πŸ—£οΈ Share a task file to non-programmers to explain them a workflow I implemented with task

πŸ‘‰ I only need to export a kind of javadoc or taskdoc

πŸ’‘ The idea

In addition to --list option, would it possible to add the --markdown option so we could get that kind of md output :


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;
Loading

Task Goals and Descriptions

Task Name Description
default This Taskfile dynamically creates PNG and JPEG image assets from SVG source files. Run 'task generate' to create them.
setup Check for required tools (svgexport, convert, optipng, jpegoptim)
generate Generate PNG and JPEG versions of the logos from SVG files
clean Remove all generated files
pdf-logo Compile the LaTeX logo into a PDF and clean up auxiliary files
generate-webp Generate WebP versions of the logos from PNG files
optimize Optimize the size of generated PNG and JPEG files

Copy and paste the Mermaid code into a Markdown viewer that supports Mermaid to see the graph rendered visually.

πŸ”­ Further with dot / graphviz option

Like terraform makes it possible, maybe add the option to export to dot / graphviz

Metadata

Metadata

Assignees

No one assigned

    Labels

    state: needs triageWaiting to be triaged by a maintainer.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions