Skip to content

Commit 35412e5

Browse files
committed
(fix): move src/pages/troubleshooting.html to the root directory and update vite.config.js and tailwind.config.js accordingly
1 parent 0003fab commit 35412e5

6 files changed

+20
-4
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ <h2 class="text-xl xl:text-2xl">Biology Teacher</h2>
102102

103103
<a
104104
class="mt-6 block text-sm italic text-gray-600 underline underline-offset-4"
105-
href="./src/pages/troubleshooting.html"
105+
href="./troubleshooting.html"
106106
>
107107
Having trouble installing?
108108
</a>

tailwind.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const defaultTheme = require("tailwindcss/defaultTheme");
44

55
module.exports = {
6-
content: ["./index.html", "./src/**/*.{html,js,ts}"],
6+
content: ["./index.html", "./src/**/*.{html,js,ts}", "./*.html"],
77
theme: {
88
extend: {
99
colors: {

src/pages/troubleshooting.html renamed to troubleshooting.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ <h2 class="font-semi-bold mb-5 text-2xl font-semibold">
6363
"Not Commonly Downloaded" on Windows?
6464
</h2>
6565
<video
66-
src="../assets/vids/Honor_Biology_-_Youssef_Nagah___Not_Commonly_Downloaded.mp4"
66+
src="./vids/Honor_Biology_-_Youssef_Nagah___Not_Commonly_Downloaded.mp4"
6767
controls
6868
class="mx-auto w-full max-w-[50rem] rounded-lg border-2"
6969
></video>
@@ -72,7 +72,7 @@ <h2 class="font-semi-bold mb-5 text-2xl font-semibold">
7272
<div class="mt-10">
7373
<h2 class="font-semi-bold mb-5 text-2xl font-semibold">Having an issue updating the app?</h2>
7474
<video
75-
src="../assets/vids/Honor_Biology_-_Youssef_Nagah___New_Setup.mp4"
75+
src="./vids/Honor_Biology_-_Youssef_Nagah___New_Setup.mp4"
7676
controls
7777
class="mx-auto w-full max-w-[50rem] rounded-lg border-2"
7878
></video>

vite.config.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { dirname, resolve } from "node:path";
2+
import { fileURLToPath } from "node:url";
3+
import { defineConfig } from "vite";
4+
5+
const __dirname = dirname(fileURLToPath(import.meta.url));
6+
7+
export default defineConfig({
8+
build: {
9+
rollupOptions: {
10+
input: {
11+
main: resolve(__dirname, "index.html"),
12+
troubleshooting: resolve(__dirname, "troubleshooting.html"),
13+
},
14+
},
15+
},
16+
});

0 commit comments

Comments
 (0)