import React from 'react' import { useRouter } from 'next/router' import { DocsThemeConfig } from 'nextra-theme-docs' const config: DocsThemeConfig = { logo: (
TrustLab TrustLab Docs
), logoLink: '/', 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() const description = 'TrustLab - Private Certificate Authority' const siteName = 'TrustLab Docs' let titleTemplate = '%s – ' + siteName if (asPath.includes('/index') || asPath.endsWith('/en/') || asPath.endsWith('/id/')) { titleTemplate = 'TrustLab - Private Certificate Authority' } return { titleTemplate, description, openGraph: { type: 'website', locale: 'en_US', url: `https://docs.trustlab.dyzulk.com${asPath}`, siteName: siteName, images: [ { url: 'https://docs.trustlab.dyzulk.com/images/logo-outlined.png', width: 1200, height: 630, alt: 'TrustLab Logo', }, ], }, twitter: { handle: '@trustlab', site: '@trustlab', cardType: 'summary_large_image', }, } }, head: ( <> ), footer: { text: 'TrustLab Documentation', }, search: { placeholder: 'Search documentation...' } } export default config