This repository hosts the code and content for the Book of BDK website.
We use mkdocs-material to render the website and the content.
To develop locally, you'll need to install mkdocs-material:
First you'll likely want to open a python virtual environment (since python environment management can be truly nightmarish otherwise). Doing so will depend on your OS.
Here's an example using venv on MacOS. Set up a virtual environment if you don't already have one:
mkdir ~/.venv
python3 -m venv ~/.venvThen start the virtual environment:
source ~/.venv/bin/activateThen you're ready to install:
pip install mkdocs-materialYou can serve the site with just:
just serveAll the rust code can be compiled with:
just rustNOTE: Some tests need additional dependencies on macOS such as libiconv.
A Nix shell can be instantiated with:
with import <nixpkgs> { };
mkShell {
nativeBuildInputs = [
bashInteractive
python311Packages.mkdocs-material
# macOS specifics
libiconv
darwin.apple_sdk.frameworks.Security
darwin.apple_sdk.frameworks.SystemConfiguration
];
}