Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow components outside 'components' directory in astro #177

Open
silveltman opened this issue Dec 7, 2023 · 2 comments
Open

Allow components outside 'components' directory in astro #177

silveltman opened this issue Dec 7, 2023 · 2 comments

Comments

@silveltman
Copy link

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
Copy link
Author

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant