-
Notifications
You must be signed in to change notification settings - Fork 786
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
Make mermaid diagram colors configurable #2876
Comments
I'm interested in taking on this issue. Here's a preliminary implementation plan, open to discussion and refinement:
My current understanding is that these colors correspond to the nodes representing individual components in the dependency tree diagram: content.push(` style ${cmp.tag} fill:#f9f,stroke:#333,stroke-width:4px`); Please, let me know if I can start working on it. Thanks. |
@Tardigrada777 this sounds great! Let me know if I can support with anything in this endeavor. Join our Discord channel and ping me there 😉 |
Apply colors from the `docs.markdown.targetComponent` to the my-component node in the mermaid diagram. fixes: ionic-team#2876
Apply colors from the `docs.markdown.targetComponent` to the my-component node in the mermaid diagram. fixes: ionic-team#2876
* feat(compiler): add docs option to the config Apply colors from the `docs.markdown.targetComponent` to the my-component node in the mermaid diagram. fixes: #2876 * feat(compiler): add docs option to the config Apply colors from the `docs.markdown.targetComponent` to the my-component node in the mermaid diagram. fixes: #2876 * format(): prettier * refactor: refactor after code review, add tests for depsToMarkdown func * feat: move validation logic for config.docs to validateConfig * fix: deps * fix(compiler): build error & logger message --------- Co-authored-by: Tanner Reits <tanner@ionic.io>
The suggested patch has been released in Stencil |
Just stumbled upon this line in the markdown generator. Are there any overrides for the colors used here? 🤔
stencil/src/compiler/docs/readme/markdown-dependencies.ts
Line 41 in 45388e9
Maybe we could make this configurable via
stencil.config.ts
Would make for great design cohesion, when using the docs in storybook for example 🙃
The text was updated successfully, but these errors were encountered: