diff --git a/src/generate/typedoc/options/highlightLanguages.js b/src/generate/typedoc/options/highlightLanguages.js new file mode 100644 index 00000000..14b5834d --- /dev/null +++ b/src/generate/typedoc/options/highlightLanguages.js @@ -0,0 +1,18 @@ +/** + * Adds `svelte` to default highlight languages. + * + * @type {string[]} + */ +export const highlightLanguages = [ + "bash", + "console", + "css", + "html", + "javascript", + "json", + "jsonc", + "json5", + "svelte", + "tsx", + "typescript" +]; \ No newline at end of file diff --git a/src/generate/typedoc/options/index.js b/src/generate/typedoc/options/index.js index ab9941e8..779c5e8d 100644 --- a/src/generate/typedoc/options/index.js +++ b/src/generate/typedoc/options/index.js @@ -2,5 +2,6 @@ export * from './entryPoints.js'; export * from './externalSymbolLinkMappings.js'; export * from './kindSortOrder.js'; export * from './groupOrder.js'; +export * from './highlightLanguages.js'; export * from './navigationLinks.js'; export * from './searchGroupBoosts.js'; \ No newline at end of file diff --git a/src/generate/typedoc/typedoc.js b/src/generate/typedoc/typedoc.js index 5e49c6e2..89efdafe 100644 --- a/src/generate/typedoc/typedoc.js +++ b/src/generate/typedoc/typedoc.js @@ -6,6 +6,7 @@ import { import { entryPoints, groupOrder, + highlightLanguages, kindSortOrder, navigationLinks, searchGroupBoosts } from './options/index.js'; @@ -64,6 +65,8 @@ export async function typedoc(logLevel = LogLevel.Verbose) // Hide the documentation generator footer. hideGenerator: true, + highlightLanguages, + // Sets log level. logLevel,