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: {
|
nav: {
|
||||||
title: (
|
title: (
|
||||||
<div className="flex items-center gap-2">
|
<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>
|
<span className="font-medium">ClassroomIO</span>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
@@ -44,7 +44,7 @@ export function baseOptions(): BaseLayoutProps {
|
|||||||
label: 'Discord',
|
label: 'Discord',
|
||||||
icon: (
|
icon: (
|
||||||
<img
|
<img
|
||||||
src="/docs/discord-blue.png"
|
src="/discord-blue.png"
|
||||||
alt="discord icon"
|
alt="discord icon"
|
||||||
className="w-7 transition-all duration-500 hover:scale-90"
|
className="w-7 transition-all duration-500 hover:scale-90"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import { routeTree } from './routeTree.gen';
|
|||||||
|
|
||||||
export function getRouter() {
|
export function getRouter() {
|
||||||
return createTanStackRouter({
|
return createTanStackRouter({
|
||||||
basepath: '/docs',
|
|
||||||
defaultNotFoundComponent: NotFound,
|
defaultNotFoundComponent: NotFound,
|
||||||
defaultPreload: 'intent',
|
defaultPreload: 'intent',
|
||||||
routeTree,
|
routeTree,
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ export const Route = createRootRoute({
|
|||||||
],
|
],
|
||||||
links: [
|
links: [
|
||||||
{ rel: 'stylesheet', href: appCss },
|
{ rel: 'stylesheet', href: appCss },
|
||||||
{ rel: 'icon', href: '/docs/favicon.ico' }
|
{ rel: 'icon', href: '/favicon.ico' }
|
||||||
]
|
]
|
||||||
}),
|
}),
|
||||||
component: RootComponent
|
component: RootComponent
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ export default defineConfig({
|
|||||||
server: {
|
server: {
|
||||||
port: 3000
|
port: 3000
|
||||||
},
|
},
|
||||||
base: '/docs',
|
|
||||||
plugins: [
|
plugins: [
|
||||||
mdx(await import('./source.config')),
|
mdx(await import('./source.config')),
|
||||||
tailwindcss(),
|
tailwindcss(),
|
||||||
|
|||||||
Reference in New Issue
Block a user