Auto-document config values available for all diagrams #5135
sneakers-the-rat
started this conversation in
General
Replies: 1 comment 2 replies
-
@sneakers-the-rat, I don't see why this isn't better as an issue. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Didn't think this deserved an issue but thought it was worth raising:
Initially I was going to post "Document ability for ER diagram to use layoutDirection" but it seems like this is a more general need across the package.
Motivating example - ER diagrams of a hierarchical system can get very very tall. Sometimes that doesn't fit with inline examples, eg. between paragraphs where you might want to layout a few entities horizontally to show their relationship.
The ER plot has a pretty well documented config object here, where
layoutDirection
is supported:mermaid/packages/mermaid/src/config.type.ts
Line 915 in d8e26dc
but that's not shown anywhere in the docs. Instead only the
fill
andstroke
fields are documented. I don't have time at the moment to look through how the documentation is generated, but it seems like it should be straightforward to autogenerate a table from the config object itself so the docs don't go out of sync with the library.Doing all the work to implement features and then have nobody use them because they're not in the docs is such a waste! Let's honor how much work y'all have put in and make it visible, ya???
Beta Was this translation helpful? Give feedback.
All reactions