toshiki-notebook/docs/.vitepress/config/theme.ts
andatoshiki 0f0d6c1f00
Some checks are pending
Generate Algolia serach indicies in JSON & push to Algolia / algolia (push) Waiting to run
Build and Deploy Vitepress Doc Pages to GitHub Pages / build-and-deploy (push) Waiting to run
chore(social link): add mastodon social link to to navigation bar & homepage as an addition mean to contact
2024-09-15 09:04:55 -07:00

48 lines
1.8 KiB
TypeScript

import { DefaultTheme } from 'vitepress/theme'
import { nav } from './nav'
import { sidebar } from './sidebar'
import { footer } from './footer'
export const themeConfig: DefaultTheme.Config = {
nav, // documentation navigation bar config
sidebar, // documentation sidebar config
footer, // site global footer config
logo: '/logos/logo.png',
outline: 'deep', // documentation outline header precedence
outlineTitle: 'TOC', // documentation outline title text
outlineBadges: false, // whether to show badge on outline
lastUpdatedText: 'Last updated', // config for last updated footer text
// documentation full text search config via algolia
// algolia: {
// appId: 'G9IUR45K98',
// apiKey: '8528cc91281d8112b28f508317a96dd3',
// indexName: 'toshiki-notebook',
// },
// documentation full local index search
search: {
provider: 'local',
},
// documentation edit link
editLink: {
pattern: 'https://github.com/andatoshiki/toshiki-notebook/edit/master/docs/:path',
text: 'Edit this page on GitHub',
},
socialLinks: [
{ icon: 'github', link: 'https://github.com/andatoshiki' },
{ icon: 'twitter', link: 'https://twitter.com/andatoshiki' },
{ icon: 'mastodon', link: 'https://mastodon.social/@andatoshiki' },
],
// custom vue components
// @ts-ignore
// surpress errors originated from the lines below of custom coponent configs in typescript
// footerConfig: {
// showFooter: true, // 是否显示页脚
// icpRecordCode: '津ICP备2022005864号-2', // ICP备案号
// publicSecurityRecordCode: '津公网安备12011202000677号', // 联网备案号
// copyright: `Copyright © 2019-${new Date().getFullYear()} Charles7c`, // 版权信息
// siteRunTime: true,
// },
}