From 1e9994462cd67a547b76d8a11c44285fcbee1277 Mon Sep 17 00:00:00 2001 From: unnoq Date: Wed, 20 Nov 2024 08:37:23 +0700 Subject: [PATCH] feat(content): edit on Github button --- apps/content/app/docs/[[...slug]]/page.tsx | 11 ++++++++++- apps/content/app/layout.config.tsx | 13 +------------ 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/apps/content/app/docs/[[...slug]]/page.tsx b/apps/content/app/docs/[[...slug]]/page.tsx index 20fcae0d..61379569 100644 --- a/apps/content/app/docs/[[...slug]]/page.tsx +++ b/apps/content/app/docs/[[...slug]]/page.tsx @@ -22,7 +22,16 @@ export default async function Page(props: { const MDX = page.data.body return ( - + {page.data.title} {page.data.description} diff --git a/apps/content/app/layout.config.tsx b/apps/content/app/layout.config.tsx index b41f8bd7..431955bf 100644 --- a/apps/content/app/layout.config.tsx +++ b/apps/content/app/layout.config.tsx @@ -8,6 +8,7 @@ import type { BaseLayoutProps } from 'fumadocs-ui/layouts/shared' * Docs Layout: app/docs/layout.tsx */ export const baseOptions: BaseLayoutProps = { + githubUrl: 'https://github.com/unnoq/orpc', nav: { title: 'oRPC', }, @@ -22,17 +23,5 @@ export const baseOptions: BaseLayoutProps = { url: '/docs/playground', active: 'nested-url', }, - { - type: 'icon', - url: 'https://github.com/unnoq/orpc', - text: 'Github', - icon: ( - - Github - - - ), - external: true, - }, ], }