Permalink
Browse files

moving over to pandoc build setup and including exported formats

  • Loading branch information...
1 parent 863bfa8 commit eacaeb2cdbe5b0a138b839397401f39408514c47 @addyosmani committed Apr 2, 2012
View
BIN .DS_Store
Binary file not shown.
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
Binary file not shown.
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
Binary file not shown.
@@ -0,0 +1,13 @@
+Kindlegen requires title and author metadata. To generate a mobi file from
+a pandoc ebook, first generate an epub file using the metadata.xml file
+included:
+
+```
+pandoc -f markdown -t epub --epub-metadata=metadata.xml -o backbone-fundamentals.epub index.md
+```
+
+then use the kindlegen tool to make a mobi from that epub:
+
+```
+kindlegen backbone-fundamentals.epub
+```
View
@@ -0,0 +1,4 @@
+<p>
+ <h1>Developing Backbone.js Applications</h1>
+ <h3>By Addy Osmani <a href="http://twitter.com/addyosmani">@addyosmani</a></h3>
+</p>
View
@@ -0,0 +1,14 @@
+
+#pandoc is the path to the pandoc executable. It can either simply be 'pandoc',
+#or if you require a custom path just replace it with that path.
+#e.g /Users/apple/Desktop/usr/local/bin/pandoc
+
+#html
+pandoc -s ../index.md -o ../index.html -c style.css --include-before-body=author.html --include-before-body=share.html --title-prefix='Developing Backbone.js Applications'
+
+#epub
+pandoc -s ../index.md -t epub --epub-metadata=metadata.xml -o ../backbone-fundamentals.epub -c style.css --title-prefix='Developing Backbone.js Applications' --epub-cover-image=../img/cover.jpg
+
+#rtf
+pandoc -s title.txt -S ../index.md -o ../backbone-fundamentals.rtf
+
View
@@ -0,0 +1,4 @@
+<dc:title>Developing Backbone.js Applications</dc:title>
+<dc:creator>Addy Osmani</dc:creator>
+<dc:rights>Creative Commons Attribution Non-Commercial Share Alike 3.0</dc:rights>
+<dc:language>en-US</dc:language>
View
@@ -0,0 +1,9 @@
+<div style="width:500px">
+
+<iframe src="http://markdotto.github.com/github-buttons/github-btn.html?user=addyosmani&amp;repo=backbone-fundamentals&amp;type=watch&amp;count=true" allowtransparency="true" frameborder="0" scrolling="0" width="110px" height="20px"></iframe>
+
+ <iframe allowtransparency="true" frameborder="0" scrolling="no" src="http://platform.twitter.com/widgets/tweet_button.1333103182.html#_=1333404284780&amp;count=horizontal&amp;id=twitter-widget-0&amp;lang=en&amp;original_referer=http%3A%2F%2Faddyosmani.github.com%2Fbackbone-fundamentals%2F&amp;size=m&amp;text=Developing%20Backbone.js%20Applications&amp;url=https%3A%2F%2Fgithub.com%2Faddyosmani%2Fbackbone-fundamentals&amp;via=addy_osmani" class="twitter-share-button twitter-count-horizontal" style="width: 107px; height: 20px; " title="Twitter Tweet Button"></iframe>
+<script id="twitter-wjs" src="//platform.twitter.com/widgets.js"></script><script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+
+ <p>&nbsp;<br></p>
+</div>
View
@@ -0,0 +1,2 @@
+% Developing Backbone.js Applications
+% Addy Osmani
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.

0 comments on commit eacaeb2

Please sign in to comment.