|
1 | 1 | // @ts-check
|
2 | 2 | // Note: type annotations allow type checking and IDEs autocompletion
|
3 | 3 | const { themes } = require('prism-react-renderer');
|
| 4 | +const path = require('path'); |
4 | 5 | const lightCodeTheme = themes.github;
|
5 | 6 | const darkCodeTheme = themes.dracula;
|
6 | 7 |
|
@@ -105,7 +106,6 @@ const config = {
|
105 | 106 | },
|
106 | 107 | ],
|
107 | 108 | ],
|
108 |
| - |
109 | 109 | themeConfig: {
|
110 | 110 | image: '/img/defang-social-card-2.png',
|
111 | 111 | navbar: {
|
@@ -204,9 +204,40 @@ const config = {
|
204 | 204 | theme: lightCodeTheme,
|
205 | 205 | darkTheme: darkCodeTheme,
|
206 | 206 | },
|
| 207 | + algolia: { |
| 208 | + // The application ID provided by Algolia |
| 209 | + appId: 'O3VFCOSSZ6', |
| 210 | + |
| 211 | + // Public API key: it is safe to commit it |
| 212 | + apiKey: '43fd4ebb5bb9875aa8764793ff9a09ff', |
| 213 | + |
| 214 | + indexName: 'prod_DOCS', |
| 215 | + |
| 216 | + // Optional: see doc section below |
| 217 | + contextualSearch: false, |
| 218 | + |
| 219 | + // Optional: whether the insights feature is enabled or not on Docsearch (`false` by default) |
| 220 | + insights: true, |
| 221 | + |
| 222 | + // Optional: whether you want to use the new Ask AI feature (undefined by default) |
| 223 | + askAi: 'MUO629LjH0L5', |
| 224 | + }, |
207 | 225 | },
|
208 | 226 | plugins: [
|
209 |
| - require.resolve('docusaurus-lunr-search'), |
| 227 | + async function shadcnTailwindPlugin() { |
| 228 | + return { |
| 229 | + name: 'defang-tailwind-shadcn', |
| 230 | + configureWebpack() { |
| 231 | + return { |
| 232 | + resolve: { |
| 233 | + alias: { |
| 234 | + '@': path.resolve(__dirname, 'src'), |
| 235 | + }, |
| 236 | + }, |
| 237 | + }; |
| 238 | + }, |
| 239 | + }; |
| 240 | + }, |
210 | 241 | [
|
211 | 242 | '@docusaurus/plugin-client-redirects',
|
212 | 243 | {
|
|
0 commit comments