mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-26 20:27:00 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b137d8270a | |||
| 6db7757451 |
@@ -2,6 +2,9 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
This project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
## 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`
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "gitbook",
|
||||
"version": "2.6.0",
|
||||
"version": "2.6.1",
|
||||
"homepage": "https://www.gitbook.com",
|
||||
"description": "Library and cmd utility to generate GitBooks",
|
||||
"main": "lib/index.js",
|
||||
|
||||
@@ -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');
|
||||
@@ -24769,7 +24769,7 @@ state.update = function(dom) {
|
||||
);
|
||||
|
||||
// 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');
|
||||
@@ -30,7 +30,7 @@ state.update = function(dom) {
|
||||
);
|
||||
|
||||
// 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