all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: "Luis Felipe López Acevedo" <felipe.lopez@openmailbox.org>
Cc: guix-devel@gnu.org
Subject: Re: Website development questions
Date: Mon, 21 Nov 2016 15:01:27 +0100	[thread overview]
Message-ID: <87shqlvsnc.fsf@gnu.org> (raw)
In-Reply-To: <f00c6c43aeb4060db4cf4d592de720cb@openmailbox.org> ("Luis Felipe López Acevedo"'s message of "Sun, 20 Nov 2016 20:39:05 -0500")

¡Hola!

Luis Felipe López Acevedo <felipe.lopez@openmailbox.org> skribis:

> On 2016-11-20 15:17, Luis Felipe López Acevedo wrote:
>> On 2016-11-15 04:57, ludo@gnu.org wrote:
>>> Hello!
>>>
>>> Luis Felipe López Acevedo <felipe.lopez@openmailbox.org> skribis:
>>>
>>>> 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
>>>> locally?
>>>> When I build and serve the website with Haunt, I face the following
>>>> problems:
>>>>
>>>> 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?
>>>
>>> To test locally, you need to do:
>>>
>>>   $ GUIX_WEB_SITE_LOCAL=yes haunt build
>>>   $ haunt serve
>>>
>>> There should be no broken links, except for links to the manual or
>>> other
>>> parts of gnu.org.
>>>
>>> I suppose this should go to README…
>>>
>>>> 2. The Packages and Packages Issues pages, which are defined in (www
>>>> packages) are commented out. How do you deal with those in
>>>> development?
>>>
>>> That’s on purpose, so that people don’t need to have Guix installed to
>>> hack on the web site.
>>>
>>> We build these pages separately using the ‘export-web-page’ procedure.
>>
>> 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)?
>>
>> Also, trying just that, when I try importing (www packages), (guix ui)
>> is not found in my system:
>>
>>     scheme@(guile-user)> (use-modules (www packages))
>>     ;;; compiling
>> /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)
>>
>> I'm using Guile 2.0.13 installed from Guix binary on Debian 8, and
>> guix is version 20161113.19. Where are Guix modules?
>>
>> Thanks,
>
> In the meantime, I cloned guix repo, and added the source directory to
> 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=0
>     ;;;       or pass the --no-auto-compile argument to disable.
>     ;;; compiling
> /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
> /home/anonimo/Documentos/guix/guix/utils.scm failed:
>     ;;; ERROR: no code for module (guix config)
>     ;;; WARNING: compilation of
> /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
> /home/anonimo/Documentos/guix/guix/store.scm failed:
>     ;;; ERROR: no code for module (guix config)
>     ;;; WARNING: compilation of
> /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
> checkout :)

This part requires a Guix installation; a mere checkout won’t do, it has
to be configured (the (guix config) module is created by ./configure).
I think it doesn’t require a running daemon though, so you could do away
by simply making a checkout and running ./configure in there.

HTH!

Ludo’.

  reply	other threads:[~2016-11-21 14:01 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-14 18:15 Website development questions Luis Felipe López Acevedo
2016-11-15  9:57 ` Ludovic Courtès
2016-11-16 17:55   ` Luis Felipe López Acevedo
2016-11-20 20:17   ` Luis Felipe López Acevedo
2016-11-21  1:39     ` Luis Felipe López Acevedo
2016-11-21 14:01       ` Ludovic Courtès [this message]
2016-11-21 14:55         ` Luis Felipe López Acevedo
2016-11-22 22:52           ` Ludovic Courtès
2016-11-23  0:59             ` Luis Felipe López Acevedo
2016-11-23 22:11               ` Ludovic Courtès
2016-11-24  1:24                 ` Luis Felipe López Acevedo
2016-11-26 17:37                   ` Ludovic Courtès
2016-11-27  1:02                     ` Luis Felipe López Acevedo
2016-11-27  1:27                       ` Luis Felipe López Acevedo
2016-11-28 14:02                         ` 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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87shqlvsnc.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=felipe.lopez@openmailbox.org \
    --cc=guix-devel@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 external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.