On Fri, Nov 6, 2015 at 3:47 PM, Ludovic Courtès <l...@gnu.org> wrote: > "Thompson, David" <dthomps...@worcester.edu> skribis: > >> On Thu, Nov 5, 2015 at 4:25 PM, Ludovic Courtès <l...@gnu.org> wrote: >>> Mathieu Lirzin <m...@gnu.org> skribis: >>> >>>> +Building the website depends on the static site generator: >>>> + >>>> + - [[http://haunt.dthompson.us/][Haunt]] >>>> + >>>> +To build the site, run ‘haunt build -c guixsd.scm’ to compile all of >>>> +the HTML pages. To view the results, run ‘haunt serve -c guixsd.scm’ >>>> +and visit <http://localhost:8080> 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’t 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