The Black Magic Project Website https://black-magic.org
  • Python 69.9%
  • CSS 27.3%
  • Batchfile 1.4%
  • Makefile 1.2%
  • HTML 0.2%
Find a file
Daniel Schaefer eb30c08071 STM32U0 is supported in v2.0.0
Added in f04ccfddb0b2c36af79a8da0c2c5d1ebe7f7a276

Signed-off-by: Daniel Schaefer <dhs@frame.work>
2026-03-16 16:24:29 +08:00
.github/workflows github: Improvements to how the Sphinx virtual environment is set up 2025-01-06 18:06:46 +00:00
_assets Add STM32CubeIDE page for debugging and running STM32 targets 2024-09-16 16:34:57 +01:00
_pinouts pinouts/xilinx-14: Removed some extra whitespace 2023-09-24 06:27:45 -04:00
_static sphinx: Added project logo and description. 2022-07-03 22:23:45 -07:00
_templates misc: Added a side bar version documentation picker 2024-12-26 17:43:28 +00:00
blog misc: more updates for github to codeberg 2026-03-09 14:25:20 -07:00
hacking misc: more updates for github to codeberg 2026-03-09 14:25:20 -07:00
knowledge misc: more updates for github to codeberg 2026-03-09 14:25:20 -07:00
target-usage misc: fix end of files 2023-01-03 11:41:24 -05:00
usage misc: update links github to codeberg 2026-03-08 17:29:58 -07:00
v1.x misc: update link text github to codeberg 2026-03-09 07:53:42 -07:00
.domains Added .domains that is needed by codeberg.page 2026-03-08 17:58:34 -07:00
.gitignore Cleaned up the ignores and included the dev venv 2022-07-03 10:58:31 -04:00
conf.py Correct source_repository setting. 2026-03-08 19:52:34 -07:00
getting-started.md misc: update links github to codeberg 2026-03-08 17:29:58 -07:00
hardware.md misc: more updates for github to codeberg 2026-03-09 14:25:20 -07:00
index.md misc: more updates for github to codeberg 2026-03-09 14:25:20 -07:00
LICENSE misc: Added a license to the repo so the documentation isn't in license purgatory, made it BSD-3-Clause 2026-02-24 11:51:41 +00:00
make.bat Initial commit. 2022-07-03 00:26:12 -07:00
Makefile Use UV to run make builds. 2026-03-15 02:49:15 +01:00
pyproject.toml Switch to patched furo and sphinx-basic-ng that supports codeberg. 2026-03-15 02:49:15 +01:00
README.md Update documentation build environment docs 2024-09-29 17:37:52 +00:00
requirements.txt Corrected versioning. Ablog for furo does not support sphinx >= 9 2026-03-08 17:58:34 -07:00
run_livereload.py livereload: Added a shebang to the top of the file to make using it a little more friendly 2023-07-09 16:07:20 -07:00
supported-targets.md STM32U0 is supported in v2.0.0 2026-03-16 16:24:29 +08:00
upgrade.md misc: update link text github to codeberg 2026-03-09 07:53:42 -07:00
uv.lock Switch to patched furo and sphinx-basic-ng that supports codeberg. 2026-03-15 02:49:15 +01:00

Welcome to the Black Magic Debug website sources.

Feel free to open issues and pull requests for this repository to add and improve the Black Magic Debug project documentation.

Technical overview

The page is a static autogenerated page using sphinx python documentation generator. The resulting page is then deployed to GitHub pages using GitHub actions.

All pages except the autogenerated code documentation are all written in markdown using the myst_parser sphinx plugin.

Structure

The page is divided into topic sections, autogenerated API documentation (TODO) and a blog (TODO).

Each topic section is in it's own subdirectory.

Local preview/testing

When you write contributions to the website you can autogenerate the page locally on your own computer and preview it locally.

If you have python3 available on your system the process is fairly simple.

NOTE: On MacOS you will also need to install the following brew packages:

brew install python3
brew install cairo
brew install pango
brew install python-tk

NOTE: On a Linux system with a minimal Python 3 install you may need to add the following:

apt install python3-tk

fork the repository to your personal account

If you want to contribute to the documentation it is probably a good idea to fork the black-magic-org GitHub repository first.

clone the website sources

Now that you have a fork clone it and create a working branch.

git clone <path to your user>/black-magic-org
cd black-magic-org
git checkout -b feature/adding-more-docs

Note: Obviously feature/adding-more-docs is a placeholder. The should call it something appropriate to your addition. The convention in black-magic is to use feature/ and fix/ prefixes to the branch names to indicate what kind of an addition this new work branch will be.

create and activate venv

This venv is local to the repository as it will be pretty specific to this project.

python3 -m venv env
source env/bin/activate

update pip

pip install --upgrade pip

install dependencies

pip install -r requirements.txt

start previewer

We have a small script that starts a page preview server locally on your machine.

$ python ./run_livereload.py
[SNIP...] here is a bunch of output from make html output to make sure the static
[SNIP...] page is built before starting the livereload server
[I 200910 13:47:15 server:335] Serving on http://127.0.0.1:5500
[I 200910 13:47:15 handlers:62] Start watching changes
[I 200910 13:47:15 handlers:64] Start detecting changes

Now you can point your browser to http://127.0.0.1:5500, and you should see the Black Magic Debug website.

edit pages

Now every time you edit one of the page markdown files the page will automatically update.

Keep in mind that when you create a new page the live_preload does not always pick it up, so you might have to restart it from time to time.

contribute

We are looking forward to your contributions! :D