-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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 examples in docs #3315
Comments
I had a look through previous changes and pull request and saw that
Maybe a solution could be to add some sort of documentation for the documentation, setting out what each type of code block type mean (from what I've seen so far On a separate note maybe could change from I haven't come across any broken examples in the docs site but I'm happy to try my best to fix them |
Yes, the basic issue is that in order to display both the code and the rendered graph you need two blocks of code at github but only one in dosciify. The docsify code is also available in GitHub then displaying the code not the diagram. Perhaps we need a transformation step where .md files with mermaid-example blocks which have the code blocks split into mermaid-code and mermaid blocks. If we do that we need to put some comments in place in the resulting markdown files explaining that they are auto generated and where edits should happen. Here the issue is that people will edit the wrong set of markdown files resulting in lost updates. The other option is to accept the duplication. |
I think we should have the transformation step which runs on push to master that generates the required files and also a linter that runs on PRs which rejects manual edits to the generated files so people won't be able to commit changes to the incorrect files. |
(jumping in. I've been using PlantUML but have really, really wanted to use a tool that has a properly formed language that can be parsed. Can help getting the documentation cleaned up.) @sidharthv96 I agree with you in using a "transformation step" that generates the documentation files. Are you thinking of something like a DangerFile to check if a PR author has changed one of the generated files? Or are you thinking of some other tool? I'm familiar with Danger having worked with it in Ruby. I'm sure there are other tools out there to consider. Or maybe just a GitHub action like this one? Ensure or Prevent files changed in a PR |
I've raised #3401 to address this issue.
|
Currently, the examples in the docs folder used on github and the examples on the docs site have different formats. This leads to users on github browsing into the docs folder without seeing the diagrams or broken examples in the docs site.
This should be fixed. So that the md files renders both on github and using docsify.
relates to #3291
@jvaque
The text was updated successfully, but these errors were encountered: