const lightCodeTheme = require ( 'prism-react-renderer/themes/github' ) ; const darkCodeTheme = require ( 'prism-react-renderer/themes/dracula' ) ; const math = require ( 'remark-math' ) ; const katex = require ( 'rehype-katex' ) ; type { import ( '@docusaurus/types' ) . Config } const config = { title : 'Scikit.js' , tagline : 'Machine Learning for Javascript' , url : 'https://scikitjs.org' , baseUrl : '/' , onBrokenLinks : 'throw' , onBrokenMarkdownLinks : 'warn' , favicon : 'img/favicon.ico' , organizationName : 'javascriptdata' , projectName : 'scikit.js' , presets : [ [ '@docusaurus/preset-classic' , type { import ( '@docusaurus/preset-classic' ) . Options } ( { docs : { sidebarPath : require . resolve ( './sidebars.js' ) , editUrl : 'https://github.com/javascriptdata/scikit.js/docs' , remarkPlugins : [ math ] , rehypePlugins : [ katex ] } , blog : { showReadingTime : true , editUrl : 'https://github.com/javascriptdata/scikit.js/docs/blog/' } , theme : { customCss : require . resolve ( './src/css/custom.css' ) } } ) ] ] , stylesheets : [ { href : 'https://cdn.jsdelivr.net/npm/katex@0.13.11/dist/katex.min.css' , integrity : 'sha384-Um5gpz1odJg5Z4HAmzPtgZKdTBHZdw8S29IecapCSB31ligYPhHQZMIlWLYQGVoc' , crossorigin : 'anonymous' } ] , themeConfig : type { import ( '@docusaurus/preset-classic' ) . ThemeConfig } ( { navbar : { title : '' , logo : { alt : 'Scikit.js Logo' , src : 'img/scikitLogo.svg' , srcDark : 'img/favicon.ico' } , items : [ { to : '/' , label : 'Home' , position : 'right' , exact : true } , { to : '/docs/tutorial' , position : 'right' , label : 'Tutorial' , exact : true } , { to : '/docs/api' , position : 'right' , label : 'API' , exact : true } , { href : 'https://github.com/javascriptdata/scikit.js' , label : 'GitHub' , position : 'right' } ] } , footer : { style : 'dark' , links : [ { title : 'Docs' , items : [ { label : 'Tutorial' , to : '/docs/tutorial' } ] } , { title : 'Community' , items : [ { label : 'Stack Overflow' , href : 'https://stackoverflow.com/questions/tagged/scikitjs' } ] } , { title : 'More' , items : [ { label : 'GitHub' , href : 'https://github.com/javascriptdata/scikit.js' } ] } ] , copyright : `Copyright © ${ new Date ( ) . getFullYear ( ) } Scikit.js` } , prism : { theme : lightCodeTheme , darkTheme : darkCodeTheme } } ) } ; module . exports = config ;