mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-10-01 06:28:38 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 21cf5fcaf4 | |||
| 8c7509759b | |||
| dc9ac0d0ff | |||
| 93b401ca9f |
@@ -2,6 +2,10 @@
|
|||||||
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.2
|
||||||
|
- Fix `gitbook.state.bookRoot`, `gitbook.state.root` now has a trailing slash
|
||||||
|
- Update nunjucks to 2.2.0
|
||||||
|
|
||||||
## 2.6.1
|
## 2.6.1
|
||||||
- Use CamelCase for `gitbook.state.innerLanguage`
|
- Use CamelCase for `gitbook.state.innerLanguage`
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "gitbook",
|
"name": "gitbook",
|
||||||
"version": "2.6.1",
|
"version": "2.6.2",
|
||||||
"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",
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
"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",
|
||||||
|
|||||||
@@ -24766,7 +24766,7 @@ 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;
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ 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;
|
||||||
|
|||||||
Reference in New Issue
Block a user