-
-
Notifications
You must be signed in to change notification settings - Fork 155
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
Fixes: Insert a Mermaid diagram in docs/contributing/core/package-dependencies.md #1715
Conversation
Unfortunately we cannot support Mermaid diagrams in plone-sphinx-theme. See:
I would love to support mermaid, but until that issue is resolved, I can't merge this PR. We can keep it open until then. |
Yay. |
@jensens I went ahead and did a review by directly editing the file. I approve. Is this ready to merge? It's marked as Draft.
|
@jensens I made a couple of enhancements to the Mermaid diagrams. Now they have alt, caption, and zoom attributes. I don't understand the second diagram, but it's pretty. |
Update Overview with better labels and other minor corrections.
@jensens would you please take a look at the pull request preview at https://plone6--1715.org.readthedocs.build/conceptual-guides/package-dependencies.html and let me know if this is ready to merge or you want to make any changes? I moved it into the Conceptual Guides from contributing to Plone core, since this is not really a how-to guide. Thank you! |
@jensens can you please explain how you generated the mermaid diagrams? I can update the docs accordingly. I would gratefully accept any notes you can create, anything that helps as reproduce what you did with these three diagrams. Maybe we can automate it. Thank you! |
I used https://www.mermaidchart.com/ to get a preview of the diagram I wrote and copied it over. |
@jensens that's a nice tool. Did you use any other sources of data to put into the diagrams, such as a requirements file or some other dependency generator? I'm concerned that diagrams will not be updated with each release because no one knows how to maintain them. I also notice that we need to increase contrast in dark mode for the diagram, as some lines do not show up. |
This is out of my head. It is an architectural overview, not something one can generate. The level of abstraction is nowhere in our metadata. The section "Packages in detail" could be generated - with some curation afterwards.
Indeed, we need to review them with each major release.
It seems to be an issue with the theme, as the background of the mermaid diagram changes to black. |
For how to generate the diagrams and the section Packages in detail, I can ask @mauritsvanrees to add items to the release checklist. Any written notes for how to update these items would be great to have outside of your brain. For the contrast of the Mermaid diagram on dark mode, I am reluctant to change the default background color of the I would prefer to edit the SVG and add greater contrast as needed and test it, but then how do we collaborate on it going forward? As soon as you generate a new Mermaid diagram, any changes I put into it to fix the contrast would be obliterated. |
@jensens oh, I'm an idiot. Duh, the source of the SVG as right there! I'll see if I can tweak it with some settings using that online tool. |
@jensens I fiddled around with the source of the Mermaid diagram, and it now has some contrast, not sufficient for accessibility, but better than before, so I'll take it. Is this ready to merge? I know it's not complete, but this is a vast improvement from where we are currently, and we can always iterate to improve it. I can also create new issues for anyone to pick up. Please let me know. |
@mauritsvanrees where do you keep your release checklist? Let's add these to it, noting that the first two links are not yet live, but will be upon a merge of this PR.
|
The release checklist is in the coredev buildout. Each branch (6.0, 6.1) has its own slightly different list. But the list of packages hardly ever changes. There are differences between 6.0 and 6.1 of course, but now that 6.1 is in beta, I don't expect any changes until 6.2 or 7. So adding this to the checklist may not be useful very often. |
@mauritsvanrees pull request created at plone/buildout.coredev#968 I left out the Mermaid diagrams after all, now that I have a better grasp of their intent to describe a concept without overwhelming detail. |
Fixes #1683
📚 Documentation preview 📚: https://plone6--1715.org.readthedocs.build/