This repository contains the source code for the new PISM website.
The Jekyll theme was originally forked from the Bulma Clean Theme created by C.S. Rhymes.
We use several Python and Ruby tools to build this website:
pybtex
to parse BibTeX files listing publications using PISMmatplotlib
to plot the bar graph of the number of PISM publications per year (this also uses the Humor Sans font)folium
to generate the map of PISM users
Run something like
pip3 install pybtex matplotlib folium
to install these.
All the Ruby dependencies (too many to list) can be installed by running
bundle install
All the common tasks are managed by the Makefile
.
Run
make build
to build the websitemake serve
to build the website and start the server to view resultsmake check-links
to build the website and check internal linksmake check-external-links
to build the website and check all links (including external ones)make install
to install Ruby dependenciesmake -C docker
to build the Docker image used to build the website on CircleCI
The list of PISM applications, the bar graph showing the number of publications per year, and the map of PISM users are generated using Python scripts.
See publications/list_references.py
and
publications/plot_references.py
for the code responsible for
processing publications.
Edit
publications/applications.bib
to add more PISM papers.
See usersmap/create_map.py
for the code generating the map of PISM
users.
Edit usersmap/pism_users.csv to add more PISM users.
Note that files generated by these scripts should not be added to the repository.