GitbookIO / plugin-tonic

Embed Tonic notebook into your GitBook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Embed Tonic in GitBook

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

How to use it?

Configure the plugin in your book.json:

{
    "plugins": ["tonic"]
}

Include a notebook using the tonic block:

Here is notebook:

{% tonic %}
// GeoJSON!
var google = "https://storage.googleapis.com/maps-devrel/google.json"
JSON.parse(await require("request-promise")(google))
{% endtonic %}


And here is a read-only notebook:

{% tonic readOnly=true %}
// GeoJSON!
var google = "https://storage.googleapis.com/maps-devrel/google.json"
JSON.parse(await require("request-promise")(google))
{% endtonic %}

About

Embed Tonic notebook into your GitBook

License:Apache License 2.0


Languages

Language:JavaScript 100.0%