-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Upgraded project docs to include incremental switch #600
Upgraded project docs to include incremental switch #600
Conversation
@@ -1,2 +1,8 @@ | |||
source 'https://rubygems.org' | |||
gem 'github-pages', group: :jekyll_plugins |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we keep the dependency on github-pages. This makes it easy to assure ourselves that the site will look the same in production as it does on our personal computers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, no problem
Incremental compilation worded just fine for me with the prior Gemfile. Is there another reason for the upgrade? |
I thought that there is no specified version of Jekyll which is used. Some people were probably using 3.x (that's why incremental compilation worked) but majority of people don't know what version is used in production |
Take a look at the Gamefile.lock file. Jekyll 3.0.3 is being used. I should take a look at our documentation and see if it describes how to get local development setup properly. I am away from my computer at the moment. |
Are you using If Bundler is used then everyone will be using the Jekyll version listed in the Gemfile.lock file. |
Hello @jarrodwb I'm using |
As suggested, posting this publicly... |
Thank you. I understood issue. I will revert gem changes and add only |
I suggest keeping the changes to the README but being rid of the other changes. The current Gemfile does exactly what we need. If we want to update the site dependences we can do that in a different PR. All that needs to be done is a 'bundle update' then commit the new Gemfile.lock file. This should update Jekyll to about 3.2.x something. I really think that gh pages gem should control the version of Jekyll. Of course if we move the site then we can do something different. Thanks for the changes to the README. 😀 On another note. Nice to see you Simon! |
according to https://pages.github.com/versions/, GitHub Pages is on Jekyll 3.2.1. so isn't that the version our Gemfile should have as well...? |
See my last comment. If we want to update site dependences then we should use bundle update. Hard coding the version number is s mistake. If you want to update Jekyll then we can summit another PR. It really does not have much to do with this thread. |
sorry, I was skimming and missed this. I tried it just now and I think we need to make this change in Gemfile:
and then run I don't understand the difference between |
I don't think the gemfile should be changed at all. If you want to use bundle install then you need to delete the gemfile.lock file first. If you use the bundle update then you don't need to delete it. It should be changed by the update command. The whole point of the lock file is that all the developers use the same versions of all gem dependences. The bundle install command will install all the versions in the lock file. Also the lock file should not be edited by hand. Your error, I think, comes from not having system dependencies. Those dependencies would be managed elsewhere, outside of the gems. Maybe some like a C library. |
Why is it good to have an old version of github-pages listed in the Gemfile, instead of the current version that GitHub Pages actually uses? Why is it good to have a version of jekyll listed in the Gemfile that doesn't match GitHub either? |
I will try to explain this again when I get home in about two hours. |
Okay @SethTisue I am back. I will make a pull request to update the dependencies and I will go through all of the steps to explain how it is done. Feel free to find me in gitter if you want to chat before I get the other PR finished. |
See #601 for a bit on updating dependencies. @SethTisue I think your error you mentioned earlier is either from the |
07e935d
to
15be8bb
Compare
I reverted changes for gems, just upgraded docs. Should be fine now. |
Generating... | ||
done. | ||
Auto-regeneration: enabled for '/Users/ben/src/scala.github.com' | ||
`It might take around 5 minutes at first but incremental compilations will be fast.` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are the backquotes in this line supposed to be there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added it as indication for users, that first build might take a while. I can change it if you think it's not a good idea.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have a strong feeling about it. I'll go ahead and merge.
The fact that it takes so long now has its own ticket: #607
LGTM other than the one nit |
thanks @charafau and @jarrodwb! |
After discussion with @SethTisue (here: scala/scala-lang#493 ) about compilation speed I have upgraded
jekyll
to3.3.0
and upgraded docs to include
-I
incremental compilation flag.At first it took ~5 minutes on my machine to build the whole thing but after that only few seconds:
Hope it helps with further updates.
Here's the list of used gems:
For more speed improvements we would probably need to move to hugo or some other static generator.