Skip to content

Commit

Permalink
Add svelte to highlight languages.
Browse files Browse the repository at this point in the history
  • Loading branch information
typhonrt committed Oct 11, 2024
1 parent b0f1415 commit 4c1b178
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/generate/typedoc/options/highlightLanguages.js
Original file line number Diff line number Diff line change
@@ -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"
];
1 change: 1 addition & 0 deletions src/generate/typedoc/options/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
3 changes: 3 additions & 0 deletions src/generate/typedoc/typedoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
import {
entryPoints,
groupOrder,
highlightLanguages,
kindSortOrder,
navigationLinks,
searchGroupBoosts } from './options/index.js';
Expand Down Expand Up @@ -64,6 +65,8 @@ export async function typedoc(logLevel = LogLevel.Verbose)
// Hide the documentation generator footer.
hideGenerator: true,

highlightLanguages,

// Sets log level.
logLevel,

Expand Down

0 comments on commit 4c1b178

Please sign in to comment.