This repository contains the documentation for the Binaural Rendering Toolbox (BRT), developed using Material for MkDocs and hosted at:
📘 Live documentation: https://grupodiana.github.io/BRT-Documentation/
The Binaural Rendering Toolbox (BRT) is a set of software libraries, applications, and definitions aimed as a virtual laboratory for psychoacoustic experimentation. The BRT is developed in the framework of the SONICOM project and includes the algorithms originally developed for the 3D Tune-In Toolkit, now integrated into a new open and extensible architecture.
This documentation aims to provide a structured and accessible resource for developers, researchers, and users of the BRT.
To contribute or work on the documentation locally using Visual Studio Code, follow these steps:
- Python 3.8+
- pip
- Visual Studio Code
- Recommended: Python extension for VS Code
-
Clone the repository
git clone https://github.com/grupodiana/BRT-Documentation.git cd BRT-Documentation -
(Optional) Create a virtual environment
python -m venv venv
Then activate it:
- On macOS/Linux:
source venv/bin/activate - On Windows:
.\venv\Scripts\activate
- On macOS/Linux:
-
Install dependencies
pip install -r requirements.txt
If the requirements.txt file is missing, you can manually install the basics:
pip install mkdocs mkdocs-material
-
Open the project in Visual Studio Code
code . -
Serve the documentation locally
mkdocs serve
This will start a local web server, usually at http://127.0.0.1:8000/, where you can preview changes in real time.
This documentation site includes the functionality to automatically generate a downloadable PDF version of all its contents.
This is enabled using the PDF Generate Plugin for MkDocs
🔗 https://github.com/orzih/mkdocs-with-pdf
⚠️ Note: The PDF file is only generated when the documentation is deployed via GitHub Pages. It is not built during local development by default. Therefore, installing the plugin and its dependencies locally is optional unless you want to test PDF generation on your machine. This behavior is currently based on preliminary testing and may change.
-
Install the MkDocs plugin
pip install mkdocs-with-pdf
-
Install WeasyPrint
At the time of writing, version 65.1 is recommended.
Follow the official guide: WeasyPrint Installation DocsOn Windows:
-
Install MSYS2, using the default options
🔗 https://www.msys2.org/#installation -
Open the MSYS2 shell and install the required dependency:
pacman -S mingw-w64-x86_64-pango
-
Then, install WeasyPrint via pip:
pip install weasyprint
-
-
Build the PDF manually (optional) To simulate GitHub Actions locally and build the PDF:
$env:GITHUB_ACTIONS = 1; mkdocs build