feat: docs
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
import type { BaseLayoutProps } from "fumadocs-ui/layouts/shared";
|
||||
|
||||
export function baseOptions(): BaseLayoutProps {
|
||||
return {
|
||||
nav: {
|
||||
title: (
|
||||
<span className="docs-brand">
|
||||
<span className="docs-brand-mark" aria-hidden="true">
|
||||
L
|
||||
</span>
|
||||
<span>Cours Docker</span>
|
||||
</span>
|
||||
),
|
||||
url: "/docs",
|
||||
transparentMode: "none",
|
||||
},
|
||||
links: [
|
||||
{
|
||||
text: "Accueil",
|
||||
url: "/",
|
||||
active: "none",
|
||||
},
|
||||
],
|
||||
themeSwitch: {
|
||||
enabled: false,
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
import { docs } from "collections/server";
|
||||
import { loader } from "fumadocs-core/source";
|
||||
|
||||
export const source = loader({
|
||||
baseUrl: "/docs",
|
||||
source: docs.toFumadocsSource(),
|
||||
});
|
||||
Reference in New Issue
Block a user