In the repo for which you wish to create a website, create an orphan branch
called gh-pages
:
$ cd [repository-name]
$ git checkout --orphan gh-pages
$ git rm -rf .
Download and unzip the template into the repository:
$ wget https://github.com/mila-udem/mila-paper-webpage/archive/master.zip
$ unzip master.zip
$ mv mila-paper-webpage-master/* ./
$ rm -r master.zip mila-paper-webpage-master
Add all files as the first commit on this branch:
$ git commit -a -m "First commit"
Note: once you push to Github, even though your repository may be private, the website will be publicly available to anyone using the webpage's web address. You should develop locally until you're ready to go public.
Follow these instructions to install Ruby and Bundler.
Install the other plugins with
$ bundle install
Edit _config.yml
so that baseurl
is an empty string, and launch the local
server with
$ bundle exec jekyll serve -w
You can preview the webpage locally at
http://localhost:4000
All necessary configuration tweaks are done through _config.yml
, which is
self-documented.
Once you're ready, edit _config.yml
so that baseurl
is "/repository-name"
,
commit, and push to Github:
$ git push origin gh-pages
Your paper website should shortly be online at
https://[username].github.io/[repository-name]