From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Luis_Felipe_L=C3=B3pez_Acevedo?= Subject: Re: Website development questions Date: Sun, 20 Nov 2016 20:39:05 -0500 Message-ID: References: <1e6da887355434e25f4190b53cdb2f26@openmailbox.org> <877f85gj51.fsf@gnu.org> <4c33f39cbd6c869e205ba58503e93bf4@openmailbox.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38091) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c8dZp-0004cd-Uv for guix-devel@gnu.org; Sun, 20 Nov 2016 20:39:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c8dZm-0000J0-Oh for guix-devel@gnu.org; Sun, 20 Nov 2016 20:39:21 -0500 Received: from smtp2.openmailbox.org ([62.4.1.36]:56103) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c8dZm-0000IG-EL for guix-devel@gnu.org; Sun, 20 Nov 2016 20:39:18 -0500 In-Reply-To: <4c33f39cbd6c869e205ba58503e93bf4@openmailbox.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: =?UTF-8?Q?Luis_Felipe_L=C3=B3pez_Acevedo?= Cc: guix-devel@gnu.org On 2016-11-20 15:17, Luis Felipe L=C3=B3pez Acevedo wrote: > On 2016-11-15 04:57, ludo@gnu.org wrote: >> Hello! >>=20 >> Luis Felipe L=C3=B3pez Acevedo skribis: >>=20 >>> I cloned the website to try a fix for bug #22115, and wanted to ask >>> first what process do you follow to try out the whole website=20 >>> locally? >>> When I build and serve the website with Haunt, I face the following >>> problems: >>>=20 >>> 1. Pages don't load static files because they are looking for the >>> "static" directory in "/software/guix/static". Do I need to set some >>> variable first? >>=20 >> To test locally, you need to do: >>=20 >> $ GUIX_WEB_SITE_LOCAL=3Dyes haunt build >> $ haunt serve >>=20 >> There should be no broken links, except for links to the manual or=20 >> other >> parts of gnu.org. >>=20 >> I suppose this should go to README=E2=80=A6 >>=20 >>> 2. The Packages and Packages Issues pages, which are defined in (www >>> packages) are commented out. How do you deal with those in >>> development? >>=20 >> That=E2=80=99s on purpose, so that people don=E2=80=99t need to have G= uix installed to >> hack on the web site. >>=20 >> We build these pages separately using the =E2=80=98export-web-page=E2=80= =99 procedure. >=20 > Ludo, I'm not sure how to do this part. Do I just import (www) and > (www packages) in a REPL, and call `export-web-page` for each page > (packages index and issues)? You don't have to modify `www.scm` at all > (uncomment elements in the %web-pages list, for example)? >=20 > Also, trying just that, when I try importing (www packages), (guix ui) > is not found in my system: >=20 > scheme@(guile-user)> (use-modules (www packages)) > ;;; compiling=20 > /home/anonimo/Documentos/guix-artwork/website/www/packages.scm > ;;; WARNING: compilation of > /home/anonimo/Documentos/guix-artwork/website/www/packages.scm failed: > ;;; ERROR: no code for module (guix ui) > While compiling expression: > ERROR: no code for module (guix ui) >=20 > I'm using Guile 2.0.13 installed from Guix binary on Debian 8, and > guix is version 20161113.19. Where are Guix modules? >=20 > Thanks, In the meantime, I cloned guix repo, and added the source directory to=20 Guile's load path. The error above is gone, but now I get this one: scheme@(guile-user)> (use-modules (www) (www packages)) ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=3D0 ;;; or pass the --no-auto-compile argument to disable. ;;; compiling=20 /home/anonimo/Documentos/guix-artwork/website/www/packages.scm ;;; compiling /home/anonimo/Documentos/guix/guix/ui.scm ;;; compiling /home/anonimo/Documentos/guix/guix/utils.scm ;;; WARNING: compilation of=20 /home/anonimo/Documentos/guix/guix/utils.scm failed: ;;; ERROR: no code for module (guix config) ;;; WARNING: compilation of=20 /home/anonimo/Documentos/guix/guix/ui.scm failed: ;;; ERROR: no code for module (guix config) ;;; compiling /home/anonimo/Documentos/guix/guix/store.scm ;;; WARNING: compilation of=20 /home/anonimo/Documentos/guix/guix/store.scm failed: ;;; ERROR: no code for module (guix config) ;;; WARNING: compilation of=20 /home/anonimo/Documentos/guix-artwork/website/www/packages.scm failed: ;;; ERROR: no code for module (guix config) While compiling expression: ERROR: no binding `guix-warning-port' in module (guix ui) And still curious about how to import guix modules without using a=20 checkout :) --=20 Luis Felipe L=C3=B3pez Acevedo http://sirgazil.bitbucket.org/