This is the University of Málaga template to create mkdocs websites.
Systems Engineering and Automation Department
If you want to create your own website, you need to do the following:
-
Clone/fork the repo
-
Install mkdocs and the required plugins
pip install mkdocs pip install mkdocs-material pip install mkdocs-awesome-pages-plugin pip install mkdocs-git-revision-date-localized-plugin pip install mkdocs-redirects pip install mkdocs-video
-
See the changes locally
mkdocs serve
-
Deploy your website
You should change the mkdocs.yml file with your repo name and website URL. Then, don't forget to change the Settings of your repo:
- Go to Settings > Pages
- In the section Build and deployment select Source: Deploy from a branch
- In the section Branch select gh-pages and /root
Warning
If you want to install it in WSL, you'll probably receive a WARNING displaying that the directory YOUR_USER_DIRECTORY/.local/bin is not included in the PATH.
If this happen, you won't be able to run mkdocs serve to see the changes locally. To solve that, you need to modify your .bashrc file as follows
cd ~/
sudo gedit .bashrcAdd the following line to the end of the file:
export PATH="YOUR_USER_DIRECTORY/.local/bin:$PATH"
Caution
If, after installing the required plugins correctly, you receive an ERROR about Jinja2 (something like jinja2.exceptions.TemplateAssertionError: No filter named 'items') when running mmkdocs serve you'll need to upgrade jinja2 running the following command:
sudo pip install --upgrade jinja2