Skip to content

jmgandarias/mkdocs_UMA_template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UMA mkdocs template

This is the University of Málaga template to create mkdocs websites.

By Juan M. Gandarias

Systems Engineering and Automation Department

Create your own material website

If you want to create your own website, you need to do the following:

  1. Clone/fork the repo

  2. 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
  3. See the changes locally

    mkdocs serve
  4. 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

    select_gh-pages

Torubleshooting

WSL

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 .bashrc

Add the following line to the end of the file: export PATH="YOUR_USER_DIRECTORY/.local/bin:$PATH"

Jinja2

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

About

Repo for teaching material

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors