Message ID | 20211005140937.19272-1-zimon.toutoune@gmail.com |
---|---|
State | Accepted |
Headers | show |
Series | [bug#50515,v2,1/2] website: Tweak 'GUIX_WEB_SITE_LOCAL'. | expand |
Context | Check | Description |
---|---|---|
cbaines/applying patch | fail | View Laminar job |
cbaines/issue | success | View issue |
cbaines/applying patch | fail | View Laminar job |
cbaines/issue | success | View issue |
cbaines/applying patch | fail | View Laminar job |
cbaines/issue | success | View issue |
cbaines/applying patch | fail | View Laminar job |
cbaines/issue | success | View issue |
cbaines/applying patch | fail | View Laminar job |
cbaines/issue | success | View issue |
cbaines/applying patch | fail | View Laminar job |
cbaines/issue | success | View issue |
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)