Skip to content

Commit 9b6168d

Browse files
committed
Added interactive visualizations
1 parent 3d6bc9a commit 9b6168d

File tree

5 files changed

+3456
-18
lines changed

5 files changed

+3456
-18
lines changed

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<!-- Add a relaxed CSP for development -->
7-
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; connect-src 'self' ws: wss:; style-src 'self' 'unsafe-inline';">
7+
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; connect-src 'self' ws: wss:; style-src 'self' 'unsafe-inline'; img-src 'self' data:;">
88

99
<!-- Favicon with responsive image format support -->
1010
<link rel="icon" href="/images/glue.svg" type="image/svg+xml">

src/documentation/Docs.tsx

+17-8
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
import React, { useState, useEffect, useRef, useMemo } from 'react';
33
import './Docs.css';
44

5+
import GlueAnimatedDiagrams from './components/GlueAnimatedDiagrams';
6+
57
interface CodeOverlayProps {
68
isVisible: boolean;
79
code: string;
@@ -1910,14 +1912,14 @@ magnetize {
19101912
</ul>
19111913

19121914
{renderCodeBlock(`model researcher {
1913-
provider = anthropic
1914-
role = "Research topics thoroughly"
1915-
adhesives = [glue, velcro]
1916-
config {
1917-
model = "claude-3-opus-20240229"
1918-
temperature = 0.7
1919-
max_tokens = 4000
1920-
}
1915+
provider = anthropic
1916+
role = "Research topics thoroughly"
1917+
adhesives = [glue, velcro]
1918+
config {
1919+
model = "claude-3-opus-20240229"
1920+
temperature = 0.7
1921+
max_tokens = 4000
1922+
}
19211923
}`, "models-example")}
19221924
</>
19231925
)}
@@ -1970,6 +1972,13 @@ magnetize {
19701972
</ul>
19711973
</>
19721974
)}
1975+
1976+
<h2 id="component-interactions">Component Interactions</h2>
1977+
<p>
1978+
{highlightText('Visualize how GLUE components work together in different workflows:')}
1979+
</p>
1980+
1981+
<GlueAnimatedDiagrams />
19731982
</section>
19741983
)}
19751984

0 commit comments

Comments
 (0)