-
-
Notifications
You must be signed in to change notification settings - Fork 658
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
Multi-source providers #1049
Comments
Most provider sources could be supported by using a custom unstorage driver and BTW, while this is a nice idea to have CMS support with content style queries, I feel this is kinda out of the content module's scope. Almost each of the providers mentioned above has their unique abilities that could be limited when going behind abstraction and we already have a Nuxt module for a couple of them. |
I would separate this issue into:
|
Agree to split this issue in two, also I do believe that it is out of the scope of content regarding MDC and other providers personally. Creating one following #265 shall be enough |
Adding content sources from other GitHub Repositories is enough because in most cases we need separate docs repository from docs website source code. This feature helps prevents the website from copying. |
These are more ideas for future possible enhancements than real objectives. I think supporting other GitHub repositories is an evidence, and supporting Notion would be a really nice-to-have feature. I completely agree for some of these providers, a standalone module would fit the use case better than being in the content module itself. Still, I think at some point the content module has something to offer to these standalone modules, which is MDC parsing and rendering! MDC Syntax allows the usage of project components by parsing a syntax that can be stored by any content provider, and I think providing the support for this syntax to these externals providers would be amazing adoption-wise for @nuxt/content. |
Kindly add some easy-to-understand documentation on how to fetch from different folders on same PC. The current documentation on using drivers and all is confusing.
The reason I started using Content module (and Nuxt) is because it is very easy to learn and understand, even for non-coders. The whole Content website is very simple. So, whenever this multi-source feature becomes fully functional, kindly simplify this part of the documentation as well, especially as if oriented towards a novice level, and not for people who already know this stuff (because you all already do 😁). Thanks. |
Mutli source is next in our roadmap, it was not a blocker for the initial release. We do need it since we plan to have all of our docs in one website 😊 |
@Tahul, @atinux Kindly help by filling these blanks 😄 My Nuxt Content app is in this folder What 1. ✅ SOLVED: If another folder
|
Any update on this idea? |
I'm also looking for a way to fetch remote data.
This would definitely fit my need. Any chance to get a working example on this? Even if this is done by hand first. Happy to help |
I'm also looking to fetch data from different directories, and have a fallback if the content directory is empty. |
The fallback strategy is pretty tricky to do actually @ricardoaguiar but is interesting. Do you have a reproduction to test? |
Could we get an example of just how to use the existing |
Multi-source is now possible with @nuxt/content, but is still an experimental feature.
Local sources (same filesystem) are already supported, but remote ones are still a pending task.
Here is a list of providers we could have in mind to support:
MDC Syntax would most likely only be available from providers that can return raw text data though.
Here is what package is used to manage content sources, and where should these drivers be implemented:
https://github.com/unjs/unstorage
The text was updated successfully, but these errors were encountered: