Skip to content

G4Vi/Perl-Advent

This branch is 605 commits behind perladvent/Perl-Advent:main.

Folders and files

NameName
Last commit message
Last commit date
Dec 5, 2022
Dec 23, 2011
Dec 23, 2011
Dec 23, 2011
Dec 23, 2011
Dec 23, 2011
Dec 23, 2011
Dec 23, 2011
Dec 23, 2011
Dec 23, 2011
May 5, 2012
Dec 23, 2011
Jul 27, 2022
Aug 4, 2022
Aug 4, 2022
Jul 27, 2022
Dec 24, 2015
Aug 4, 2022
Aug 4, 2022
Jul 27, 2022
Jul 27, 2022
Aug 4, 2022
Nov 17, 2022
Dec 8, 2022
Dec 23, 2011
Dec 6, 2022
Nov 18, 2022
Nov 18, 2022
Dec 23, 2011
Nov 18, 2022
Oct 8, 2012
Nov 18, 2022
Dec 23, 2011
Nov 30, 2022
Dec 23, 2018
Oct 8, 2012
Nov 18, 2022
Oct 7, 2011
Dec 1, 2022
Nov 18, 2022
Dec 23, 2011

Repository files navigation

Perl Advent Calendar

The Perl Advent Calendar is a series of articles that run from December 1 to 25 each year.

Authors

Raise an issue suggesting your topic.

Fork the repo and start a new article. The script will prompt you for a few things and will create a new file for you under YEAR/incoming/.

$ perl script/new_article

Edit your article, and test it as you work:

$ perl t/article_pod.t 2022/incoming/your-article.pod

When you are satisfied, create a pull request. You can keep working on the article and pushing updates to your fork; the pull request will automatically see the updates.

The website

1. Build root files

To create some root files from archives.yaml:

  • archive.html - list of advent calendars
  • archives-AZ.html - list of modules
  • archives-Yd.html - list of articles

Execute the following script:

$ perl mkarchives

2. Build all (recent) advent calendars

$ sudo cpanm WWW::AdventCalendar

Then build all recent calendars

$ for year in 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021; do cd $year && advcal -c advent.ini -o `pwd` && cd ..; done

3. Test (locally)

Install Plack:

$ sudo cpanm Plack

Start HTTP webserver in one line:

$ plackup -MPlack::App::Directory -e 'Plack::App::Directory->new(root=>".");' -p 8080

You can visit http://localhost:8080/index.html

About

the Perl Advent calendar

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 88.1%
  • Perl 8.4%
  • JavaScript 1.8%
  • CSS 1.4%
  • Raku 0.2%
  • Emacs Lisp 0.1%