From 194bf98a56ef4a16250ab618eb49a299cd659098 Mon Sep 17 00:00:00 2001 From: Rotimi Best Date: Thu, 14 Dec 2023 07:25:50 +0300 Subject: [PATCH] chore: add dashboard link to docs header --- apps/docs/theme.config.tsx | 82 +++++++++++++++++++++++++++++++++----- 1 file changed, 72 insertions(+), 10 deletions(-) diff --git a/apps/docs/theme.config.tsx b/apps/docs/theme.config.tsx index a02820bf..c7e44c63 100644 --- a/apps/docs/theme.config.tsx +++ b/apps/docs/theme.config.tsx @@ -2,6 +2,59 @@ import React from 'react'; import { DocsThemeConfig } from 'nextra-theme-docs'; const config: DocsThemeConfig = { + head: ( + <> + + + + + + + + + + + + + + + + + + + ), logo: (
ClassroomIO Docs
), + navbar: { + extraContent: ( + + Dashboard + + ) + }, project: { link: 'https://github.com/rotimi-best/classroomio' }, @@ -70,17 +139,10 @@ const config: DocsThemeConfig = { defaultMenuCollapseLevel: 1, autoCollapse: false }, - docsRepositoryBase: 'https://github.com/rotimi-best/classroomio/apps/docs', + docsRepositoryBase: 'https://github.com/rotimi-best/classroomio/tree/main/apps/docs', footer: { - text: 'ClassroomIO Help Docs' - }, - head: ( - <> - - - - - ) + text: 'ClassroomIO Docs' + } }; export default config;