This repository contains the documentation for OpenGRC, a cyber Governance, Risk, and Compliance (GRC) web application for small businesses and teams.
Live documentation: https://docs.opengrc.com
This documentation site is built with MkDocs.
# Install MkDocs Material theme (includes MkDocs)
pip install mkdocs-material
# On some systems (e.g., Debian/Ubuntu), you may need:
# pip install mkdocs-material --break-system-packages
# Note: This bypasses system package protection. Consider using a virtual environment instead.
# Serve locally with live reload
mkdocs serve
# Build static site
mkdocs buildThe local server runs at http://127.0.0.1:8000 by default.
For production, use a virtual environment to avoid system package conflicts:
# Create and set up venv (one-time)
python3 -m venv .venv
.venv/bin/pip install mkdocs-material
# Build the site
.venv/bin/mkdocs build --cleanTo automatically rebuild the docs when changes are pushed to the repository:
*/15 * * * * cd /var/www/html/sites/OpenGRC-docs && git pull --ff-only && .venv/bin/mkdocs build --clean >> /var/www/html/sites/OpenGRC-docs/cron-build.log 2>&1Build output is logged to cron-build.log. Monitor this file to troubleshoot build failures:
tail -f /var/www/html/sites/OpenGRC-docs/cron-build.log- Fork this repository
- Create a branch for your changes
- Add or edit Markdown files in the
docs/directory - Update
mkdocs.ymlnavigation if adding new pages - Test locally with
mkdocs serve - Submit a pull request
This documentation is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International license, consistent with the OpenGRC project.