Skip to content

Commit

Permalink
Remove "none" special case for plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit0 committed Jul 25, 2022
1 parent 9aa61bb commit 6ba7e26
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- Removed unused `Reflection#originalName`.
- Removed `Reflection#kindString`, use `ReflectionKind.singularString(reflection.kind)` or `ReflectionKind.pluralString(reflection.kind)` instead.
- Properties related to rendering are no longer stored on `Reflection`, including `url`, `anchor`, `hasOwnDocument`, and `cssClasses`.
- Removed special case for `--plugin none`, to disable plugin auto discovery, set `"plugin": []` in a config file.

# Unreleased

Expand Down
2 changes: 1 addition & 1 deletion src/lib/utils/options/sources/typedoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ export function addTypeDocOptions(options: Pick<Options, "addDeclaration">) {
});
options.addDeclaration({
name: "plugin",
help: "Specify the npm plugins that should be loaded. Omit to load all installed plugins, set to 'none' to load no plugins.",
help: "Specify the npm plugins that should be loaded. Omit to load all installed plugins.",
type: ParameterType.ModuleArray,
});
options.addDeclaration({
Expand Down
4 changes: 0 additions & 4 deletions src/lib/utils/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ import type { Logger } from "./loggers";
import { nicePath } from "./paths";

export function loadPlugins(app: Application, plugins: readonly string[]) {
if (plugins.includes("none")) {
return;
}

for (const plugin of plugins) {
const pluginDisplay = getPluginDisplayName(plugin);

Expand Down

0 comments on commit 6ba7e26

Please sign in to comment.