0.0.1 • Published 8 years ago

gitbook-plugin-runkit v0.0.1

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
8 years ago

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 %}