|
| 1 | +// @ts-check |
| 2 | +// Note: type annotations allow type checking and IDEs autocompletion |
| 3 | + |
| 4 | +const lightCodeTheme = require('prism-react-renderer/themes/github'); |
| 5 | +const darkCodeTheme = require('prism-react-renderer/themes/dracula'); |
| 6 | +const math = require('remark-math'); |
| 7 | +const katex = require('rehype-katex'); |
| 8 | + |
| 9 | +/** @type {import('@docusaurus/types').Config} */ |
| 10 | +const config = { |
| 11 | + title: 'Metalift', |
| 12 | + tagline: 'A program synthesis framework for verified lifting applications', |
| 13 | + url: 'https://metalift.netlify.com', |
| 14 | + baseUrl: '/', |
| 15 | + onBrokenLinks: 'throw', |
| 16 | + onBrokenMarkdownLinks: 'warn', |
| 17 | + favicon: 'img/favicon.ico', |
| 18 | + organizationName: 'metalift', // Usually your GitHub org/user name. |
| 19 | + projectName: 'docusaurus', // Usually your repo name. |
| 20 | + |
| 21 | + presets: [ |
| 22 | + [ |
| 23 | + 'classic', |
| 24 | + /** @type {import('@docusaurus/preset-classic').Options} */ |
| 25 | + ({ |
| 26 | + docs: { |
| 27 | + sidebarPath: require.resolve('./sidebars.js'), |
| 28 | + // Please change this to your repo. |
| 29 | + editUrl: 'https://github.com/metalift/metalift/tree/llvm/docs', |
| 30 | + remarkPlugins: [math], |
| 31 | + rehypePlugins: [katex], |
| 32 | + }, |
| 33 | + blog: { |
| 34 | + showReadingTime: true, |
| 35 | + // Please change this to your repo. |
| 36 | + editUrl: |
| 37 | + 'https://github.com/metalift/metalift/tree/llvm/docs', |
| 38 | + }, |
| 39 | + theme: { |
| 40 | + customCss: require.resolve('./src/css/custom.css'), |
| 41 | + }, |
| 42 | + }), |
| 43 | + ], |
| 44 | + ], |
| 45 | + stylesheets: [ |
| 46 | + { |
| 47 | + href: 'https://cdn.jsdelivr.net/npm/katex@0.13.24/dist/katex.min.css', |
| 48 | + type: 'text/css', |
| 49 | + integrity: |
| 50 | + 'sha384-odtC+0UGzzFL/6PNoE8rX/SPcQDXBJ+uRepguP4QkPCm2LBxH3FA3y+fKSiJ+AmM', |
| 51 | + crossorigin: 'anonymous', |
| 52 | + }, |
| 53 | + ], |
| 54 | + |
| 55 | + themeConfig: |
| 56 | + /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ |
| 57 | + ({ |
| 58 | + navbar: { |
| 59 | + title: 'Metalift', |
| 60 | + logo: { |
| 61 | + alt: 'The Metalift logo (a forall symbol with an upward pointing arrow)', |
| 62 | + src: 'img/metalift-icon.svg', |
| 63 | + }, |
| 64 | + items: [ |
| 65 | + { |
| 66 | + type: 'doc', |
| 67 | + docId: 'overview', |
| 68 | + position: 'left', |
| 69 | + label: 'Docs', |
| 70 | + }, |
| 71 | + {to: '/blog', label: 'Blog', position: 'left'}, |
| 72 | + { |
| 73 | + href: 'https://github.com/metalift/metalift', |
| 74 | + label: 'GitHub', |
| 75 | + position: 'right', |
| 76 | + }, |
| 77 | + ], |
| 78 | + }, |
| 79 | + footer: { |
| 80 | + style: 'dark', |
| 81 | + links: [ |
| 82 | + { |
| 83 | + title: 'Docs', |
| 84 | + items: [ |
| 85 | + { |
| 86 | + label: 'Overview', |
| 87 | + to: '/docs/overview', |
| 88 | + }, |
| 89 | + { |
| 90 | + label: 'Installation', |
| 91 | + to: '/docs/installation', |
| 92 | + }, |
| 93 | + { |
| 94 | + label: 'Tutorial', |
| 95 | + to: '/docs/tutorial/creating-synthesis-problem', |
| 96 | + }, |
| 97 | + ], |
| 98 | + }, |
| 99 | + // { |
| 100 | + // title: 'Community', |
| 101 | + // items: [ |
| 102 | + // { |
| 103 | + // label: 'Stack Overflow', |
| 104 | + // href: 'https://stackoverflow.com/questions/tagged/docusaurus', |
| 105 | + // }, |
| 106 | + // { |
| 107 | + // label: 'Discord', |
| 108 | + // href: 'https://discordapp.com/invite/docusaurus', |
| 109 | + // }, |
| 110 | + // { |
| 111 | + // label: 'Twitter', |
| 112 | + // href: 'https://twitter.com/docusaurus', |
| 113 | + // }, |
| 114 | + // ], |
| 115 | + // }, |
| 116 | + { |
| 117 | + title: 'More', |
| 118 | + items: [ |
| 119 | + { |
| 120 | + label: 'Blog', |
| 121 | + to: '/blog', |
| 122 | + }, |
| 123 | + { |
| 124 | + label: 'GitHub', |
| 125 | + href: 'https://github.com/metalift/metalift', |
| 126 | + }, |
| 127 | + ], |
| 128 | + }, |
| 129 | + ], |
| 130 | + copyright: `Copyright © ${new Date().getFullYear()} UC Berkeley. Built with Docusaurus.`, |
| 131 | + }, |
| 132 | + prism: { |
| 133 | + theme: lightCodeTheme, |
| 134 | + darkTheme: darkCodeTheme, |
| 135 | + }, |
| 136 | + }), |
| 137 | +}; |
| 138 | + |
| 139 | +module.exports = config; |
0 commit comments