Building the Website¶
For developers who want to contribute to the website/documentation of Directional. If you want to preview changes to the Directional website before a commit, you can follow the instructions below.
Prerequisites¶
- If you do not already have it, install conda on your machine. We recommend using miniconda3. On Linux you can run:
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh bash Miniconda3-latest-Linux-x86_64.sh
- Install the conda environment for the website:
conda env create -f directional-website.yml
Using mkdocs¶
- Activate the conda environment installed on the previous step:
conda activate directional-website
- Preview the website locally
(run this command in the root folder of the Directional repository):
mkdocs serve
Tip
Dead links can be checked using the LinkChecker tool. Run the website locally, then run LinkChecker on it:
linkchecker http://127.0.0.1:8000