You just want to generate your book in HTML, you know Pillar already, this tutorial is for you.
Some features:
All the new features (new archetypes, architecture, book testing) are on branch dev-7
These commands will install pillar on your machine and provide you a pillar
executable.
Just install a chosen archetype and compile in your desired format
You know Pharo, you want to see the generated book quickly. Start a server in yourProject/_result/html/
.
You can use this in Pharo7 and Pharo6.1
Enjoy your website locally on localhost:1701
.
You want to deploy on Github and host it using Github Pages, follow the next section.
You could notice that, there is no table of contents displayed. We have to change some things in the conf file.
How does it work?? The table of contents starts looking for titles via a specified file. For example, when you have an index.pillar
including
other pillar files (different chapters of your book), Pillar visits titles starting from index.pillar
.
So to have a table of contents displayed, you have to decomment a line in pillar.conf
. The first line of the below picture.
By decommenting this line, you are telling Pillar to starts looking for titles in index.pillar
and so on.
Pay attention index.pillar
is including all other files.
You want to have acces to your website via Internet. You have a free hosting service provided by Gihtub. To use it, just create a Github repository containing your pillar book files. To automatize your book building, you are going to use Travis. Follow this quick start for Travis.