[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/02: website: Tweak 'GUIX_WEB_SITE_LOCAL'.
From: |
Ludovic Courtès |
Subject: |
01/02: website: Tweak 'GUIX_WEB_SITE_LOCAL'. |
Date: |
Thu, 21 Oct 2021 16:57:47 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix-artwork.
commit c2c8e26f3b95a5ee7fe384da1b1f9e235b80cc08
Author: zimoun <zimon.toutoune@gmail.com>
AuthorDate: Thu Oct 21 11:41:37 2021 +0200
website: Tweak 'GUIX_WEB_SITE_LOCAL'.
* website/apps/packages/data.scm (%package-list): Compare to 'yes' instead
of
any value.
* website/README: Document it.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
website/README | 8 ++++++++
website/apps/packages/data.scm | 3 ++-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/website/README b/website/README
index ce2819f..bc623c5 100644
--- a/website/README
+++ b/website/README
@@ -37,6 +37,14 @@ commands:
-- haunt build
#+end_example
+Any other value than =GUIX_WEB_SITE_LOCAL=yes= will build the full website
+considering all the packages and not a small subset. Note that the final
+website is built using the following command:
+
+#+begin_example
+ guix build -f .guix.scm
+#+end_example
+
** Serve locally
#+begin_example
LANG=en_US.UTF-8 guix environment -CN -m manifest.scm \
diff --git a/website/apps/packages/data.scm b/website/apps/packages/data.scm
index d1bbc92..eb34d26 100644
--- a/website/apps/packages/data.scm
+++ b/website/apps/packages/data.scm
@@ -50,7 +50,8 @@
(string<? (package-name p1)
(package-name p2))))))
(cond ((null? packages) '())
- ((getenv "GUIX_WEB_SITE_LOCAL") (list-head packages 300))
+ ((string=? "yes" (getenv "GUIX_WEB_SITE_LOCAL"))
+ (list-head packages 300))
(else packages)))))
(define (all-packages)