Skip to content

About this website development

This website is based on MkDocs and Markdown.

  • Find below the instructions has been followed to set up the present website.
  • On the left menu you can find a few links to interesting resources.

Setup of MkDocs

  1. Ask to create a PaaS official website via (suggestion: make it public on the internet)
  2. Create a simple public gitlab project (
  3. From the openshift administration tool of the PaaS website, create a MkDocs application, linked to the above gitlab project (do not forget the .git at the end)
  4. basically, that's it! Start editing your gitlab project .md files!

Adding webhook

This allows trigger a re-build of the website after a "push" on the gitlab repository:

  1. in "builds" configuration look for the right url 2
  2. paste into your gitlab configuration

Adding support for latex

  1. activate mymdownx.arithmatex extension that is available by default in mkdocs container provided by CERN
  2. I sugesst also to activate admonition extension (and eventually other pymdownx extensions) for a nicer website.
  3. All this is done by adding the following lines in your mkdocs.yml configuration file:
    - pymdownx.arithmatex
    - admonition

    - ''


if you want to add local MathJs, then you need to:

  1. download to your repository the latest version of MathJax. git clone
  2. add everything inside your docs folder, e.g. under docs/js/MathJax-2.7.5
  3. replace the extra_javascript: configuration as following:
        - 'js/MathJax-2.7.5/MathJax.js?config=TeX-MML-AM_CHTML'

Using different Git branch

  1. Edit your "build" YAML configuration file on openshift:

Run it as local server

It is very unconvenient to edit your pages on gitlab website or even locally, then pusshing them to git, and let the OpenShift server recompile the website for you. Better you:

  1. clone your git repository locally
  2. run mkdocs locally

    1. pip install mkdocs
    2. pip install mkdocs-material
    3. mkdocs serve (to be executed inside your local git repository)
  3. connect your local website:

Move your website to new infrustructure (Sep 2021)

Compact version of instruction found in official doc

  1. Delete your "host" from `'.
  2. Wait for confirmation! for host deletion
  3. Create new project in `Administrator' mode
  4. Under Operators->Installed Operators; click on `GitLab Pages Site Operator'
  5. Click on `Publish a static site from a GitLab repository (' Create instance
  6. Fill the form, importat to specify as host the actual old host (or a new one! ;)), e.g. `', make it anonymous (to be freely accessible), and "Create".

At this point, edit your gitlab repository hosting the markdown files...:

  1. Add `.gitlab-ci.yml' from this example
  2. Settings->pages: disable `Force HTTPS (requires valid certificates)' and Save.
  3. Create a New domain' specifying the usual host (')
  4. Cleanup old webhook...