This repository has been archived by the owner on Nov 6, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
235 additions
and
4 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Submodule nb-mermaid
deleted from
c52be9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<!DOCTYPE html><html lang="en"><head><title>nb-mermaid — Mermaid diagrams in the Jupyter Notebook</title><link rel="stylesheet" href="https://cdn.jsdelivr.net/g/primer"><link rel="stylesheet" href="./lib/mermaid/dist/mermaid.css"><style>pre { | ||
text-align: left; | ||
} | ||
.mermaid { | ||
width: auto; | ||
} | ||
.notebook { | ||
padding: 15px 15px 15px 65px; | ||
box-shadow: 0 0 12px 1px rgba(87,87,87,0.2); | ||
text-align: left; | ||
position: relative; | ||
} | ||
.notebook.code::before{ | ||
content: "In []:"; | ||
color: navy; | ||
font-family: monospace; | ||
position: absolute; | ||
left: 15px; | ||
padding-top: 2px; | ||
} | ||
.notebook.code pre { | ||
border: 1px solid #cfcfcf; | ||
border-radius: 2px; | ||
background: #f7f7f7; | ||
line-height: 1.21429em; | ||
padding: 5px; | ||
} | ||
.cmdln { | ||
background-color: #333; | ||
color: #0f0; | ||
border-radius: 2px; | ||
padding: 5px; | ||
} | ||
.examples { | ||
text-align: center; | ||
}</style></head><body><div class="container"><div class="one-half column"><div class="notebook"><h1 id="nb-mermaid">nb-mermaid</h1> | ||
<blockquote> | ||
<p>Make <a href="https://github.com/knsv/mermaid">mermaid</a> diagrams in your | ||
<a href="http://jupyter.org">Jupyter</a> Notebook Markdown</p> | ||
</blockquote> | ||
<div class="mermaid">graph TD | ||
here[this page] --> bookmarklet(use bookmarklet) | ||
bookmarklet --> make | ||
here --> pip(pip) | ||
here --> clone | ||
pip --> installed | ||
clone(clone) --> installed | ||
clone --> fork(fork) | ||
fork --> profit((profit)) | ||
make(make diagrams) --> profit | ||
installed --> make</div></div><p class="examples"><a role="button" href="http://nbviewer.ipython.org/github/bollwyvl/nb-mermaid/blob/master/notebooks" class="btn btn-primary">see more examples</a></p></div><div class="one-half column"><h2 id="test-drive">test drive</h2> | ||
drag this <a role="button" href="javascript:(function(){javascript%3Arequire%28%5B%22//bollwyvl.github.io/nb-mermaid/nb-mermaid.js%22%5D%2Cfunction%28m%29%7Bm%28%29%7D%29}());" class="btn btn-primary btn-sm">nb-mermaid bookmarklet</a> to your bookmark bar, and click to use live on <a href="https://tmpnb.org">tmpnb.org</a> ... or your own, local notebooks<h2>install (easy, IPython-integrated)</h2><div class="cmdln"><code><pre>pip install nb-mermaid </pre></code></div><div class="notebook code"><code><pre>%reload_ext mermaid</pre></code></div><h2>install (less easy, Jupyter)</h2><div class="cmdln"><pre><code class="lang-bash">git clone -b gh-pages \ | ||
https://github.com/bollwyvl/nb-mermaid.git \ | ||
~/.ipython/nbextensions/nb-mermaid | ||
</code></pre> | ||
</div><div class="notebook code"><pre><code class="lang-javascript">%%javascript | ||
IPython.load_ipython_extensions([ | ||
"nb-mermaid/nb-mermaid" | ||
]); | ||
</code></pre> | ||
</div><h2 id="code">code</h2> | ||
<p><a href="https://github.com/bollwyvl/nb-mermaid">GitHub Repo</a></p> | ||
<h2 id="license">license</h2> | ||
<p><a href="https://github.com/bollwyvl/nb-mermaid/blob/master/LICENSE">BSD</a></p> | ||
</div></div><script src="lib/mermaid/dist/mermaid.min.js"></script><script>mermaid.init();</script></body></html> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"name": "mermaid", | ||
"authors": [ | ||
"knsv <[email protected]>" | ||
], | ||
"description": "Markdownish syntax for generating flowcharts, sequence diagrams and gantt charts.", | ||
"main": "dist/mermaid.slim.js", | ||
"keywords": [ | ||
"diagram", | ||
"markdown", | ||
"flowchart", | ||
"sequence diagram", | ||
"gantt" | ||
], | ||
"license": "MIT", | ||
"ignore": [ | ||
"*", | ||
"!dist/", | ||
"!dist/*", | ||
"!LICENSE" | ||
], | ||
"devDependencies": { | ||
"jasmine": "~2.0.4", | ||
"dagre": "0.6.2", | ||
"d3": "3.3.8", | ||
"dagre-d3": "0.3.3" | ||
}, | ||
"homepage": "https://github.com/knsv/mermaid", | ||
"version": "0.5.1", | ||
"_release": "0.5.1", | ||
"_resolution": { | ||
"type": "version", | ||
"tag": "0.5.1", | ||
"commit": "0dc983d04ab9400e604a460eea3a409570961ab2" | ||
}, | ||
"_source": "git://github.com/knsv/mermaid.git", | ||
"_target": "~0.5.1", | ||
"_originalSource": "mermaid" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2014 Knut Sveidqvist | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"name": "mermaid", | ||
"authors": [ | ||
"knsv <[email protected]>" | ||
], | ||
"description": "Markdownish syntax for generating flowcharts, sequence diagrams and gantt charts.", | ||
"main": "dist/mermaid.slim.js", | ||
"keywords": [ | ||
"diagram", | ||
"markdown", | ||
"flowchart", | ||
"sequence diagram", | ||
"gantt" | ||
], | ||
"license": "MIT", | ||
"ignore": [ | ||
"*", | ||
"!dist/", | ||
"!dist/*", | ||
"!LICENSE" | ||
], | ||
"devDependencies": { | ||
"jasmine": "~2.0.4", | ||
"dagre": "0.6.2", | ||
"d3": "3.3.8", | ||
"dagre-d3": "0.3.3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.mermaid { | ||
width: auto; | ||
text-align: center; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.