|
| 1 | +// @ts-check |
| 2 | +// `@type` JSDoc annotations allow editor autocompletion and type checking |
| 3 | +// (when paired with `@ts-check`). |
| 4 | +// There are various equivalent ways to declare your Docusaurus config. |
| 5 | +// See: https://docusaurus.io/docs/api/docusaurus-config |
| 6 | + |
| 7 | +import {themes as prismThemes} from 'prism-react-renderer'; |
| 8 | + |
| 9 | +/** @type {import('@docusaurus/types').Config} */ |
| 10 | +const config = { |
| 11 | + title: 'Blobs - Documentation', |
| 12 | + tagline: 'Blobchains on Polkadot and Kusama', |
| 13 | + favicon: 'img/favicon.ico', |
| 14 | + |
| 15 | + // Set the production url of your site here |
| 16 | + url: 'https://your-docusaurus-site.example.com', |
| 17 | + // Set the /<baseUrl>/ pathname under which your site is served |
| 18 | + // For GitHub pages deployment, it is often '/<projectName>/' |
| 19 | + baseUrl: '/', |
| 20 | + |
| 21 | + // GitHub pages deployment config. |
| 22 | + // If you aren't using GitHub pages, you don't need these. |
| 23 | + organizationName: 'ThrumDev', // Usually your GitHub org/user name. |
| 24 | + projectName: 'blobs', // Usually your repo name. |
| 25 | + |
| 26 | + onBrokenLinks: 'throw', |
| 27 | + onBrokenMarkdownLinks: 'warn', |
| 28 | + |
| 29 | + // Even if you don't use internationalization, you can use this field to set |
| 30 | + // useful metadata like html lang. For example, if your site is Chinese, you |
| 31 | + // may want to replace "en" with "zh-Hans". |
| 32 | + i18n: { |
| 33 | + defaultLocale: 'en', |
| 34 | + locales: ['en'], |
| 35 | + }, |
| 36 | + |
| 37 | + presets: [ |
| 38 | + [ |
| 39 | + 'classic', |
| 40 | + /** @type {import('@docusaurus/preset-classic').Options} */ |
| 41 | + ({ |
| 42 | + docs: { |
| 43 | + sidebarPath: './sidebars.js', |
| 44 | + // Please change this to your repo. |
| 45 | + // Remove this to remove the "edit this page" links. |
| 46 | + editUrl: |
| 47 | + 'https://github.com/thrumdev/blobs/tree/main/docs-site', |
| 48 | + }, |
| 49 | + blog: false, |
| 50 | + theme: { |
| 51 | + customCss: './src/css/custom.css', |
| 52 | + }, |
| 53 | + }), |
| 54 | + ], |
| 55 | + ], |
| 56 | + |
| 57 | + themeConfig: |
| 58 | + /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ |
| 59 | + ({ |
| 60 | + // Replace with your project's social card |
| 61 | + image: 'img/docusaurus-social-card.jpg', |
| 62 | + navbar: { |
| 63 | + title: 'Blobs', |
| 64 | + logo: { |
| 65 | + alt: 'My Site Logo', |
| 66 | + src: 'img/logo.svg', |
| 67 | + }, |
| 68 | + items: [ |
| 69 | + { |
| 70 | + type: 'docSidebar', |
| 71 | + sidebarId: 'docsSidebar', |
| 72 | + position: 'left', |
| 73 | + label: 'Documentation', |
| 74 | + }, |
| 75 | + { |
| 76 | + href: 'https://github.com/thrumdev/blobs', |
| 77 | + label: 'GitHub', |
| 78 | + position: 'right', |
| 79 | + }, |
| 80 | + ], |
| 81 | + }, |
| 82 | + footer: { |
| 83 | + style: 'dark', |
| 84 | + links: [ |
| 85 | + { |
| 86 | + title: 'Docs', |
| 87 | + items: [ |
| 88 | + { |
| 89 | + label: 'Documentation', |
| 90 | + to: '/docs/intro', |
| 91 | + }, |
| 92 | + ], |
| 93 | + }, |
| 94 | + { |
| 95 | + title: 'Community', |
| 96 | + items: [ |
| 97 | + { |
| 98 | + label: 'Twitter', |
| 99 | + href: 'https://twitter.com/thrumdev', |
| 100 | + }, |
| 101 | + ], |
| 102 | + }, |
| 103 | + { |
| 104 | + title: 'More', |
| 105 | + items: [ |
| 106 | + { |
| 107 | + label: 'Our Website', |
| 108 | + href: 'https://thrum.dev', |
| 109 | + }, |
| 110 | + { |
| 111 | + label: 'GitHub', |
| 112 | + href: 'https://github.com/thrumdev/blobs', |
| 113 | + }, |
| 114 | + ], |
| 115 | + }, |
| 116 | + ], |
| 117 | + copyright: `Copyright © ${new Date().getFullYear()} Thrum Supersystems, LLC. Built with Docusaurus.`, |
| 118 | + }, |
| 119 | + prism: { |
| 120 | + theme: prismThemes.github, |
| 121 | + darkTheme: prismThemes.dracula, |
| 122 | + }, |
| 123 | + }), |
| 124 | +}; |
| 125 | + |
| 126 | +export default config; |
0 commit comments