nuxt-themes / docus

Write beautiful documentations with Nuxt and Markdown.
https://docus.dev
MIT License
1.52k stars 158 forks source link

[Content] per-page prose components #398

Open Tahul opened 3 years ago

Tahul commented 3 years ago

It could be great that we could specify per-page (or directory) prose components.

// index.md

---
prose:
   h2: ThatH2Component
---

That would allow heavily customizable websites and take full advantage of our unique Prose components system.

That is a feature idea, and should be treated with low priority.

😄

Atinux commented 3 years ago

That is an awesome idea 🤯

We could also think of giving defaults props to these components too (serif font for example for H2)

Tahul commented 1 year ago

Should we keep this idea?

Maybe I could add that we should be able to configure tokens per-page?

Tahul commented 1 year ago

Also maybe this issue should be moved to @nuxt/content as a document-driven improvement?

Tahul commented 1 year ago

WDYT @Atinux ?

Maybe we could split this into 1 issue in Pinceau (content support with tokens per-page) and 1 issue on Nuxt Content (per-page prose components in Document Driven mode) ?

Atinux commented 1 year ago

Worth splitting yes