This repo holds the Jekyll template for the ForSyDe Group's main public web pages hosted at forsyde.github.io. Follow the instructions below if you want to contribute or do modifications.
Here is how you can contribute to this site:
The templates for generating web pages are found in /index.md
and /pages/*
. They can be in any format among Markdown, Texify or plain HTML, and might contain Liquid template syntax. When writing a new page, do not forget the Jekyll preamble especially the permalink
and layout
variables. Check existing pages for tips, and the forsyde-web-theme documentation for a list of all variables. Also, the Markdown cheatsheet might also come in handy.
Do not modify anything in /pages/news/*
or /pages/publications/*
since they are generated by scripts generated.
A news article is just a normal source page (usually Markdown), that:
_posts
directory;YEAR-MONTH-DAY-title.MARKUP
, e.g. 2012-09-12-how-to-write-a-blog.md
. date
: for a more fine-grained manipulation of the date, e.g. 2015-11-17 16:16:01 -0600
categories
: are written as lists (e.g. [cat1, cat2, ...]
), and need to avoid whitespaces. The recommended categories are news, updates, release_notes, announcements
. Before making a new category make sure you really need it! Also, check the spellig.In case you added categories, to generate the new page structure, run the script
cd scripts
./make-news-tags
Static resources are found in assets
, under their appropriate folder. E.g. images should be added under assets/images/
folder.
CSS styles which are active on this site alone (they are ignored on project sites), can be added in assets/css/style.css
.
The source Bib file is found in assets/bib/publications.bib
. Modify it accordingly.
The site at https://forsyde.github.io/ is re-generated every time someone pushes to the master
branch. This means that it would be wise to render it locally and verify it on localhost:4000
before any changes are commited publicly.
First you need to install Jekyll and other dependencies. On Ubuntu, you would do
# install make and gcc
sudo apt install build-essential
# install Ruby
sudo apt install ruby-all-dev
# build Jekyll
sudo gem install jekyll bundler
# set up this site
cd path/to/this/repo
bundle install
In order to start the preview server, run
bundle exec jekyll serve
Visit localhost:4000
in your browser to preview the theme.
To update the documentation of individual ForSyDe repositories of the ForSyDe organisation like forsyde-shallow, checkout the corresponding repository and then checkout the branch gh-pages
. In this branch you can modify the documentation by modifying the web pages under pages
. The documentation will be updated on the local server when an updated file is saved, and on the web server when the branch gh-pages
is pushed.
Some individual repositories like ForSyDe IO and IDeSyDe do not have a gh-pages
branch and instead directly use a folder docs
in the master
/main
branch. In these cases, the given instructions for the local Jekyll server apply but within this docs
folder.