Skip to content

Contributing to This Site

Clone repo

git clone https://github.com/UCSCRocketry/rocket-site.git
cd rocket-site/

Create virtual environment

python3.13 -m venv venv

Activate virtual environment

On Windows

myenv\Scripts\activate.bat

On Linux and Mac

source venv/bin/activate

Install dependencies

pip install -r requirements.txt

Run local preview

mkdocs serve

Create branch

git checkout -b <my_feature>

Add and commit changes

git add docs/
git commit -m "Did stuff"

Commit with descriptive message

Push

git push

Always preview site before pushing. Do not push directly to main.

Run python -m pip check and mkdocs build --strict before opening a PR. Use Python 3.13 as pinned in .python-version, and install the Cairo system library for social card generation (libcairo2 on Ubuntu or cairo on macOS).

Create PR

This happens on Github. Site maintainer must approve PRs, and the Site build check must pass before merging.