CloudCannon / bookshop

📚 A component development workflow for static websites.
MIT License
243 stars 21 forks source link

Allow components outside 'components' directory in astro #177

Open silveltman opened 9 months ago

silveltman commented 9 months ago

I would like to be able to have bookshop search in other folder too, not online the components directory.

The reason for this is that I define some components .bookshop.yml files in my astro content collection, so I can easily import them using astro's builtin functions and then render a page for each component displaying the component.

silveltman commented 9 months ago

Apparently this is already possible. I guess bookshop searched the entire src folder?

Anyway, this part of the docs caused me to think bookshop only searches the components dir: https://cloudcannon.com/documentation/guides/bookshop-astro-guide/getting-set-up/#creating-your-bookshop-directory

silveltman commented 2 months ago

Would it be possible to define .bookshop.yml files in a package, so in the node_modules folder?