runemadsen / Magic-Book-Project

DEPRECATED: We are reviving the Magic Book project as a node package: https://github.com/magicbookproject/magicbook
http://itp.nyu.edu
620 stars 62 forks source link

Table of Contents Heading #145

Closed shiffman closed 11 years ago

shiffman commented 11 years ago

I want to be able to customize this easily. I see I can just change:

<h2>Table of Contents</h2>

in "toc.html.erb" to whatever I want (in this case "Contents") but b/c this is in the submodule, not sure if there is a better more generic solution?

Manindra29 commented 11 years ago

I noticed that on changing this header, only index.html is getting affected (by calling create_html) but the heading in the pdf stayed the same(when I use create_pdf). I think I'm missing something?

stevenklise commented 11 years ago

You can create "toc.html.erb" files in the raw/noc_html/views and raw/noc_pdf/views directories and they will override the view from the submodule.

stevenklise commented 11 years ago

Closed with shiffman/the-nature-of-code@b19f096