speice.io/docusaurus.config.ts

82 lines
2.0 KiB
TypeScript

import {themes as prismThemes} from 'prism-react-renderer';
import type {Config} from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
const config: Config = {
title: 'The Old Speice Guy',
tagline: '',
favicon: 'img/favicon.ico',
url: 'https://speice.io/',
baseUrl: '/',
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'bspeice',
projectName: 'speice.io',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
// Even if you don't use internationalization, you can use this field to set
// useful metadata like html lang. For example, if your site is Chinese, you
// may want to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
presets: [
[
'classic',
{
docs: false,
blog: {
routeBasePath: "/",
showReadingTime: true,
feedOptions: {
type: ['rss', 'atom'],
xslt: true,
},
// Useful options to enforce blogging best practices
onInlineTags: 'warn',
onInlineAuthors: 'warn',
onUntruncatedBlogPosts: 'warn',
},
theme: {
customCss: ['./src/css/custom.css']
}
} satisfies Preset.Options,
],
],
themeConfig: {
navbar: {
title: 'The Old Speice Guy',
logo: {
alt: 'Sierpinski Gasket',
src: 'img/logo.svg',
srcDark: 'img/logo-dark.svg'
},
items: [
{
href: 'https://github.com/bspeice',
position: 'right',
className: 'header-github-link'
},
],
},
footer: {
links: [],
copyright: `Copyright © ${new Date().getFullYear()} Bradlee Speice`,
},
prism: {
theme: prismThemes.oneLight,
darkTheme: prismThemes.oneDark,
},
} satisfies Preset.ThemeConfig,
plugins: [require.resolve('docusaurus-lunr-search')]
};
export default config;