|
1 | 1 | // @ts-check |
2 | 2 | // Note: type annotations allow type checking and IDEs autocompletion |
3 | 3 |
|
4 | | -const lightCodeTheme = require('prism-react-renderer/themes/github'); |
5 | | -const darkCodeTheme = require('prism-react-renderer/themes/dracula'); |
| 4 | +const { themes } = require('prism-react-renderer'); |
| 5 | + |
| 6 | +const lightCodeTheme = themes.github; |
| 7 | +const darkCodeTheme = themes.shadesOfPurple; |
6 | 8 |
|
7 | 9 | /** @type {import('@docusaurus/types').Config} */ |
8 | 10 | const config = { |
9 | | - title: 'Soql Parser JS', |
| 11 | + title: 'SOQL Parser JS', |
10 | 12 | tagline: 'Parse and generate SOQL queries', |
11 | | - url: 'https://jetstreamapp.github.io', |
12 | | - baseUrl: '/soql-parser-js/', |
| 13 | + url: 'https://soql-parser-js.getjetstream.app', |
| 14 | + baseUrl: '/', |
13 | 15 | onBrokenLinks: 'throw', |
14 | 16 | onBrokenMarkdownLinks: 'warn', |
15 | 17 | favicon: 'img/favicon.ico', |
16 | 18 |
|
17 | 19 | // GitHub pages deployment config. |
18 | 20 | // If you aren't using GitHub pages, you don't need these. |
19 | 21 | organizationName: 'jetstreamapp', |
20 | | - projectName: '@jetstreamapp/soql-parser-js', |
| 22 | + projectName: 'soql-parser-js', |
21 | 23 | deploymentBranch: 'gh-pages', |
22 | 24 | trailingSlash: false, |
23 | 25 |
|
@@ -93,10 +95,18 @@ const config = { |
93 | 95 | }, |
94 | 96 | ], |
95 | 97 | }, |
| 98 | + markdown: { |
| 99 | + mdx1Compat: { |
| 100 | + comments: false, |
| 101 | + admonitions: false, |
| 102 | + headingIds: false, |
| 103 | + }, |
| 104 | + }, |
96 | 105 | prism: { |
97 | 106 | theme: lightCodeTheme, |
98 | 107 | darkTheme: darkCodeTheme, |
99 | 108 | }, |
| 109 | + additionalLanguages: ['javascript', 'json', 'sql'], |
100 | 110 | }), |
101 | 111 | }; |
102 | 112 |
|
|
0 commit comments