chore: remove '/docs' base path references and update asset paths in layout

This commit is contained in:
Rotimi Best
2025-12-21 21:23:31 +00:00
parent 2086e8dfd3
commit d12085917f
4 changed files with 3 additions and 5 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ export function baseOptions(): BaseLayoutProps {
nav: {
title: (
<div className="flex items-center gap-2">
<img src="/docs/logo-192.png" className="size-8" alt="ClassroomIO logo" />
<img src="/logo-192.png" className="size-8" alt="ClassroomIO logo" />
<span className="font-medium">ClassroomIO</span>
</div>
)
@@ -44,7 +44,7 @@ export function baseOptions(): BaseLayoutProps {
label: 'Discord',
icon: (
<img
src="/docs/discord-blue.png"
src="/discord-blue.png"
alt="discord icon"
className="w-7 transition-all duration-500 hover:scale-90"
/>
-1
View File
@@ -4,7 +4,6 @@ import { routeTree } from './routeTree.gen';
export function getRouter() {
return createTanStackRouter({
basepath: '/docs',
defaultNotFoundComponent: NotFound,
defaultPreload: 'intent',
routeTree,
+1 -1
View File
@@ -89,7 +89,7 @@ export const Route = createRootRoute({
],
links: [
{ rel: 'stylesheet', href: appCss },
{ rel: 'icon', href: '/docs/favicon.ico' }
{ rel: 'icon', href: '/favicon.ico' }
]
}),
component: RootComponent
-1
View File
@@ -10,7 +10,6 @@ export default defineConfig({
server: {
port: 3000
},
base: '/docs',
plugins: [
mdx(await import('./source.config')),
tailwindcss(),