Skip to content

Commit 6774d00

Browse files
committed
ADD gitbooks-build
1 parent 0eff7d1 commit 6774d00

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+101
-53
lines changed

.npmignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ examples/
33
docfiles/
44
.git/
55
docs/
6+
docs-src/
67
log.txt
78
test/
89
.transpile_state.json

docs-src/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules/
2+
_book/

docs/IDEAS.md docs-src/IDEAS.md

docs/ORM.md docs-src/ORM.md

docs-src/README.md

+9

docs-src/SUMMARY.md

+53

docs-src/book.json

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"gitbook": "3.2.2",
3+
"root": ".",
4+
"output": "./docs",
5+
"title": "RxDB - Documentation",
6+
"plugins": [
7+
"edit-link",
8+
"github",
9+
"toggle-chapters",
10+
"custom-favicon",
11+
"-sharing"
12+
],
13+
"links": {
14+
"sidebar": {
15+
"Follow @twitter ": "https://twitter.com/rxdbjs",
16+
"Chat @gitter ": "https://gitter.im/pubkey/rxdb",
17+
"Star @github ": "https://github.com/pubkey/rxdb",
18+
"Support @patreon": "https://www.patreon.com/rxdb"
19+
}
20+
},
21+
"pluginsConfig": {
22+
"favicon": "./files/logo/icon.ico",
23+
"edit-link": {
24+
"base": "https://github.com/pubkey/rxdb/tree/master/docs-src",
25+
"label": "Edit This Page"
26+
},
27+
"github": {
28+
"url": "https://github.com/pubkey/rxdb"
29+
}
30+
}
31+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

docs-src/files/logo/icon.ico

14.7 KB
Binary file not shown.

docs-src/files/logo/icon.png

342 Bytes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

docs/README.md

-52
This file was deleted.

package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
"build:rollup": "rollup -c --environment UGLIFY:true --config ./config/rollup.config.js && rollup -c --environment UGLIFY:false --config ./config/rollup.config.js",
4242
"build:webpack": "webpack --optimize-minimize --config ./config/webpack.config.js",
4343
"build": "npm run clear && npm run transpile && npm run build:es && browserify dist/lib/browserify.index.js > dist/rxdb.browserify.js && uglifyjs --compress --mangle --output dist/rxdb.browserify.min.js -- dist/rxdb.browserify.js",
44+
"docs:install": "gitbook prepare docs-src",
45+
"docs:serve": "gitbook serve docs-src",
46+
"docs:build": "gitbook install docs-src && gitbook build docs-src docs && cp docs-src/files/logo/icon.png docs/gitbook/images/apple-touch-icon-precomposed-152.png && cp docs-src/files/logo/icon.ico docs/gitbook/images/favicon.ico",
4447
"disc": "npm run transpile && browserify dist/lib/index.js --full-paths | uglifyjs --compress --mangle | discify --open --full-paths",
4548
"preversion": "npm run lint && npm run test",
4649
"dev": "watch 'npm run test:node' src/ test/",
@@ -71,7 +74,6 @@
7174
},
7275
"devDependencies": {
7376
"assert": "1.4.1",
74-
"babel-preset-es2015-native-modules": "6.9.4",
7577
"babel-cli": "^6.23.0",
7678
"babel-core": "^6.23.1",
7779
"babel-eslint": "^7.2.3",
@@ -88,6 +90,7 @@
8890
"babel-plugin-transform-runtime": "^6.23.0",
8991
"babel-polyfill": "^6.23.0",
9092
"babel-preset-es2015": "^6.24.0",
93+
"babel-preset-es2015-native-modules": "6.9.4",
9194
"babel-preset-es2015-rollup": "3.0.0",
9295
"babel-preset-es2016": "^6.24.1",
9396
"babel-preset-es2017": "^6.24.1",
@@ -105,6 +108,7 @@
105108
"express": "^4.15.3",
106109
"express-pouchdb": "^2.3.7",
107110
"faker": "^4.1.0",
111+
"gitbook-cli": "^2.3.0",
108112
"gulp": "3.9.1",
109113
"gulp-mocha": "^4.3.0",
110114
"http-server": "^0.10.0",

0 commit comments

Comments
 (0)