diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-01-14 22:08:31 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-01-14 22:08:31 +0100 |
commit | 94a9db3d5443248d30c5e51f4be8daeb6f4e5a5d (patch) | |
tree | 366aba6bddc386a5d606a3bbbc6c0a8101bfdb88 /lib/generate | |
parent | bcb34dcd79f1ff49e947e16e91528ebe554c8449 (diff) | |
download | gitbook-94a9db3d5443248d30c5e51f4be8daeb6f4e5a5d.zip gitbook-94a9db3d5443248d30c5e51f4be8daeb6f4e5a5d.tar.gz gitbook-94a9db3d5443248d30c5e51f4be8daeb6f4e5a5d.tar.bz2 |
Move theme folder "book" to "website"
Diffstat (limited to 'lib/generate')
-rw-r--r-- | lib/generate/site/index.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/generate/site/index.js b/lib/generate/site/index.js index 4d8803e..94ee6c0 100644 --- a/lib/generate/site/index.js +++ b/lib/generate/site/index.js @@ -36,13 +36,13 @@ Generator.prototype.load = function() { // Load all templates Generator.prototype.loadTemplates = function() { this.template = swig.compileFile( - this.plugins.template("site:page") || path.resolve(this.options.theme, 'templates/book/page.html') + this.plugins.template("site:page") || path.resolve(this.options.theme, 'templates/website/page.html') ); this.langsTemplate = swig.compileFile( - this.plugins.template("site:langs") || path.resolve(this.options.theme, 'templates/book/langs.html') + this.plugins.template("site:langs") || path.resolve(this.options.theme, 'templates/website/langs.html') ); this.glossaryTemplate = swig.compileFile( - this.plugins.template("site:glossary") || path.resolve(this.options.theme, 'templates/book/glossary.html') + this.plugins.template("site:glossary") || path.resolve(this.options.theme, 'templates/website/glossary.html') ); }; @@ -154,12 +154,12 @@ Generator.prototype.convertFile = function(content, _input) { if (_output == "README.html") _output = "index.html"; var output = path.join(this.options.output, _output); var basePath = path.relative(path.dirname(output), this.options.output) || "."; - + // Bug fix for issue #493 which would occur when relative-links are 2-level or more deep in win32 if (process.platform === 'win32') { basePath = basePath.replace(/\\/g, '/'); } - + return this.prepareFile(content, _input) .then(function(page) { // Index page in search |