Visit Page
1
0
Fork
You've already forked pages
0
The Black Magic Project Website
  • Python 69.9%
  • CSS 27.3%
  • Batchfile 1.4%
  • Makefile 1.2%
  • HTML 0.2%
2026年03月15日 02:49:15 +01: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 supported-targets: Fixed some markdown lint issues in the support tables 2024年12月26日 17:43:30 +00: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