Skip to content

Commit

Permalink
Remove direct mermaid dependency (Mermaid component is also provi…
Browse files Browse the repository at this point in the history
…ded by the theme)
  • Loading branch information
tillprochaska committed Jan 8, 2025
1 parent aad904b commit f70535c
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 127 deletions.
1 change: 0 additions & 1 deletion docs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"@alephdata/followthemoney": "^3.7.12",
"astro": "^5.1.3",
"astro-theme-docs": "github:alephdata/astro-theme-docs",
"mermaid": "^11.4.1",
"unist-util-visit": "^5.0.0"
},
"devDependencies": {
Expand Down
77 changes: 0 additions & 77 deletions docs/src/components/common/Mermaid.astro

This file was deleted.

42 changes: 0 additions & 42 deletions docs/src/components/common/mermaid-theme.css.txt

This file was deleted.

12 changes: 7 additions & 5 deletions docs/src/components/explorer/InheritanceGraph.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import Mermaid from '@components/common/Mermaid.astro';
import { Mermaid } from 'astro-theme-docs/components';
import { getInheritanceEdges } from '@util/ftm';
import { schemaLink } from '@util/links';
Expand All @@ -25,7 +25,9 @@ for (const [child, parent] of edges) {
}
---

<Mermaid>
graph BT
{graph.join('\n')}
</Mermaid>
<Mermaid
content={`
graph BT
${graph.join('\n')}
`}
/>
2 changes: 1 addition & 1 deletion docs/src/pages/explorer/types/[name].astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import Markdown from '@astrojs/markdown-component';
import { Markdown } from 'astro-theme-docs/components';
import { model } from '@util/ftm';
import { Stack, RichContent } from 'astro-theme-docs/components';
import ExplorerLayout from '@layouts/ExplorerLayout.astro';
Expand Down

0 comments on commit f70535c

Please sign in to comment.