book-publishing system in Racket
Racket JavaScript CSS Python Perl HTML Other
Switch branches/tags
Failed to load latest commit information.
pollen better error & newline behavior Feb 25, 2018
.gitignore ignore 'doc' subdir Jul 4, 2015
.travis.yml Shorten CI build Oct 31, 2017
LGPL.txt add copyright notice to license May 5, 2015
LICENSE Update LICENSE Dec 9, 2017 pull-request tips Jan 23, 2018
info.rkt bump version to 1.3 Dec 11, 2017

Pollen: the book is a program Build Status

A book-publishing system written in Racket. This is the software I use to publish & maintain my web-based books Beautiful Racket, Practical Typography, and Typography for Lawyers.

If you think documents should be programmable, you’ll love it.
If not, you can move along.

Pollen gives you access to a full programming language (Racket) with a text-based syntax that makes it easy to embed code within your documents.

Using Racket 6.0+, install from the command line:

raco pkg install pollen

And update like so:

raco pkg update --update-deps pollen

Official mailing list:!forum/pollenpub

Pull-request tips

I welcome pull requests. But accepting a PR obligates me to maintain that code for the life of Pollen. So if I seem picky about which PRs I accept — yes, because I have to be. No hard feelings.

  • There’s plenty of room for improvement in the Pollen code, because every line of it has been written against the backdrop of ignorance and fallibility, mostly my own.

  • I don’t necessarily prefer PRs to issues or feature requests. A good description of the problem with a working example is better than a half-baked PR. I can often fix it in less time than it would take to review the PR.

  • If you want feedback on a potential PR, I recommend posting to the Pollen mailing list rather than here. Because more people will see it.

  • Small PRs are easier to accept than large ones. Large PRs should have a benefit worthy of their complexity.

  • I consider every PR, but I can’t promise detailed code reviews or comments. Helpful Racketeers can be found on the Pollen mailing list, the Racket mailing list, and the Racket Slack channel.

  • PRs should be necessary, in the sense that the proposed change can only be accomplished by patching this repo. (Corollary: features that can live in a separate package probably should.)

  • PRs should avoid introducing magic behavior (aka the principle of least astonishment).

  • PRs should forbid as little as possible. In particular, PRs should avoid enshrining personal preference as default behavior (because others will have different preferences).

  • PRs should avoid reinventing features that already exist in Racket.

  • If you’re new to Pollen or Racket, your PR is more likely to be declined, because certain things you perceive as bugs are actually features, certain things you perceive as missing are actually present, and certain limitations you perceive as surmountable are actually not. (See also point #1 re: backdrop of ignorance.)

  • PRs that could have unit tests, and don’t, will be treated harshly. As they should.

  • PRs that want to amend Pollen’s public interface receive the highest scrutiny.