About this site @ GitHub: Projects on Music/Coding contests/Games
Status:
question/project completed
How this site was created under Ubuntu:
Follow the instructions here, notably the steps Requirements, Step 2 and Step 3
bundle install
and it’s post-install verification
jekyll -v
Use of the theme minimal, supported by github pages. The key is to copy the _layout
files for things to work, especially default.html
.
bundle exec jekyll serve
and enjoy!In the following the dependencies were solved and then the command bundle install
rerun.
1
2
3
4
5
6
Installing commonmarker 0.17.13 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
...
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
...
Solved using sudo apt-get install ruby2.5-dev
, (replace 2.5 by appropriate version)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Fetching nokogiri 1.10.3
Installing nokogiri 1.10.3 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
...
...
An error occurred while installing nokogiri (1.10.3), and Bundler
cannot continue.
Make sure that `gem install nokogiri -v '1.10.3' --source
'https://rubygems.org/'` succeeds before bundling.
In Gemfile:
github-pages was resolved to 198, which depends on
jekyll-mentions was resolved to 1.4.1, which depends on
html-pipeline was resolved to 2.11.0, which depends on
nokogiri
Solved according to this page, by installing zlib1g-dev
(used synaptic package manager but could have used apt-get install
)
Side-note: nokogiri was installed seperately via sudo gem install nokogiri
instead of the bundle install
jekyll -v
not workingThis is the command to see the jekyll version. The error when querying it gave:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Traceback (most recent call last):
13: from /usr/local/bin/jekyll:23:in `<main>'
12: from /usr/local/bin/jekyll:23:in `load'
11: from /var/lib/gems/2.5.0/gems/jekyll-3.8.5/exe/jekyll:11:in `<top (required)>'
10: from /var/lib/gems/2.5.0/gems/jekyll-3.8.5/lib/jekyll/plugin_manager.rb:50:in `require_from_bundler'
9: from /usr/lib/ruby/vendor_ruby/bundler.rb:101:in `setup'
8: from /usr/lib/ruby/vendor_ruby/bundler.rb:135:in `definition'
7: from /usr/lib/ruby/vendor_ruby/bundler/definition.rb:35:in `build'
6: from /usr/lib/ruby/vendor_ruby/bundler/dsl.rb:13:in `evaluate'
5: from /usr/lib/ruby/vendor_ruby/bundler/dsl.rb:218:in `to_definition'
4: from /usr/lib/ruby/vendor_ruby/bundler/dsl.rb:218:in `new'
3: from /usr/lib/ruby/vendor_ruby/bundler/definition.rb:83:in `initialize'
2: from /usr/lib/ruby/vendor_ruby/bundler/definition.rb:83:in `new'
1: from /usr/lib/ruby/vendor_ruby/bundler/lockfile_parser.rb:95:in `initialize'
/usr/lib/ruby/vendor_ruby/bundler/lockfile_parser.rb:108:in `warn_for_outdated_bundler_version': You must use Bundler 2 or greater with this lockfile. (Bundler::LockfileError)
Following to the reply by DirtyF in this post These steps did the trick:
gem update --system
gem install bundler
bundler update --bundler
Worked wonders!
Apparently the line gem "github-pages", group: :jekyll_plugins
in the Gemfile
is required to test on a local server. I suppose it installs the theme-files by itself.
Then point the theme
to minima
in the _config.yaml
file
To test locally: bundle exec jekyll serve
Otherwise upload(push) final product to github pages, in my case I used the docs
folder in my github root (adjustable in project settings)
Following this post, here is a little sample:
The inline code snippet $$\alpha \in \beta $$
renders to .