|
| 1 | +# Docs |
| 2 | + |
| 3 | +## Install `nvm` |
| 4 | + |
| 5 | +First [install nvm](https://github.com/nvm-sh/nvm#installing-and-updating) to support local use of different node versions. |
| 6 | + |
| 7 | +## Use Node v12 |
| 8 | + |
| 9 | +``` |
| 10 | +nvm install 12 |
| 11 | +nvm use 12 |
| 12 | +``` |
| 13 | + |
| 14 | +## Install GitBook CLI |
| 15 | +``` |
| 16 | +nvm use 12 |
| 17 | +npm install -g gitbook-cli |
| 18 | +``` |
| 19 | + |
| 20 | +## Build via GitBook CLI |
| 21 | +``` |
| 22 | +gitbook build . |
| 23 | +``` |
| 24 | +``` |
| 25 | +info: 7 plugins are installed |
| 26 | +info: 6 explicitly listed |
| 27 | +info: loading plugin "highlight"... OK |
| 28 | +info: loading plugin "search"... OK |
| 29 | +info: loading plugin "lunr"... OK |
| 30 | +info: loading plugin "sharing"... OK |
| 31 | +info: loading plugin "fontsettings"... OK |
| 32 | +info: loading plugin "theme-default"... OK |
| 33 | +info: found 3 pages |
| 34 | +info: found 0 asset files |
| 35 | +info: >> generation finished with success in 0.4s ! |
| 36 | +``` |
| 37 | + |
| 38 | +## Preview via GitBook CL |
| 39 | +``` |
| 40 | +gitbook serve . |
| 41 | +```I |
| 42 | +``` |
| 43 | +Live reload server started on port: 35729 |
| 44 | +Press CTRL+C to quit ... |
| 45 | + |
| 46 | +info: 7 plugins are installed |
| 47 | +info: loading plugin "livereload"... OK |
| 48 | +info: loading plugin "highlight"... OK |
| 49 | +info: loading plugin "search"... OK |
| 50 | +info: loading plugin "lunr"... OK |
| 51 | +info: loading plugin "sharing"... OK |
| 52 | +info: loading plugin "fontsettings"... OK |
| 53 | +info: loading plugin "theme-default"... OK |
| 54 | +info: found 3 pages |
| 55 | +info: found 0 asset files |
| 56 | +info: >> generation finished with success in 0.4s ! |
| 57 | + |
| 58 | +Starting server ... |
| 59 | +Serving book on http://localhost:4000 |
| 60 | +``` |
| 61 | +
|
| 62 | +Browse to `http://localhost:4000` to preview GitBook generated docs. |
0 commit comments