Skip to content
This repository has been archived by the owner on Jul 12, 2020. It is now read-only.

Refactor authentication #676

Open
wants to merge 914 commits into
base: labs
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
914 commits
Select commit Hold shift + click to select a range
4cc93e8
Some spelling and grammatical fixes.
aodin Feb 20, 2013
c80781e
Merge pull request #335 from aodin/gh-pages
addyosmani Feb 20, 2013
f175a78
Chapter 8 - Minor revisions/corrections
Feb 21, 2013
91a3acf
Merge remote-tracking branch 'upstream/gh-pages' into gh-pages
Feb 21, 2013
2aa7635
Merge pull request #338 from dcmaf/gh-pages
addyosmani Feb 21, 2013
459f998
adding note about underscore methods
addyosmani Feb 22, 2013
46a9a1c
removing in-place editing line
addyosmani Feb 22, 2013
1bb1695
fixes #340 - patch for thorax example
addyosmani Feb 22, 2013
045b65e
dropping mac/linux/win specifics for bb
addyosmani Feb 22, 2013
7ada725
updating line about yeoman
addyosmani Feb 22, 2013
85c2c15
Switching order of chapters 7, 8 for #343
addyosmani Feb 23, 2013
c91b618
removing second image from Marionette walkthrough as part of #343
addyosmani Feb 23, 2013
7e765b4
adding example of bbb output for #322 point 4
addyosmani Feb 23, 2013
1d896eb
adding earlier description of Backbone.LayoutManager for #322 point 6
addyosmani Feb 23, 2013
f591090
adding explanations of precompilation, concat, minification for #322 …
addyosmani Feb 23, 2013
90d2867
cleaning up related tools/projects for #322 point 7
addyosmani Feb 23, 2013
ef3b9a5
rearranging chapters as suggested in #322. Note that existing issues …
addyosmani Feb 23, 2013
6d38a9e
Redoing all screenshots for practical 1 as a part of #333 point 7
addyosmani Feb 23, 2013
f88b07c
updating install instructions for bb for #336
addyosmani Feb 23, 2013
c34c2b4
revising chapter on bbb and backbone boilerplate, updating to latest …
addyosmani Feb 23, 2013
cd045a2
Fixes #310 - drops unnecessary model test in jasmine chapter
addyosmani Feb 23, 2013
110abbf
Misc comment fix
Feb 23, 2013
71d0040
A lot of small corrections for the second half of the book.
wibblymat Feb 26, 2013
f4fd760
Merge pull request #350 from wibblymat/modular-corrections
addyosmani Feb 27, 2013
6eb349e
Chapter 8: Modular Development - minor rewording/changes
Feb 28, 2013
ec60f80
Chapter 8: Modular Development - minor changes
Feb 28, 2013
6d0b0de
Fix typo
timhudson Feb 28, 2013
d34f4e7
Small fixes for a link and reference to this.el.
samuelclay Mar 1, 2013
be7e420
Unit testing chapters (jasmine, qunit, sinonjs) - minor changes
Mar 4, 2013
0b49ba9
Fix minor typos.
sgeralnik Mar 4, 2013
2caa6cb
Unit testing chapters (11-13) - additional minor edits/corrections.
Mar 5, 2013
06f5398
validation errors trigger an invalid event
truk Mar 5, 2013
e4da47f
Removing superfluous files incorrectly added via a bad PR.
addyosmani Mar 5, 2013
8acef41
Merge pull request #353 from dcmaf/gh-pages
addyosmani Mar 5, 2013
734e07b
Merge pull request #363 from truk/gh-pages
addyosmani Mar 5, 2013
63f0ba7
Merge pull request #351 from timhudson/gh-pages
addyosmani Mar 5, 2013
8bf3aa5
Merge pull request #356 from samuelclay/gh-pages
addyosmani Mar 5, 2013
9f0f416
Merge pull request #345 from Florent2/gh-pages
addyosmani Mar 5, 2013
a0b41b7
Merge pull request #360 from sgeralnik/gh-pages
addyosmani Mar 5, 2013
247f5bb
Fixes #365 - incorrect path referenced
addyosmani Mar 10, 2013
4dc441b
Fixes broken links in resources
addyosmani Mar 10, 2013
870da0c
Adding in hashmarks from jhabdas. Fixes #357
addyosmani Mar 10, 2013
24ac754
updating getting started section, code samples, adding note for begin…
addyosmani Mar 10, 2013
db7cf61
For #347, removing early ref of Backbone Koans in favor of a later one
addyosmani Mar 10, 2013
df8f4fa
For #347, replacing underscore syntax in example with generic placeho…
addyosmani Mar 10, 2013
1d0eb76
For #347, removing script tags paragraph and jasmine-jquery eg as it …
addyosmani Mar 10, 2013
f70acc8
For #347, removing extra ref to external sinon post
addyosmani Mar 10, 2013
ded7049
rebuilding book
addyosmani Mar 10, 2013
0043404
For #349, clarifications to factory line, removed refs to third perso…
addyosmani Mar 10, 2013
a41f62f
For #349, revises some of the section on optimizing backbone apps wit…
addyosmani Mar 10, 2013
5cf8427
Chapter 5: Exercise 2: Book Library minor updates/clarifications.
Mar 11, 2013
40e98c4
Merge remote-tracking branch 'upstream/gh-pages' into gh-pages
Mar 11, 2013
72c29ae
Correct the name of SinonJS
smpeters Mar 13, 2013
4363855
Merge pull request #368 from smpeters/gh-pages
addyosmani Mar 13, 2013
29fc0c9
Merge pull request #366 from dcmaf/gh-pages
addyosmani Mar 13, 2013
de6ae6a
Repositioning the jquery <script> tag
xfry Mar 15, 2013
05adfdd
Merge pull request #371 from xfry/patch-1
addyosmani Mar 16, 2013
a32d11e
Fixes #344 - manually bring in changes to grammar/spelling/wording fo…
addyosmani Mar 16, 2013
5b3a02f
Fixes #367 - dropping unnecessary section in tutorial.
addyosmani Mar 16, 2013
6100d71
For #349 - breaks out exercise 3 (and others) from the AMD section in…
addyosmani Mar 16, 2013
bb81c63
For #347 - moving unit testing introduction to start of chapter.
addyosmani Mar 16, 2013
a0df79a
For #347, start to improve comments for chapter 11 examples
addyosmani Mar 16, 2013
bb1d531
For #347 - adding expanded example for beforeEach and afterEach
addyosmani Mar 16, 2013
d2e4a2d
For #347 - expanding on examples for shared functional scope, trying …
addyosmani Mar 16, 2013
30c4c38
For #347 - reworking the end of the Jasmine chapter to make the last …
addyosmani Mar 16, 2013
e4188f9
For #347 - moving start of QUnit chapter to where it should be.
addyosmani Mar 16, 2013
9f322f9
Fixes #355 - removes extra pre
addyosmani Mar 16, 2013
d691f15
Addition for #237 now that most examples should be compat with Backbo…
addyosmani Mar 16, 2013
60161ec
For #342 - several additions and corrections to address feedback from…
addyosmani Mar 16, 2013
c34a9d2
Spelling Correction
callmehiphop Mar 17, 2013
5cc01d6
Merge pull request #372 from jeenyus/patch-1
addyosmani Mar 17, 2013
09683ff
Updating introduction to correctly list revised chapter structure.
addyosmani Mar 17, 2013
874f936
For #361 - numerous changes to the basics section.
addyosmani Mar 17, 2013
c379483
For #361 - adding expanded section on returning this in render.
addyosmani Mar 17, 2013
6d0c544
For #361 - adds example, further clarifications on bind for events.
addyosmani Mar 17, 2013
5dfff91
For #361 - adds expanded section on id, cid and idAttribute
addyosmani Mar 17, 2013
d712537
For #361 - adds note about reset without args for collection clearing
addyosmani Mar 17, 2013
0d0973b
For #361 - adds a better introduction to why you would use boilerplat…
addyosmani Mar 17, 2013
809f2e5
For #361 - further changes, citing dc workspace example, note about c…
addyosmani Mar 17, 2013
6a9ca4f
For #361 - adding notes about Jammit to dependency management.
addyosmani Mar 17, 2013
9c7912b
Minor corrections
tkalfigo Mar 19, 2013
2a5c667
Small grammar sweep: lets -> let's, etc.
sduckett Mar 21, 2013
c51cf5b
Merge pull request #379 from sduckett/gh-pages
addyosmani Mar 22, 2013
8d690d0
Merge pull request #376 from tkalfigo/firstExample
addyosmani Mar 22, 2013
e779536
For #349 - removing the packages section
addyosmani Mar 22, 2013
49e0364
For #342: initial expansion of conclusions
addyosmani Mar 22, 2013
903a60f
updated Marionette section with latest info and simplified component …
Mar 22, 2013
9ade898
Updated Backbone Basics to Backbone 1.0.0
Mar 23, 2013
64700e8
Merge remote-tracking branch 'upstream/gh-pages' into gh-pages
Mar 23, 2013
8c56247
Merge pull request #380 from derickbailey/gh-pages
addyosmani Mar 23, 2013
18fa86f
Merge pull request #381 from dcmaf/gh-pages
addyosmani Mar 23, 2013
37e7cac
Pushing latest build
addyosmani Mar 23, 2013
609dda3
For #349: Nixing mediator/facade chapter, adding new section on event…
addyosmani Mar 23, 2013
c5b37a2
Fixes #382 - typo
addyosmani Mar 23, 2013
3d88131
For 342: further work on conclusions
addyosmani Mar 23, 2013
1c017d0
Minor corrections
addyosmani Mar 23, 2013
94bb6a1
For 348: expands on Collection tests, fixes to models example, some o…
addyosmani Mar 23, 2013
9d58427
For 328: dropping testing of events, unnecessary
addyosmani Mar 23, 2013
a04ac7f
For #328: improved nested models section
addyosmani Mar 24, 2013
8e180e8
For #328 - removing section on triggering updates in views, see aggre…
addyosmani Mar 24, 2013
a02f07f
For #328 - various fixes
addyosmani Mar 24, 2013
0126cb6
For #342 - updating introduction, prelude
addyosmani Mar 24, 2013
efc08b9
For #342: rewritten why choose backbone section
addyosmani Mar 24, 2013
d0d6853
For #339: adding missing model definition, updating examples to more …
addyosmani Mar 24, 2013
84933e5
Chapter 1: Fundamentals - correct typos and punctuation
Mar 25, 2013
505dcdd
Fixes in Prelude and Extensions (Marionette) sections
Mar 25, 2013
aefeac0
Changed first view in memory management example to use on rather than…
Mar 25, 2013
e2ea6c8
03-internals.md listeners example no longer refers to nonexistent 'co…
jan-molak Mar 25, 2013
b960e40
Merge pull request #384 from dcmaf/gh-pages
addyosmani Mar 26, 2013
04eb529
Merge pull request #388 from jan-molak/gh-pages
addyosmani Mar 26, 2013
2e7a6b8
For #333 - adds new comment lines for changes to view
addyosmani Mar 28, 2013
2769892
For #348: Corrections to model examples, changing hint comments to be…
addyosmani Mar 28, 2013
399e4c3
Fixes #337 - adds a number of sane changes to allow the first example…
addyosmani Mar 28, 2013
2effe75
Fixes #386 - adds boilerplate, links to jsfiddle/bin, instructions fo…
addyosmani Mar 29, 2013
ddf2744
Fixes #362 - adds extended paragraphs about the extensions chapter
addyosmani Mar 29, 2013
cdd5134
Prelude: rewrote opening few paragraphs to try to make it stronger
Mar 29, 2013
09dc169
Merge pull request #389 from dcmaf/gh-pages
addyosmani Mar 29, 2013
0d75cc1
For #339: some clarifications for Thorax section
addyosmani Mar 29, 2013
8127c62
For #328: drop unbind() reference, line referring to removed section
addyosmani Mar 29, 2013
423d24e
For #328 - correcting undefined this.child in example
addyosmani Mar 29, 2013
669ad54
For #342 - some improvements, adding in nested models/collections piece
addyosmani Mar 29, 2013
a5592b4
For #342 - simplifying what does mvc give us summary
addyosmani Mar 29, 2013
637650d
For #342 - addressing further feedback
addyosmani Mar 29, 2013
1d253fc
For #342 - first take at improving mvc applied to the web
addyosmani Mar 29, 2013
4dcc717
For #342 - lots of updates to the mvc in the browser/client-side mvc …
addyosmani Mar 29, 2013
7e69a99
For #342 - updates model paragraph
addyosmani Mar 29, 2013
5b51682
For #342 - updates validation in internals
addyosmani Mar 29, 2013
a27605d
Fixes #322 - adds more details about yeoman with differences between …
addyosmani Mar 29, 2013
fd52da8
For #387 - addresses point 2, references earlier chapter for listenTo…
addyosmani Mar 29, 2013
5dec61b
Linking up Front Controller pattern
addyosmani Mar 30, 2013
b93b9ac
Minor updates
addyosmani Mar 30, 2013
e9261fa
For #390 - some updates to try improving the prelude
addyosmani Mar 30, 2013
10dfe2c
Fundamentals: minor punctuation and typo fixes
Mar 31, 2013
b4a0426
Extensions: minor corrections, including removing redudantcy in Thorax
Mar 31, 2013
adc7104
More minor updates to recently changed sections.
Mar 31, 2013
2ca5888
Internals chapter: tweaked first paragraph of Events section.
Mar 31, 2013
d2553d4
More cleanup.
Mar 31, 2013
d61a624
Fixes to the new Event Aggregator/Mediator sections
Mar 31, 2013
59d6fbe
Merge pull request #392 from dcmaf/gh-pages
addyosmani Mar 31, 2013
9fc4344
Add note about js extensions in R.js build config
jackfranklin Mar 31, 2013
87011c3
For #377 - merging new mobile section with fixes, linkifying URLs, co…
addyosmani Mar 31, 2013
92cbd3d
Merge branch 'gh-pages' of http://github.com/addyosmani/backbone-fund…
addyosmani Mar 31, 2013
2c0ff2a
Merge pull request #393 from jackfranklin/gh-pages
addyosmani Mar 31, 2013
8a25fdd
For #342 - adding note about Router.navigate
addyosmani Mar 31, 2013
be68f22
Merge branch 'gh-pages' of http://github.com/addyosmani/backbone-fund…
addyosmani Mar 31, 2013
9fc1642
For #342 - adding a note about the backbone validation plugin
addyosmani Mar 31, 2013
f7cc62b
For #342 - trying to make sense of the validation section in common p…
addyosmani Mar 31, 2013
b3eac61
For #342 - adds a backbone diagram as requested
addyosmani Mar 31, 2013
0497ca5
Tweaked Backbone.Validation example to make example parallel to the B…
Mar 31, 2013
df84b8b
Tightened sentence and fixed punctuation in R.js build config note.
Mar 31, 2013
2a0fdb8
Reworded navigation section with trigger:true option. Also changed op…
Mar 31, 2013
9bbba9d
For #342 - adds a rails mvc diagram as requested
addyosmani Mar 31, 2013
f94489e
Merge remote-tracking branch 'upstream/gh-pages' into gh-pages
Mar 31, 2013
fbed703
For #378 - nixing upgrade section
addyosmani Mar 31, 2013
4391cad
Added discussion to go with new diagram in Implementation Specifics.
Mar 31, 2013
dd422c8
Merge remote-tracking branch 'upstream/gh-pages' into gh-pages
Mar 31, 2013
7f85067
For #378 - edits to bring in recent Backbone changes into the basics …
addyosmani Mar 31, 2013
aad5191
Merge pull request #394 from dcmaf/gh-pages
addyosmani Mar 31, 2013
02a69cd
Adding updated rails mvc diagram
addyosmani Mar 31, 2013
5be3e54
Merge remote-tracking branch 'upstream/gh-pages' into gh-pages
Mar 31, 2013
ab828fb
Mobile application chapter clean-up.
Apr 1, 2013
f28c36a
Changed Exercise 2 to use reset:true in fetch and updated discussion …
Apr 1, 2013
80a3f47
Merge pull request #395 from dcmaf/gh-pages
addyosmani Apr 1, 2013
55fa9a3
Some minor tweaks
addyosmani Apr 1, 2013
807d3ed
Fixes #396 - updates the paginatior section to latest, adds more info…
addyosmani Apr 1, 2013
7296753
jQuery Mobile section: changed formatting for list in Dynamic DOM Scr…
Apr 1, 2013
6892974
Fixed typo and broken javascript formatting in Paginator
Apr 1, 2013
11f6040
More tweaks to Paginator chapter.
Apr 1, 2013
ad95230
Merge pull request #398 from dcmaf/gh-pages
addyosmani Apr 1, 2013
bece2d2
For #397 - adds a comment making a line in the TodoView example clearer
addyosmani Apr 1, 2013
e619b84
Minor update to the pagination section
addyosmani Apr 1, 2013
20ab7ca
Some further minor changes prior to submission
addyosmani Apr 1, 2013
0fff605
Correcting location of the second exercise
addyosmani Apr 1, 2013
aa3cb41
For #397 - adding exercise and pagination to the index summary
addyosmani Apr 1, 2013
a8eecce
For #397 - correction to chapter summary
addyosmani Apr 1, 2013
3a4cb01
Removed jQuery selector from view's el
Apr 3, 2013
2dcb517
Fixes #399 - corrects typo
addyosmani Apr 3, 2013
1e8a7e1
Merge pull request #400 from oshbec/patch-1
addyosmani Apr 3, 2013
746d786
Update 03-internals.md
Apr 4, 2013
2b70077
Update 06-extensions.md
Apr 4, 2013
9b206bf
Update 06-extensions.md
Apr 4, 2013
c4968b4
Update 09-exercise-3.md
Apr 4, 2013
1683dbb
Update 12-mobile-applications.md
Apr 4, 2013
9fb700e
Update 13-unit-testing.md
Apr 4, 2013
f26706f
Merge pull request #403 from jorygraham/gh-pages
addyosmani Apr 4, 2013
68d2a9a
Couple of typos in the excercise 1.
Apr 4, 2013
fd4367b
Update 05-exercise-2.md
johanneslumpe Apr 6, 2013
eab2c29
Merge pull request #407 from johanneslumpe/patch-2
addyosmani Apr 6, 2013
891e86f
Merge pull request #401 from mcepl/excercis-1-typos
addyosmani Apr 6, 2013
d23f746
Update 06-extensions.md
johanneslumpe Apr 6, 2013
cb0356d
Merge pull request #408 from johanneslumpe/patch-3
addyosmani Apr 6, 2013
9a99770
Fixes #406 - issue with example
addyosmani Apr 8, 2013
f2209ce
Fixes #404 - rendering issue on live site
addyosmani Apr 8, 2013
a4b1e6e
Multi-line editing in Chrome Console on Windows
Apr 12, 2013
aa86b63
Merge pull request #413 from leighghunt/patch-2
addyosmani Apr 13, 2013
87d0b3d
typo "use" not "sure", but tighten since i'm here
ErichBSchulz Apr 14, 2013
87cf2e8
the Backbone framework => Backbone
Trott Apr 15, 2013
83b23ac
Merge pull request #414 from ErichBSchulz/patch-1
addyosmani Apr 15, 2013
7818704
Merge pull request #415 from Trott/framework_vs_library
addyosmani Apr 15, 2013
9426ecf
Changed "It's" (contraction) to "Its" (possessive).
tedjaniszewski Apr 20, 2013
460ef10
Merge pull request #423 from tedjaniszewski/patch-1
addyosmani Apr 21, 2013
5769a29
Corrected a handful of typographic issues.
tedjaniszewski Apr 22, 2013
d0dbe94
Update 03-internals.md
Apr 22, 2013
c6b0b06
Update 11-bbb.md
Apr 22, 2013
7fe7997
Merge pull request #425 from scottcheng/patch-1
addyosmani Apr 24, 2013
c7397cd
Merge pull request #426 from scottcheng/patch-2
addyosmani Apr 24, 2013
afc7c08
Merge pull request #424 from tedjaniszewski/patch-1
addyosmani Apr 24, 2013
f566501
Fixed four typographical issues.
tedjaniszewski Apr 25, 2013
787bf33
Merge pull request #427 from tedjaniszewski/patch-1
addyosmani Apr 28, 2013
7751ff5
Fixed Missing Parenthesis in QUnit 'StoreList sanity check' Test Module
May 2, 2013
6255c9c
Missing argument in Model Property Validation example
himanshusingh May 2, 2013
8f60fc8
Clear input fields after creating a new book
himanshusingh May 2, 2013
936754b
Merge pull request #428 from KevinTCoughlin/gh-pages
addyosmani May 3, 2013
2ede709
Merge pull request #429 from himanshusingh/gh-pages
addyosmani May 3, 2013
e7499c1
Update 12-qunit.md
May 3, 2013
ab2bcdb
Fixed Store unrecognized variable name and parentheses
May 3, 2013
6af80a0
Merge pull request #430 from KevinTCoughlin/gh-pages
addyosmani May 5, 2013
e9ee295
Fixed Marionette's class name. 'Marionette is not defined'.
May 7, 2013
1915460
pushing new build to live site
addyosmani May 8, 2013
7fd51d3
Typo in Introduction
May 9, 2013
8566c9a
Fixed two typos
johanneslumpe May 9, 2013
9d6d0af
Corrected a wrong reference.
johanneslumpe May 9, 2013
0cd59d1
fixed spelling of independent
garrison May 11, 2013
be02a1c
s/the QUnit/QUnit/
garrison May 11, 2013
f6cbc9e
use the correct "its"
garrison May 11, 2013
350bc03
Changed window.app.* to app.* to match the example code.
dwabyick May 12, 2013
5c26df4
Add missing space between Ajax and (Asynchronous JavaScript and XML)
tkrotoff May 13, 2013
8c385f0
No need to specify type="text/javascript" for script tag
tkrotoff May 13, 2013
6facc08
Add missing space
tkrotoff May 13, 2013
8155341
Merge pull request #441 from tkrotoff/patch-1
addyosmani May 15, 2013
5846765
Merge pull request #438 from garrison/patch-3
addyosmani May 15, 2013
6685ace
Merge pull request #437 from garrison/patch-2
addyosmani May 15, 2013
cf5da9d
Merge pull request #436 from garrison/patch-1
addyosmani May 15, 2013
a65cf7d
Merge pull request #434 from johanneslumpe/patch-4
addyosmani May 15, 2013
9af9d9b
Merge pull request #435 from johanneslumpe/patch-5
addyosmani May 15, 2013
8617d9d
Merge pull request #433 from yakubori/gh-pages
addyosmani May 15, 2013
d2feddc
Merge pull request #431 from ipalaus/typo-marionette
addyosmani May 15, 2013
b9e2068
Merge pull request #442 from tkrotoff/gh-pages
addyosmani May 15, 2013
8f33895
No need to specify type="text/javascript" for script tag
tkrotoff May 15, 2013
e83ee54
No need to specify type="text/javascript" for script tag
tkrotoff May 15, 2013
f076a30
Merge pull request #443 from tkrotoff/gh-pages
addyosmani May 17, 2013
496539e
removed more 'window.' prefixes for consistency
dwabyick May 17, 2013
4d1a704
fix method name 'delete' replaced with 'destroy', removed last coma i…
eugeneglova May 18, 2013
d886956
fix: replace Person with Jeremy
eugeneglova May 18, 2013
356b421
Revert "fix method name 'delete' replaced with 'destroy', removed las…
eugeneglova May 18, 2013
5850b43
replace 'delete' with 'destroy'
eugeneglova May 18, 2013
e1c171a
fix optional routes
eugeneglova May 18, 2013
56e954b
fix coma in array end
eugeneglova May 18, 2013
de1fb4b
Merge pull request #445 from eugeneglova/gh-pages
addyosmani May 25, 2013
a070112
Merge pull request #439 from dwabyick/gh-pages
addyosmani May 25, 2013
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
13 changes: 13 additions & 0 deletions INSTRUCTIONS-pandoc-ebooks.md
Original file line number Diff line number Diff line change
@@ -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
```
53 changes: 53 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
include_dir=build
source=chapters/*.md
title='Developing Backbone.js Applications'
filename='backbone-fundamentals'


all: html epub rtf pdf mobi

markdown:
awk 'FNR==1{print ""}{print}' $(source) > $(filename).md

html: markdown
pandoc -s $(filename).md -t html5 -o index.html -c style.css \
--include-in-header $(include_dir)/head.html \
--include-before-body $(include_dir)/author.html \
--include-before-body $(include_dir)/share.html \
--include-after-body $(include_dir)/stats.html \
--title-prefix $(title) \
--normalize \
--smart \
--toc

epub: markdown
pandoc -s $(filename).md --normalize --smart -t epub -o $(filename).epub \
--epub-metadata $(include_dir)/metadata.xml \
--epub-stylesheet epub.css \
--epub-cover-image img/cover.jpg \
--title-prefix $(title) \
--normalize \
--smart \
--toc

rtf: markdown
pandoc -s $(filename).md -o $(filename).rtf \
--title-prefix $(title) \
--normalize \
--smart

pdf: markdown
# You need `pdflatex`
# OS X: http://www.tug.org/mactex/
# Then find its path: find /usr/ -name "pdflatex"
# Then symlink it: ln -s /path/to/pdflatex /usr/local/bin
pandoc -s $(filename).md -o $(filename).pdf \
--title-prefix $(title) \
--normalize \
--smart \
--toc

mobi: epub
# Download: http://www.amazon.com/gp/feature.html?ie=UTF8&docId=1000765211
# Symlink bin: ln -s /path/to/kindlegen /usr/local/bin
kindlegen $(filename).epub
Loading