On Fri, 28 Oct 2016 01:33:38 +0200 l...@gnu.org (Ludovic Courtès) wrote: > Hello Guix! > > l...@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!
Looks great! > > 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? IceCat reported the missing style for me on the first visit, but then on a second visit seemed to apply some of its own default styling? IDK. I was able to import it into my RSS reader. > > 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. Sounds like fun ;) `~Eric