question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow customization of JavascriptIndexPlugin

See original GitHub issue

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: 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:closed
  • Created a year ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
Gerrit0commented, Jun 25, 2022

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.

1reaction
Gerrit0commented, Jun 20, 2022

It needs to modify weight of custom reflections

Can be achieved by setting reflection.relevanceBoost during Converter.EVENT_RESOLVE today

I’m okay with adding an event to Renderer for further modification of rows before building the index.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Add Custom JavaScript to WordPress (3 Methods)
1. Install a plugin such as Head & Footer Code · 2. Use your functions.php file · 3. Add JavaScript to your header....
Read more >
How to Add Custom JavaScript to Your WordPress Site
Another option is to opt for a plugin that allows you to add custom JavaScript to your WordPress site. These plugins are very...
Read more >
Change the plugin [index and package file ] into typescript ...
I am new to Typescript. I recently heard about JS-Plugins and implemented it with JavaScript format. When I ...
Read more >
IndexMenu Plugin - DokuWiki
This plugin allows you to insert a fully customizable index or a list of pages starting from a ... Themed indexmenu based on...
Read more >
Add Custom JavaScript into your WordPress Site - OSTraining
Log in to your WordPress site. Go to Plugins > Add new; Search for “Header and Footer Scripts”. Click “Install Now” and activate...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found