Patch the docs table

This commit is contained in:
Valentin Niess
2025-05-23 10:19:04 +02:00
parent f9b46b5e7f
commit 19fe0dbab9
3 changed files with 14 additions and 4 deletions

1
.gitignore vendored
View File

@@ -5,6 +5,7 @@ __pycache__
AppDir AppDir
build/* build/*
dist dist
docs/ENV
python_appimage.egg-info python_appimage.egg-info
python_appimage/bin python_appimage/bin
python_appimage/data/excludelist python_appimage/data/excludelist

View File

@@ -1,9 +1,13 @@
version: 2 version: 2
build:
os: ubuntu-22.04
tools:
python: "3.9"
mkdocs: mkdocs:
configuration: docs/mkdocs.yml configuration: docs/mkdocs.yml
python: python:
version: 3.8 install:
install: - requirements: docs/requirements.txt
- requirements: docs/requirements.txt

View File

@@ -4,6 +4,7 @@ $.getJSON("https://api.github.com/repos/niess/python-appimage/releases").done(fu
/* Unpack release metadata */ /* Unpack release metadata */
const releases = [] const releases = []
for (const datum of data) { for (const datum of data) {
if (!datum.name.startsWith("Python")) continue;
var full_version = undefined; var full_version = undefined;
const assets = []; const assets = [];
for (const asset of datum.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) { 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 python = asset.python.split("-")[1];
const arch = asset.arch.replace("_", "__"); const arch = asset.arch.replace("_", "__");
var color = colors[asset.arch]; var color = colors[asset.arch];