mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-10-01 06:28:38 +00:00
Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 835e2dc1fb | |||
| e2378ab29a | |||
| 0f1d7eb391 | |||
| dd358b8b95 | |||
| 21cf5fcaf4 | |||
| 8c7509759b | |||
| dc9ac0d0ff | |||
| 93b401ca9f | |||
| b137d8270a | |||
| 6db7757451 |
+13
@@ -2,6 +2,19 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
This project adheres to [Semantic Versioning](http://semver.org/).
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
||||||
|
|
||||||
|
## 2.6.4
|
||||||
|
- Fix regression introduced by `2.6.3` of single HTML tags in markdown
|
||||||
|
|
||||||
|
## 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
|
## 2.6.0
|
||||||
- Close sidebar after clicking a link on mobile
|
- Close sidebar after clicking a link on mobile
|
||||||
- Add root for multilingual books: `gitbook.state.bookRoot`
|
- Add root for multilingual books: `gitbook.state.bookRoot`
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "gitbook",
|
"name": "gitbook",
|
||||||
"version": "2.6.0",
|
"version": "2.6.4",
|
||||||
"homepage": "https://www.gitbook.com",
|
"homepage": "https://www.gitbook.com",
|
||||||
"description": "Library and cmd utility to generate GitBooks",
|
"description": "Library and cmd utility to generate GitBooks",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
@@ -11,12 +11,12 @@
|
|||||||
"resolve": "0.6.3",
|
"resolve": "0.6.3",
|
||||||
"fs-extra": "0.16.5",
|
"fs-extra": "0.16.5",
|
||||||
"fstream-ignore": "1.0.2",
|
"fstream-ignore": "1.0.2",
|
||||||
"gitbook-parsers": "0.8.7",
|
"gitbook-parsers": "0.8.9",
|
||||||
"gitbook-plugin-highlight": "1.0.3",
|
"gitbook-plugin-highlight": "1.0.3",
|
||||||
"gitbook-plugin-sharing": "1.0.1",
|
"gitbook-plugin-sharing": "1.0.1",
|
||||||
"gitbook-plugin-search": "1.1.0",
|
"gitbook-plugin-search": "1.1.0",
|
||||||
"gitbook-plugin-fontsettings": "1.0.2",
|
"gitbook-plugin-fontsettings": "1.0.2",
|
||||||
"nunjucks": "2.1.0",
|
"nunjucks": "2.2.0",
|
||||||
"nunjucks-autoescape": "1.0.0",
|
"nunjucks-autoescape": "1.0.0",
|
||||||
"nunjucks-filter": "1.0.0",
|
"nunjucks-filter": "1.0.0",
|
||||||
"i18n": "0.5.0",
|
"i18n": "0.5.0",
|
||||||
|
|||||||
@@ -24751,7 +24751,7 @@ state.update = function(dom) {
|
|||||||
state.basePath = $book.data('basepath');
|
state.basePath = $book.data('basepath');
|
||||||
|
|
||||||
// If book is multilingual, language of this book
|
// If book is multilingual, language of this book
|
||||||
state.innerlanguage = $book.data('innerlanguage');
|
state.innerLanguage = $book.data('innerlanguage');
|
||||||
|
|
||||||
// Date of build
|
// Date of build
|
||||||
state.revision = $book.data('revision');
|
state.revision = $book.data('revision');
|
||||||
@@ -24766,10 +24766,10 @@ state.update = function(dom) {
|
|||||||
state.root = url.resolve(
|
state.root = url.resolve(
|
||||||
location.protocol+'//'+location.host,
|
location.protocol+'//'+location.host,
|
||||||
path.dirname(path.resolve(location.pathname.replace(/\/$/, '/index.html'), state.basePath))
|
path.dirname(path.resolve(location.pathname.replace(/\/$/, '/index.html'), state.basePath))
|
||||||
);
|
).replace(/\/?$/, '/');
|
||||||
|
|
||||||
// Absolute root to the language (for multilingual book)
|
// 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($);
|
state.update($);
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ state.update = function(dom) {
|
|||||||
state.basePath = $book.data('basepath');
|
state.basePath = $book.data('basepath');
|
||||||
|
|
||||||
// If book is multilingual, language of this book
|
// If book is multilingual, language of this book
|
||||||
state.innerlanguage = $book.data('innerlanguage');
|
state.innerLanguage = $book.data('innerlanguage');
|
||||||
|
|
||||||
// Date of build
|
// Date of build
|
||||||
state.revision = $book.data('revision');
|
state.revision = $book.data('revision');
|
||||||
@@ -27,10 +27,10 @@ state.update = function(dom) {
|
|||||||
state.root = url.resolve(
|
state.root = url.resolve(
|
||||||
location.protocol+'//'+location.host,
|
location.protocol+'//'+location.host,
|
||||||
path.dirname(path.resolve(location.pathname.replace(/\/$/, '/index.html'), state.basePath))
|
path.dirname(path.resolve(location.pathname.replace(/\/$/, '/index.html'), state.basePath))
|
||||||
);
|
).replace(/\/?$/, '/');
|
||||||
|
|
||||||
// Absolute root to the language (for multilingual book)
|
// 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($);
|
state.update($);
|
||||||
|
|||||||
Reference in New Issue
Block a user