Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeoCommon Documentation

To read the LeoCommon documentation follow this link: https://LeoCommon.github.io/documentation/

This is the automatic documentation builder for LeoCommon. It imports documentation from all sub-projects and provides them in one central instance. This is achieved through the use of mkdocs and the mkdocs-multirepo-plugin.

Getting started

??? tip "Usage of virtualenv"

This guide assumes that the `virtualenv` tool is available on your system.
Please refer to your distribution manual or see [docs.python.org](https://docs.python.org/3/library/venv.html)
# Create a new virtual environment
virtualenv venv && source venv/bin/activate

# Install all the requirements for this project
pip install -r requirements.txt

Build and serve

Building and serving this documentation is done locally by using the mkdocs cli. To serve the documentation using the built-in local development server use mkdocs serve

If you want to build a version of the page for remote deployment use mkdocs build and transfer the resulting site folder to a web-server of your choice.

Commands

  • mkdocs serve - Start the live-reloading docs server.
  • mkdocs build - Build the documentation site.
  • mkdocs -h - Print help message and exit.

Project layout

mkdocs.yml      # The main configuration file.
leo_theme/    # Custom theme overrides with extra css and local fonts
docs/
    index.md    # Main page, to start with.
    ...         # Other markdown pages, images and other files.
.gitlab-ci.yml  # The gitlab ci runner config for automatic deployment