-
Notifications
You must be signed in to change notification settings - Fork 3
/
book.js
70 lines (59 loc) · 1.41 KB
/
book.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
"use strict"
const pkg = require("./package.json")
let gatoken = process.env["GA_TOKEN"]
if (!gatoken) {
// eslint-disable-next-line no-console
console.warn("Environment key: GA_TOKEN is not defined")
gatoken = gatoken || "UA-UNDEFINED-01"
}
module.exports = {
"root": "./book",
"title": "Route4Me Javascript SDK",
"variables": {
version: pkg.version
},
"plugins": [
// "summary-extend@git+https://github.com/maxkoryukov/gitbook-plugin-summary-extend.git",
"theme-i-want-be-scoped-but-gitbook-wont",
"ga",
"todo",
"splitter",
"-githubcontributors",
"lunr",
],
"pluginsConfig": {
"summary-extend": {
"shortName": "XXXXXXX"
},
"sharing": {
"vk": true
},
"ga": {
"token": gatoken
},
"githubcontributors": {
"githubOwner": "route4me", // GitHub user name e.g. sta-szek
"githubRepository": "route4me-nodejs-sdk" // GitHub repo name e.g. pojo-tester
}
}
}
/*
var pkg = require('./package.json');
module.exports = {
// Documentation for GitBook is stored under "docs"
root: './docs',
title: 'GitBook Toolchain Documentation',
// Enforce use of GitBook v3
gitbook: '3.1.1',
// Use the "official" theme
plugins: ['[email protected]', '-sharing', '-fontsettings', 'sitemap'],
variables: {
version: pkg.version
},
pluginsConfig: {
sitemap: {
hostname: 'https://toolchain.gitbook.com'
}
}
};
*/