This is a tutorial and template based from Mkdocs Frinze Template. This is a template that contains extensions that are very nice to have when you just want a standard documentation for anything!
For full documentation visit:
- mkdocs.org for the generic MkDocs
- PyMdown Extensions for the different extensions that are installed
- MkDocs Material for the customisation of the web server documentation.
This tutorial and template has 2 main purpose:
- Make the documentation setup easier and accessible for everyone (template)
- Teach Markdown (tutorial)
- Clone This Repo or press the big green button "Use this template"
- Follow the installation
- Delete the markdown files here and replace it with your own
- Change a couple of things in the
mkdocs.yml
file (there are comments around it to make it easier) - Modify the
nav
in themkdocs.yml
file or delete it (Mkdocs will sort you documentation files to display) - Deploy somewhere ! (easist way Github Pages see here)
Install this preferably in your global environment because this is just a code generator and so.
pip install -r requirements.txt
mkdocs new [dir-name]
- Create a new project.mkdocs serve
- Start the live-reloading docs server. Very helpful when you want to take a look at the docs before deploying.mkdocs build
- Build the documentation site.mkdocs -h
- Print help message and exit.mkdocs gh-deploy
- Deploy in github pages
mkdocs.yml # The configuration file.
docs/
index.md # The documentation homepage.
... # Other markdown pages, images and other files.
This template is made to be simple such that it gives you a brief overview of how you would be writing your documentation with a few configuration. This is the type of documentation that you just build on top of.
If in the scenario that you feel that I missed that is essential to be in the template, please feel free to give this repository a pull request. However, if you feel that you would like to extend this template much more, I would highly recommend to visit the original Mkdocs Material Documentation.
There are 4 main portion of this tutorial, which are ordered sequentially:
- Overview and Installation of Mkdocs (the current documentation you are looking at)
- Writing Markdown
- Flavoured Markdown
- Deployment and Automated Deployment