diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-10-02 11:20:32 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-10-06 09:44:54 +0200 |
commit | 51c79f294ca8ef9bc3205a7c81454d7a3fd2722c (patch) | |
tree | d2e22d9bfe9020e0db6d8bc2cbd20d45977ee303 /lib/configuration.js | |
parent | ce1e0e187339976fc3cae7ef70bcfdd0eaf68981 (diff) | |
download | gitbook-51c79f294ca8ef9bc3205a7c81454d7a3fd2722c.zip gitbook-51c79f294ca8ef9bc3205a7c81454d7a3fd2722c.tar.gz gitbook-51c79f294ca8ef9bc3205a7c81454d7a3fd2722c.tar.bz2 |
Add css to footer/header for pdf
Diffstat (limited to 'lib/configuration.js')
-rw-r--r-- | lib/configuration.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/configuration.js b/lib/configuration.js index 3b6b47b..563fcef 100644 --- a/lib/configuration.js +++ b/lib/configuration.js @@ -1,5 +1,6 @@ var _ = require('lodash'); var Q = require('q'); +var fs = require('fs'); var path = require('path'); var semver = require('semver'); @@ -276,6 +277,7 @@ Configuration.DEFAULT = { // Margin (in pts) // Note: 72 pts equals 1 inch +<<<<<<< HEAD 'margin': { 'right': 62, 'left': 62, @@ -288,6 +290,20 @@ Configuration.DEFAULT = { // Footer HTML template. Available variables: _PAGENUM_, _TITLE_, _AUTHOR_ and _SECTION_. 'footerTemplate': '' +======= + "margin": { + "right": 62, + "left": 62, + "top": 62, + "bottom": 62 + }, + + //Header HTML template. Available variables: _PAGENUM_, _TITLE_, _AUTHOR_ and _SECTION_. + "headerTemplate": fs.readFileSync(path.resolve(__dirname, '../theme/templates/ebook/header.html'), { encoding: 'utf-8' }), + + //Footer HTML template. Available variables: _PAGENUM_, _TITLE_, _AUTHOR_ and _SECTION_. + "footerTemplate": fs.readFileSync(path.resolve(__dirname, '../theme/templates/ebook/footer.html'), { encoding: 'utf-8' }) +>>>>>>> Add css to footer/header for pdf } }; |