mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-30 22:18:46 +00:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f0c97756de | |||
| f14c57d4c2 | |||
| b6f60cc8ad | |||
| 170516d343 | |||
| c931e91bef | |||
| db9151ae36 | |||
| f2d86b6d69 | |||
| 534cdd091b |
@@ -55,3 +55,5 @@ Translators
|
|||||||
- Hong Nguyen (@nghong)
|
- Hong Nguyen (@nghong)
|
||||||
- Hebrew
|
- Hebrew
|
||||||
- @a-moses
|
- @a-moses
|
||||||
|
- Ukrainian
|
||||||
|
- @Karnaukhov
|
||||||
|
|||||||
@@ -2,6 +2,11 @@
|
|||||||
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.4.3
|
||||||
|
- Add ukrainian translation (`uk`)
|
||||||
|
- Add `book.json` configuration for maximum size of search index
|
||||||
|
- Improve reliability of summary parser
|
||||||
|
|
||||||
## 2.4.2
|
## 2.4.2
|
||||||
- Default plugins should not be installed by `gitbook install`
|
- Default plugins should not be installed by `gitbook install`
|
||||||
- Limit search index size to avoid crash during generation
|
- Limit search index size to avoid crash during generation
|
||||||
|
|||||||
@@ -4,12 +4,13 @@ GitBook
|
|||||||
[](http://badge.fury.io/js/gitbook)
|
[](http://badge.fury.io/js/gitbook)
|
||||||
[](https://travis-ci.org/GitbookIO/gitbook)
|
[](https://travis-ci.org/GitbookIO/gitbook)
|
||||||
[](https://ci.appveyor.com/project/GitBook/gitbook)
|
[](https://ci.appveyor.com/project/GitBook/gitbook)
|
||||||
|
[](https://slack.gitbook.com)
|
||||||
|
|
||||||
GitBook is a command line tool (and Node.js library) for building beautiful books using GitHub/Git and Markdown (or AsciiDoc). Here is an example: [Learn Javascript](https://www.gitbook.com/book/GitBookIO/javascript).
|
GitBook is a command line tool (and Node.js library) for building beautiful books using GitHub/Git and Markdown (or AsciiDoc). Here is an example: [Learn Javascript](https://www.gitbook.com/book/GitBookIO/javascript).
|
||||||
|
|
||||||
You can publish and host book easily online using [gitbook.com](https://www.gitbook.com), a desktop editor is [also available](https://www.gitbook.com/editor).
|
You can publish and host book easily online using [gitbook.com](https://www.gitbook.com), a desktop editor is [also available](https://www.gitbook.com/editor).
|
||||||
|
|
||||||
Stay updated by following [@GitBookIO](https://twitter.com/GitBookIO) on Twitter or [GitBook](https://www.facebook.com/gitbookcom) on Facebook.
|
Check out the [GitBook Community Slack Channel](https://slack.gitbook.com), Stay updated by following [@GitBookIO](https://twitter.com/GitBookIO) on Twitter or [GitBook](https://www.facebook.com/gitbookcom) on Facebook.
|
||||||
|
|
||||||
Complete documentation is available at [help.gitbook.com](http://help.gitbook.com/).
|
Complete documentation is available at [help.gitbook.com](http://help.gitbook.com/).
|
||||||
|
|
||||||
|
|||||||
+1
-3
@@ -19,8 +19,6 @@ var PluginsList = require("./pluginslist");
|
|||||||
|
|
||||||
var generators = require("./generators");
|
var generators = require("./generators");
|
||||||
|
|
||||||
var SEARCHINDEX_MAXSIZE = 1000000;
|
|
||||||
|
|
||||||
var Book = function(root, context, parent) {
|
var Book = function(root, context, parent) {
|
||||||
this.context = _.defaults(context || {}, {
|
this.context = _.defaults(context || {}, {
|
||||||
// Extend book configuration
|
// Extend book configuration
|
||||||
@@ -751,7 +749,7 @@ Book.prototype.indexPage = function(page) {
|
|||||||
|
|
||||||
// Limit size of index (to avoid #941)
|
// Limit size of index (to avoid #941)
|
||||||
this.searchIndexSize = this.searchIndexSize + text.length;
|
this.searchIndexSize = this.searchIndexSize + text.length;
|
||||||
if (this.searchIndexSize > SEARCHINDEX_MAXSIZE) {
|
if (this.searchIndexSize > this.config.get('search.maxIndexSize')) {
|
||||||
this.log.warn.ln("search index is too big, indexing is now disabled");
|
this.log.warn.ln("search index is too big, indexing is now disabled");
|
||||||
this.searchIndexEnabled = false;
|
this.searchIndexEnabled = false;
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -201,6 +201,11 @@ Configuration.DEFAULT = {
|
|||||||
// version of gitbook to use
|
// version of gitbook to use
|
||||||
"gitbook": "*",
|
"gitbook": "*",
|
||||||
|
|
||||||
|
// Search index
|
||||||
|
"search": {
|
||||||
|
"maxIndexSize": 1000000
|
||||||
|
},
|
||||||
|
|
||||||
// Structure
|
// Structure
|
||||||
"structure": {
|
"structure": {
|
||||||
"langs": "LANGS.md",
|
"langs": "LANGS.md",
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "gitbook",
|
"name": "gitbook",
|
||||||
"version": "2.4.2",
|
"version": "2.4.3",
|
||||||
"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",
|
||||||
@@ -12,9 +12,9 @@
|
|||||||
"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.2",
|
"gitbook-parsers": "0.8.3",
|
||||||
"gitbook-plugin-highlight": "1.0.3",
|
"gitbook-plugin-highlight": "1.0.3",
|
||||||
"nunjucks": "mozilla/nunjucks#dc89bf91611a2101731c2c06afcf5c32160b4dc9",
|
"nunjucks": "2.1.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",
|
||||||
|
|||||||
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"LANGS_CHOOSE": "Виберіть мову",
|
||||||
|
"GLOSSARY": "Глосарій",
|
||||||
|
"GLOSSARY_INDEX": "Глосарій",
|
||||||
|
"GLOSSARY_OPEN": "Глосарій",
|
||||||
|
"GITBOOK_LINK": "Опубліковано за допомогою GitBook",
|
||||||
|
"SUMMARY": "Зміст",
|
||||||
|
"SUMMARY_INTRODUCTION": "Вступ",
|
||||||
|
"SUMMARY_TOGGLE": "Зміст",
|
||||||
|
"SEARCH_TOGGLE": "Пошук",
|
||||||
|
"SEARCH_PLACEHOLDER": "Введіть для пошуку",
|
||||||
|
"FONTSETTINGS_TOGGLE": "Шрифт",
|
||||||
|
"SHARE_TOGGLE": "Поділиться",
|
||||||
|
"SHARE_ON": "Поділитися в {{platform}}",
|
||||||
|
"FONTSETTINGS_WHITE": "Світлий",
|
||||||
|
"FONTSETTINGS_SEPIA": "Сепія",
|
||||||
|
"FONTSETTINGS_NIGHT": "Темний",
|
||||||
|
"FONTSETTINGS_SANS": "Sans",
|
||||||
|
"FONTSETTINGS_SERIF": "Serif"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user