Wanting to expand PrologHub into a more rounded community service I thought it’d be great to revamp Learn Prolog Now! into an interactive online book with a little more modern design.
By the terms of the original license, this version is also shared under the same Creative Commons Attribution license, meaning once this work is done it’ll be easier to maintain in the future, especially seen as we’re moving the content into Prolog from Latex. For example a more robust lpn.swi-prolog.org version with SWISH would likely only require changing one file. Under the Attribution license, contributors will be attributed!
Chapter 1 is available as a preview here: lpn.prologhub.pl, checkout the interactive code and quizzes.
If you’d like to help, take a look at the Chapter 1 objects. You can pick a chapter from the book, and create
section2.lgt (These are the numbered headings in the chapter), and
section4.lgt (The practical session), following the same pattern as in Chapter1. (
section3.lgt being the quizzes is a bit more tricky, but you can always extend
leaf_section as a placeholder if you’re feeling brave).
To do this is mostly a case of copying and pasting (learnprolognow.org is handy here), and putting in the appropriate markup. We have
\code_query/2 components declared here: code_components.
Doing this will be a huge help, freeing up time to spend on implementing all those tricky quiz types. Plus, we’ll have a version of Learn Prolog Now! that other languages will be envious of…