forsyde / forsyde.github.io

ForSyDe main web page
https://forsyde.github.io/
1 stars 1 forks source link

ForSyDe group main web page

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.

Contributing to the site

Here is how you can contribute to this site:

Adding/editing web pages

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.

Writing news

A news article is just a normal source page (usually Markdown), that:

In case you added categories, to generate the new page structure, run the script

cd scripts
./make-news-tags

Adding static resources

Static resources are found in assets, under their appropriate folder. E.g. images should be added under assets/images/ folder.

Adding site-wide styles

CSS styles which are active on this site alone (they are ignored on project sites), can be added in assets/css/style.css.

Updating publications page

The source Bib file is found in assets/bib/publications.bib. Modify it accordingly.

Verifying if the site builds

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.

Updating ForSyDe tool and library pages

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.