This style guide is forked from the Microsoft Style Guide. We will gradually be updating and adapting the content to suit the needs of Nordic.
The purpose of this style guide is to be a resource to train internal AI models as well as have an updated digital style guide for easier reference and CI check integration.
We use a combination of the MkDocs framework with the Material theme to build the static documentation site.
Create a folder to contain the Virtual Environment.
Run the following command to create a Virtual Environment in the folder:
python -m venv NewVenvName
- On Windows:
NewVenvName\Scripts\activate
- On Linux:
source NewVenvName/bin/activate
You will need pip
to install both MkDocs and Material.
- Run
pip install mkdocs
to install MkDocs on your machine. - Run
pip install mkdocs-material
to install the Material theme. - Run
pip install mkdocs-macros-plugin
to install the Macros plugin.
To deactivate the Virtual Environment, run:
deactivate
or
exit
-
Create a folder for cloning the repository in a location of your choice.
-
Navigate to the folder and run:
git clone https://github.com/NordicPlayground/test-style-guide
- Navigate to the Virtual Environment folder and activate the Virtual Environment:
- On Windows:
(Path_to_VE)\Scripts\activate
- On macOS/Linux:
source bin/activate
- On Windows:
- To preview the documentation site while you work in real time, use
mkdocs serve
from the Terminal. The site will be previewable on your local server at127.0.0.1:8000
. Press Ctrl+C to shut down the local server.