Skip to content

fmfi-compbio/mad

Repository files navigation

mad

Webpage of Data Management course

https://fmfi-compbio.github.io/mad

File system overview

How to update webpage

  • 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 main branch
  • 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.

Live changes via docker

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

Inpired 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 time (without building)
# docker compose up

Stop the live server, CTRL+C, 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

Custom macros

  • {% include figure.html src="name.png" caption="Some caption" width="100px" %} will add a figure with a caption. The file should be in files folder. The width argument is optional. The figure can be made floating using <div class="float-right">...</div>.
  • _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 an .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 it should be included. For URL the full URL should be given here. For type text, this field is ignored.

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.

  • tip
  • note
  • important
  • warning
  • danger
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 %}

Documentation

Other useful docs:

About

Webpage of Data Management course

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages