Skip to content

Commit

Permalink
Merge pull request #194 from promised-ai/bugfix/fix-plotly-in-book
Browse files Browse the repository at this point in the history
Restored plotly to the mdbook

approved without approval by @BaxterEaves
  • Loading branch information
Swandog authored Mar 14, 2024
2 parents 6526006 + 4247a74 commit f57a371
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 f57a371

Please sign in to comment.