Skip to content

fmfi-compbio/mad

Repository files navigation

mad

Webpage of Data Management course https://fmfi-compbio.github.io/mad

File system overview

Updating the website

You can edit the files in GitHub web interface or clone the repository to your computer, edit it there and then push the changes to the master branch.

Tip

If you clone and edit locally the website, you can use docker to check live changes, see Live changes via docker

After push, GitHub Actions are executed to run Jekyll framework which converts webpage to static HTML. The HTML files are then copied to the web. It takes several minutes for this to happen. You can view progress in Action tab. In case of a failed run you can also search for error messages there. In case of success, the website is available at https://fmfi-compbio.github.io/mad.

Manage classes

_data/semester.yaml contains several weeks, each week given by the dates, content and a list of items (can be empty).

  • Items have field type which can be notes if it is a .md file in notes folder, or file if it is a file in files folder, text for just a text or url for a link to external website
  • Field name of an item is the visible text
  • Field file is the filename. For notes, extension .md is added automatically, but for files in the ./files folder it should be included. For url the full URL should be given here. For type text, this field is ignored.

Custom macros

Figure

A figure with a caption:

{% include figure.html src="name.png" caption="Some caption" width="100px" %}
  • The file should be in ./files folder.
  • The width argument is optional.
  • The figure can be made floating using <div class="float-right">...</div>.

Admonitions

As in GitHub https://docs.github.com/fr/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts.

Simple admonitions:

{% include admonition.html type="info" content="Info." %}

{% include admonition.html type="tip" content="Tip." %}

{% include admonition.html type="important" content="Important." %}

{% include admonition.html type="warning" content="Warning." %}

{% include admonition.html type="danger" content="Danger." %}

Collapsing admonition:

{% include admonition.html type="tip" collapsible=true content="Hidden details here." %}

Multi-line content:

{% capture tipcontent %}
Markdown **works here**, including *formatting* and lists.

* item1
* item2

{% endcapture %}

{% include admonition.html type="tip" content=tipcontent %}

Mermaid diagrams

Add to the Mardkown file metadata the option use_mermaid: true to enable mermaid diagrams:

---
title: A page with rendered mermaid diagram
use_mermaid: true
---
```mermaid
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
```

Live changes via docker

If you have cloned this repository, you can build locally the website to check your updates.

Inspired by https://jogendra.dev/dockerize-your-jekyll-site-for-local-development and https://mademistakes.com/mastering-jekyll/site-url-baseurl/.

Launch the live server:

# The first time
docker compose up --build

# The next times (without building)
docker compose up

Stop the live server, CTRL+C, and then:

# Stop using the image
docker compose down

# Verify the image is not used
docker images # ukba-mad-jekyll:latest must not be used

If the docker image is still used:

docker container ls # to find the container id
docker container rm <container_id>

To make a clean build:

rm -rf _site
docker rmi ukba-mad-jekyll:latest

Documentation

Other useful docs:

About

Webpage of Data Management course

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages