Replace mermaid styles with a built-in theme
What does this MR do and why?
- Replaces custom mermaid CSS styling with mermaid's built-in "neutral" theme
- Moves logic for including mermaid to the backend
- why: the way we were doing this previously was causing mermaid to not pick up the config object; I think we were running into the same thing as this guy
Closes #1264 (closed)
Screenshots, screen recordings, or links to review app
Before | After |
---|---|
Some pages with Mermaid charts:
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
-
Configure a local GitLab Docs environment: https://gitlab.com/gitlab-org/gitlab-docs/-/blob/main/doc/setup.md. -
View pages with mermaid charts (see list above) and verify the charts render either better or as good as they do on docs.gitlab.com
Merge request acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this merge request.
Edited by Sarah German