prisma-docs-generator icon indicating copy to clipboard operation
prisma-docs-generator copied to clipboard

Pagination and groupping + mermaid diagram

Open samchon opened this issue 9 months ago • 1 comments

In my case, when generate docs and open index.html, browser being shutted down due to too long contents.

I hope to separate each models to each page. Also, traveling third party libraries of prisma about ERD generation, none of them could express my database relationships cleary due to too many tables. Therefore, I hope to suggest you to providing groupping feature, and drawing mermaid diagram per each group page.

  • pages per models
  • support groupping
  • mermaid diagrams per each group

If you agree, then I can help you about the last feature, "mermaid diagrams per each group".

/// @group articles
model bbs_articles {
}

/// @group sales
model shopping_sales {
}

/// @group orders
model shopping_orders {
}

samchon avatar Sep 12 '23 07:09 samchon

image

https://github.com/samchon/prisma-markdown/blob/master/ERD.md

I tried to accomplish it in markdown level, and succeeded to implement it.

However, I don't have enough insights about website rendering. So, hope prisma-docs-generator to support same thing.

samchon avatar Sep 14 '23 16:09 samchon