Skip to content

Commit d6e5b18

Browse files
committed
use original case
1 parent ae839ef commit d6e5b18

File tree

4 files changed

+3
-8
lines changed

4 files changed

+3
-8
lines changed

example/typedoc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
"Model": 1.2
1010
},
1111
"searchGroupBoosts": {
12-
"class": 1.5
12+
"Class": 1.5
1313
}
1414
}

src/lib/output/plugins/JavascriptIndexPlugin.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ export class JavascriptIndexPlugin extends RendererComponent {
7373
reflection.kind
7474
);
7575

76-
const boost =
77-
kindBoosts[(kinds[reflection.kind] ?? "").toLowerCase()];
76+
const boost = kindBoosts[kinds[reflection.kind] ?? ""];
7877
if (boost != undefined) {
7978
reflection.relevanceBoost =
8079
(reflection.relevanceBoost ?? 1) * boost;

src/lib/output/themes/default/assets/typedoc/components/Search.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,6 @@ function updateResults(
169169
}
170170

171171
// boost by relevanceBoost
172-
if ((row.relevanceBoost ?? 1) > 1) {
173-
debugger;
174-
}
175-
176172
boost *= row.relevanceBoost ?? 1;
177173

178174
item.score *= boost;

src/lib/utils/options/sources/typedoc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export function addTypeDocOptions(options: Pick<Options, "addDeclaration">) {
8282
validate(value: unknown) {
8383
const validValues = Object.values(ReflectionKind)
8484
.filter((v) => typeof v === "string")
85-
.map((v) => v.toString().toLowerCase());
85+
.map((v) => v.toString());
8686

8787
for (const kindName in value as { [key: string]: number }) {
8888
if (validValues.indexOf(kindName) < 0) {

0 commit comments

Comments
 (0)