This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 75891c85 Simplify downloads output
75891c85 is described below

commit 75891c85c69db659f22725a356598638f0cabaf5
Author: Sebb <[email protected]>
AuthorDate: Wed Oct 15 11:50:48 2025 +0100

    Simplify downloads output
---
 tools/site-scan.rb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/tools/site-scan.rb b/tools/site-scan.rb
index 92b82c4c..6d6cc631 100755
--- a/tools/site-scan.rb
+++ b/tools/site-scan.rb
@@ -235,8 +235,10 @@ def parse(id, site, name, podling=false)
   if nodisclaimer.size > 0
     data[:disclaimers] = [hasdisclaimer, nodisclaimer]
   end
-  # Show potential download pages
-  data[:downloads] = subpages.select{|k,_v| k =~ 
%r{download|release|install|dlcdn\.apache\.org|dyn/closer}i}
+  # Show potential download pages and related text
+  data[:downloads] = subpages.
+    select{|k,_v| k =~ 
%r{download|release|install|dlcdn\.apache\.org|dyn/closer}i}.
+    map {|k,v| [k,v.text]}.to_h
 
   # THIRD: see if an image has been uploaded
   data[:image] = ASF::SiteImage.find(id)

Reply via email to