diff options
Diffstat (limited to 'packages/gitbook-plugin-theme-default')
-rw-r--r-- | packages/gitbook-plugin-theme-default/package.json | 64 | ||||
-rw-r--r-- | packages/gitbook-plugin-theme-default/src/index.js | 16 |
2 files changed, 80 insertions, 0 deletions
diff --git a/packages/gitbook-plugin-theme-default/package.json b/packages/gitbook-plugin-theme-default/package.json new file mode 100644 index 0000000..cbf1516 --- /dev/null +++ b/packages/gitbook-plugin-theme-default/package.json @@ -0,0 +1,64 @@ +{ + "name": "gitbook-plugin-theme-default", + "description": "Default theme for GitBook", + "main": "./index.js", + "version": "1.0.5", + "engines": { + "gitbook": ">=3.0.0" + }, + "dependencies": {}, + "repository": { + "type": "git", + "url": "https://github.com/GitbookIO/gitbook.git" + }, + "author": "GitBook Inc. <contact@gitbook.com>", + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/GitbookIO/gitbook/issues" + }, + "contributors": [ + { + "name": "Samy Pessé", + "email": "samy@gitbook.com" + } + ], + "gitbook": { + "properties": { + "styles": { + "type": "object", + "title": "Custom Stylesheets", + "properties": { + "website": { + "title": "Stylesheet for website output", + "default": "styles/website.css" + }, + "pdf": { + "title": "Stylesheet for PDF output", + "default": "styles/pdf.css" + }, + "epub": { + "title": "Stylesheet for ePub output", + "default": "styles/epub.css" + }, + "mobi": { + "title": "Stylesheet for Mobi output", + "default": "styles/mobi.css" + }, + "ebook": { + "title": "Stylesheet for ebook outputs (PDF, ePub, Mobi)", + "default": "styles/ebook.css" + }, + "print": { + "title": "Stylesheet to replace default ebook css", + "default": "styles/print.css" + } + } + }, + "showLevel": { + "type": "boolean", + "title": "Show level indicator in TOC", + "default": false + } + } + } +} diff --git a/packages/gitbook-plugin-theme-default/src/index.js b/packages/gitbook-plugin-theme-default/src/index.js new file mode 100644 index 0000000..8c47b38 --- /dev/null +++ b/packages/gitbook-plugin-theme-default/src/index.js @@ -0,0 +1,16 @@ +const React = require('react'); +const GitBook = require('gitbook-core'); + +const ThemeBody = React.createClass({ + render() { + return ( + <div> + My Base theme for gitbook + </div> + ); + } +}); + +module.exports = GitBook.createPlugin((dispatch, state) => { + dispatch(GitBook.registerComponent(ThemeBody, { role: 'Body' })); +}); |