// @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: '/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: 'website', // Usually your repo name. deploymentBranch: 'main', trailingSlash: false, // 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', 'tr'], }, 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/sern-handler/website/edit/main/', }, 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/', }, pages : { path: 'src/pages', routeBasePath: '/', include: ['**/*.{js,jsx,ts,tsx,md,mdx}'], exclude: [ '**/_*.{js,jsx,ts,tsx,md,mdx}', '**/_*/**', '**/*.test.{js,jsx,ts,tsx}', '**/__tests__/**', ], }, 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', }, { to: '/plugins', label: 'plugins', position: 'left' } ], }, 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', }, { label : 'Open Collective', href: 'https://opencollective.com/sern' } ], }, { title: 'More', items: [ // { //this was causing the build err // label: 'blog', // to: '/blog', // }, { label: 'GitHub', href: 'https://github.com/sern-handler', }, ], }, ], copyright: `Built with ❤️ by the sern Handler team and its contributors`, }, 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;