speice.io/docusaurus.config.ts
2024-10-13 20:20:36 +00:00

95 lines
2.2 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',
},
} satisfies Preset.Options,
],
],
themeConfig: {
navbar: {
title: 'The Old Speice Guy',
logo: {
alt: 'Sierpinski Gasket',
src: 'img/logo.svg',
srcDark: 'img/logo-dark.svg'
},
items: [
{to: '/', label: 'Blog', position: 'left'},
{
href: 'https://github.com/bspeice',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'More',
items: [
{
label: 'Blog',
to: '/',
},
{
label: 'GitHub',
href: 'https://github.com/bspeice',
},
],
},
],
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;