Skip to content

Allow customization of JavascriptIndexPlugin #1953

Closed
@GerkinDev

Description

@GerkinDev

Search Terms

JavascriptIndexPlugin, search, weight, extension

Problem

I'm writing a plugin that alters some custom reflections in the javascript index. It needs to modify weight of custom reflections (which was implemented in a very recent release) and format the reflection name with a special pattern. Since I wasn't able to alter how reflections are gathered, I had to override the plugin entierly, which complexifies my workflow in order to always stay up to date with Typedoc.

Suggested Solution

Ideally, plugins should be able to alter what is iterated on here:

for (const reflection of event.project.getReflectionsByKind(
ReflectionKind.All
)) {

Maybe the JavascriptIndexPlugin could be converted to an event emitter we could hook events on.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueEasier issue for first time contributorshelp wantedContributions are especially encouraged

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions