Elate's "personalhåndbok".
Book available here: https://elateas.github.io/phb
Git clone and run
> npm i && npm start
Travis CI builds every PR.
When a PR is merged to master Travis also handles deploy to the gh-pages
branch, this is the branch used by github pages to serve the site at https://elateas.github.io/phb
See .travis.yml for details.
To run the build step locally (without deploy):
> npm run travis-ci
Custom CSS can be added in src/custom/style.css
Custom javascript can be added in src/custom/script.css
The global variable gitbook
is available here for all sorts of things. Check it out in devtools to see what it's got!
book.json properties
{
"plugins": [],
"root": "book",
"styles": {
"website": "styles/website.css",
"pdf": "styles/pdf.css",
"epub": "styles/epub.css",
"mobi": "styles/mobi.css",
"ebook": "styles/ebook.css",
"print": "styles/print.css"
},
"pluginsConfig": {
"highlight": {},
"search": {},
"lunr": {
"maxIndexSize": 1000000,
"ignoreSpecialCharacters": false
},
"sharing": {
"facebook": true,
"twitter": true,
"google": false,
"weibo": false,
"instapaper": false,
"vk": false,
"all": ["facebook", "google", "twitter", "weibo", "instapaper"]
},
"fontsettings": {
"theme": "white",
"family": "sans",
"size": 2
},
"theme-default": {
"styles": {
"website": "styles/website.css",
"pdf": "styles/pdf.css",
"epub": "styles/epub.css",
"mobi": "styles/mobi.css",
"ebook": "styles/ebook.css",
"print": "styles/print.css"
},
"showLevel": false
}
},
"theme": "default",
"pdf": {
"pageNumbers": true,
"fontSize": 12,
"fontFamily": "Arial",
"paperSize": "a4",
"chapterMark": "pagebreak",
"pageBreaksBefore": "/",
"margin": {
"right": 62,
"left": 62,
"top": 56,
"bottom": 56
}
},
"structure": {
"langs": "LANGS.md",
"readme": "README.md",
"glossary": "GLOSSARY.md",
"summary": "SUMMARY.md"
},
"variables": {},
"title": "Elate PHB",
"language": "nb",
"gitbook": "*",
"description": "Personalhåndbok for Elate's ansatte"
}