-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Algolia Theme Customization #331
Comments
As I look further, it appears that the intentions behind using the alias was to be able to bypass the style inclusion based on the vuepress/lib/webpack/createBaseConfig.js Lines 44 to 46 in 4bf56d7
Replacing the reference in the import will cause the style to always be bundled. I'm not certain how to work around this and I foresee this happening in the future with similar modules that are optional dependencies so I don't know if having the user modify the import is necessarily the correct approach. |
Solution submitted in PR #334 . |
Not clearly know what do you want to do. |
@ulivz, if you eject the theme and then customize the |
Hmmm, so why not describe it by using a issue template at first 😅 if you want maintainers to help you to solve a problem or merge a pr, you should take us to your context first. I won't understand what you want to do util you said you use |
@bayssmekanique In your own theme, you can import the customed AligoliaSearchBox by something like The |
@meteorlxy, I'm not entirely following your point regarding the You are correct that with this change, it will point to custom ejected vuepress/lib/default-theme/Navbar.vue Lines 23 to 26 in d9b290b
I understand what you are saying in regards to if someone wants to customize some portion of the site, but has no reason to customize that particular component, but the variables being pulled in by the default |
@ulivz Why was this issue closed? Even if you don’t like the proposed fix, the core issue definitely still exists: createBaseConfig.js will only set Is there a way around this that doesn’t involve hacking VuePress? E.g. is it possible to override t he |
The Algolia theme is not responding to the theme customizations.
Looking at the
Navbar.vue
file, it is importing the aliased@AlgoliaSearchBox
. Changing the import to./AlgoliaSearchBox.vue
resolves the theming issues, but I'm not certain if there is a reason that it was using the alias that I'm not seeing?I'm happy to make a PR for this if there is no objection to the change.
The text was updated successfully, but these errors were encountered: