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');
|
2023-05-05 01:53:27 -07:00
|
|
|
const pdfUrl = '/pdf/wiki.fome.pdf';
|
2022-12-29 12:10:14 -08:00
|
|
|
|
|
|
|
/** @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',
|
2023-05-05 01:59:24 -07:00
|
|
|
noIndex: false, // adds <meta name="robots" content="noindex, nofollow"> to every page
|
2023-05-05 01:38:32 -07:00
|
|
|
favicon: 'img/icons/favicon.ico',
|
2023-05-07 04:16:42 -07:00
|
|
|
trailingSlash: true, // adds trailing slash to all links since we are using Cloudflare Pages
|
2022-12-29 12:10:14 -08:00
|
|
|
// 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: {
|
2023-05-05 01:38:32 -07:00
|
|
|
routeBasePath: '/', // Serve the docs at the site's root
|
2022-12-29 12:10:14 -08:00
|
|
|
sidebarPath: require.resolve('./sidebars.js'),
|
|
|
|
// Remove this to remove the "edit this page" links.
|
|
|
|
editUrl:
|
2023-03-02 03:18:12 -08:00
|
|
|
'https://github.com/FOME-Tech/wiki/tree/master',
|
2022-12-29 12:10:14 -08:00
|
|
|
},
|
2023-05-05 01:38:32 -07:00
|
|
|
blog: false,
|
2022-12-29 12:10:14 -08:00
|
|
|
theme: {
|
|
|
|
customCss: require.resolve('./src/css/custom.css'),
|
|
|
|
},
|
|
|
|
}),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
themeConfig:
|
|
|
|
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
|
|
|
({
|
2023-05-05 01:38:32 -07:00
|
|
|
image: 'img/icons/android-chrome-512x512.png',
|
|
|
|
colorMode: {
|
|
|
|
defaultMode: 'dark',
|
|
|
|
respectPrefersColorScheme: true,
|
|
|
|
},
|
2022-12-29 12:10:14 -08:00
|
|
|
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',
|
2023-05-05 01:38:32 -07:00
|
|
|
src: 'img/logo-transparent.png',
|
2023-05-05 01:53:27 -07:00
|
|
|
style: {
|
|
|
|
height: 30,
|
|
|
|
marginTop: -2,
|
|
|
|
}
|
2022-12-29 12:10:14 -08:00
|
|
|
},
|
|
|
|
items: [
|
|
|
|
{
|
2023-05-05 01:53:27 -07:00
|
|
|
to: pdfUrl,
|
2023-05-05 01:38:32 -07:00
|
|
|
label: 'PDF',
|
|
|
|
position: 'right',
|
|
|
|
target: '_blank',
|
2022-12-29 12:10:14 -08:00
|
|
|
},
|
|
|
|
{
|
2023-05-05 01:38:32 -07:00
|
|
|
href: 'https://github.com/FOME-Tech/wiki',
|
2022-12-29 12:10:14 -08:00
|
|
|
label: 'GitHub',
|
|
|
|
position: 'right',
|
|
|
|
},
|
2023-05-05 01:38:32 -07:00
|
|
|
{
|
|
|
|
type: 'search',
|
|
|
|
position: 'right',
|
|
|
|
},
|
2022-12-29 12:10:14 -08:00
|
|
|
],
|
|
|
|
},
|
|
|
|
footer: {
|
|
|
|
style: 'dark',
|
|
|
|
links: [
|
|
|
|
{
|
|
|
|
title: 'Community',
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
label: 'Discord',
|
2023-04-28 01:25:13 -07:00
|
|
|
href: 'https://discord.gg/5FQj4DMz',
|
2022-12-29 12:10:14 -08:00
|
|
|
},
|
|
|
|
{
|
2023-04-28 01:25:13 -07:00
|
|
|
label: 'Facebook',
|
|
|
|
href: 'https://www.facebook.com/profile.php?id=100088049271157',
|
2022-12-29 12:10:14 -08:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'More',
|
|
|
|
items: [
|
2023-05-05 01:53:27 -07:00
|
|
|
{
|
|
|
|
to: pdfUrl,
|
|
|
|
label: 'PDF version',
|
|
|
|
target: '_blank',
|
|
|
|
},
|
2023-04-28 01:25:13 -07:00
|
|
|
{
|
|
|
|
label: 'FOME.tech',
|
|
|
|
href: 'https://www.fome.tech',
|
|
|
|
},
|
2022-12-29 12:10:14 -08:00
|
|
|
{
|
|
|
|
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;
|