GNU bug report logs - #59385
[PATCH] website: Link to the new packages browser

Previous Next

Package: guix-patches;

Reported by: Luis Felipe <luis.felipe.la <at> protonmail.com>

Date: Sat, 19 Nov 2022 13:48:02 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 59385 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Luis Felipe <luis.felipe.la <at> protonmail.com>
Cc: 59385 <at> debbugs.gnu.org
Subject: Re: bug#59385: [PATCH] website: Link to the new packages browser
Date: Mon, 21 Nov 2022 12:05:20 +0100
[Message part 1 (text/plain, inline)]
Hi,

Luis Felipe <luis.felipe.la <at> protonmail.com> skribis:

> From ad0effaab60acdb7bd0e533bd544b49a4bee8a2b Mon Sep 17 00:00:00 2001
> From: Luis Felipe <luis.felipe.la <at> protonmail.com>
> Date: Sat, 19 Nov 2022 08:21:04 -0500
> Subject: [PATCH] website: Link to the new packages browser.
>
> Update all package-related links to point to the newly deployed browser
> at https://packages.guix.gnu.org/.
>
> * website/apps/base/utils.scm (packages-url): New procedure.
> * website/apps/base/data.scm (contact-media): Use packages-url.
> * website/apps/base/templates/components.scm (navbar): Likewise.
> * website/apps/base/templates/contribute.scm (contribute-t): Likewise.
> * website/apps/base/templates/donate.scm (donate-t): Likewise.
> * website/apps/base/templates/home.scm (home-t): Likewise.

Awesome, pushed!

While we’re at it, can we also disable individual package page
generation?  It takes a lot of time to build and uses quite a lot of
space as well; I’m eager to see them go.  :-)

Maybe we can add a redirect from <https://guix.gnu.org/en/packages>
pages like this:

[Message part 2 (text/x-patch, inline)]
diff --git a/hydra/modules/sysadmin/nginx.scm b/hydra/modules/sysadmin/nginx.scm
index 3c3456d..0a8b1a8 100644
--- a/hydra/modules/sysadmin/nginx.scm
+++ b/hydra/modules/sysadmin/nginx.scm
@@ -75,6 +75,13 @@ synonymous IETF language tags that should be mapped to the same $lang."
 
 (define guix.gnu.org-redirect-locations
   (list
+   (nginx-location-configuration
+    (uri "~ /packages/.*")
+    (body (list "return 301 https://packages.guix.gnu.org")))
+   (nginx-location-configuration
+    (uri "~ /([^/]+)/packages/.*")
+    (body (list "return 301 https://packages.guix.gnu.org")))
+
   ;; Short URL for the installation script
   (redirect "/install.sh" "https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh")
   ;; What follows is a list of redirects for URLs that used to be
[Message part 3 (text/plain, inline)]
If we’re serious about it, we can try to match the package/version in
URLs like <https://guix.gnu.org/en/packages/julia-mappedarrays-0.4.0/>
and redirect to the right one.  Not sure if that’s worth the trouble
though.

Thanks!

Ludo’.

This bug report was last modified 2 years and 213 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.