The instructions on this page will guide you in setting up a local development environment in Windows OS.
- Install Ruby and Development Kit. During ruby installation check the “Add Ruby executables to your PATH” box. e.g. for 64-bit architecture install: Ruby2.3.3
- Install corresponding Ruby DevKit e.g. corresponding developer kit. When you execute the file , it’ll ask you for a destination for the files. Enter a path that has no spaces in it.
- Navigate to the folder you extracted the DevKit using your Command Line. e.g. using
powershell
orcmd
- Enter
ruby dk.rb init
in the command line interface followed byruby dk.rb review
and finallyruby dk.rb install
to complete the installation of the DevKit by binding it to your Ruby installation.
- Open cmd and type
gem install jekyll bundler
- Fork this repository.
- Open git terminal(Git bash in windows), and clone your forked repo i.e.
git clone https://github.com/<your_username>/gci17.fossasia.org.git
in the directory you want. - Change directory to the local repository i.e.
cd gci17.fossasia.org
. Now typedir
to see ifGemfile
can be seen. - Type
bundle install
to install dependencies. - Type
gem install jekyll-sitemap
and thengem install jekyll-paginate
.(Not necessary, if it is installed in the previous step.) - Now open Gemfile(with any text editor e.g. sublime) and then remove '#' in
#gem 'github-pages', group: :jekyll_plugins
and add '#' togem 'jekyll-sitemap'
gem 'jekyll-paginate'
. Save the file. - Type in the git terminal
bundle exec jekyll serve
. You will see a Server address. - Now your server is up and running. To view gci17.fossasia.org page, go to
localhost:4000
.