|
• Callback CSS • Template-side markup • Content-side markup • poki.cfg • Limitations Naming conventionsYou create files named (for example) template.html and content-for-name-goes-here.html. Poki merges those to create name-goes-here.html.Callback CSSPoki creates boxes with content in them. It renders these using
.pokinav {
display: inline-block;
background: #ffffff;
border: 1;
box-shadow: 0px 0px 3px 3px #c9c9c9;
margin: 10px;
padding-top: 10px;
padding-bottom: 10px;
padding-left: 10px;
padding-right: 10px;
}
.pokitoc {
display: inline-block;
border: 1px solid black;
background: #ffffff;
box-shadow: 0px 0px 3px 3px #c9c9c9;
margin: 10px;
padding-top: 5px;
padding-bottom: 5px;
padding-left: 10px;
padding-right: 10px;
}
.pokipanel {
display: inline-block;
background: #ffffff;
box-shadow: 0px 0px 3px 3px #c9c9c9;
margin: 10px;
padding-top: 2px;
padding-bottom: 2px;
padding-left: 15px;
padding-right: 15px;
}
Template-side markupHere are some things you can put in your template.html:<!-- PAGE GENERATED FROM template.html and content-for-index.html BY poki. --> <!-- PLEASE MAKE CHANGES THERE AND THEN RE-RUN poki. --> Content-side markup<h1>Section name</h1> <h1>Section name</h1><a id="Section name"/> <a href="#Section name">Section name</a> $ uptime 19:44 up 17 days, 6:58, 4 users, load averages: 2.37 2.00 1.80 poki.cfgThis pageset’s poki.cfg looks like this:# Here is a comment index.html About Poki walkthrough.html Walkthrough details.html Details # Here is another comment setup.html Setup contact.html Contact information # Blank lines are ignored: ext:http://github.com/johnkerl/poki GitHub repo
LimitationsPoki isn’t very smart — it’s just a few hundred lines of Ruby. I wrote it in about an hour to get the minimal set of features I wanted, although I’ve tweaked it a bit since then. Everything that follows is true as of May 2015:
|