pantharshit00 / prisma-docs-generator

Prisma generator for automatically generating documentation reference from the Prisma schema.
MIT License
579 stars 27 forks source link

Pagination and groupping + mermaid diagram #73

Open samchon opened 1 year ago

samchon commented 1 year ago

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.

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 commented 1 year ago

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.