Files
archived-sern-website/docusaurus.config.js
Jacob Nguyen fe27ff5a0c feat: progresso noodle soup
Co-authored-by: xxDeveloper <Murtatrxx@users.noreply.github.com>
2022-08-08 16:41:48 -05:00

152 lines
5.2 KiB
JavaScript

// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const lightCodeTheme = require('prism-react-renderer/themes/nightOwlLight');
const darkCodeTheme = require('prism-react-renderer/themes/oceanicNext');
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'sern - Handlers. Redefined.',
tagline: 'With the support of the community made plugins and powerful a CLI, it\'s more than just a handler.',
url: 'https://sern-handler.js.org',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'static/img/favicon.ico', // this currently not working
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'sern-handler', // Usually your GitHub org/user name.
projectName: '@sern-handler/framework', // Usually your repo name.
// 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', 'fr'],
},
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: {
title: 'home',
logo: {
alt: 'logo logo',
src: 'img/favicon.ico',
},
items: [
{
type: 'doc',
docId: 'intro',
position: 'left',
label: 'docs & guide',
},
{to: '/blog', label: 'blog', position: 'left'},
{
href: 'https://github.com/sern-handler',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Information',
items: [
{
label: 'docs & guide',
to: '/docs/intro',
},
],
},
{
title: 'Community',
items: [
{
label: 'Stack Overflow',
href: 'https://stackoverflow.com/questions/tagged/sern-handler',
},
{
label: 'Discord',
href: 'https://discord.gg/DwbF5H5JgQ',
},
],
},
{
title: 'More',
items: [
{
label: 'blog',
to: '/blog',
},
{ //idk how to get ur index.html as our homepage because docasaurus already uses its own index.html
label: 'GitHub', // can we configure its html? //idk if we can make custom homepage let me check //i can add static directories but idk if its considered home page
href: 'https://github.com/sern-handler',
},
],
},
],
copyright: `Built with ❤️ by Team sern Handler`,
},
metadata : [
{ name : 'og:title', content : 'sern - Handlers. Redefined.' },
{ name : 'og:description', content : 'A customizable, batteries-included, powerful discord.js framework to automate and streamline bot development' },
{ name : 'og:image', content : './assets/images/logo.png' },
{ name : 'og:url', content : 'https://sern-handler.js.org' },
{ name : 'og:type', content : 'website' },
{ name : 'twitter:card', content : 'summary_large_image' },
{ name : 'twitter:site', content : '@sern-handler' },
{ name : 'twitter:title', content : 'sern - Handlers. Redefined.' },
{ name : 'twitter:description', content : 'A customizable, batteries-included, powerful discord.js framework to automate and streamline bot development' },
{ name : 'twitter:image', content : './assets/images/logo.png' },
{ name : 'twitter:url', content : 'https://sern-handler.js.org' },
],
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
// plugins : [
// [
// 'docusaurus-plugin-typedoc',
// {
// //if you're editing website, please change this to your local branch of sern to generate documentation
// entryPoints: ['../sernHandlerV2/src/index.ts'],
// tsconfig: '../sernHandlerV2/tsconfig-base.json',
// },
// ]
// ]
};
module.exports = config;