Skip to content

Commit 87312be

Browse files
committed
Fixed the path and making it start from webeyetrack.
1 parent de9f16e commit 87312be

2 files changed

Lines changed: 16 additions & 12 deletions

File tree

docs/src/App.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export default function App() {
177177
<Section id="overview" title="Overview">
178178

179179
<div className="mb-6">
180-
<img src="/demo.gif" alt="WebEyeTrack demo screenshot" className="rounded-lg border w-full" />
180+
<img src={`${import.meta.env.BASE_URL}/demo.gif`} alt="WebEyeTrack demo screenshot" className="rounded-lg border w-full" />
181181
<Button className="w-full mt-4" variant="outline" size="lg">
182182
<a href="https://azure-olympie-5.tiiny.site" target="_blank" rel="noreferrer noopener" className="w-full">
183183
Click to use live demo
@@ -307,70 +307,70 @@ npm run start
307307
name="Eduardo Davalos"
308308
href="https://edavalosanaya.github.io"
309309
subtitle="Assistant Professor, AIED | HCI | LLMs"
310-
imageSrc="/profiles/eduardo_davalos.webp"
310+
imageSrc={`${import.meta.env.BASE_URL}/profiles/eduardo_davalos.webp`}
311311
external
312312
/>
313313
<AvatarCard
314314
name="Yike Zhang"
315315
href="https://yikezhang.me"
316316
subtitle="Assistant Professor, Healthcare Ed | LLMs"
317-
imageSrc="/profiles/yike_zhang.jpeg"
317+
imageSrc={`${import.meta.env.BASE_URL}/profiles/yike_zhang.jpeg`}
318318
external
319319
/>
320320
<AvatarCard
321321
name="Namrata Srivastava"
322322
href="https://sites.google.com/view/namrata-srivastava"
323323
subtitle="Postdoc, HCI"
324-
imageSrc="/profiles/namrata_srivastava.jpeg"
324+
imageSrc={`${import.meta.env.BASE_URL}/profiles/namrata_srivastava.jpeg`}
325325
external
326326
/>
327327
<AvatarCard
328328
name="Yashvitha Thatigotla"
329329
href="https://www.linkedin.com/in/yashvitha/"
330330
subtitle="Software Dev @ Optum"
331-
imageSrc="/profiles/yashvitha_thatigotla.jpeg"
331+
imageSrc={`${import.meta.env.BASE_URL}/profiles/yashvitha_thatigotla.jpeg`}
332332
external
333333
/>
334334
<AvatarCard
335335
name="Jorge A. Salas"
336336
href="https://www.linkedin.com/in/jorgeasalas/"
337337
subtitle="Research Analyst"
338-
imageSrc="/profiles/jorge_a_salas.jpeg"
338+
imageSrc={`${import.meta.env.BASE_URL}/profiles/jorge_a_salas.jpeg`}
339339
external
340340
/>
341341
<AvatarCard
342342
name="Sara McFadden"
343343
href="https://www.linkedin.com/in/sara-mcfadden-93162a4/"
344344
subtitle="Research Coordinator"
345-
imageSrc="/profiles/sara_mcfadden.png"
345+
imageSrc={`${import.meta.env.BASE_URL}/profiles/sara_mcfadden.png`}
346346
external
347347
/>
348348
<AvatarCard
349349
name="Sun-Joo Cho"
350350
href="https://scholar.google.com/citations?user=0SHxelgAAAAJ&hl=en"
351351
subtitle="Professor | Psychology & Human Development"
352-
imageSrc="/profiles/sunjoo_cho.jpg"
352+
imageSrc={`${import.meta.env.BASE_URL}/profiles/sunjoo_cho.jpg`}
353353
external
354354
/>
355355
<AvatarCard
356356
name="Amanda Goodwin"
357357
href="https://peabody.vanderbilt.edu/bio/?pid=amanda-goodwin"
358358
subtitle="Professor | Language & Literacy"
359-
imageSrc="/profiles/amanda_goodwin.jpg"
359+
imageSrc={`${import.meta.env.BASE_URL}/profiles/amanda_goodwin.jpg`}
360360
external
361361
/>
362362
<AvatarCard
363363
name="Ashwin TS"
364364
href="https://sites.google.com/view/ashwintudur/home"
365365
subtitle="Research Scientist"
366-
imageSrc="/profiles/ashwin_ts.png"
366+
imageSrc={`${import.meta.env.BASE_URL}/profiles/ashwin_ts.png`}
367367
external
368368
/>
369369
<AvatarCard
370370
name="Gautam Biswas"
371371
href="https://engineering.vanderbilt.edu/bio/?pid=gautam-biswas"
372372
subtitle="Professor | Computer Science"
373-
imageSrc="/profiles/gautam_biswas.jpg"
373+
imageSrc={`${import.meta.env.BASE_URL}/profiles/gautam_biswas.jpg`}
374374
>
375375
{/* Focus: on-device inference and eval tooling. */}
376376
</AvatarCard>

docs/vite.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,16 @@ import react from '@vitejs/plugin-react'
33
import tailwindcss from '@tailwindcss/vite'
44
import path from "path"
55

6+
const repo = process.env.GITHUB_REPOSITORY?.split("/")?.[1];
7+
const isUserPage = repo?.endsWith(".github.io");
8+
const base = isUserPage ? "/" : `/${repo ?? "WebEyeTrack"}/`;
9+
610
export default defineConfig({
711
plugins: [
812
react(),
913
tailwindcss(),
1014
],
11-
base: "./WebEyeTrack/",
15+
base,
1216
resolve: {
1317
alias: {
1418
'@': path.resolve(__dirname, 'src'),

0 commit comments

Comments
 (0)