docs.status.network/docusaurus.config.ts

107 lines
2.3 KiB
TypeScript

import type * as Preset from '@docusaurus/preset-classic';
import type { Config } from '@docusaurus/types';
const config: Config = {
title: 'Status Network Documentation',
tagline: 'The Social Playground',
url: 'https://docs.status.network',
baseUrl: '/',
favicon: 'img/favicon.ico',
organizationName: 'status-network',
projectName: 'docs',
i18n: {
defaultLocale: 'en',
locales: ['en', 'zh', 'ko', 'ja'],
localeConfigs: {
en: {
label: 'English',
htmlLang: 'en-US',
},
zh: {
label: '中文',
htmlLang: 'zh-CN',
},
ko: {
label: '한국어',
htmlLang: 'ko-KR',
},
ja: {
label: '日本語',
htmlLang: 'ja-JP',
},
},
},
presets: [
[
'classic',
{
docs: {
sidebarPath: './sidebars.ts',
editUrl: 'https://github.com/status-im/status-network-docs/tree/main/',
routeBasePath: '/',
},
blog: false,
pages: false,
theme: {
customCss: './src/css/custom.css',
},
} satisfies Preset.Options,
],
],
themeConfig: {
image: 'https://docs.status.network/img/sn_logo.svg',
colorMode: {
defaultMode: 'dark',
respectPrefersColorScheme: true,
},
navbar: {
title: 'Status Network Docs',
logo: {
alt: 'Status Network Logo',
src: 'img/sn_logo.svg',
},
items: [
{
type: 'localeDropdown',
position: 'right',
className: 'language-dropdown',
},
// {
// href: 'https://hub.status.network',
// label: 'Hub',
// position: 'right',
// className: 'hub-button',
// },
],
},
footer: {
links: [
{
title: 'Legal',
items: [
{
label: 'Terms of use',
to: '/terms-of-use',
},
{
label: 'Privacy policy',
to: '/privacy-policy',
},
],
},
],
},
algolia: {
// it is safe to commit these
appId: 'M7J93TRPJ9',
apiKey: '17befa84094fd9acddd40cbb64012976',
indexName: 'status',
contextualSearch: true,
},
},
} satisfies Config;
export default config;