Skip to content

Commit e73a318

Browse files
committed
docs: drop kernel patches from the downloads page, halve the gaps between its sections
Signed-off-by: ravindu644 <droidcasts@protonmail.com>
1 parent 99e05eb commit e73a318

4 files changed

Lines changed: 11 additions & 78 deletions

File tree

‎.github/scripts/build-docs.py‎

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -440,29 +440,6 @@ def make_page(title, body, slug, nav_template, footer_template, pages, is_index=
440440
def fix_img_paths(html):
441441
return re.sub(r'Documentation/resources/', r'assets/resources/', html)
442442

443-
def fetch_kernel_patches():
444-
base = 'https://api.github.com/repos/ravindu644/Droidspaces-OSS/contents/Documentation/resources/kernel-patches'
445-
data = json.loads(urllib.request.urlopen(base).read())
446-
parts = []
447-
for item in data:
448-
if item['type'] == 'dir':
449-
name = item['name']
450-
sub = json.loads(urllib.request.urlopen(item['url']).read())
451-
parts.append(f'<div class="patch-group"><h3 class="patch-group-title">{name}</h3>')
452-
for s in sub:
453-
if s['type'] == 'dir':
454-
sname = s['name']
455-
sub2 = json.loads(urllib.request.urlopen(s['url']).read())
456-
parts.append(f'<div class="patch-subgroup"><h4 class="patch-subgroup-title">{sname}</h4><ul class="patch-list">')
457-
for s2 in sub2:
458-
fname = s2['name']
459-
parts.append(f'<li><a href="{s2["download_url"]}" download><span class="icon" aria-hidden="true">download</span>{fname}</a></li>')
460-
parts.append('</ul></div>')
461-
else:
462-
parts.append(f'<ul class="patch-list"><li><a href="{s["download_url"]}" download><span class="icon" aria-hidden="true">download</span>{s["name"]}</a></li></ul>')
463-
parts.append('</div>')
464-
return '\n'.join(parts)
465-
466443
def fetch_stars():
467444
# None on any failure, so the last stamped value stays
468445
req = urllib.request.Request('https://api.github.com/repos/ravindu644/Droidspaces-OSS')
@@ -558,21 +535,6 @@ def fetch_latest_release():
558535
def build_downloads_page(root, nav_template, footer_template):
559536
dl_nav = nav_template.replace('{{DOCS_ATTR}}', '').replace('{{DOWNLOADS_ATTR}}', ' aria-current="page"')
560537
release_info = fetch_latest_release()
561-
patches_html = '''<div class="patch-group"><h3 class="patch-group-title">GKI</h3>
562-
<div class="patch-subgroup"><h4 class="patch-subgroup-title">below-kernel-6.12</h4><ul class="patch-list">
563-
<li><a href="https://raw.githubusercontent.com/ravindu644/Droidspaces-OSS/main/Documentation/resources/kernel-patches/GKI/below-kernel-6.12/001.GKI-below-6.12-fix_sysvipc_kabi_1_2_3.patch" download><span class="icon" aria-hidden="true">download</span>001.GKI-below-6.12-fix_sysvipc_kabi_1_2_3.patch</a></li>
564-
<li><a href="https://raw.githubusercontent.com/ravindu644/Droidspaces-OSS/main/Documentation/resources/kernel-patches/GKI/below-kernel-6.12/001.GKI-below-6.12-fix_sysvipc_kabi_3_4_5.patch" download><span class="icon" aria-hidden="true">download</span>001.GKI-below-6.12-fix_sysvipc_kabi_3_4_5.patch</a></li>
565-
<li><a href="https://raw.githubusercontent.com/ravindu644/Droidspaces-OSS/main/Documentation/resources/kernel-patches/GKI/below-kernel-6.12/001.GKI-below-6.12-fix_sysvipc_kabi_6_7_8.patch" download><span class="icon" aria-hidden="true">download</span>001.GKI-below-6.12-fix_sysvipc_kabi_6_7_8.patch</a></li>
566-
<li><a href="https://raw.githubusercontent.com/ravindu644/Droidspaces-OSS/main/Documentation/resources/kernel-patches/GKI/below-kernel-6.12/002.5.10_or_lower_use_android_abi_padding_for_posix_mqueue.patch" download><span class="icon" aria-hidden="true">download</span>002.5.10_or_lower_use_android_abi_padding_for_posix_mqueue.patch</a></li>
567-
</ul></div>
568-
<div class="patch-subgroup"><h4 class="patch-subgroup-title">kernel-6.12</h4><ul class="patch-list">
569-
<li><a href="https://raw.githubusercontent.com/ravindu644/Droidspaces-OSS/main/Documentation/resources/kernel-patches/GKI/kernel-6.12/001.GKI-6.12-or-above-fix_sysvipc_kabi.patch" download><span class="icon" aria-hidden="true">download</span>001.GKI-6.12-or-above-fix_sysvipc_kabi.patch</a></li>
570-
</ul></div>
571-
</div>
572-
<div class="patch-group"><h3 class="patch-group-title">non-GKI</h3>
573-
<ul class="patch-list"><li><a href="https://raw.githubusercontent.com/ravindu644/Droidspaces-OSS/main/Documentation/resources/kernel-patches/non-GKI/01.fix_kernel_panic_in_xt_qtaguid.patch" download><span class="icon" aria-hidden="true">download</span>01.fix_kernel_panic_in_xt_qtaguid.patch</a></li></ul>
574-
<ul class="patch-list"><li><a href="https://raw.githubusercontent.com/ravindu644/Droidspaces-OSS/main/Documentation/resources/kernel-patches/non-GKI/02.fix_restore%20cgroup%20file%20prefix%20handling%20.patch" download><span class="icon" aria-hidden="true">download</span>02.fix_restore cgroup file prefix handling .patch</a></li></ul>
575-
</div>'''
576538
if release_info:
577539
version = release_info['version']
578540
date = release_info['date']
@@ -602,7 +564,7 @@ def build_downloads_page(root, nav_template, footer_template):
602564
older_html = '<div class="table-wrap"><table><thead><tr><th>Version</th><th>Date</th><th></th></tr></thead><tbody><tr><td>v6.1.5</td><td>2026-05-15</td><td><a href="https://github.com/ravindu644/Droidspaces-OSS/releases/tag/v6.1.5" rel="noopener noreferrer">Release page</a></td></tr><tr><td>v6.1.0</td><td>2026-05-13</td><td><a href="https://github.com/ravindu644/Droidspaces-OSS/releases/tag/v6.1.0" rel="noopener noreferrer">Release page</a></td></tr><tr><td>v6.0.0</td><td>2026-04-24</td><td><a href="https://github.com/ravindu644/Droidspaces-OSS/releases/tag/v6.0.0" rel="noopener noreferrer">Release page</a></td></tr></tbody></table></div>'
603565
html = fill(os.path.join(root, 'template-downloads.html'), {
604566
'NAV': dl_nav, 'FOOTER': footer_template, 'VERSION': version, 'DATE': date,
605-
'APK_URL': apk_url, 'TAR_URL': tar_url, 'PATCHES': patches_html, 'CHANGELOG': changelog, 'OLDER': older_html})
567+
'APK_URL': apk_url, 'TAR_URL': tar_url, 'CHANGELOG': changelog, 'OLDER': older_html})
606568
with open(os.path.join(root, 'downloads.html'), 'w') as f:
607569
f.write(html)
608570
print("OK: downloads.html")

‎assets/css/site.css‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -469,11 +469,8 @@ main { overflow-x: clip; } /* a shape wider than its column must not scroll the
469469
.card h3 { display: flex; align-items: center; gap: 8px; }
470470
.card h3 .icon { color: var(--md-sys-color-on-surface-variant); }
471471
.card .button { margin-top: 16px; }
472-
.patch-group { margin-top: 32px; }
473-
.patch-group h3, .patch-group h4 { margin: 0 0 12px; font: inherit; font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0.1px; }
474-
.patch-subgroup { margin: 16px 0 0 16px; }
475-
.patch-list { margin: 0; padding: 0; list-style: none; }
476-
.patch-list a { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; text-decoration: none; font: 400 14px/22px "JetBrains Mono", monospace; letter-spacing: 0; overflow-wrap: anywhere; }
472+
/* downloads: one short page, not a sequence of features, so sections share one 96px gap instead of stacking two */
473+
.compact .section + .section { padding-top: 0; }
477474
.changelog { padding: 0 24px; border: 1px solid var(--md-sys-color-outline-variant); border-radius: var(--md-sys-shape-corner-lg); background: var(--md-sys-color-surface-container); }
478475
.changelog summary { display: flex; align-items: center; min-height: 56px; font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0.1px; cursor: pointer; }
479476
.changelog h2 { font-size: 16px; line-height: 24px; font-weight: 600; letter-spacing: 0.15px; }

‎downloads.html‎

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
<head>
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width,initial-scale=1">
6-
<meta name="description" content="Download Droidspaces: the APK for Android, the tarball for Linux, kernel patches and changelogs.">
6+
<meta name="description" content="Download Droidspaces: the APK for Android, the tarball for Linux, and the changelog for every release.">
77
<title>Downloads - Droidspaces</title>
88
<meta property="og:title" content="Downloads - Droidspaces">
9-
<meta property="og:description" content="Download Droidspaces: the APK for Android, the tarball for Linux, kernel patches and changelogs.">
9+
<meta property="og:description" content="Download Droidspaces: the APK for Android, the tarball for Linux, and the changelog for every release.">
1010
<meta property="og:url" content="https://www.droidspaces.org/downloads.html">
1111
<meta property="og:type" content="website">
1212
<meta property="og:image" content="https://i.ibb.co/d4PLN7Gg/og-image.png">
1313
<meta name="twitter:card" content="summary_large_image">
1414
<meta name="twitter:title" content="Downloads - Droidspaces">
15-
<meta name="twitter:description" content="Download Droidspaces: the APK for Android, the tarball for Linux, kernel patches and changelogs.">
15+
<meta name="twitter:description" content="Download Droidspaces: the APK for Android, the tarball for Linux, and the changelog for every release.">
1616
<meta name="twitter:image" content="https://i.ibb.co/d4PLN7Gg/og-image.png">
1717
<link rel="canonical" href="https://www.droidspaces.org/downloads.html">
1818
<link rel="stylesheet" href="/assets/css/site.css">
@@ -40,7 +40,7 @@
4040
</nav>
4141

4242
<!--NAV_END-->
43-
<main>
43+
<main class="compact">
4444
<section class="section">
4545
<h1>Downloads.</h1>
4646
<p class="title-lg">Version v6.6.0, released 2026-09-21. The APK carries the runtime and the app. Linux gets a static tarball with no dependencies.</p>
@@ -59,26 +59,6 @@ <h3><span class="icon" aria-hidden="true">terminal</span>Linux</h3>
5959
<p class="body-md">Every release, with checksums, is on <a href="https://github.com/ravindu644/Droidspaces-OSS/releases" rel="noopener noreferrer">GitHub</a>.</p>
6060
</section>
6161

62-
<section class="section">
63-
<h2>Kernel patches.</h2>
64-
<p class="title-lg">For custom kernel builds. Pick the set for your kernel type and version; the <a href="/docs/kernel-configuration.html">kernel configuration guide</a> says which one applies.</p>
65-
<div class="patch-group"><h3 class="patch-group-title">GKI</h3>
66-
<div class="patch-subgroup"><h4 class="patch-subgroup-title">below-kernel-6.12</h4><ul class="patch-list">
67-
<li><a href="https://raw.githubusercontent.com/ravindu644/Droidspaces-OSS/main/Documentation/resources/kernel-patches/GKI/below-kernel-6.12/001.GKI-below-6.12-fix_sysvipc_kabi_1_2_3.patch" download><span class="icon" aria-hidden="true">download</span>001.GKI-below-6.12-fix_sysvipc_kabi_1_2_3.patch</a></li>
68-
<li><a href="https://raw.githubusercontent.com/ravindu644/Droidspaces-OSS/main/Documentation/resources/kernel-patches/GKI/below-kernel-6.12/001.GKI-below-6.12-fix_sysvipc_kabi_3_4_5.patch" download><span class="icon" aria-hidden="true">download</span>001.GKI-below-6.12-fix_sysvipc_kabi_3_4_5.patch</a></li>
69-
<li><a href="https://raw.githubusercontent.com/ravindu644/Droidspaces-OSS/main/Documentation/resources/kernel-patches/GKI/below-kernel-6.12/001.GKI-below-6.12-fix_sysvipc_kabi_6_7_8.patch" download><span class="icon" aria-hidden="true">download</span>001.GKI-below-6.12-fix_sysvipc_kabi_6_7_8.patch</a></li>
70-
<li><a href="https://raw.githubusercontent.com/ravindu644/Droidspaces-OSS/main/Documentation/resources/kernel-patches/GKI/below-kernel-6.12/002.5.10_or_lower_use_android_abi_padding_for_posix_mqueue.patch" download><span class="icon" aria-hidden="true">download</span>002.5.10_or_lower_use_android_abi_padding_for_posix_mqueue.patch</a></li>
71-
</ul></div>
72-
<div class="patch-subgroup"><h4 class="patch-subgroup-title">kernel-6.12</h4><ul class="patch-list">
73-
<li><a href="https://raw.githubusercontent.com/ravindu644/Droidspaces-OSS/main/Documentation/resources/kernel-patches/GKI/kernel-6.12/001.GKI-6.12-or-above-fix_sysvipc_kabi.patch" download><span class="icon" aria-hidden="true">download</span>001.GKI-6.12-or-above-fix_sysvipc_kabi.patch</a></li>
74-
</ul></div>
75-
</div>
76-
<div class="patch-group"><h3 class="patch-group-title">non-GKI</h3>
77-
<ul class="patch-list"><li><a href="https://raw.githubusercontent.com/ravindu644/Droidspaces-OSS/main/Documentation/resources/kernel-patches/non-GKI/01.fix_kernel_panic_in_xt_qtaguid.patch" download><span class="icon" aria-hidden="true">download</span>01.fix_kernel_panic_in_xt_qtaguid.patch</a></li></ul>
78-
<ul class="patch-list"><li><a href="https://raw.githubusercontent.com/ravindu644/Droidspaces-OSS/main/Documentation/resources/kernel-patches/non-GKI/02.fix_restore%20cgroup%20file%20prefix%20handling%20.patch" download><span class="icon" aria-hidden="true">download</span>02.fix_restore cgroup file prefix handling .patch</a></li></ul>
79-
</div>
80-
</section>
81-
8262
<section class="section">
8363
<h2>What changed in v6.6.0.</h2>
8464
<details class="changelog">

‎template-downloads.html‎

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
<head>
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width,initial-scale=1">
6-
<meta name="description" content="Download Droidspaces: the APK for Android, the tarball for Linux, kernel patches and changelogs.">
6+
<meta name="description" content="Download Droidspaces: the APK for Android, the tarball for Linux, and the changelog for every release.">
77
<title>Downloads - Droidspaces</title>
88
<meta property="og:title" content="Downloads - Droidspaces">
9-
<meta property="og:description" content="Download Droidspaces: the APK for Android, the tarball for Linux, kernel patches and changelogs.">
9+
<meta property="og:description" content="Download Droidspaces: the APK for Android, the tarball for Linux, and the changelog for every release.">
1010
<meta property="og:url" content="https://www.droidspaces.org/downloads.html">
1111
<meta property="og:type" content="website">
1212
<meta property="og:image" content="https://i.ibb.co/d4PLN7Gg/og-image.png">
1313
<meta name="twitter:card" content="summary_large_image">
1414
<meta name="twitter:title" content="Downloads - Droidspaces">
15-
<meta name="twitter:description" content="Download Droidspaces: the APK for Android, the tarball for Linux, kernel patches and changelogs.">
15+
<meta name="twitter:description" content="Download Droidspaces: the APK for Android, the tarball for Linux, and the changelog for every release.">
1616
<meta name="twitter:image" content="https://i.ibb.co/d4PLN7Gg/og-image.png">
1717
<link rel="canonical" href="https://www.droidspaces.org/downloads.html">
1818
<link rel="stylesheet" href="/assets/css/site.css">
@@ -24,7 +24,7 @@
2424
<!--NAV_START-->
2525
{{NAV}}
2626
<!--NAV_END-->
27-
<main>
27+
<main class="compact">
2828
<section class="section">
2929
<h1>Downloads.</h1>
3030
<p class="title-lg">Version {{VERSION}}, released {{DATE}}. The APK carries the runtime and the app. Linux gets a static tarball with no dependencies.</p>
@@ -43,12 +43,6 @@ <h3><span class="icon" aria-hidden="true">terminal</span>Linux</h3>
4343
<p class="body-md">Every release, with checksums, is on <a href="https://github.com/ravindu644/Droidspaces-OSS/releases" rel="noopener noreferrer">GitHub</a>.</p>
4444
</section>
4545

46-
<section class="section">
47-
<h2>Kernel patches.</h2>
48-
<p class="title-lg">For custom kernel builds. Pick the set for your kernel type and version; the <a href="/docs/kernel-configuration.html">kernel configuration guide</a> says which one applies.</p>
49-
{{PATCHES}}
50-
</section>
51-
5246
<section class="section">
5347
<h2>What changed in {{VERSION}}.</h2>
5448
<details class="changelog">

0 commit comments

Comments
 (0)