From c6e05105528b47a952d5367d5326a349608e456e Mon Sep 17 00:00:00 2001 From: emmett1 Date: Sat, 23 May 2026 20:43:15 +0800 Subject: site updated --- buildsite.sh | 278 +++++++++++++++++++++++++++++++++++++++++++++-------------- files/footer | 4 +- files/header | 200 ++++++++++++++++++++++++++++++------------ readme.md | 1 - 4 files changed, 360 insertions(+), 123 deletions(-) diff --git a/buildsite.sh b/buildsite.sh index 6e24206d..ab604e73 100755 --- a/buildsite.sh +++ b/buildsite.sh @@ -23,72 +23,6 @@ port_depends() { generate_ports_page() { { sed "s/@TITLE@/ports/g" files/header - cat << 'EOF' -" echo "

Package ports generated from repos/core, repos/extra, and repos/community.

" echo "
" echo "" @@ -187,6 +121,218 @@ done generate_ports_page +generate_commits_page() { + { + sed "s/@TITLE@/commits/g" files/header + cat << 'EOF' +

Recent commits from codeberg.org/emmett1/alicelinux.

+ +
loading…
+
+ +EOF + cat files/footer + } > public/commits.html +} + +generate_commits_page + +generate_download_page() { + { + sed "s/@TITLE@/download/g" files/header + + listing=$(curl -sL --max-time 10 https://dl.alicelinux.org/ 2>/dev/null || true) + + cat << 'EOF' +
loading…
+ +EOF + + if [ -n "$listing" ]; then + echo "$listing" | sed -n '//,/<\/tbody>/p' | while IFS= read -r row; do + case $row in + *''*) + href=$(printf '%s' "$row" | sed 's/.*.*/\1/') + name=$(printf '%s' "$row" | sed 's/.*\([^<]*\)<.*/\1/') + size=$(printf '%s' "$row" | sed 's/.*\n' \ + "$(printf '%s' "$url" | html_escape)" \ + "$(printf '%s' "$name" | html_escape)" \ + "$(printf '%s' "$size" | html_escape)" \ + "$(printf '%s' "$date" | html_escape)" + else + printf '\n' \ + "$(printf '%s' "$url" | html_escape)" \ + "$(printf '%s' "$name" | html_escape)" \ + "$(printf '%s' "$size" | html_escape)" \ + "$(printf '%s' "$date" | html_escape)" + fi + ;; + esac + done + fi + + cat << 'EOF' +
]*>\([^<]*\)<.*/\1/') + date=$(printf '%s' "$row" | sed 's/.*\([^<]*\)<.*/\1/') + type=$(printf '%s' "$row" | sed 's/.*\([^<]*\)<.*/\1/') + [ "$name" = "../" ] && continue + url="https://dl.alicelinux.org/$href" + if [ "$type" = "Directory" ]; then + printf '
%s/%s%s
%s%s%s
+ +EOF + cat files/footer + } > public/download.html +} + +generate_download_page + # docs cat docs/readme.md > docs/index.md for f in docs/*.md; do diff --git a/files/footer b/files/footer index 42d9abbd..5b8c2af8 100644 --- a/files/footer +++ b/files/footer @@ -1,5 +1,5 @@ -

-

Copyright (C) Alice Linux, 2024-2026

+
+

Copyright © Alice Linux, 2024-2026

diff --git a/files/header b/files/header index 5faa51d9..bc0b5708 100644 --- a/files/header +++ b/files/header @@ -7,82 +7,174 @@
-

@TITLE@

-
home / docs / ports / development / download / community / donate +
diff --git a/readme.md b/readme.md index dd601a96..680ceda8 100644 --- a/readme.md +++ b/readme.md @@ -1,4 +1,3 @@ -![alicelinux](files/AliceLinux.png) ![alicelinux](files/grimshot-240524-234840.png) **Alice Linux** is my personal daily driver minimal distro that used [Clang/LLVM](https://www.llvm.org/) as main C compiler, [musl](https://musl.libc.org/) as main standard libc library, [libressl](https://www.libressl.org) as main SSL/TLS and cryptographic libraries, [busybox](https://www.busybox.net/) as main core utilities, package manager written in POSIX shell script, [Wayland](https://wayland.freedesktop.org/) as the gui server and trying to be minimal, lightweight and usable as possible. -- cgit v1.2.3