unjs / undocs

Minimal Documentation theme and CLI for shared usage across UnJS projects.
https://undocs.pages.dev/
MIT License
169 stars 13 forks source link

Add a way to configure global components #49

Closed cpreston321 closed 7 months ago

cpreston321 commented 7 months ago

Describe the feature

Need a way to expose components to docs but we enable them through docs.config

Example: -> https://github.com/nuxt-ui-pro/docs/blob/dbe80b2d4f2ee1c7065311f51dc18f0314794dd3/nuxt.config.ts#L13-L17


Initial thought bc I was working on Nitro docs and buttons did not work and I just wanted to use the Nuxt/UI Buttons and since they are not global you can't use them.

Additional information

pi0 commented 7 months ago

More dicussion context in https://github.com/unjs/undocs/pull/50

since undocs is a minimal documentation generator tool, if we want to expose components, we shall directly make a global component in undocs like ::button