summaryrefslogtreecommitdiffhomepage
path: root/typedoc-plugin-external-module-name/index.js
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2021-08-26 08:27:41 -0700
committerMatthew Miller <matthew@millerti.me>2021-08-26 08:27:41 -0700
commit50c0c0d0557c2ca7c87b6c73a1da19d8d7d6173f (patch)
tree14fbcd1faed4b040fda24b5529a4d236848d88a4 /typedoc-plugin-external-module-name/index.js
parent5f21593e23c0e1f0dbbef6f53da129ed64263709 (diff)
Update TypeDoc
Diffstat (limited to 'typedoc-plugin-external-module-name/index.js')
-rw-r--r--typedoc-plugin-external-module-name/index.js22
1 files changed, 0 insertions, 22 deletions
diff --git a/typedoc-plugin-external-module-name/index.js b/typedoc-plugin-external-module-name/index.js
deleted file mode 100644
index d59e36c..0000000
--- a/typedoc-plugin-external-module-name/index.js
+++ /dev/null
@@ -1,22 +0,0 @@
-//@ts-check
-
-/* eslint-disable @typescript-eslint/no-var-requires */
-const { ReflectionKind } = require('typedoc');
-const { Converter } = require('typedoc/dist/lib/converter');
-
-/** @param {import("typedoc/dist/lib/utils/plugins").PluginHost} host */
-exports.load = function (host) {
- host.application.converter.on(Converter.EVENT_RESOLVE_BEGIN, context => {
- /** @type {import("typedoc").ProjectReflection} */
- const project = context.project;
-
- for (const mod of (project.children || []).filter(
- child => child.kind === ReflectionKind.Module,
- )) {
- const tag = mod.comment ? mod.comment.getTag('module') : void 0;
- if (!tag) continue;
- mod.name = tag.text;
- mod.comment.removeTags('module');
- }
- });
-};