alina sireneva
2ee7166682
Some checks failed
Docs / build (push) Successful in 6m0s
Tests / test-node (node18) (push) Successful in 1m58s
Tests / test-deno (push) Successful in 1m54s
Tests / test-node (node22) (push) Successful in 2m0s
Tests / test-node (node20) (push) Successful in 2m3s
Tests / test-web (chromium) (push) Successful in 1m57s
Tests / test-bun (push) Successful in 2m6s
Tests / test-web (firefox) (push) Successful in 2m2s
Tests / lint (push) Successful in 6m21s
Tests / e2e-deno (push) Successful in 54s
Tests / e2e (push) Failing after 55s
15 lines
493 B
JavaScript
15 lines
493 B
JavaScript
import { DefaultTheme } from 'typedoc'
|
|
|
|
class FixedTheme extends DefaultTheme {
|
|
constructor(renderer) {
|
|
super(renderer)
|
|
this.mappings.find(it => it.directory === 'functions').directory = 'funcs'
|
|
}
|
|
}
|
|
|
|
export function load(app) {
|
|
// https://github.com/TypeStrong/typedoc/issues/2111
|
|
// https://github.com/cloudflare/workers-sdk/issues/2240
|
|
// (tldr: /functions/ is treated incorrectly on cloudflare pages)
|
|
app.renderer.themes.set('default', FixedTheme)
|
|
}
|