squiggle/packages/website/docusaurus.config.js

102 lines
2.7 KiB
JavaScript
Raw Normal View History

2022-02-06 18:40:28 +00:00
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
/** @type {import('@docusaurus/types').Config} */
const config = {
2022-02-09 15:22:51 +00:00
title: 'Squiggle (alpha)',
tagline: "A programming language for probabilistic estimation. It's still heavily experimental, and we're working to get to a stable release candidate.",
2022-02-09 15:03:07 +00:00
url: 'https://squiggle-documentation.netlify.app',
2022-02-06 18:40:28 +00:00
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
2022-02-09 15:03:07 +00:00
organizationName: 'QURI', // Usually your GitHub org/user name.
projectName: 'Squiggle', // Usually your repo name.
2022-02-06 18:40:28 +00:00
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
2022-02-09 15:03:07 +00:00
editUrl: 'https://github.com/foretold-app/squiggle/tree/main/packages/website/',
2022-02-06 18:40:28 +00:00
},
blog: {
showReadingTime: true,
// Please change this to your repo.
editUrl:
2022-02-09 15:03:07 +00:00
'https://github.com/foretold-app/squiggle/tree/main/packages/website/',
2022-02-06 18:40:28 +00:00
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
title: 'Squiggle',
logo: {
alt: 'Squiggle Logo',
src: 'img/logo.svg',
},
items: [
{
type: 'doc',
docId: 'Language',
position: 'left',
label: 'Tutorial',
},
{to: '/blog', label: 'Blog', position: 'left'},
{
2022-02-09 15:03:07 +00:00
href: 'https://github.com/QURIresearch/squiggle',
2022-02-06 18:40:28 +00:00
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
2022-02-09 15:03:07 +00:00
title: 'Blog',
2022-02-06 18:40:28 +00:00
items: [
{
2022-02-09 15:03:07 +00:00
label: 'Overview',
to: '/docs/Language',
2022-02-06 18:40:28 +00:00
},
],
},
{
title: 'More',
items: [
{
label: 'Blog',
to: '/blog',
},
{
label: 'GitHub',
2022-02-09 15:03:07 +00:00
href: 'https://github.com/QURIresearch/squiggle',
2022-02-06 18:40:28 +00:00
},
],
},
],
copyright: `CC0. Built with Docusaurus.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
};
module.exports = config;