Skip to content

Commit 2c32075

Browse files
committed
fix relative path
1 parent 997a46b commit 2c32075

File tree

4 files changed

+31
-43
lines changed

4 files changed

+31
-43
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ This website is built using SvelteKit. To contribute to the development of the w
7979
1. Clone/fork the repository
8080
2. Install the dependencies: `npm install`
8181
3. Start the development server: `npm run dev`
82-
4. Make your changes and test them locally: `npm run preview`
82+
4. Make your changes and test them locally: `npm run build && npm run preview`
8383
5. Commit your changes and push them to the repository
8484
6. Create a pull request
8585

package-lock.json

Lines changed: 25 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"prettier": "^3.6.2",
3131
"prettier-plugin-svelte": "^3.4.0",
3232
"prettier-plugin-tailwindcss": "^0.6.13",
33-
"svelte": "^5.34.9",
33+
"svelte": "^5.35.2",
3434
"svelte-check": "^4.2.2",
3535
"tailwindcss": "^4.1.11",
3636
"typescript": "^5.8.3",

src/routes/contribute/+page.svelte

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<script lang="ts">
2+
import { base } from '$app/paths';
23
import {
34
Upload,
45
FileText,
@@ -136,15 +137,15 @@
136137

137138
<div class="mb-4 space-y-2">
138139
<div class="flex flex-wrap gap-2">
139-
<a href="/template.tsv" class="btn btn-xs btn-outline gap-1" download>
140+
<a href="{base}/template.tsv" class="btn btn-xs btn-outline gap-1" download>
140141
<FileText class="h-3 w-3" />
141142
Download template (TSV)
142143
</a>
143-
<a href="/template.xltx" class="btn btn-xs btn-outline gap-1" download>
144+
<a href="{base}/template.xltx" class="btn btn-xs btn-outline gap-1" download>
144145
<FileText class="h-3 w-3" />
145146
Download template (Excel Template)
146147
</a>
147-
<a href="/example.tsv" class="btn btn-xs btn-outline gap-1" download>
148+
<a href="{base}/example.tsv" class="btn btn-xs btn-outline gap-1" download>
148149
<FileSearch class="h-3 w-3" />
149150
Download example (TSV)
150151
</a>

0 commit comments

Comments
 (0)