From: ng0 <ng0@we.make.ritual.n0.is>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: Web site news to move to Haunt
Date: Fri, 28 Oct 2016 07:28:31 +0000 [thread overview]
Message-ID: <87funh9bkw.fsf@we.make.ritual.n0.is> (raw)
In-Reply-To: <87funh9xkd.fsf@gnu.org> ("Ludovic Courtès"'s message of "Fri, 28 Oct 2016 01:33:38 +0200")
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
next prev parent reply other threads:[~2016-10-28 7:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-26 8:09 Web site news to move to Haunt Ludovic Courtès
2016-10-26 17:54 ` Christopher Allan Webber
2016-10-27 23:33 ` Ludovic Courtès
2016-10-28 7:28 ` ng0 [this message]
2016-10-28 11:46 ` Andy Wingo
2016-11-04 3:29 ` Eric Bavier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87funh9bkw.fsf@we.make.ritual.n0.is \
--to=ng0@we.make.ritual.n0.is \
--cc=guix-devel@gnu.org \
--cc=ludo@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.