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

Feature request: hope there is a toolkit that can be used in one click #309

Open
litingyes opened this issue Sep 17, 2024 · 4 comments
Open
Labels
difficulty/hard Hard to deal with / implement against enhancement New feature or request

Comments

@litingyes
Copy link
Contributor

Currently, if want to use multiple plugins, need to configure them one by one. It would be better if a plugin package was provided and multiple plugins could be inherited by default as long as it was installed.

@nekomeowww nekomeowww added difficulty/hard Hard to deal with / implement against enhancement New feature or request labels Sep 18, 2024
@nekomeowww
Copy link
Member

Thank you for the suggestion.

Actually I created one special package for such purpose under https://github.com/nolebase/integrations/tree/main/packages/unconfig-vitepress, however it wasn't released and still kept as private package for internal usage only just because I failed to think of a design to fit the use cases (such as allowing users to define vue, vite, markdown and VitePress configurations).

Perhaps, this is worth to become a dedicated project, that be able to handle various of different configurations of documentation SSG (for example both for Obsidian and VitePress)

@litingyes
Copy link
Contributor Author

From the perspective of plugins, there are currently only three cases: vite/vue/md. Perhaps a similar form can be compromised, similar to but not like unplugin:

const {vitePlugin, vuePlugin, mdPlugin} = createNolebasePlugins({ ... })

Then just reference these three plugins in the corresponding places.

@nekomeowww
Copy link
Member

nekomeowww commented Sep 19, 2024

Oh... right, what an amazing API you just made and designed!

Guess my thought was like dropped into a hole of local optimal hahaha, I was always thinking about wrapping the VitePress within Nolebase tools & configurations, and cannot find the best balance of them, over design!!!!

I think it's more clear, thanks to the ideas you just made. Would you like to implement it? (if you have the bandwidth) or I can make it happen during the weekend.

@litingyes
Copy link
Contributor Author

You can implement it yourself, haha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty/hard Hard to deal with / implement against enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants