Make books with your Are.na channels
Uses Bindery.js by Evan Brooks: https://github.com/evnbr/bindery
- Download Are.na_Bindery.js
- Download you Are.na Channel as HTML
- unzip and place your channel in the "channels" folder
- open your channel's index.html file
- copy code from code_snippets.html into the index.html file
- open your index.html file in your browser (so far works best on chrome)
- ctrl+p or print in browser
- save as pdf
arena_div_wraps.js adds some divs and classes to the html to make formatting easier. The are.na html is very bare bones and difficult to format.
bindery_print_arena.css is the css. applies formatting. This is were you want to edit how your book looks, unless you want to change the page size - that's in the html from code_snippet.html that you are adding to your index file generated by are.na.
bindery.min.js this is really what's doing all the work formatting the html into a print-ready book.
HTML PATTERN FOR TEXT PAGES
<div class="block text">
<h4>
Title
</h4>
<p>
...body text...
</p>
<p>
...more body text...
</p>
<p>
etc....
</p>
<div class="added_by">
<p>
<em>Added by xxxx @ 05:06pm on 2018-Jun-12</em>
</p>
</div>
<hr>
</div>
HTML PATTERN FOR LINK PAGES:
<div class="block text">
<h4>
<a href="page_link.html">Title</a>
</h4>
<div class="added_by">
<p>
<em>Added by xxxx @ 05:06pm on 2018-Jun-12</em>
</p>
</div>
<hr>
</div>
HTML PATTERN FOR IMAGE/VIDEO/PDF PAGES:
<div class="block attachment">
<p>
<a href=".....jpg">
<img src=".....jpg">
</a>
</p>
<h4>title</h4>
<div class="added_by">
<p>
<em>Added by xxxx @ 05:06pm on 2018-Jun-12</em>
</p>
</div>
<hr>
</div>
Right now the CSS is pretty ugly. Are.na provides really stripped down HTML so we're using a lot of :nth-child(x) pseudo-selectors for formatting, and this doesn' produce the cleanest results. This is addressed somewhat by using the arena_div_wraps.js but this could still use some cleaning up.
Oh, and I don't use git or github a lot so not sure what the best practice is for including Evan's Bindery.js library here.