Slug Security's site for writeups, announcements, projects, and miscellaneous information. Built with MkDocs and Material for MkDocs.
Create venv
python3 -m venv venv
Activate venv
source ./venv/bin/activate
Install python dependencies (requires insider access)
pip install -r requirements.txt git+https://${GH_TOKEN}@github.com/0xfbad/framework.git
And the image-processing dependencies
sudo apt install pngquant libcairo2-dev libfreetype6-dev libffi-dev libjpeg-dev libpng-dev libz-dev
Given the few submodules for posts and writeups, clone those
git submodule update --init --recursive
Since posts and writeups are submodules, in order to contribute to those sections, you will need to git push the changes from those directories - not the root directory here as this project auto pulls new submodule changes.
Serve site locally
python -m mkdocs serve
Site will be available at localhost:8000.
Optimize PNG images
find ./src -type f -name "*.png" -exec pngquant --force --ext .png --skip-if-larger --strip -- "{}" \;