const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
const config = {
title: 'Gloo',
tagline: ' A modular toolkit for building fast, reliable Web applications and libraries with Rust and Wasm ',
url: 'https://gloo-rs.web.app',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
favicon: 'img/Gloo-Logo.ico',
organizationName: 'rustwasm',
projectName: 'gloo',
themeConfig: {
navbar: {
title: 'Gloo',
logo: {
alt: 'Ferris <3 Gloo',
src: 'img/Gloo-Logo.svg',
},
items: [
{to: '/blog', label: 'Blog', position: 'left'},
{
type: 'dropdown',
label: 'docs.rs',
position: 'right',
items: [
{
label: 'gloo',
href: 'https://docs.rs/gloo',
},
{
label: 'dialogs',
href: 'https://docs.rs/gloo-dialogs/',
},
{
label: 'events',
href: 'https://docs.rs/gloo-events/',
},
{
label: 'file',
href: 'https://docs.rs/gloo-file/',
},
{
label: 'history',
href: 'https://docs.rs/gloo-history/',
},
{
label: 'net',
href: 'https://docs.rs/gloo-net/',
},
{
label: 'render',
href: 'https://docs.rs/gloo-render/',
},
{
label: 'storage',
href: 'https://docs.rs/gloo-storage/',
},
{
label: 'timers',
href: 'https://docs.rs/gloo-timers/',
},
{
label: 'utils',
href: 'https://docs.rs/gloo-utils/',
},
{
label: 'worker',
href: 'https://docs.rs/gloo-worker/',
}
],
},
{
href: 'https://github.com/rustwasm/gloo',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Community',
items: [
{
label: 'Discord',
href: 'https://discord.gg/DFgBACbDVG', },
],
},
{
title: 'More',
items: [
{
label: 'Blog',
to: '/blog',
},
{
label: 'GitHub',
href: 'https://github.com/rustwasm/gloo',
},
],
},
],
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
additionalLanguages: ['rust', 'toml'],
},
},
presets: [
[
'classic',
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl:
'https://github.com/rustwasm/gloo/blob/master/website/',
},
blog: {
showReadingTime: true,
editUrl:
'https://github.com/rustwasm/gloo/blob/master/website/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
};
module.exports = config;