Compare commits

...

8 Commits

Author SHA1 Message Date
Samy Pesse 0f1d7eb391 Bump version to 2.6.3 2015-12-02 10:12:49 +01:00
Samy Pesse dd358b8b95 Update gitbook-parsers@0.8.8 2015-12-02 10:11:06 +01:00
Samy Pessé 21cf5fcaf4 Bump version to 2.6.2 2015-11-25 11:56:29 +01:00
Samy Pessé 8c7509759b Update nunjucks@2.2.0 2015-11-25 11:54:19 +01:00
Samy Pessé dc9ac0d0ff Compile js 2015-11-25 11:52:50 +01:00
Samy Pessé 93b401ca9f Add trailing slash to gitbook.state.root, fix value of gitbook.state.bookRoot 2015-11-25 11:49:55 +01:00
Samy Pessé b137d8270a Bump version to 2.6.1 2015-11-25 11:02:15 +01:00
Samy Pessé 6db7757451 Fix gitbook.state.innerLanguage: use camel case 2015-11-25 11:01:17 +01:00
4 changed files with 19 additions and 9 deletions
+10
View File
@@ -2,6 +2,16 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).
## 2.6.3
- Fix parsing bug with inline HTML in Markdown
## 2.6.2
- Fix `gitbook.state.bookRoot`, `gitbook.state.root` now has a trailing slash
- Update nunjucks to 2.2.0
## 2.6.1
- Use CamelCase for `gitbook.state.innerLanguage`
## 2.6.0
- Close sidebar after clicking a link on mobile
- Add root for multilingual books: `gitbook.state.bookRoot`
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "gitbook",
"version": "2.6.0",
"version": "2.6.3",
"homepage": "https://www.gitbook.com",
"description": "Library and cmd utility to generate GitBooks",
"main": "lib/index.js",
@@ -11,12 +11,12 @@
"resolve": "0.6.3",
"fs-extra": "0.16.5",
"fstream-ignore": "1.0.2",
"gitbook-parsers": "0.8.7",
"gitbook-parsers": "0.8.8",
"gitbook-plugin-highlight": "1.0.3",
"gitbook-plugin-sharing": "1.0.1",
"gitbook-plugin-search": "1.1.0",
"gitbook-plugin-fontsettings": "1.0.2",
"nunjucks": "2.1.0",
"nunjucks": "2.2.0",
"nunjucks-autoescape": "1.0.0",
"nunjucks-filter": "1.0.0",
"i18n": "0.5.0",
+3 -3
View File
@@ -24751,7 +24751,7 @@ state.update = function(dom) {
state.basePath = $book.data('basepath');
// If book is multilingual, language of this book
state.innerlanguage = $book.data('innerlanguage');
state.innerLanguage = $book.data('innerlanguage');
// Date of build
state.revision = $book.data('revision');
@@ -24766,10 +24766,10 @@ state.update = function(dom) {
state.root = url.resolve(
location.protocol+'//'+location.host,
path.dirname(path.resolve(location.pathname.replace(/\/$/, '/index.html'), state.basePath))
);
).replace(/\/?$/, '/');
// Absolute root to the language (for multilingual book)
state.bookRoot = state.innerlanguage? url.resolve(state.root, '..') : state.root;
state.bookRoot = state.innerLanguage? url.resolve(state.root, '..') : state.root;
};
state.update($);
+3 -3
View File
@@ -12,7 +12,7 @@ state.update = function(dom) {
state.basePath = $book.data('basepath');
// If book is multilingual, language of this book
state.innerlanguage = $book.data('innerlanguage');
state.innerLanguage = $book.data('innerlanguage');
// Date of build
state.revision = $book.data('revision');
@@ -27,10 +27,10 @@ state.update = function(dom) {
state.root = url.resolve(
location.protocol+'//'+location.host,
path.dirname(path.resolve(location.pathname.replace(/\/$/, '/index.html'), state.basePath))
);
).replace(/\/?$/, '/');
// Absolute root to the language (for multilingual book)
state.bookRoot = state.innerlanguage? url.resolve(state.root, '..') : state.root;
state.bookRoot = state.innerLanguage? url.resolve(state.root, '..') : state.root;
};
state.update($);