From 19fe0dbab901418b0e4f04bb78f7eed582c890ab Mon Sep 17 00:00:00 2001 From: Valentin Niess Date: Fri, 23 May 2025 10:19:04 +0200 Subject: [PATCH] Patch the docs table --- .gitignore | 1 + .readthedocs.yaml | 10 +++++++--- docs/src/js/index.js | 7 ++++++- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index fb62e61..9a57aa0 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ __pycache__ AppDir build/* dist +docs/ENV python_appimage.egg-info python_appimage/bin python_appimage/data/excludelist diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 49ea33c..15e02e7 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -1,9 +1,13 @@ version: 2 +build: + os: ubuntu-22.04 + tools: + python: "3.9" + mkdocs: configuration: docs/mkdocs.yml python: - version: 3.8 - install: - - requirements: docs/requirements.txt + install: + - requirements: docs/requirements.txt diff --git a/docs/src/js/index.js b/docs/src/js/index.js index 58d33dc..79c5e5e 100644 --- a/docs/src/js/index.js +++ b/docs/src/js/index.js @@ -4,6 +4,7 @@ $.getJSON("https://api.github.com/repos/niess/python-appimage/releases").done(fu /* Unpack release metadata */ const releases = [] for (const datum of data) { + if (!datum.name.startsWith("Python")) continue; var full_version = undefined; const assets = []; for (const asset of datum.assets) { @@ -189,7 +190,11 @@ $.getJSON("https://api.github.com/repos/niess/python-appimage/releases").done(fu function badge (asset, pad) { - const colors = {i686: "lightgrey", x86_64: "blue"}; + const colors = { + aarch64: "d8dee9", + i686: "81a1c1", + x86_64: "5e81ac" + }; const python = asset.python.split("-")[1]; const arch = asset.arch.replace("_", "__"); var color = colors[asset.arch];