bastianschm...@danwin1210.de writes: Maybe you want to consider using pandoc and not actually parse any jinja/html yourself.
In fact, $ pandoc -f html template/news/2024-03-0.21.0.html.j2 -o 0.21.0-news.txt works quite well. But some pre and post processing is necessary: 1. We need to convert the links. I am fine with not having "pretty" links in instead just switch to the full links (i.e. no "Signature" text) 2. We need to insert/replace the oldver/newver macros. This should be quite simple with a simple sed. 3. Some jinja markus must be purged (curly braces) BR > Thank you for the clarification. > To everybody: Don't even think of writing that said script that parses the > .j2 file into a plain text that can be sent via email…, because I'm coding > it right now ;). > > But bare with me: That coding stuff? It's a tone of fun, but entirely > new to me. So, it will be full of mistakes and last an eternity. > I will thoroughly test it to iron out all flaws before handing it out > here, and it's ready when it's done! > > Code contributing to GNUnet project: That's one of the reasons, motivation > why I've started going into the rabbit hole of bash, networking and coding > in the first place. > > > Greetings, > Bastian Schmidt > > On Thu, March 7, 2024 2:18 pm, Schanzenbach, Martin wrote: >> Hi, >> >> >> On 07.03.24 14:09, bastianschm...@danwin1210.de wrote: >> >>> Hello, >>> >>> >>> >>> first of all, GNUnet 0.21.0 - finally brought to this part of the >>> multiverse, that's a biggy. Lots of important work went into it for >>> reaching this point - among others integration of TNG, right? Virtual >>> applause to all devs contributing to this! >>> >>> This important news item - >>> https://www.gnunet.org/en/news/2024-03-0.21.0.html - hasn't appeared on >>> the info-gnu mailing list, yet: >>> https://lists.gnu.org/archive/html/info-gnu/2024-03/threads.html >>> >>> >>> A look into the info-gnu mailing list archive reveals that news of >>> previous GNUnet version publications did appear on this mailing list - >>> for example GNUnet 0.12.0, on Fri, 20 Dec 2019 10:28:59 +0900: >>> https://lists.gnu.org/archive/cgi-bin/namazu.cgi?query=GNUnet&submit=Sea >>> rch%21&idxname=info-gnu&max=20&result=normal&sort=date%3Alate >>> >>> But planet gnu got it: https://planet.gnu.org/ >>> >> >> It is easier to do the news entry first, and that is automatically >> distributed to planet.gnu.org (RSS). I never got around to writing that >> script that parses the .j2 file into a plain text that can be sent via >> email. >> >>> >>> This is a major major release, so please make sure that said news item >>> to it also gets on the info-gnu mailing list. >>> >>> And in the long run—suggestion for improvement: >>> This kind of instance has a history, all together sketching an outlook >>> for process improvement by automation, whenever a major release is on >>> the table. Can't there be any kind of script created, pushing the >>> according news item to planet gnu and the info-gnu mailing list all >>> together just by the push of 1 button? So that not only Martin(?) or >>> tesserakt(?) are eased from this specific task, but also all important >>> spots are covered with this kind of news item securely at the same, >>> immediate time? >>> >>> Last time that got addressed, Martin replied >>> >>> >>> "Still, writing both the email AND the news post is tedious, so it >>> would be nice to only write it once, from a template, and then generate >>> both. Or generate one out of the other, without having to actually send >>> HTML email. >>> >>> >>> >>> That being said, I would actually prefer to only send the link to the >>> news entry, even for major releases. That is the simplest solution. >>> >>> >>> BR" - >>> https://lists.gnu.org/archive/html/gnunet-developers/2023-09/msg00004.ht >>> ml >>> >>> What's status regarding that? >>> >>> >> >> >> It is true that just sending the link is easier. But for a major release >> we should just send the whole message in order to better distribute it to >> people that would otherwise not follow the link occasionally (i.e. for >> major releases). >> >>> >>> Reasoning: >>> This release is a quite important milestone among all releases, and >>> therefore deserves to get spotlight according to that. >>> >> >> Yes, but we already do that: Minor releases only go to our mailing lists >> with a link to the news, major releases get a full email. The email will >> always be delayed a bit, as I use the news entry as template. >> >> BR >> >> >>> >>> Best regards, >>> Bastian Schmidt >>> >>> >>> >> >>
signature.asc
Description: PGP signature