|
1 | | -/** @type {import('@docusaurus/types').DocusaurusConfig} */ |
2 | | -module.exports = { |
| 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 | + |
| 7 | +/** @type {import('@docusaurus/types').Config} */ |
| 8 | +const config = { |
3 | 9 | title: 'Blink', |
4 | | - tagline: 'Link Shortener', |
| 10 | + tagline: 'Modern, lightweight, planet-scale link shortener for teams', |
| 11 | + favicon: 'img/favicon.ico', |
| 12 | + |
| 13 | + // Set the production url of your site here |
5 | 14 | url: 'https://docs.blink.rest', |
| 15 | + // Set the /<baseUrl>/ pathname under which your site is served |
| 16 | + // For GitHub pages deployment, it is often '/<projectName>/' |
6 | 17 | baseUrl: '/', |
| 18 | + |
| 19 | + // GitHub pages deployment config. |
| 20 | + // If you aren't using GitHub pages, you don't need these. |
| 21 | + // organizationName: 'facebook', // Usually your GitHub org/user name. |
| 22 | + // projectName: 'docusaurus', // Usually your repo name. |
| 23 | + |
7 | 24 | onBrokenLinks: 'throw', |
8 | 25 | onBrokenMarkdownLinks: 'warn', |
9 | | - favicon: 'img/favicon.ico', |
10 | | - organizationName: 'JaneJeon', // Usually your GitHub org/user name. |
11 | | - projectName: 'blink', // Usually your repo name. |
12 | | - themeConfig: { |
13 | | - navbar: { |
14 | | - title: 'Blink', |
15 | | - logo: { |
16 | | - alt: 'My Site Logo', |
17 | | - src: 'img/logo.svg' |
18 | | - }, |
19 | | - items: [ |
20 | | - { |
21 | | - to: '/', |
22 | | - activeBasePath: 'docs', |
23 | | - label: 'Docs', |
24 | | - position: 'left' |
25 | | - }, |
26 | | - { |
27 | | - href: 'https://github.com/JaneJeon/blink', |
28 | | - label: 'GitHub', |
29 | | - position: 'right' |
30 | | - } |
31 | | - ] |
32 | | - }, |
33 | | - footer: { |
34 | | - style: 'dark', |
35 | | - links: [ |
36 | | - // { |
37 | | - // title: 'Docs', |
38 | | - // items: [ |
39 | | - // { |
40 | | - // label: 'Getting Started', |
41 | | - // to: 'docs/' |
42 | | - // } |
43 | | - // ] |
44 | | - // }, |
45 | | - // { |
46 | | - // title: 'Community', |
47 | | - // items: [ |
48 | | - // { |
49 | | - // label: 'Stack Overflow', |
50 | | - // href: 'https://stackoverflow.com/questions/tagged/docusaurus' |
51 | | - // }, |
52 | | - // { |
53 | | - // label: 'Discord', |
54 | | - // href: 'https://discordapp.com/invite/docusaurus' |
55 | | - // }, |
56 | | - // { |
57 | | - // label: 'Twitter', |
58 | | - // href: 'https://twitter.com/docusaurus' |
59 | | - // } |
60 | | - // ] |
61 | | - // }, |
62 | | - // { |
63 | | - // title: 'More', |
64 | | - // items: [ |
65 | | - // { |
66 | | - // label: 'GitHub', |
67 | | - // href: 'https://github.com/JaneJeon/blink' |
68 | | - // } |
69 | | - // ] |
70 | | - // } |
71 | | - ], |
72 | | - copyright: `Copyright © ${new Date().getFullYear()} Jane Jeon` |
73 | | - }, |
74 | | - algolia: { |
75 | | - apiKey: process.env.ALGOLIA_API_KEY, |
76 | | - indexName: 'blink' |
77 | | - } |
| 26 | + |
| 27 | + // Even if you don't use internalization, you can use this field to set useful |
| 28 | + // metadata like html lang. For example, if your site is Chinese, you may want |
| 29 | + // to replace "en" with "zh-Hans". |
| 30 | + i18n: { |
| 31 | + defaultLocale: 'en', |
| 32 | + locales: ['en'] |
78 | 33 | }, |
| 34 | + |
79 | 35 | presets: [ |
80 | 36 | [ |
81 | | - '@docusaurus/preset-classic', |
82 | | - { |
| 37 | + 'classic', |
| 38 | + /** @type {import('@docusaurus/preset-classic').Options} */ |
| 39 | + ({ |
83 | 40 | docs: { |
84 | 41 | sidebarPath: require.resolve('./sidebars.js'), |
85 | 42 | // Please change this to your repo. |
| 43 | + // Remove this to remove the "edit this page" links. |
86 | 44 | editUrl: 'https://github.com/JaneJeon/blink/edit/master/website/', |
87 | 45 | routeBasePath: '/' |
88 | 46 | }, |
89 | 47 | theme: { |
90 | 48 | customCss: require.resolve('./src/css/custom.css') |
91 | 49 | } |
92 | | - } |
| 50 | + }) |
93 | 51 | ] |
94 | 52 | ], |
95 | | - plugins: ['@docusaurus/plugin-ideal-image'] |
| 53 | + |
| 54 | + themeConfig: |
| 55 | + /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ |
| 56 | + ({ |
| 57 | + colorMode: { |
| 58 | + respectPrefersColorScheme: true |
| 59 | + }, |
| 60 | + // Replace with your project's social card |
| 61 | + // image: 'img/docusaurus-social-card.jpg', |
| 62 | + navbar: { |
| 63 | + title: 'Blink', |
| 64 | + // logo: { |
| 65 | + // alt: 'My Site Logo', |
| 66 | + // src: 'img/logo.svg' |
| 67 | + // }, |
| 68 | + items: [ |
| 69 | + { |
| 70 | + to: '/', |
| 71 | + activeBasePath: 'docs', |
| 72 | + label: 'Docs', |
| 73 | + position: 'left' |
| 74 | + }, |
| 75 | + { |
| 76 | + href: 'https://github.com/JaneJeon/blink', |
| 77 | + position: 'right', |
| 78 | + className: 'header-github-link' |
| 79 | + } |
| 80 | + ] |
| 81 | + }, |
| 82 | + footer: { |
| 83 | + style: 'dark', |
| 84 | + links: [ |
| 85 | + // { |
| 86 | + // title: 'Docs', |
| 87 | + // items: [ |
| 88 | + // { |
| 89 | + // label: 'Tutorial', |
| 90 | + // to: '/docs/intro' |
| 91 | + // } |
| 92 | + // ] |
| 93 | + // }, |
| 94 | + // { |
| 95 | + // title: 'Community', |
| 96 | + // items: [ |
| 97 | + // { |
| 98 | + // label: 'Stack Overflow', |
| 99 | + // href: 'https://stackoverflow.com/questions/tagged/docusaurus' |
| 100 | + // }, |
| 101 | + // { |
| 102 | + // label: 'Discord', |
| 103 | + // href: 'https://discordapp.com/invite/docusaurus' |
| 104 | + // }, |
| 105 | + // { |
| 106 | + // label: 'Twitter', |
| 107 | + // href: 'https://twitter.com/docusaurus' |
| 108 | + // } |
| 109 | + // ] |
| 110 | + // }, |
| 111 | + // { |
| 112 | + // title: 'More', |
| 113 | + // items: [ |
| 114 | + // { |
| 115 | + // label: 'GitHub', |
| 116 | + // href: 'https://github.com/facebook/docusaurus' |
| 117 | + // } |
| 118 | + // ] |
| 119 | + // } |
| 120 | + ], |
| 121 | + copyright: `Copyright © ${new Date().getFullYear()} Jane Jeon` |
| 122 | + }, |
| 123 | + prism: { |
| 124 | + theme: lightCodeTheme, |
| 125 | + darkTheme: darkCodeTheme |
| 126 | + } |
| 127 | + }) |
96 | 128 | } |
| 129 | + |
| 130 | +module.exports = config |
0 commit comments