Skip to content

Commit

Permalink
Add 'include-before' option
Browse files Browse the repository at this point in the history
  • Loading branch information
javierbyte committed Sep 3, 2016
1 parent d7daf46 commit bc60562
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Binary file modified docs/download/lodash.epub
Binary file not shown.
Binary file modified docs/download/react.epub
Binary file not shown.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ creator:
- role: author
text: ${docObj.author}
rights: ${docObj.licenceUrl}
include-before: Documentation for <b>${docObj.title}</b> ([${docObj.docsUrl}](${docObj.docsUrl})) generated by <b>docs2epub</b> ([http://javier.xyz/docs2epub/](http://javier.xyz/docs2epub/)) on ${moment().format('YYYY/MM/DD')}.
date: ${moment().format('YYYY/MM/DD')}
description: Documentation for ${docObj.title} generated by <b>docs2epub</b> [http://javier.xyz/docs2epub/] on ${moment().format('YYYY/MM/DD')}, scrapped from ${docObj.docsUrl}.
description: Documentation for <b>${docObj.title}</b> ([${docObj.docsUrl}](${docObj.docsUrl})) generated by <b>docs2epub</b> ([http://javier.xyz/docs2epub/](http://javier.xyz/docs2epub/)) on ${moment().format('YYYY/MM/DD')}.
...
`
Expand Down Expand Up @@ -107,7 +108,7 @@ function generateEpubFromMarkdown (docObj) {
})
}

var strategyToRun = 'lodash'
var strategyToRun = 'react'

run(strategyToRun).then(tocArray => {
if (tocArray.type === 'MARKDOWN') {
Expand Down

0 comments on commit bc60562

Please sign in to comment.