-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Adding Submodule #663
Adding Submodule #663
Conversation
fancybox3 & gitment? |
Gitment is not designed to be cloned. It just provides a jsDelivr CDN, because the origin Gitment repo is not maintained |
Need update much docs README... |
Seems tarvis-ci does not know how to clone a repo with ssl |
Don't totally understand: for what this needed? Also, Travis make error on 'source/lib/fancybox' module. |
Confusion too. Submodule can be done by user. |
This allows users installing dependencies using a simple command, no longer need to check and follow the instructions in README.md of these ‘theme-next-*’ repos |
Some GUI tools would clone all submodule when once clone, such as GitHub desktop...... |
Personally, instead of git submodule, I prefer that plugins be hexo plugins (npm packages), and insert to theme using hexo tags. |
check this out for a little example: |
Guys, check here before resume discussion of this PR. |
Yes it's a great view. And automatic download may be easier to be done by npm packages lol. |
Philosophical debate is coming🤔. I think if there's not a good solution just don't change anything. |
There is some problems with it:
But maybe BTW, if we talking about NPM, maybe NexT can live on NPM too? But it's a little bit extra work: make release on Git, then make release on NPM. Need to think about it. |
About npm. |
What |
Such as comments: {% if theme.disqus.enable %}
{% include 'disqus.swig' %}
{% elif theme.changyan.enable and theme.changyan.appid and theme.changyan.appkey %}
...... We need config in comment index.swig, If we use npm, need wasted some time to add code in the right place. But it's not easy. |
Only when a user visits a page will it consume. So don't worry reinstall |
Maybe. But u talking now about NexT. Need to make decision about modules firstly.
Yeah? Are u sure downloading packages / repos (deploying) not waste this traffic? For now: 382 MB/100 GB. It's 7 days usage. |
By hexo plugins I mean install in root of the blog, not in NexT.
Sure current code need refactor. But we can do it step by step and still keep those small pieces inside. And automatic install dependencies for NexT does excite me a lot.
Netlify do cache npm modules. see here |
Superseded by https://github.com/next-theme/plugins
|
Breaking Change:
Install new modules:
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue resolved: #413
What is the new behavior?
How to use?
In NexT
_config.yml
:Does this PR introduce a breaking change?