mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 00:03:33 +10:00
Adds the documenso favicon and touch icon to the documentation website keeping it on brand with our other websites and applications.
53 lines
1.6 KiB
TypeScript
53 lines
1.6 KiB
TypeScript
import type { DocsThemeConfig } from 'nextra-theme-docs';
|
|
import { useConfig } from 'nextra-theme-docs';
|
|
|
|
const themeConfig: DocsThemeConfig = {
|
|
logo: <span>Documenso</span>,
|
|
head: function useHead() {
|
|
const config = useConfig<{ title?: string; description?: string }>();
|
|
|
|
const title = `${config.frontMatter.title} | Documenso Docs` || 'Documenso Docs';
|
|
const description = config.frontMatter.description || 'The official Documenso documentation';
|
|
|
|
return (
|
|
<>
|
|
<meta httpEquiv="Content-Language" content="en" />
|
|
<meta name="title" content={title} />
|
|
<meta name="og:title" content={title} />
|
|
<meta name="description" content={description} />
|
|
<meta name="og:description" content={description} />
|
|
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
|
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
|
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
|
|
</>
|
|
);
|
|
},
|
|
project: {
|
|
link: 'https://documen.so/github',
|
|
},
|
|
chat: {
|
|
link: 'https://documen.so/discord',
|
|
},
|
|
docsRepositoryBase: 'https://github.com/documenso/documenso/tree/main/apps/documentation',
|
|
footer: {
|
|
text: (
|
|
<span>
|
|
{new Date().getFullYear()} ©{' '}
|
|
<a href="https://documen.so" target="_blank">
|
|
Documenso
|
|
</a>
|
|
.
|
|
</span>
|
|
),
|
|
},
|
|
primaryHue: 100,
|
|
primarySaturation: 48.47,
|
|
useNextSeoProps() {
|
|
return {
|
|
titleTemplate: '%s | Documenso Docs',
|
|
};
|
|
},
|
|
};
|
|
|
|
export default themeConfig;
|