chore: remove '/docs' base path references and update asset paths in layout
This commit is contained in:
@@ -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"
|
||||
/>
|
||||
|
||||
@@ -4,7 +4,6 @@ import { routeTree } from './routeTree.gen';
|
||||
|
||||
export function getRouter() {
|
||||
return createTanStackRouter({
|
||||
basepath: '/docs',
|
||||
defaultNotFoundComponent: NotFound,
|
||||
defaultPreload: 'intent',
|
||||
routeTree,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -10,7 +10,6 @@ export default defineConfig({
|
||||
server: {
|
||||
port: 3000
|
||||
},
|
||||
base: '/docs',
|
||||
plugins: [
|
||||
mdx(await import('./source.config')),
|
||||
tailwindcss(),
|
||||
|
||||
Reference in New Issue
Block a user