diff options
author | Matthew Miller <matthew@millerti.me> | 2021-08-26 08:27:41 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2021-08-26 08:27:41 -0700 |
commit | 50c0c0d0557c2ca7c87b6c73a1da19d8d7d6173f (patch) | |
tree | 14fbcd1faed4b040fda24b5529a4d236848d88a4 /typedoc-plugin-external-module-name/index.js | |
parent | 5f21593e23c0e1f0dbbef6f53da129ed64263709 (diff) |
Update TypeDoc
Diffstat (limited to 'typedoc-plugin-external-module-name/index.js')
-rw-r--r-- | typedoc-plugin-external-module-name/index.js | 22 |
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'); - } - }); -}; |