Skip to content

Overview

Building you environment

Documentation for this project is built using mkdocs-material. To contribute to the documentation you will need to create a separate python environment. I suggest that you call this .env_mkdocs to avoid confusion with the dbt environment. Create your environment and install the required packages as shown below:

Important

The commands below assume that you have already performed the step 2 steps in the Developer Guide. If you have not done this yet, please do so before proceeding.

Create and activate the Python environment

python -m venv .env_mkdocs
source .env_mkdocs/bin/activate
pip install -r ./requirements_mkdocs.txt
python -m venv .env_mkdocs
source .\.env_mkdocs\Scripts\activate.ps1
pip install -r ./requirements_mkdocs.txt

Updating the documentation

The docucementation source is held in the docs directory. To update the documentation you will need to edit the markdown files in this directory. In order to understand the syntax used for the markdown be sure to review the reference section for mkdocs-material. Once you have made your changes you can build the documentation using the command below:

Build the documentation
mkdocs build

To view the documentation locally you can use the command below:

View the documentation locally
mkdocs serve

Tip

The mkdocs serve command will start a local web server that will allow you to view the documentation in your browser. The server will also automatically rebuild the documentation when you make changes to the source files.

Before publishing the documentation you should ensure that the documentation is up to date and that the changes are correct. You should also pull the latest from the repository to ensure that you are not overwriting someone else's changes. Do this by running the command below:

Pull the latest changes from the repository
git pull

You can now publish the documentation to the repository by running the command below:

Publish the documentation
mkdocs gh-deploy  --remote-name "https://${GH_TOKEN}@github.com/Insight-Services-APAC/Insight_Ingenious.git"