Tutorial on how to contribute to this wiki.
Prerequisites
This website is made with the help of the jekyll
framework. To edit/update it – you may want to first install a couple of things.
for Mac
- install brew;
- install
rbenv
:brew install rbenv
- add
eval "$(rbenv init -)"
at the end of your~/.zshrc
(if you’re usingbash
instead ofzsh
add the same line to your~/.bashrc
); - restart the terminal;
- check the latest version of
ruby
available:rbenv install -l
- install the latest
ruby
(in my case it was2.7.2
):rbenv install 2.7.2
- set it as default:
rbenv global 2.7.2
- (optional) disable documentations:
echo "gem: --no-document" > ~/.gemrc
- install
bundler
:gem install bundler
for Linux
- Install
rbenv
in your favorite way; see this documentation. - Proceed from step #3 of previous section.
for Windows
- remove Windows (keep your files though);
- install Linux;
- see instructions for Linux.
Compiling the website
Now that all the prerequisites are satisfied we can download the source code for the wiki by doing: git clone https://github.com/ntoles/tristan-wiki.git
. In the root directory of the website first type bundle install
to locally install all the dependencies required to build the website, and then you may build it locally and display it on a local server by running
bundle exec jekyll serve
This will run a local server (in my case it was localhost:4000
) with the built website which will update as soon as any of the files are edited.
Warning: If you are using
ruby >= 3.0.0
make sure you have the gem 'webrick'
in your Gemfile
before doing bundle install
.