wiki/docusaurus.config.js

130 lines
3.5 KiB
JavaScript
Raw Normal View History

2022-12-29 12:10:14 -08:00
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
/** @type {import('@docusaurus/types').Config} */
const config = {
2022-12-29 12:48:56 -08:00
title: 'FOME Wiki',
tagline: 'Free Open Motorsports ECU',
url: 'https://wiki.fome.tech',
2022-12-29 12:10:14 -08:00
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
// staticDirectories: ['public', 'static'],
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
2022-12-29 12:48:56 -08:00
organizationName: 'FOME-Tech', // Usually your GitHub org/user name.
projectName: '', // Usually your repo name.
2022-12-29 12:10:14 -08:00
// Even if you don't use internalization, 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',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
},
blog: {
showReadingTime: true,
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
2022-12-29 12:48:56 -08:00
title: '',
2022-12-29 12:10:14 -08:00
logo: {
2022-12-29 12:48:56 -08:00
alt: 'FOME Logo',
src: 'img/logo.png',
2022-12-29 12:10:14 -08:00
},
items: [
{
type: 'doc',
docId: 'intro',
position: 'left',
2022-12-29 12:48:56 -08:00
label: 'Wiki',
2022-12-29 12:10:14 -08:00
},
{ to: '/blog', label: 'Blog', position: 'left' },
{
2022-12-29 12:48:56 -08:00
href: 'https://github.com/FOME-Tech',
2022-12-29 12:10:14 -08:00
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Tutorial',
to: '/docs/intro',
},
],
},
{
title: 'Community',
items: [
{
label: 'Discord',
2022-12-29 12:48:56 -08:00
href: 'https://discordapp.com/invite/fome',
2022-12-29 12:10:14 -08:00
},
{
label: 'Twitter',
2022-12-29 12:48:56 -08:00
href: 'https://twitter.com/fome',
2022-12-29 12:10:14 -08:00
},
],
},
{
title: 'More',
items: [
{
label: 'Blog',
to: '/blog',
},
{
label: 'GitHub',
2022-12-29 12:48:56 -08:00
href: 'https://github.com/FOME-Tech',
2022-12-29 12:10:14 -08:00
},
],
},
],
2022-12-29 12:48:56 -08:00
// copyright: `Copyright © ${new Date().getFullYear()} FOME`,
2022-12-29 12:10:14 -08:00
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
};
module.exports = config;