From: zimoun <zimon.toutoune@gmail.com>
To: 50515@debbugs.gnu.org
Cc: zimoun <zimon.toutoune@gmail.com>
Subject: [bug#50515] [PATCH 1/2] website: Tweak 'GUIX_WEB_SITE_LOCAL'.
Date: Sat, 11 Sep 2021 02:26:07 +0200 [thread overview]
Message-ID: <20210911002608.14074-1-zimon.toutoune@gmail.com> (raw)
In-Reply-To: <20210911001424.9860-1-zimon.toutoune@gmail.com>
* website/apps/packages/data.scm (%package-list): Compare to 'yes' instead of
any value.
* website/README: Document it.
---
website/README | 3 +++
website/apps/packages/data.scm | 3 ++-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/website/README b/website/README
index ce2819f..19951d6 100644
--- a/website/README
+++ b/website/README
@@ -37,6 +37,9 @@ 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.
+
** 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)
--
2.29.2
next prev parent reply other threads:[~2021-09-11 0:27 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-11 0:14 [bug#50515] (guix-artwork)[PATCH 0/2] List linux origins in 'sources.json' zimoun
2021-09-11 0:26 ` zimoun [this message]
2021-09-11 0:26 ` [bug#50515] [PATCH 2/2] website: Add 'computed-origin-method' packages to 'sources.json' zimoun
2021-10-01 14:16 ` zimoun
2021-10-04 7:53 ` Ludovic Courtès
2021-10-05 14:09 ` zimoun
2021-09-12 0:54 ` Mark H Weaver
2021-09-13 7:01 ` zimoun
2021-09-16 0:07 ` Mark H Weaver
2021-09-16 11:48 ` zimoun
2021-10-05 14:09 ` [bug#50515] [PATCH v2 1/2] website: Tweak 'GUIX_WEB_SITE_LOCAL' zimoun
2021-10-05 14:09 ` [bug#50515] [PATCH v2 2/2] website: Add 'computed-origin-method' packages to 'sources.json' zimoun
2021-10-18 12:23 ` [bug#50515] (guix-artwork)[PATCH 0/2] List linux origins in 'sources.json' Ludovic Courtès
2021-10-21 9:42 ` zimoun
2021-10-21 9:41 ` [bug#50515] [PATCH v3 1/2] website: Tweak 'GUIX_WEB_SITE_LOCAL' zimoun
2021-10-21 9:41 ` [bug#50515] [PATCH v3 2/2] website: Add 'computed-origin-method' packages to 'sources.json' zimoun
2021-10-21 20:58 ` bug#50515: (guix-artwork)[PATCH 0/2] List linux origins in 'sources.json' Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210911002608.14074-1-zimon.toutoune@gmail.com \
--to=zimon.toutoune@gmail.com \
--cc=50515@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).