guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Guix Oficial Website


From: Ludovic Courtès
Subject: Re: Guix Oficial Website
Date: Mon, 25 May 2015 15:39:05 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Luis Felipe López Acevedo <address@hidden> skribis:

> On 2015-05-24 17:48, Luis Felipe López Acevedo wrote:
>>
>> Hi Adam.
>>
>> Yes, I'm aware of those. Most of them are because of a missing Doctype
>> definition on all pages, and because of using XML syntax in
>> self-closing elements. Part of that is related to the current SXML to
>> XML conversion method.
>
> I meant to say that the pages are missing a Document type declaration,

Would the following be enough?

diff --git a/website/www.scm b/website/www.scm
index 5cb0f7f..f2969e2 100644
--- a/website/www.scm
+++ b/website/www.scm
@@ -335,6 +335,7 @@ the broader GNU system.")
   (mkdir* (dirname file))
   (call-with-output-file file
     (lambda (port)
+      (display "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n" port)
       (sxml->xml page port))))
 
 (define* (export-web-site #:optional (directory "."))
Thanks,
Ludo’.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]