Skip to content

Commit 1e8bf6b

Browse files
committed
Fix bibtex data path
1 parent 53ab7b9 commit 1e8bf6b

File tree

3 files changed

+5
-41
lines changed

3 files changed

+5
-41
lines changed

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
# Implementation Catalog
44

5-
> **🚀 New!** This catalog now has a modern web interface built with Next.js. Visit the live site at [vectorinstitute.github.io/implementation-catalog](https://vectorinstitute.github.io/implementation-catalog)
6-
75
This catalog is a collection of repositories for various Machine Learning techniques and algorithms implemented at Vector Institute.
86

97
## 🌐 Web Interface
@@ -27,8 +25,6 @@ npm install
2725
npm run dev
2826
```
2927

30-
See [`catalog/README.md`](catalog/README.md) for detailed documentation.
31-
3228
## 📋 Repository Information
3329

3430
The catalog contains the following information for each implementation:

catalog/README.md

Lines changed: 0 additions & 36 deletions
This file was deleted.

catalog/components/repository-card.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ export default function RepositoryCard({ repository, index = 0 }: RepositoryCard
1919
if (!repository.bibtex) return;
2020

2121
try {
22-
const response = await fetch('/data/papers.bib');
22+
// Use window.location to construct proper path that works with GitHub Pages base path
23+
const baseUrl = window.location.pathname.includes('/implementation-catalog')
24+
? '/implementation-catalog'
25+
: '';
26+
const response = await fetch(`${baseUrl}/data/papers.bib`);
2327
const bibtexContent = await response.text();
2428

2529
// Parse the bibtex file to find the specific entry

0 commit comments

Comments
 (0)