Files
classroomio/apps/docs/theme.config.tsx
T

149 lines
4.3 KiB
TypeScript
Raw Normal View History

2023-12-11 02:35:20 +03:00
import React from 'react';
import { DocsThemeConfig } from 'nextra-theme-docs';
2023-11-25 21:56:02 +00:00
const config: DocsThemeConfig = {
2023-12-14 07:25:50 +03:00
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 –&nbsp;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 –&nbsp;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."
/>
</>
),
2023-12-11 02:35:20 +03:00
logo: (
<div style={{ display: 'flex', alignItems: 'center' }}>
2023-12-13 10:16:21 +03:00
<img
src={`${process.env.imagePath}/img/logo-512.png`}
alt={'ClassroomIO logo'}
width={32}
height={32}
/>
2023-12-11 02:35:20 +03:00
<span style={{ marginLeft: '5px', lineHeight: '15px' }}>ClassroomIO Docs</span>
</div>
),
2023-12-14 07:25:50 +03:00
navbar: {
extraContent: (
<a
style={{
display: 'flex',
alignItems: 'center',
border: '1px solid gray',
borderRadius: 5,
padding: '2px 7px'
}}
href="https://app.classroomio.com"
>
Dashboard ↗
2023-12-14 07:25:50 +03:00
</a>
)
},
2023-12-11 02:35:20 +03:00
project: {
link: 'https://github.com/rotimi-best/classroomio'
},
useNextSeoProps() {
return {
titleTemplate: 'ClassroomIO Documentation',
openGraph: {
siteName: 'ClassroomIO Docs',
title: 'ClassroomIO Documentation',
description:
'Spend less time doing the boring stuff, instead focus on impacting the lives of your students.',
images: [
{
2023-12-13 10:16:21 +03:00
url: `${process.env.imagePath}/img/logo-16.png`,
2023-12-11 02:35:20 +03:00
width: 16,
height: 16,
alt: 'ClassroomIO Docs Og Image Alt',
type: 'image/png'
},
{
2023-12-13 10:16:21 +03:00
url: `${process.env.imagePath}/img/logo-32.png`,
2023-12-11 02:35:20 +03:00
width: 32,
height: 32,
alt: 'ClassroomIO Docs Og Image Alt',
type: 'image/png'
},
{
2023-12-13 10:16:21 +03:00
url: `${process.env.imagePath}/img/logo-192.png`,
2023-12-11 02:35:20 +03:00
width: 192,
height: 192,
alt: 'ClassroomIO Docs Og Image Alt',
type: 'image/png'
},
{
2023-12-13 10:16:21 +03:00
url: `${process.env.imagePath}/img/logo-512.png`,
2023-12-11 02:35:20 +03:00
width: 512,
height: 512,
alt: 'ClassroomIO Docs Og Image Alt',
type: 'image/png'
},
2023-12-13 10:16:21 +03:00
{ url: `${process.env.imagePath}/img/og-image.png'` }
2023-12-11 02:35:20 +03:00
],
twitter: {
handle: '@classroomio',
site: '@classroomio.com',
cardType: 'summary_large_image'
}
}
};
},
chat: {
link: 'https://dub.sh/ciodiscord'
},
sidebar: {
defaultMenuCollapseLevel: 1,
autoCollapse: false
},
2023-12-14 07:25:50 +03:00
docsRepositoryBase: 'https://github.com/rotimi-best/classroomio/tree/main/apps/docs',
2023-12-11 02:35:20 +03:00
footer: {
2023-12-14 07:25:50 +03:00
text: 'ClassroomIO Docs'
}
2023-11-30 15:23:11 +03:00
};
2023-11-25 21:56:02 +00:00
2023-11-30 15:23:11 +03:00
export default config;