This repository contains documentation for the Center for Computational Mathematics (CCM), built with MkDocs.
conda env create -f mkdocs-env.yml
conda activate mkdocsUse this when dependencies drift or builds start failing unexpectedly.
conda deactivate
conda env remove -n mkdocs
conda env create -f mkdocs-env.ymlTo refresh pinned docs dependencies and reinstall them into the mkdocs conda env:
python3 -m venv .venv-deps
source .venv-deps/bin/activate
python -m pip install --upgrade pip pip-tools
pip-compile --upgrade docs/requirements.in -o docs/requirements.txt
deactivate
conda run -n mkdocs python -m pip install -r docs/requirements.txtconda activate mkdocs
make build-webThis generates directory-style URLs in site/.
conda activate mkdocs
make build-fileThis generates file-style URLs for opening site/index.html directly.
conda activate mkdocs
make serveThen open in a browser: http://127.0.0.1:8000
After make build-file, open site/index.html in your browser.
Examples:
- macOS:
open site/index.html
- Linux:
xdg-open site/index.html
- Windows PowerShell:
start site\index.html
python -m venv .venv
source .venv/bin/activate
pip install -r docs/requirements.txt
make build-webOn Windows PowerShell, activate with:
.venv\Scripts\Activate.ps1