import React from 'react'
import { useRouter } from 'next/router'
import { DocsThemeConfig } from 'nextra-theme-docs'
const config: DocsThemeConfig = {
logo: (
Docs
),
logoLink: '/',
i18n: [
{ locale: 'en', text: 'English' },
{ locale: 'id', text: 'Bahasa Indonesia' }
],
project: {
link: 'https://github.com/dyzulk/trustlab-docs',
},
chat: {
link: 'https://trustlab.dyzulk.com/dashboard',
icon: (
Go to Dashboard →
)
},
docsRepositoryBase: 'https://github.com/dyzulk/trustlab-docs/tree/main',
useNextSeoProps() {
const { asPath } = useRouter()
if (asPath.includes('/index') || asPath.endsWith('/en/') || asPath.endsWith('/id/')) {
return {
titleTemplate: 'TrustLab - Private Certificate Authority'
}
}
return {
titleTemplate: '%s – TrustLab Docs'
}
},
head: (
<>
>
),
footer: {
text: 'TrustLab Documentation',
},
search: {
placeholder: 'Search documentation...'
}
}
export default config