mirror of
https://github.com/ash-project/ash_hq.git
synced 2024-09-19 12:53:49 +12:00
chore: remove mermaid.js (#87)
This commit is contained in:
parent
7c5e14b45d
commit
95c1d7b486
5 changed files with 0 additions and 1458 deletions
|
@ -22,8 +22,6 @@ import "phoenix_html";
|
|||
import { Socket } from "phoenix";
|
||||
import { LiveSocket } from "phoenix_live_view";
|
||||
import topbar from "../vendor/topbar";
|
||||
import mermaid from "mermaid";
|
||||
mermaid.init(".mermaid");
|
||||
|
||||
function cookiesAreAllowed() {
|
||||
const consentStatus = document.cookie
|
||||
|
@ -133,12 +131,6 @@ Hooks.ColorTheme = {
|
|||
},
|
||||
};
|
||||
|
||||
Hooks.Docs = {
|
||||
mounted() {
|
||||
mermaid.init(".mermaid");
|
||||
},
|
||||
};
|
||||
|
||||
let scrolled = false;
|
||||
|
||||
Hooks.RightNav = {
|
||||
|
|
1444
assets/package-lock.json
generated
1444
assets/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -13,7 +13,6 @@
|
|||
"dependencies": {
|
||||
"@tailwindcss/line-clamp": "^0.4.0",
|
||||
"@tailwindcss/typography": "^0.5.2",
|
||||
"mermaid": "^8.14.0",
|
||||
"smooth-scroll-into-view-if-needed": "^1.1.33"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -95,7 +95,6 @@ defmodule AshHqWeb.Pages.Docs do
|
|||
<div
|
||||
id="docs-window"
|
||||
class="w-full shrink prose prose-td:pl-0 max-w-6xl bg-white dark:bg-base-dark-850 dark:prose-invert md:pr-8 md:mt-4 px-4 md:px-auto mx-auto overflow-x-auto overflow-y-hidden"
|
||||
phx-hook="Docs"
|
||||
>
|
||||
<div
|
||||
id="module-docs"
|
||||
|
|
|
@ -31,10 +31,6 @@
|
|||
<% end %>
|
||||
|
||||
<%= @inner_content %>
|
||||
<%= if @live_action == :docs do %>
|
||||
<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
|
||||
<script>mermaid.init(".mermaid")</script>
|
||||
<% end %>
|
||||
<%= if @live_action == :media do %>
|
||||
<script src="https://platform.twitter.com/widgets.js" charset="utf-8" ></script>
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in a new issue