Skip to content

Commit 44e5c51

Browse files
committed
replace gifs with asciicinema
1 parent 9ae6bd7 commit 44e5c51

File tree

10 files changed

+2376
-4
lines changed

10 files changed

+2376
-4
lines changed

MyApp/Configure.AppHost.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ public override void Configure(Funq.Container container)
1616
SetConfig(new HostConfig {
1717
IgnorePathInfoPrefixes = {
1818
"/templates",
19+
},
20+
AllowFileExtensions = {
21+
"cast"
1922
}
2023
});
2124
Plugins.RemoveAll(x => x is UiFeature);

MyApp/Pages/AiServer.cshtml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
}
1010

1111
@await Html.PartialAsync("MermaidIncludes")
12+
@await Html.PartialAsync("AsciiCinemaIncludes")
1213

1314
@await Html.PartialAsync("DocsPage", new Shared.DocsPage {
1415
Brand = "AI Server",
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<link rel="stylesheet" href="/css/asciinema-player.css">
2+
<script src="/lib/js/asciinema-player.js"></script>
3+
<script>
4+
document.addEventListener("DOMContentLoaded", () => {
5+
document.querySelectorAll('[data-asciicinema]').forEach(el => {
6+
const path = el.dataset.asciicinema
7+
const options = el.dataset.options
8+
? new Function(`return (${el.dataset.options})`)()
9+
: { loop: true, poster:'npt:00:01' }
10+
AsciinemaPlayer.create(path, el, options)
11+
})
12+
})
13+
</script>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
<link rel="stylesheet" href="css/highlight.css">
2-
<script src="lib/js/highlight.js"></script>
1+
<link rel="stylesheet" href="/css/highlight.css">
2+
<script src="/lib/js/highlight.js"></script>

MyApp/_pages/ai-server/comfy-extension.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ cat install.sh | bash
2525

2626
This process will also persist the configuration in the `.env` file in the ComfyUI Agent directory, so you can easily restart the ComfyUI Agent with the same configuration.
2727

28-
![](/img/pages/ai-server/agent-install.gif)
28+
<div data-asciicinema="/pages/ai-server/agent-comfy-install.cast"
29+
data-options="{loop:true,poster:'npt:00:08',theme:'dracula'}"></div>
2930

3031
:::info
3132
On the first run, the ComfyUI Agent will download the models you selected during the installation process. This can take some time depending on the size of the models and your internet connection speed.

MyApp/_pages/ai-server/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ cat install.sh | bash
1919

2020
The installer will detect common environment variables for the supported AI Providers like OpenAI, Google, Anthropic, and others, and prompt ask you if you want to add them to your AI Server configuration.
2121

22-
![](/img/pages/ai-server/install-ai-server.gif)
22+
<div data-asciicinema="/pages/ai-server/ai-server-install.cast"
23+
data-options="{loop:true,poster:'npt:00:08',theme:'dracula'}"></div>
2324

2425
Alternatively, you can specify which providers you want and provide the APIs before continuing with the installation.
2526

0 commit comments

Comments
 (0)