|
| 1 | +// @ts-check |
| 2 | +import { themes as prismThemes } from 'prism-react-renderer'; |
| 3 | + |
| 4 | +/** @type {import('@docusaurus/types').Config} */ |
| 5 | +const config = { |
| 6 | + title: 'WP Tosuto', |
| 7 | + tagline: 'Programmatic toast notifications for WordPress', |
| 8 | + |
| 9 | + url: 'https://spaghetti-dojo.github.io', |
| 10 | + baseUrl: '/tosuto/', |
| 11 | + |
| 12 | + organizationName: 'Spaghetti-Dojo', |
| 13 | + projectName: 'tosuto', |
| 14 | + |
| 15 | + future: { |
| 16 | + faster: true, |
| 17 | + v4: true, |
| 18 | + }, |
| 19 | + |
| 20 | + onBrokenLinks: 'throw', |
| 21 | + markdown: { |
| 22 | + hooks: { |
| 23 | + onBrokenMarkdownLinks: 'warn', |
| 24 | + }, |
| 25 | + }, |
| 26 | + |
| 27 | + i18n: { |
| 28 | + defaultLocale: 'en', |
| 29 | + locales: [ 'en' ], |
| 30 | + }, |
| 31 | + |
| 32 | + presets: [ |
| 33 | + [ |
| 34 | + 'classic', |
| 35 | + /** @type {import('@docusaurus/preset-classic').Options} */ |
| 36 | + ( { |
| 37 | + docs: { |
| 38 | + routeBasePath: '/', |
| 39 | + path: '../docs', |
| 40 | + sidebarPath: './sidebars.js', |
| 41 | + }, |
| 42 | + blog: false, |
| 43 | + theme: { |
| 44 | + customCss: './src/css/custom.css', |
| 45 | + }, |
| 46 | + } ), |
| 47 | + ], |
| 48 | + ], |
| 49 | + |
| 50 | + themeConfig: |
| 51 | + /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ |
| 52 | + ( { |
| 53 | + navbar: { |
| 54 | + title: 'WP Tosuto', |
| 55 | + items: [ |
| 56 | + { |
| 57 | + href: 'https://github.com/Spaghetti-Dojo/tosuto', |
| 58 | + label: 'GitHub', |
| 59 | + position: 'right', |
| 60 | + }, |
| 61 | + ], |
| 62 | + }, |
| 63 | + footer: { |
| 64 | + style: 'dark', |
| 65 | + links: [ |
| 66 | + { |
| 67 | + title: 'API', |
| 68 | + items: [ |
| 69 | + { label: 'PHP API', to: '/server/php-api' }, |
| 70 | + { label: 'JavaScript API', to: '/client/js-api' }, |
| 71 | + ], |
| 72 | + }, |
| 73 | + { |
| 74 | + title: 'More', |
| 75 | + items: [ |
| 76 | + { |
| 77 | + label: 'GitHub', |
| 78 | + href: 'https://github.com/Spaghetti-Dojo/tosuto', |
| 79 | + }, |
| 80 | + { |
| 81 | + label: 'Issues', |
| 82 | + href: 'https://github.com/Spaghetti-Dojo/tosuto/issues', |
| 83 | + }, |
| 84 | + ], |
| 85 | + }, |
| 86 | + ], |
| 87 | + copyright: `Copyright © ${ new Date().getFullYear() } Spaghetti Dojo. Built with Docusaurus.`, |
| 88 | + }, |
| 89 | + prism: { |
| 90 | + theme: prismThemes.github, |
| 91 | + darkTheme: prismThemes.dracula, |
| 92 | + additionalLanguages: [ 'php' ], |
| 93 | + }, |
| 94 | + } ), |
| 95 | +}; |
| 96 | + |
| 97 | +export default config; |
0 commit comments