|
1 | 1 | import type { Options as PresetClassicOptions } from '@docusaurus/preset-classic'; |
2 | 2 | import type { UserThemeConfig as ThemeCommonConfig } from '@docusaurus/theme-common'; |
3 | 3 | import type { UserThemeConfig as AlgoliaThemeConfig } from '@docusaurus/theme-search-algolia'; |
| 4 | +import type * as Redocusaurus from 'redocusaurus'; |
4 | 5 | import type { Config } from '@docusaurus/types'; |
5 | 6 | import autoprefixer from 'autoprefixer'; |
6 | 7 | import { themes } from 'prism-react-renderer'; |
@@ -172,7 +173,7 @@ const themeConfig: ThemeCommonConfig & AlgoliaThemeConfig = { |
172 | 173 | }, |
173 | 174 | prism: { |
174 | 175 | theme: themes.oceanicNext, |
175 | | - additionalLanguages: ['java', 'csharp', 'powershell', 'php', 'kotlin', 'ruby'], |
| 176 | + additionalLanguages: ['java', 'csharp', 'powershell', 'php', 'kotlin', 'ruby', 'scala'], |
176 | 177 | magicComments: [ |
177 | 178 | { |
178 | 179 | className: 'theme-code-block-highlighted-line', |
@@ -284,7 +285,23 @@ const config: Config = { |
284 | 285 | }, |
285 | 286 | }, |
286 | 287 | ], |
287 | | - presets: [['classic', presetClassicOptions]], |
| 288 | + presets: [ |
| 289 | + ['classic', presetClassicOptions], |
| 290 | + [ |
| 291 | + 'redocusaurus', |
| 292 | + { |
| 293 | + specs: [ |
| 294 | + { |
| 295 | + id: 'ofrep', |
| 296 | + spec: './external-content/protocol/service/openapi.yaml', |
| 297 | + }, |
| 298 | + ], |
| 299 | + theme: { |
| 300 | + primaryColor: '#5D5DFF', |
| 301 | + }, |
| 302 | + }, |
| 303 | + ] satisfies Redocusaurus.PresetEntry, |
| 304 | + ], |
288 | 305 | plugins: [ |
289 | 306 | async function tailwind() { |
290 | 307 | return { |
|
0 commit comments