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

Add docs for using mermaid with AsciiDoc #1182

Merged
merged 3 commits into from
Mar 8, 2023

Conversation

flyx
Copy link
Contributor

@flyx flyx commented Feb 25, 2023

As discussed in #1174, this adds a documentation section to UI Components > Code > Mermaid that describes the usage of mermaid with AsciiDoc.

Regarding the comment on asciidoctor-diagram in my edits, I cannot stress enough how much pain this is to set up (this was the first thing I tried before switching to JTD's client-side mermaid support). It basically pre-renders mermaid diagrams in a headless chromium browser. This requires manual configuration of Puppeteer, along with additional config for Jekyll to keep the images the extension creates. And when you managed to get the image on your site, it looks horrible. This is why I wrote „not recommended“.

Copy link
Member

@mattxwang mattxwang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @flyx, sorry for the late response - life has been very hectic! Thank you for submitting a PR - really appreciate it :) hopefully, it'll help future users!

I've left a few nits related to tone and links; let me know what you think. Other than that, I think this is good to merge!

Co-authored-by: Matt Wang <matt@matthewwang.me>
Copy link
Member

@mattxwang mattxwang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was really quick - thanks!

@mattxwang mattxwang changed the title Added docs for using mermaid with AsciiDoc Add docs for using mermaid with AsciiDoc Mar 7, 2023
@flyx
Copy link
Contributor Author

flyx commented Mar 7, 2023

life has been very hectic

No worries, it is for all of us :)

I'm not a native English speaker so I can't judge tone all that much and just applied your edits as they seem fine.

I suggest squashing them into the original commit; normally I would amend myself but the web UI doesn't support this.

@mattxwang mattxwang merged commit 16fe752 into just-the-docs:main Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants