const fs = require ( 'fs' ) ; const path = require ( 'path' ) ; const pkg = require ( './package.json' ) ; const lightCodeTheme = require ( 'prism-react-renderer/themes/github' ) ; const darkCodeTheme = require ( 'prism-react-renderer/themes/dracula' ) ; module . exports = { title : 'Remirror' , tagline : pkg . description , url : 'https://remirror.io' , baseUrl : '/' , favicon : 'img/favicon.png' , organizationName : 'remirror' , projectName : 'remirror' , onBrokenLinks : 'warn' , themeConfig : { image : 'https://repository-images.githubusercontent.com/166780923/eb30b500-a97f-11ea-8508-32089c11e24c' , colorMode : { defaultMode : 'light' , disableSwitch : false , } , navbar : { logo : { alt : 'Remirror Logo' , src : 'img/logo.svg' , } , items : [ { to : 'docs' , activeBasePath : 'docs' , label : 'Docs' , position : 'right' , } , { to : '/blog' , label : 'Blog' , position : 'right' } , { href : 'https://discord.gg/C4cfrMK' , label : 'Chat' , position : 'right' } , { href : 'https://github.com/remirror/remirror' , label : 'GitHub' , position : 'right' , } , ] , } , footer : { style : 'dark' , links : [ { title : 'Docs' , items : [ { label : 'Introduction' , to : 'docs' , } , { label : 'Installation' , to : 'docs/installation' , } , { label : 'Examples' , href : 'https://remirror.vercel.app' } , ] , } , { title : 'Community' , items : [ { label : 'Discord' , to : '/chat' } , { label : 'Twitter' , href : 'https://twitter.com/@remirrorio' } , ] , } , { title : 'More' , items : [ { label : 'Blog' , to : 'blog' } , { label : 'GitHub' , href : 'https://github.com/remirror/remirror' } , { html : `
                <a href="https://www.netlify.com" target="_blank" rel="noreferrer noopener" aria-label="Hosted with Netlify">
                  <img src="https://www.netlify.com/img/global/badges/netlify-color-accent.svg" alt="Hosted with Netlify" />
                </a>
              ` , } , ] , } , ] , copyright : `Copyright © ${ new Date ( ) . getFullYear ( ) } KickJump Ltd. Built with Docusaurus` , } , prism : { theme : lightCodeTheme , darkTheme : darkCodeTheme , } , googleAnalytics : { trackingID : 'UA-135738542-1' , anonymizeIP : true } , } , presets : [ [ '@docusaurus/preset-classic' , { docs : { path : path . join ( __dirname , '../docs' ) , sidebarPath : require . resolve ( './sidebar.js' ) , editUrl : ( { version , versionDocsDirPath , docPath , permalink , locale } ) => { if ( permalink . startsWith ( '/docs/api' ) ) { return ; } return 'https://github.com/remirror/remirror/edit/HEAD/website/' ; } , } , blog : { showReadingTime : true , editUrl : 'https://github.com/remirror/remirror/edit/HEAD/website/blog/' , } , theme : { customCss : [ require . resolve ( './styles.css' ) , require . resolve ( 'remirror/styles/all.css' ) ] , } , } , ] , ] , plugins : [ path . join ( __dirname , 'plugins' , 'basic-plugin.js' ) , require . resolve ( '@docusaurus/plugin-ideal-image' ) , [ 'docusaurus-plugin-examples' , { path : path . join ( __dirname , 'examples' ) , include : [ '*.{js,jsx,ts,tsx}' ] , exclude : [ '*.test.{js,jsx,ts,tsx}' ] , } , ] , ] , stylesheets : [ 'https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap' , ] , } ;