From 012202a3e203e24299818a96164db7d596972f4c Mon Sep 17 00:00:00 2001 From: Melissa LeBlanc-Williams Date: Thu, 18 Dec 2025 14:12:24 -0800 Subject: [PATCH] Add frozen module link exceptions --- _data/modules.json | 7 +++++++ _includes/download/board.html | 6 ++++++ 2 files changed, 13 insertions(+) create mode 100644 _data/modules.json diff --git a/_data/modules.json b/_data/modules.json new file mode 100644 index 000000000..903af8f3c --- /dev/null +++ b/_data/modules.json @@ -0,0 +1,7 @@ +{ + "modules": { + "stage": "https://circuitpython-stage.readthedocs.io/#module-stage", + "ugame": "https://circuitpython-stage.readthedocs.io/#module-ugame", + "adafruit_connection_manager": "https://docs.circuitpython.org/projects/connectionmanager/" + } +} \ No newline at end of file diff --git a/_includes/download/board.html b/_includes/download/board.html index 5154cca36..da65710d2 100644 --- a/_includes/download/board.html +++ b/_includes/download/board.html @@ -7,6 +7,7 @@ {% assign stable = board[0].versions | where: "stable", true | sort: "version" %} {% assign unstable = board[0].versions | where: "stable", false | sort: "version" %} {% assign bootloaders = site.data.bootloaders.bootloaders %} +{% assign modules = site.data.modules.modules %} {% assign bootloader_info = bootloaders[page.family] %} {% assign bootloader_version = bootloader_info.version %} {% assign bootloader_id = page.bootloader_id %} @@ -184,7 +185,12 @@

CircuitPython {{ version.version }}

Included frozen(?) modules: {% for module_name in version.frozen_libraries %} + {% assign module_link = modules[module_name] %} + {% if module_link %} + + {% else %} + {% endif %} {{ module_name }}{% unless forloop.last %}, {% endunless %} {% endfor %}