chore: add dashboard link to docs header
This commit is contained in:
+72
-10
@@ -2,6 +2,59 @@ import React from 'react';
|
|||||||
import { DocsThemeConfig } from 'nextra-theme-docs';
|
import { DocsThemeConfig } from 'nextra-theme-docs';
|
||||||
|
|
||||||
const config: DocsThemeConfig = {
|
const config: DocsThemeConfig = {
|
||||||
|
head: (
|
||||||
|
<>
|
||||||
|
<link
|
||||||
|
rel="shortcut icon"
|
||||||
|
type="image/x-icon"
|
||||||
|
href={`${process.env.imagePath}/img/favicon.ico`}
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
rel="icon"
|
||||||
|
type="image/x-icon"
|
||||||
|
sizes="16x16"
|
||||||
|
href={`${process.env.imagePath}/img/logo-16.png`}
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
rel="icon"
|
||||||
|
type="image/x-icon"
|
||||||
|
sizes="32x32"
|
||||||
|
href={`${process.env.imagePath}/img/logo-32.png`}
|
||||||
|
/>
|
||||||
|
<meta
|
||||||
|
name="description"
|
||||||
|
content="Spend less time doing the boring stuff, instead focus on impacting the lives of your students."
|
||||||
|
/>
|
||||||
|
<meta name="theme-color" content="#ffffff" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<meta
|
||||||
|
property="og:title"
|
||||||
|
content="ClassroomIO – The Open Source Platform for Tech Bootcamps"
|
||||||
|
/>
|
||||||
|
<meta
|
||||||
|
property="og:description"
|
||||||
|
content="Spend less time doing the boring stuff, instead focus on impacting the lives of your students."
|
||||||
|
/>
|
||||||
|
<meta property="og:type" content="website" />
|
||||||
|
<meta property="og:image:type" content="image/png" />
|
||||||
|
<meta property="og:image:width" content="1920" />
|
||||||
|
<meta property="og:image:height" content="1080" />
|
||||||
|
<meta
|
||||||
|
property="og:image:secure_url"
|
||||||
|
content="https://classroomio.com/classroomio-opengraph-image.png"
|
||||||
|
/>
|
||||||
|
<meta name="twitter:card" content="summary_large_image" />
|
||||||
|
<meta name="twitter:creator" content="@rotimi_best" />
|
||||||
|
<meta
|
||||||
|
name="twitter:title"
|
||||||
|
content="ClassroomIO – The Open Source Platform for Tech Bootcamps"
|
||||||
|
/>
|
||||||
|
<meta
|
||||||
|
name="twitter:description"
|
||||||
|
content="Spend less time doing the boring stuff, instead focus on impacting the lives of your students."
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
),
|
||||||
logo: (
|
logo: (
|
||||||
<div style={{ display: 'flex', alignItems: 'center' }}>
|
<div style={{ display: 'flex', alignItems: 'center' }}>
|
||||||
<img
|
<img
|
||||||
@@ -13,6 +66,22 @@ const config: DocsThemeConfig = {
|
|||||||
<span style={{ marginLeft: '5px', lineHeight: '15px' }}>ClassroomIO Docs</span>
|
<span style={{ marginLeft: '5px', lineHeight: '15px' }}>ClassroomIO Docs</span>
|
||||||
</div>
|
</div>
|
||||||
),
|
),
|
||||||
|
navbar: {
|
||||||
|
extraContent: (
|
||||||
|
<a
|
||||||
|
style={{
|
||||||
|
display: 'flex',
|
||||||
|
alignItems: 'center',
|
||||||
|
border: '1px solid gray',
|
||||||
|
borderRadius: 5,
|
||||||
|
padding: '2px 7px'
|
||||||
|
}}
|
||||||
|
href="https://app.classroomio.com"
|
||||||
|
>
|
||||||
|
Dashboard
|
||||||
|
</a>
|
||||||
|
)
|
||||||
|
},
|
||||||
project: {
|
project: {
|
||||||
link: 'https://github.com/rotimi-best/classroomio'
|
link: 'https://github.com/rotimi-best/classroomio'
|
||||||
},
|
},
|
||||||
@@ -70,17 +139,10 @@ const config: DocsThemeConfig = {
|
|||||||
defaultMenuCollapseLevel: 1,
|
defaultMenuCollapseLevel: 1,
|
||||||
autoCollapse: false
|
autoCollapse: false
|
||||||
},
|
},
|
||||||
docsRepositoryBase: 'https://github.com/rotimi-best/classroomio/apps/docs',
|
docsRepositoryBase: 'https://github.com/rotimi-best/classroomio/tree/main/apps/docs',
|
||||||
footer: {
|
footer: {
|
||||||
text: 'ClassroomIO Help Docs'
|
text: 'ClassroomIO Docs'
|
||||||
},
|
}
|
||||||
head: (
|
|
||||||
<>
|
|
||||||
<link rel="shortcut icon" type="image/x-icon" href={`/docs/img/favicon.ico`} />
|
|
||||||
<link rel="icon" type="image/x-icon" sizes="16x16" href={`/docs/img/logo-16.png`} />
|
|
||||||
<link rel="icon" type="image/x-icon" sizes="32x32" href={`/docs/img/logo-32.png`} />
|
|
||||||
</>
|
|
||||||
)
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export default config;
|
export default config;
|
||||||
|
|||||||
Reference in New Issue
Block a user