From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: Re: Web site news to move to Haunt Date: Fri, 28 Oct 2016 07:28:31 +0000 Message-ID: <87funh9bkw.fsf@we.make.ritual.n0.is> References: <87oa27y1iw.fsf@gnu.org> <87funh9xkd.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46540) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c01b3-00006w-Id for guix-devel@gnu.org; Fri, 28 Oct 2016 03:29:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c01b2-0000MG-LH for guix-devel@gnu.org; Fri, 28 Oct 2016 03:29:01 -0400 In-Reply-To: <87funh9xkd.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Fri, 28 Oct 2016 01:33:38 +0200") 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: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel ludo@gnu.org (Ludovic Courtès) writes: > Hello Guix! > > ludo@gnu.org (Ludovic Courtès) skribis: > >> The goal is to manage news using Haunt, and to have a page to display >> them on the web site, something nicer and more flexible than this: >> >> https://savannah.gnu.org/news/?group=guix >> >> And I already enjoy Haunt! :-) > > I’m done! Great work, thanks! > Please visit the news pages and report anything wrong! Also, please > test the feed.xml file; currently IceCat reports that it “does not > appear to have any style information associated with it”, and thus > doesn’t display it nicely. Maybe Haunt omits to emit (ah ha!) the > doctype thingie? For me the feed.xml works (without librejs) with latest icecat. > Because Savannah’s feeds only include the 20 newest entries¹, Assaf > Gordon, who works on Savannah, kindly exported the raw Guix news > database for me (54 entries). > > The database contains the input markup, not the XML that appears in the > feed. Of course the markup is nothing like Markdown, CommonMark, etc. > > So I considered writing a parser in Scheme, but that turned out to be > trickier than I thought, so I turned back to running Savane’s own parser > (PHP!). Since I don’t have PHP on Guix, I ran it on another machine > where it’s installed: PHP as a service. And since I couldn’t run all of > Savane, I just hacked together ‘markup.php’ (attached). High-quality > work. > > And then I reused the atom-parsing code that used to be in our (www) > module to get the damn entries and emit them as SXML for Haunt (file > attached). Phewww. > > I think we should do the same for Guile real soon. > > Anyway, big thanks to Assaf! > > Ludo’. > > ¹ https://lists.gnu.org/archive/html/savannah-hackers-public/2016-10/msg00017.html > > > -- ♥Ⓐ ng0 | ng0.chaosnet.org