From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thompson, David" Subject: Re: [PATCH] website: Add support for Haunt. Date: Fri, 6 Nov 2015 15:58:56 -0500 Message-ID: References: <87si4mg4fc.fsf@gnu.org> <87io5gcf5k.fsf@gnu.org> <87lhaac0tw.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45278) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zuo66-0006ZE-7X for guix-devel@gnu.org; Fri, 06 Nov 2015 15:58:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zuo64-0004O7-Vj for guix-devel@gnu.org; Fri, 06 Nov 2015 15:58:58 -0500 Received: from mail-yk0-x231.google.com ([2607:f8b0:4002:c07::231]:33462) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zuo64-0004Na-LY for guix-devel@gnu.org; Fri, 06 Nov 2015 15:58:56 -0500 Received: by ykdv3 with SMTP id v3so107780574ykd.0 for ; Fri, 06 Nov 2015 12:58:56 -0800 (PST) In-Reply-To: <87lhaac0tw.fsf@gnu.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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Cc: guix-devel On Fri, Nov 6, 2015 at 3:47 PM, Ludovic Court=C3=A8s wrote: > "Thompson, David" skribis: > >> On Thu, Nov 5, 2015 at 4:25 PM, Ludovic Court=C3=A8s wrot= e: >>> Mathieu Lirzin skribis: >>> >>>> +Building the website depends on the static site generator: >>>> + >>>> + - [[http://haunt.dthompson.us/][Haunt]] >>>> + >>>> +To build the site, run =E2=80=98haunt build -c guixsd.scm=E2=80=99 to= compile all of >>>> +the HTML pages. To view the results, run =E2=80=98haunt serve -c gui= xsd.scm=E2=80=99 >>>> +and visit in a web browser. >>> >>> This looks nice. >>> >>> Is there a way to specify the output directory for the generated HTML? >>> >>> Currently I do: >>> >>> (export-web-site "/path/to/cvs/checkout") >>> >>> so the HTML ends up directly in the right place. >> >> Yes, you can tweak haunt.scm a bit: >> >> (site ... #:build-directory "/path/to/cvs/checkout") > > And from the command line? I don=E2=80=99t want to hard-code /home/ludo = in the > code. :-) I guess I need to add an option to 'haunt build' for that. >> WARNING: Haunt builds the site afresh at each 'haunt build' run, which >> means that it deletes everything in the build directory first. Will >> that be an issue here? > > That should be fine. OK. I was worried that maybe some "stateful" stuff like the manual html pages would get clobbered or something. - Dave