|
4 | 4 | const lightCodeTheme = require('prism-react-renderer/themes/github'); |
5 | 5 | const darkCodeTheme = require('prism-react-renderer/themes/dracula'); |
6 | 6 |
|
7 | | -const theme = require("shiki/themes/nord.json") |
8 | | -const { |
9 | | - remarkCodeHike, |
10 | | -} = require("@code-hike/mdx") |
| 7 | +const theme = require('shiki/themes/nord.json'); |
| 8 | +const { remarkCodeHike } = require('@code-hike/mdx'); |
11 | 9 |
|
12 | 10 | /** @type {import('@docusaurus/types').Config} */ |
13 | 11 | const config = { |
@@ -38,31 +36,27 @@ const config = { |
38 | 36 | /** @type {import('@docusaurus/preset-classic').Options} */ |
39 | 37 | ({ |
40 | 38 | docs: { |
41 | | - beforeDefaultRemarkPlugins: [ |
42 | | - [remarkCodeHike, { theme }], |
43 | | - ], |
| 39 | + beforeDefaultRemarkPlugins: [[remarkCodeHike, { theme }]], |
44 | 40 | sidebarPath: require.resolve('./sidebars.js'), |
45 | 41 | // Remove this to remove the "edit this page" links. |
46 | | - editUrl: |
47 | | - 'https://github.com/BitGo/api-ts/tree/master/website/', |
| 42 | + editUrl: 'https://github.com/BitGo/api-ts/tree/master/website/', |
48 | 43 | }, |
49 | 44 | blog: { |
50 | 45 | showReadingTime: true, |
51 | 46 | // Remove this to remove the "edit this page" links. |
52 | | - editUrl: |
53 | | - 'https://github.com/BitGo/api-ts/tree/master/website', |
| 47 | + editUrl: 'https://github.com/BitGo/api-ts/tree/master/website', |
54 | 48 | }, |
55 | 49 | theme: { |
56 | 50 | customCss: [ |
57 | | - require.resolve("@code-hike/mdx/styles.css"), |
| 51 | + require.resolve('@code-hike/mdx/styles.css'), |
58 | 52 | require.resolve('./src/css/custom.css'), |
59 | | - ] |
| 53 | + ], |
60 | 54 | }, |
61 | 55 | }), |
62 | 56 | ], |
63 | 57 | ], |
64 | 58 |
|
65 | | - themes: ["mdx-v2"], |
| 59 | + themes: ['mdx-v2'], |
66 | 60 |
|
67 | 61 | themeConfig: |
68 | 62 | /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ |
|
0 commit comments