Narnia's Poofy Meatcleaver
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

gitbook-plugin-runkit

0.0.1 • Public • Published

Embed runkit in GitBook

This GitBook plugins makes it easy to embed runkit notebook in a GitBook.

How to use it?

Configure the plugin in your book.json:

{
    "plugins": ["runkit"]
}

Include a notebook using the runkit block:

Here is notebook:
 
{% runkit %}
// GeoJSON!
var google = "https://storage.googleapis.com/maps-devrel/google.json"
JSON.parse(await require("request-promise")(google))
{% endrunkit %}
 
 
And here is a read-only notebook:
 
{% runkit readOnly=true %}
// GeoJSON!
var google = "https://storage.googleapis.com/maps-devrel/google.json"
JSON.parse(await require("request-promise")(google))
{% endrunkit %}

Keywords

none

install

npm i gitbook-plugin-runkit

Downloadsweekly downloads

1

version

0.0.1

license

Apache-2.0

homepage

github.com

repository

githubgithub

last publish

collaborators

  • avatar