Skip to content

Commit

Permalink
Remove typedoctheme, only support typedoc-theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit0 committed Nov 14, 2021
1 parent 4fadd91 commit 46f3c20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

- TypeDoc will now detect and warn if multiple instances of the package are loaded. This usually means that a plugin has its own version of TypeDoc installed, which will lead to things breaking in unexpected ways.
It will only work if both loaded TypeDocs are v0.22.9 or later.
- TypeDoc will now automatically load packages with `typedoctheme` or `typedoc-theme` in their keywords.
- TypeDoc will now automatically load packages with `typedoc-theme` in their keywords.
Plugins which define a custom theme should include this keyword so that they can be automatically collected and displayed at https://typedoc.org/guides/themes/.

### Bug Fixes
Expand Down
7 changes: 1 addition & 6 deletions src/lib/utils/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,7 @@ function loadPackageInfo(logger: Logger, fileName: string): any {
}
}

const PLUGIN_KEYWORDS = [
"typedocplugin",
"typedoc-plugin",
"typedoctheme",
"typedoc-theme",
];
const PLUGIN_KEYWORDS = ["typedocplugin", "typedoc-plugin", "typedoc-theme"];

/**
* Test whether the given package info describes a TypeDoc plugin.
Expand Down

0 comments on commit 46f3c20

Please sign in to comment.