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

docs: add mermaid plugin and replace image #2606

Merged
merged 3 commits into from Jun 7, 2023
Merged

Conversation

orndorffgrant
Copy link
Collaborator

Why is this needed?

Fixes: #2559

Test Steps

Make sure the diagram is rendered correctly and is an appropriate replacement.
Make sure it works for each of tox -e docs, tox -e docs-dev and on readthedocs

Checklist

  • [n/a] I have updated or added any unit tests accordingly
  • [n/a] I have updated or added any integration tests accordingly
  • I have updated or added any documentation accordingly

Does this PR require extra reviews?

  • Yes
  • No

@github-actions
Copy link

Jira: This PR is not related to a Jira item. (The PR title does not include a SC-#### reference)

GitHub Issues:

Launchpad Bugs: No Launchpad bugs are fixed by this PR. (No commits have LP: #### references)

👍 this comment to confirm that this is correct.

Copy link
Contributor

@s-makin s-makin left a comment

Choose a reason for hiding this comment

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

Nice, thanks for doing this! I just have two suggestions.

  1. The diagram looks really nice when rendered on the light theme (which is the one I use by default). However, when you switch to dark mode it's really hard to see the arrows and where they point. I don't know if there's a way to specify "if light mode then this theme, if dark mode then that", but mermaid does allow different themes to be used https://mermaid.js.org/config/theming.html - probably worth doing, if it's possible.

  2. It's probably a good idea for us to include at least a link to how to create these diagrams in the devdocs. It's not the easiest or most intuitive system to use, but the docs at least are really good. If we'd like people to use mermaid to reduce the maintenance burden of images in the future, let's make it real easy for them to find the info (to avoid explaining it ourselves). I'd suggest maybe this one about the basic syntax - it's easy to find more specific diagram info from here in their navigation https://mermaid.js.org/syntax/flowchart.html?id=flowcharts-basic-syntax

@orndorffgrant
Copy link
Collaborator Author

@s-makin excellent points! I just updated this PR to include dark mode support (by using the furo theme css variables) and to add a short dev-doc with some helpful links to getting started with mermaid. LMK what you think!

Copy link
Member

@renanrodrigo renanrodrigo left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@s-makin s-makin left a comment

Choose a reason for hiding this comment

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

Looks good to me! Thanks for working on it :)

@renanrodrigo renanrodrigo merged commit 61c34ab into main Jun 7, 2023
23 of 24 checks passed
@renanrodrigo renanrodrigo deleted the docs-diagrams branch June 7, 2023 10:38
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.

docs: support diagramming without image files
3 participants