2024-09-30 21:01:59 -04:00
|
|
|
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 = {
|
2024-10-13 16:20:36 -04:00
|
|
|
title: 'The Old Speice Guy',
|
|
|
|
tagline: '',
|
2024-09-30 21:01:59 -04:00
|
|
|
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.
|
2024-10-13 16:20:36 -04:00
|
|
|
organizationName: 'bspeice',
|
|
|
|
projectName: 'speice.io',
|
2024-09-30 21:01:59 -04:00
|
|
|
|
|
|
|
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: {
|
2024-10-13 16:20:36 -04:00
|
|
|
title: 'The Old Speice Guy',
|
2024-09-30 21:01:59 -04:00
|
|
|
logo: {
|
2024-10-13 16:20:36 -04:00
|
|
|
alt: 'Sierpinski Gasket',
|
2024-09-30 21:01:59 -04:00
|
|
|
src: 'img/logo.svg',
|
2024-10-13 16:20:36 -04:00
|
|
|
srcDark: 'img/logo-dark.svg'
|
2024-09-30 21:01:59 -04:00
|
|
|
},
|
|
|
|
items: [
|
|
|
|
{to: '/', label: 'Blog', position: 'left'},
|
|
|
|
{
|
2024-10-13 16:20:36 -04:00
|
|
|
href: 'https://github.com/bspeice',
|
2024-09-30 21:01:59 -04:00
|
|
|
label: 'GitHub',
|
|
|
|
position: 'right',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
footer: {
|
|
|
|
style: 'dark',
|
|
|
|
links: [
|
|
|
|
{
|
|
|
|
title: 'More',
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
label: 'Blog',
|
|
|
|
to: '/',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'GitHub',
|
2024-10-13 16:20:36 -04:00
|
|
|
href: 'https://github.com/bspeice',
|
2024-09-30 21:01:59 -04:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
2024-10-13 16:20:36 -04:00
|
|
|
copyright: `Copyright © ${new Date().getFullYear()} Bradlee Speice`,
|
2024-09-30 21:01:59 -04:00
|
|
|
},
|
|
|
|
prism: {
|
2024-09-30 22:17:41 -04:00
|
|
|
theme: prismThemes.oneLight,
|
|
|
|
darkTheme: prismThemes.oneDark,
|
2024-09-30 21:01:59 -04:00
|
|
|
},
|
|
|
|
} satisfies Preset.ThemeConfig,
|
2024-09-30 22:17:41 -04:00
|
|
|
plugins: [require.resolve('docusaurus-lunr-search')]
|
2024-09-30 21:01:59 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
export default config;
|