-
Notifications
You must be signed in to change notification settings - Fork 10
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
docs: Render mermaid graphs #568
Merged
Merged
Changes from 3 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
2da9f71
add mermaid2 plugin
lewismiddleton 8a06255
trunk fmt
lewismiddleton be47904
Merge branch 'main' into mermaid-plugin
lewismiddleton 4cf0a1b
Revert "add mermaid2 plugin"
lewismiddleton 868e310
superfences fence_code_format
lewismiddleton 4bbc5a9
Merge branch 'main' into mermaid-plugin
tcarmet File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Hey @lewismiddleton! Thanks for your contribution and for spotting this issue, very much appreciated!
In my other mkdocs project I did the following:
For me it seems like a healthier change as it doesn't require the extra dependency to be installed, would you mind giving it a shot see if it renders as you would like compared with
mermaid2
.Thanks in advance!
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.
Yeah I agree, a better solution if it works. I wasn't able to get that working, give it a try on your environment and see what you think?
You're right though in that the docs say it should be sufficient. I'm curious to know what the difference is between this project and others (if there is actually an issue - idk maybe my environment is just differnet)
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 did try it and it worked.
Worth mentioning though that I was running my doc website through a
mkdocs serve
and reaching it onlocalhost:8000
through my browser and not via themkdocs build
, it seems like you were using the build method and I don't know if that may cause some differences in the rendering.Regardless I have another website with those options hosted on GitHub pages that is working fine as well for rendering the mermaid graphs.
Let's give it a go with only the suggestion above, merge the PR, then if it's doesn't work we'll review the addition of the plugin.
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.
Yeah I was using
poetry run mkdocs build --strict
but can confirmmkdocs serve
works on my machine too.I've reverted the commits and pushed the suggested change.
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.
Awesome! Thank you for your patience and making the suggested changes ❤️
And good to know it doesn't behave the same with a
mkdocs build
!