notebook-preview
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -31,3 +31,4 @@ { | ||
"devDependencies": { | ||
"babel-core": "^6.6.5", | ||
"babel-cli": "^6.10.1", | ||
"babel-core": "^6.9.1", | ||
"babel-eslint": "^6.0.4", | ||
@@ -44,2 +45,3 @@ "babel-loader": "^6.2.4", | ||
"json-loader": "^0.5.4", | ||
"mocha": "^2.5.3", | ||
"opener": "^1.4.1", | ||
@@ -46,0 +48,0 @@ "rimraf": "^2.4.3", |
import { expect } from 'chai'; | ||
global.fetch = require('node-fetch'); | ||
import { fetchFromGist } from '../src/fetchers'; | ||
@@ -4,0 +6,0 @@ |
{ | ||
"name": "notebook-preview", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "Lightweight preview of a notebook, nteract style", | ||
@@ -23,4 +23,5 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"babel-cli": "^6.10.1", | ||
"babel-cli": "^6.8.0", | ||
"babel-core": "^6.8.0", | ||
"babel-eslint": "^6.0.4", | ||
"babel-preset-es2015": "^6.6.0", | ||
@@ -30,2 +31,7 @@ "babel-preset-react": "^6.5.0", | ||
"enzyme": "^2.2.0", | ||
"eslint": "^2.12.0", | ||
"eslint-config-airbnb": "^9.0.1", | ||
"eslint-plugin-import": "^1.8.1", | ||
"eslint-plugin-jsx-a11y": "^1.4.2", | ||
"eslint-plugin-react": "^5.1.1", | ||
"immutable": "^3.8.1", | ||
@@ -32,0 +38,0 @@ "jsdom": "^9.2.1", |
@@ -9,2 +9,7 @@ # notebook-preview | ||
```js | ||
// import styles directly if using the css-loader | ||
import 'codemirror/lib/codemirror.css'; | ||
import 'notebook-preview/styles/main.css'; | ||
import 'notebook-preview/styles/theme-light.css'; | ||
import NotebookPreview from 'notebook-preview'; | ||
@@ -25,2 +30,4 @@ ReactDOM.render(<NotebookPreview notebook={notebookJSON}/>, document.querySelector('nb')); | ||
You can either use the CSS loader with the styles you want as above or include them in your base HTML like so: | ||
Example setup: | ||
@@ -27,0 +34,0 @@ |
Sorry, the diff of this file is not supported yet
83421
2065
47
19