|
| 1 | +// @ts-check |
| 2 | + |
| 3 | +const lightCodeTheme = require('prism-react-renderer/themes/github'); |
| 4 | +const darkCodeTheme = require('prism-react-renderer/themes/dracula'); |
| 5 | + |
| 6 | +// TODO setup fathom |
| 7 | +// TODO migrate content from Gitbook |
| 8 | +// TODO meta SEO |
| 9 | + |
| 10 | +/** @type {import('@docusaurus/types').Config} */ |
| 11 | +const config = { |
| 12 | + title: 'Sigle', |
| 13 | + url: 'https://docs.sigle.io', |
| 14 | + baseUrl: '/', |
| 15 | + onBrokenLinks: 'throw', |
| 16 | + onBrokenMarkdownLinks: 'throw', |
| 17 | + favicon: 'img/favicon.ico', |
| 18 | + organizationName: 'sigle', |
| 19 | + projectName: 'docs', |
| 20 | + |
| 21 | + presets: [ |
| 22 | + [ |
| 23 | + 'classic', |
| 24 | + /** @type {import('@docusaurus/preset-classic').Options} */ |
| 25 | + ({ |
| 26 | + docs: { |
| 27 | + routeBasePath: '/', |
| 28 | + sidebarPath: require.resolve('./sidebars.js'), |
| 29 | + editUrl: 'https://github.com/github/sigle/tree/main/', |
| 30 | + }, |
| 31 | + theme: { |
| 32 | + customCss: [ |
| 33 | + require.resolve('./src/css/custom.css'), |
| 34 | + require.resolve('@fontsource/open-sans'), |
| 35 | + ], |
| 36 | + }, |
| 37 | + }), |
| 38 | + ], |
| 39 | + ], |
| 40 | + |
| 41 | + themeConfig: |
| 42 | + /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ |
| 43 | + ({ |
| 44 | + navbar: { |
| 45 | + title: 'Sigle Docs', |
| 46 | + logo: { |
| 47 | + alt: 'Sigle Logo', |
| 48 | + src: 'img/logo.png', |
| 49 | + }, |
| 50 | + items: [ |
| 51 | + { |
| 52 | + href: 'https://github.com/pradel/sigle', |
| 53 | + label: 'GitHub', |
| 54 | + position: 'right', |
| 55 | + }, |
| 56 | + ], |
| 57 | + }, |
| 58 | + footer: { |
| 59 | + style: 'dark', |
| 60 | + links: [ |
| 61 | + { |
| 62 | + title: 'Connect', |
| 63 | + items: [ |
| 64 | + { |
| 65 | + label: 'Twitter', |
| 66 | + href: 'https://twitter.com/sigleapp', |
| 67 | + }, |
| 68 | + { |
| 69 | + label: 'Discord', |
| 70 | + href: 'https://discord.gg/td7WmgK22k', |
| 71 | + }, |
| 72 | + { |
| 73 | + label: 'Github', |
| 74 | + href: 'https://github.com/sigle', |
| 75 | + }, |
| 76 | + ], |
| 77 | + }, |
| 78 | + { |
| 79 | + title: 'Product', |
| 80 | + items: [ |
| 81 | + { |
| 82 | + label: 'Application', |
| 83 | + href: 'https://app.sigle.io', |
| 84 | + }, |
| 85 | + { |
| 86 | + label: 'Blog', |
| 87 | + href: 'https://app.sigle.io/sigleapp.id.blockstack', |
| 88 | + }, |
| 89 | + { |
| 90 | + label: 'Feedback', |
| 91 | + href: 'https://sigle.canny.io/feature-requests', |
| 92 | + }, |
| 93 | + ], |
| 94 | + }, |
| 95 | + { |
| 96 | + title: 'More...', |
| 97 | + items: [ |
| 98 | + { |
| 99 | + label: 'The Explorer Guild', |
| 100 | + href: 'https://www.explorerguild.io/', |
| 101 | + }, |
| 102 | + { |
| 103 | + label: 'StxStats', |
| 104 | + href: 'https://www.stxstats.co/', |
| 105 | + }, |
| 106 | + ], |
| 107 | + }, |
| 108 | + ], |
| 109 | + copyright: `Copyright © ${new Date().getFullYear()} Sigle`, |
| 110 | + }, |
| 111 | + prism: { |
| 112 | + theme: lightCodeTheme, |
| 113 | + darkTheme: darkCodeTheme, |
| 114 | + }, |
| 115 | + }), |
| 116 | +}; |
| 117 | + |
| 118 | +module.exports = config; |
0 commit comments