This repository contains the template for a MKDocs-based Github hosted website. The theme used here is Material for MKDocs.
This repository falls under the MIT Licence. Copyright (c) 2024 DTU-Roboclub
The documentations you might need to work with this template are:
To build and work on your own device, you need to install some depencies. They are registered in the file requirements.txt
. To install them, simply run:
pip install -r requirements.txt
You can run a mkdocs server on your computer to see on real-time your changes. For that, just run inside this directory:
mkdocs serve
And open the link shown in the console, which is a localhost address 127.0.0.1:8000.
While on your pc you can use the command mkdocs serve
to see the changes in real-time, to made them available only you have to push them.
Thanks to an automated GitHub workflow (that you can found in the .github/workflows directory), the website is automatically built when a change is pushed on the main
branch. It will export the made static website on the gh-pages
branch.
When creating a new repository you may have to configure it so that it is a GitHub Page (Settings > Pages, then for the source select deploy from branch
, and for the branch select gh-pages
and /(root)
as folder).
You may also need to allow the export of the static website by the workflow: Settings > Actions > General > Workflow permissions and select Read and write permissions
.