Allow customization of JavascriptIndexPlugin
See original GitHub issueSearch 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: https://github.com/TypeStrong/typedoc/blob/ba586967c1131d657843e3eea773ea95bb1f2c6c/src/lib/output/plugins/JavascriptIndexPlugin.ts#L50-L52
Maybe the JavascriptIndexPlugin
could be converted to an event emitter we could hook events on.
Issue Analytics
- State:
- Created a year ago
- Comments:6
User docs - true, there’s a branch fixing it that’ll be merged soon.
Options map API doc - true, and unless someone else puts a comment there, it won’t. None of the other options discuss implementation details either as comments which aren’t right next to the implementation are even more likely to become out of date than normal.
Can be achieved by setting
reflection.relevanceBoost
duringConverter.EVENT_RESOLVE
todayI’m okay with adding an event to
Renderer
for further modification ofrows
before building the index.