-
Notifications
You must be signed in to change notification settings - Fork 991
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
Update diagrams on terms.md #595
base: master
Are you sure you want to change the base?
Update diagrams on terms.md #595
Conversation
Updated the simple and advanced diagrams as a code using mermaid
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have reviewed this code. Is there anything else you need from me?
Sorry for the wait @samerfarida! This will get looked into. |
Is there something missing from your PR? |
There is no issue with the current PR itself. However, I wasn't aware that the .md file would be converted to .html, which introduces the rendering problem. After reviewing the Mermaid.js documentation at https://mermaid.js.org/config/usage.html#simple-full-example, it seems that in order to properly render Mermaid diagrams in HTML, the code needs to be wrapped as follows:
For example, I have attached an .html file that demonstrates this. Please download it (rename it by removing the .txt extension) and open it locally in a browser to see a Mermaid diagram rendered within HTML. Below is a sample of the Mermaid code inside the HTML structure:
At this point, we have three possible options moving forward:
Please let me know which option you and the Pterodactyl team would prefer. Thanks, |
Hi Sammy, Thank you very much for that detailed analysis. Personally, I think option 2 is the most preferable. However, option 3 would also still be fine as the docs are meant to be viewed on the website anyway. What do you think @danny6167 ? |
I really don't want to see us adding little hacks to the build process for things like this. pre-rendered images is really the only valid option of the options that's been listed. But the ideal solution would be if there was a native solution for vuepress to be able to render the mermaid syntax. It really doesn't matter how it looks in github, what matters is how it looks when it's tested after the vuepress build. |
Hey @danny6167, I have no problems with pre-rendered images. I did a quick search on https://vuepress.vuejs.org/ and it looks like they have Markdown plugins that can be enabled. Apparently, they do have a Mermaid plugin for your VuePress site. Please review. It looks like it’s an easy install and enablement. This way, you guys are set for future usages of diagrams as code! Please let me know if you still want me to correct this PR to include a pre-rendered images? Thank you, Sammy |
That's a good find @samerfarida - I'll take a look at that and update soon if it works out. |
Hi! Just letting you know I haven't forgotten about this. We can't merge this right now. Looks like we are going to have to update some dependencies, possibly even move to the next version of vuepress to be able to support this properly. That's going to take some time. Leave the PR open, and we will merge it when the rest of the code is ready for it. Thank you for your contribution! |
Updated the simple and advanced diagrams as a code using mermaid