summaryrefslogtreecommitdiffstats
path: root/lib/generate
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-01-14 22:08:31 +0100
committerSamy Pessé <samypesse@gmail.com>2015-01-14 22:08:31 +0100
commit94a9db3d5443248d30c5e51f4be8daeb6f4e5a5d (patch)
tree366aba6bddc386a5d606a3bbbc6c0a8101bfdb88 /lib/generate
parentbcb34dcd79f1ff49e947e16e91528ebe554c8449 (diff)
downloadgitbook-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.js10
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