Skip to content

Commit f086510

Browse files
committed
update landing page
- use global footer - removed unused duplicate components
1 parent c8d13d8 commit f086510

File tree

7 files changed

+19
-102
lines changed

7 files changed

+19
-102
lines changed

landing-page/.vitepress/config.mts

+15-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { fileURLToPath, URL } from 'node:url'
1+
import { fileURLToPath, URL } from "node:url";
22
import { defineConfig } from "vitepress";
33

44
const url = `https://docs-staging.pupil-labs.com/`;
@@ -26,11 +26,20 @@ const config_additions = {
2626
{
2727
find: /^.*\/VPNavBar\.vue$/,
2828
replacement: fileURLToPath(
29-
new URL('./../../components/CustomNavBar.vue', import.meta.url)
30-
)
31-
}
32-
]
33-
}
29+
new URL(
30+
"./../../components/header/CustomNavBar.vue",
31+
import.meta.url
32+
)
33+
),
34+
},
35+
{
36+
find: "@components",
37+
replacement: fileURLToPath(
38+
new URL("./../../components", import.meta.url)
39+
),
40+
},
41+
],
42+
},
3443
},
3544
};
3645

landing-page/.vitepress/theme/HomePage.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
2-
import ArrowIcon from "@theme/components/ArrowIcon.vue";
3-
import Footer from "@theme/components/Footer.vue";
2+
import ArrowIcon from "@components/ArrowIcon.vue";
3+
import Footer from "@components/Footer.vue";
44
55
import { useData } from "vitepress";
66
const { frontmatter } = useData();

landing-page/.vitepress/theme/components/ArrowIcon.vue

-16
This file was deleted.

landing-page/.vitepress/theme/components/Footer.vue

-17
This file was deleted.

landing-page/.vitepress/theme/components/PupilLogo.vue

-58
This file was deleted.

landing-page/.vitepress/theme/components/youtube.ts

-3
This file was deleted.

landing-page/tsconfig.json

+2
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@
1818
"allowJs": true,
1919
"paths": {
2020
"@/*": ["../*"],
21+
"@components/*": ["../components/*"],
2122
"@theme/*": ["./.vitepress/theme/*"]
2223
}
2324
},
2425
"include": [
26+
"../components/*.vue",
2527
"./.vitepress/**/*.vue",
2628
"./.vitepress/**/*.ts",
2729
"./.vitepress/**/*.mts",

0 commit comments

Comments
 (0)