@@ -440,29 +440,6 @@ def make_page(title, body, slug, nav_template, footer_template, pages, is_index=
440440def 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-
466443def 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():
558535def 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" )
0 commit comments