Skip to content
Snippets Groups Projects
Daniela Daniel's avatar
Daniela Daniel authored
c93e48f0
Name Last commit Last update
docs
.gitignore
.gitlab-ci.yml
README.md
mkdocs.yml

Example MkDocs website using GitLab Pages on BioHPC

Learn more about GitLab Pages at https://pages.gitlab.io and the official documentation https://docs.gitlab.com/ce/user/project/pages/.

Structure

mkdocs.yml is a configuration file for the mkdocs static site generator. In here you will need to set your site's title, and the URL for the site (which you will set) in the GitLab project settings.

docs is a folder containing your markdown pages that you wish to publish to the web. The front page for your site should be name index.md.

GitLab CI

This project's static Pages are built by GitLab CI, following the steps defined in .gitlab-ci.yml:

Building locally

To work locally with this project on a BioHPC machine, you'll have to follow the steps below:

  1. Fork, clone or download this project
  2. Load the anaconda python module module add python/2.7.x-anaconda
  3. Install the python mkdocs package to your home dir pip install --user mkdocs
  4. Preview your project: mkdocs serve, your site can be accessed under localhost:8000
  5. Add content
  6. Generate the website: mkdocs build (optional)

Read more at MkDocs documentation.

Did you fork this project?

If you forked this project for your own use, please go to your project's Settings and remove the forking relationship, which won't be necessary unless you want to contribute back to the upstream project.

Troubleshooting

  1. CSS is missing! That means two things:

    Either that you have wrongly set up the CSS URL in your templates, or your static generator has a configuration option that needs to be explicitly set in order to serve static assets under a relative URL.


Forked from https://gitlab.com/morph027/mkdocs