Skip to content

Commit

Permalink
Restored plotly to the mdbook
Browse files Browse the repository at this point in the history
  • Loading branch information
Swandog committed Mar 13, 2024
1 parent 6526006 commit 4247a74
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions book/theme/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,18 @@
<meta name="description" content="{{ description }}">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#ffffff">
<script src="https://cdn.plot.ly/plotly-2.18.0.min.js"></script>
<script type="module">
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs';
mermaid.initialize({ startOnLoad: true, theme: 'neutral' });
</script>

<style>
.plotly-graph-div {
aspect-ratio: 1 / 1;
}
</style>

{{#if favicon_svg}}
<link rel="icon" href="{{ path_to_root }}favicon.svg">
{{/if}}
Expand Down

0 comments on commit 4247a74

Please sign in to comment.