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: { 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"
/> />
-1
View File
@@ -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,
+1 -1
View File
@@ -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
-1
View File
@@ -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(),