Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] generate mermaid instead of images #137

Closed
briantist opened this issue Feb 26, 2023 · 7 comments
Closed

[Feature request] generate mermaid instead of images #137

briantist opened this issue Feb 26, 2023 · 7 comments
Labels
feature-request An issue related to a new feature

Comments

@briantist
Copy link

Is your feature request related to a problem? Please describe.
No

Describe the solution you'd like
It would be nice to be able to generate mermaid instead of SVG/images, so we could embed the output directly into places that support it , like on GitHub.

quick example:

graph TD
    A[Thievery] -->|Get money| B(Go shopping)
    B --> C{Let me think}
    C -->|One| D[Laptop]
    C -->|Two| E[iPhone]
    C -->|Three| F[fa:fa-car Car]
@haidaraM
Copy link
Owner

haidaraM commented Feb 26, 2023

I actually have this on my mind since a few months but was wondering if it would be useful or not for users.

Will see what I can do. Should be doable now that the rendering part is separated from the parser.

@haidaraM
Copy link
Owner

haidaraM commented May 12, 2023

@briantist You can take a look at some graphs in mermaid here: https://github.com/haidaraM/ansible-playbook-grapher/actions/runs/4954157710/attempts/1#summary-13421932864

Still need to do more tests and fix some issues but it should look like something like this

@briantist
Copy link
Author

wow! that's looking really neat @haidaraM , thank you!

@cocoonkid
Copy link

YES YES!

@haidaraM
Copy link
Owner

Just released a preview version. Let me know what you think: pip install ansible-playbook-grapher==2.0.0.dev0

@cocoonkid
Copy link

Will test it very soon!

@haidaraM
Copy link
Owner

haidaraM commented Jun 3, 2023

Closing this. Released in https://pypi.org/project/ansible-playbook-grapher/2.0.0/.

Feel free to open a new issue or comment this one in case of any errors.

@haidaraM haidaraM closed this as completed Jun 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request An issue related to a new feature
Projects
None yet
Development

No branches or pull requests

3 participants