2021-07-23 15:45:27 +03:00
|
|
|
const lightCodeTheme = require('prism-react-renderer/themes/github');
|
|
|
|
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
|
|
|
|
|
|
|
|
/** @type {import('@docusaurus/types').DocusaurusConfig} */
|
|
|
|
module.exports = {
|
|
|
|
title: 'Wasp',
|
|
|
|
tagline: 'A simple language for developing full-stack web apps with less code.',
|
2021-10-04 15:45:15 +03:00
|
|
|
// url, baseUrl, organizationName, projectName and trailingSlash are set according to the
|
|
|
|
// instructions in https://docusaurus.io/docs/deployment#deploying-to-github-pages .
|
2021-11-25 11:17:23 +03:00
|
|
|
url: 'https://wasp-lang.dev',
|
2021-10-04 15:45:15 +03:00
|
|
|
baseUrl: '/', // Should be name of repo if hosted on Github Pages, but can be just '/' if custom domain is used.
|
2021-07-23 15:45:27 +03:00
|
|
|
organizationName: 'wasp-lang', // Should be GitHub org/user name if hosted on Github Pages.
|
|
|
|
projectName: 'wasp', // Should be repo name if hosted on Github Pages.
|
2021-10-04 15:45:15 +03:00
|
|
|
trailingSlash: false,
|
2021-07-23 15:45:27 +03:00
|
|
|
onBrokenLinks: 'throw',
|
|
|
|
onBrokenMarkdownLinks: 'warn',
|
|
|
|
favicon: 'img/favicon.ico',
|
|
|
|
themeConfig: {
|
|
|
|
navbar: {
|
|
|
|
title: '.wasp (alpha)',
|
|
|
|
logo: {
|
|
|
|
alt: 'Wasp logo',
|
|
|
|
src: 'img/wasp-logo-eqpar-circle.png',
|
|
|
|
},
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
to: 'docs/',
|
|
|
|
activeBasePath: 'docs',
|
|
|
|
label: 'Docs',
|
|
|
|
position: 'left',
|
|
|
|
className: 'navbar-item-docs navbar-item-outside'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
to: 'blog',
|
|
|
|
label: 'Blog',
|
|
|
|
position: 'left'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
href: 'https://github.com/wasp-lang/wasp',
|
|
|
|
className: 'navbar-item-github',
|
|
|
|
position: 'right',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
href: 'https://twitter.com/WaspLang',
|
|
|
|
className: 'navbar-item-twitter',
|
|
|
|
position: 'right',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
href: 'https://discord.gg/rzdnErX',
|
|
|
|
className: 'navbar-item-discord',
|
|
|
|
position: 'right',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
prism: {
|
2021-09-01 17:18:32 +03:00
|
|
|
additionalLanguages: ['shell-session', 'haskell']
|
2021-07-23 15:45:27 +03:00
|
|
|
},
|
|
|
|
footer: {
|
|
|
|
style: 'dark',
|
|
|
|
links: [
|
|
|
|
{
|
|
|
|
title: 'Docs',
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
label: 'Getting started',
|
|
|
|
to: 'docs'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Todo app tutorial',
|
|
|
|
to: 'docs/tutorials/todo-app'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Reference',
|
2022-01-20 13:45:14 +03:00
|
|
|
to: 'docs/language/features'
|
2021-07-23 15:45:27 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Community',
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
label: 'Discord',
|
|
|
|
href: 'https://discord.gg/rzdnErX'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'More',
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
label: 'GitHub',
|
|
|
|
href: 'https://github.com/wasp-lang/wasp'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Contact',
|
|
|
|
href: 'docs/contact'
|
|
|
|
}
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
copyright: `Copyright © ${new Date().getFullYear()} Wasp.`,
|
|
|
|
},
|
|
|
|
algolia: {
|
2022-02-14 15:44:17 +03:00
|
|
|
appId: 'RG0JSZOWH4',
|
|
|
|
apiKey: 'feaa2a25dc596d40418c82cd040e2cbe',
|
2021-07-23 15:45:27 +03:00
|
|
|
indexName: 'wasp-lang',
|
|
|
|
// TODO: contextualSearch is useful when you are doing versioning,
|
|
|
|
// it searches only in v1 docs if you are searching from v1 docs.
|
|
|
|
// We should enable it if we start doing versioning.
|
|
|
|
// contextualSearch: true
|
2022-06-29 17:31:28 +03:00
|
|
|
},
|
|
|
|
gtag: {
|
|
|
|
trackingID: 'G-3ZEDH3BVGE',
|
|
|
|
anonymizeIP: true,
|
2021-07-23 15:45:27 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
presets: [
|
|
|
|
[
|
|
|
|
'@docusaurus/preset-classic',
|
|
|
|
{
|
2022-06-29 17:31:28 +03:00
|
|
|
gtag: {
|
|
|
|
trackingID: 'G-3ZEDH3BVGE',
|
|
|
|
anonymizeIP: true,
|
|
|
|
},
|
2021-07-23 15:45:27 +03:00
|
|
|
docs: {
|
|
|
|
sidebarPath: require.resolve('./sidebars.js'),
|
2021-10-04 12:43:23 +03:00
|
|
|
sidebarCollapsible: true,
|
2021-07-23 15:45:27 +03:00
|
|
|
// Please change this to your repo.
|
|
|
|
editUrl:
|
2022-02-08 17:34:32 +03:00
|
|
|
'https://github.com/wasp-lang/wasp/edit/main/web',
|
2021-07-23 15:45:27 +03:00
|
|
|
},
|
|
|
|
blog: {
|
|
|
|
showReadingTime: true,
|
|
|
|
// Please change this to your repo.
|
2022-03-17 13:09:48 +03:00
|
|
|
blogSidebarCount: 'ALL',
|
|
|
|
blogSidebarTitle: 'All our posts',
|
2021-07-23 15:45:27 +03:00
|
|
|
editUrl:
|
2022-02-08 17:34:32 +03:00
|
|
|
'https://github.com/wasp-lang/wasp/edit/main/web/blog',
|
2021-07-23 15:45:27 +03:00
|
|
|
},
|
|
|
|
theme: {
|
|
|
|
customCss: [
|
|
|
|
require.resolve('./src/css/custom.css'),
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
scripts: [
|
2021-10-04 16:50:52 +03:00
|
|
|
'/scripts/posthog.js',
|
|
|
|
'/js/fix-multiple-trailing-slashes.js'
|
2021-07-23 15:45:27 +03:00
|
|
|
]
|
|
|
|
};
|