Website of the Perl Weekly newsletter
The 'editorial' process
Gabor: I follow a bunch of RSS/Atom feeds of blogs. Look at some other resource such as http://blogs.perl.org http://www.reddit.com/r/perl and probably a few others. Sometimes people send me e-mails. When I want to start preparing the next edition (and this can happen the day after the previous edition, or if I am too busy, then the day before the next edition is due) I copy src/next.json to the appropriate src/###.json and manually update it. I update the 'title', 'text', 'url', and 'ts' fields. I have not touched the 'tags' for quite some time, though it would be nice to use that too and then display the values. At least on the web site. The 'link' field is going to be update by the bitly script. So I leave that empty.
I first create a 'week-123' branch (where "123" is the current week number, natch). Then I copy my Markdown template in the src/ directory
cp template.mkd src/123.mkd
I keep all the feeds that I usually peruse in data/feeds.url, and I have a script that visit them all and auto-generate entries for anything that appeared in the last week
perl bin/gen_mkd_from_feeds.pl data/feeds.url >> src/123.mkd
I then edit src/123.mkd manually. Add anything else I saw elsewhere, put the entries in the appropriate section (sections that don't have entries will be automatically removed, and entries will also be chronologically sorted in the next step).
Then I convert the markdown in json
perl bin/mkd2json.pl src/123.mkd
Check that all looks good
perl bin/generate.pl web 123 firefox html/archive/123.html
Finally, I commit src/123.json and send a pull request to Gabor.
The final touch
- Update src/next.json to have the next date (this is used on the front page)
- Update src/count.txt from http://mail.perlweekly.com/mailman/admin/perlweekly/members
- add sponsors, if there are any
- Update the
bin/perl-events.pland maybe by moving some old items to
- Copy the section of events from the previous edition, and update it (remove old, add new)
- Add authors where they are missing.
- Run ispell on the source file and try not to "fix" British English with American English
- Run bin/bitly.pl to add the bitly links
- Run bin/generate.pl web all
- I commit, push
- Then run my own 'up.pl' script that will ssh to the production server and pull this repository from github.
- Look at the web page. If things need to be fixed, I go back to one of the previous steps.
- Once I am satisfied I ssh to the perlweekly.com server.
- run perl bin/sendmail.pl --issue --to email@example.com
- look at the received e-mail to see if it looks ok.
- If it does, run the sendmail script again but this time to the address of the perlweekly.com mailing list.
If I don't make a typo there, then Mailman soon sends me two e-mails. One because I sent an e-mail that was held for approval and the other one as I am the list administrator. I follow the link in this second e-mail and approve the message to go out to the mailing list.
Then I go and paste the link of the latest editon in the Perl Developers group on Facebook, the Perl Weekly page on Google+, LinkedIN, Twitter.