Skip to content

Commit 527f8e4

Browse files
committed
Move (some) images to being processed by Vite
According to their docs, this is generally better
1 parent 9a0890d commit 527f8e4

5 files changed

Lines changed: 12 additions & 4 deletions

File tree

webui/website/src/content/docs/quickstart.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ draft: false
44
title: 'Quickstart'
55
---
66

7+
<script>
8+
import screenshot from "$lib/assets/landing_screenshot.png";
9+
</script>
10+
711
The simplest way to use Hister requires no configuration at all.
812

913
## Running the Server
@@ -43,7 +47,7 @@ In particular, they will never make requests to any site you are visiting (they
4347
Type <http://localhost:4433> (or, equivalently, `http://127.0.0.1:4433`) into your browser's address bar, and you will access Hister's interface.
4448
There, you can perform searches, add indexing rules... feel free to look around!
4549

46-
![Screenshot of Hister's landing page](/landing_screenshot.png)
50+
<img src={screenshot} alt="Screenshot of Hister's landing page" />
4751

4852
As you visit more pages in your browser (with the extension enabled), the number of indexed pages should increase!
4953
(Just refresh the page to update it.)

webui/website/src/lib/Previews.svelte

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<script lang="ts">
22
import { BrowserFrame } from '@hister/components';
3+
4+
import landing_scrnshot from "$lib/assets/landing_screenshot.png";
5+
import scrnshot from "$lib/assets/screenshot.png";
6+
import demo from "$lib/assets/demo.gif";
37
</script>
48

59
<section class="bg-brutal-bg flex w-full flex-col items-center gap-12 px-6 py-12 md:px-12 md:py-16">
@@ -15,15 +19,15 @@
1519
</figcaption>
1620
<BrowserFrame>
1721
<img
18-
src="/landing_screenshot.png"
22+
src={landing_scrnshot}
1923
alt="Hister Web UI Landing Page"
2024
class="block h-auto w-full"
2125
/>
2226
</BrowserFrame>
2327
</figure>
2428
<figure class="m-0 flex w-full max-w-[1100px] flex-col items-center gap-6">
2529
<BrowserFrame>
26-
<img src="/screenshot.png" alt="Hister Web UI" class="block h-auto w-full" />
30+
<img src={scrnshot} alt="Hister Web UI" class="block h-auto w-full" />
2731
</BrowserFrame>
2832
</figure>
2933

@@ -42,7 +46,7 @@
4246
tabBarClass="bg-[#161B22] border-b-2 border-[#30363D]"
4347
tabBarHeight="h-9"
4448
>
45-
<img src="/demo.gif" alt="Hister Terminal UI" class="block h-auto w-full" />
49+
<img src={demo} alt="Hister Terminal UI" class="block h-auto w-full" />
4650
</BrowserFrame>
4751
</figure>
4852
</section>
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)