mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-26 12:18:01 +00:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0f1d7eb391 | |||
| dd358b8b95 | |||
| 21cf5fcaf4 | |||
| 8c7509759b | |||
| dc9ac0d0ff | |||
| 93b401ca9f | |||
| b137d8270a | |||
| 6db7757451 |
+10
@@ -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
@@ -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",
|
||||
|
||||
@@ -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($);
|
||||
|
||||
@@ -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($);
|
||||
|
||||
Reference in New Issue
Block a user