Build Instructions¶
These instructions only apply if you want to build a local/offline version of the documentation. This is convenient for more involved edits, using an editor of your choice.
Quick Setup¶
Install Required Software¶
- Download the Python installation package for Windows.
- Install Python with the installation wizard. Make sure to enable the "Add Python to PATH" option.
- Download and install Git for Windows.
Set up Git LFS
Open a command line window and run the following command:
Clone the Documentation Sources¶
git clone https://projects.blender.org/blender/blender-developer-docs.git developer-docs
cd developer-docs
This will clone the sources into a developer-docs directory inside the
current one and change into it.
Install Material for MkDocs and other dependencies in a virtual environment:
Build the Documentation¶
This is the most commonly used method to build the documentation for editing.
Use the dirty option when editing single pages, as it makes rebuilds much
faster. It only rebuilds the HTML for modified files. Do not use it when
modifying the navigation hierarchy, since the option often fails to reflect such
changes.
Updating¶
Run the following commands inside the developer-docs directory.
Update the documentation sources
And then build documentation as before.
Update Dependencies
Dependencies should be updated regularly, especially on dependency related build errors.
Advanced¶
The make setup command will install dependencies into a virtual environment,
using these commands:
python3 -m venv .venv
.venv/bin/python3 -m pip install pip --upgrade
.venv/bin/python3 -m pip install -r requirements.txt --upgrade
This avoids interference with system packages and is the recommended workflow for Python packages in general. You may alternatively install the packages globally,