alina sireneva
db9b083d35
Some checks failed
Tests / test-deno (push) Successful in 1m35s
Tests / test-node (node18) (push) Successful in 1m47s
Tests / test-node (node22) (push) Successful in 1m45s
Tests / test-node (node20) (push) Successful in 1m47s
Tests / test-web (chromium) (push) Successful in 1m40s
Tests / test-bun (push) Successful in 1m48s
Tests / test-web (firefox) (push) Successful in 1m2s
Docs / build (push) Successful in 6m22s
Tests / lint (push) Successful in 6m24s
Tests / e2e (push) Has been cancelled
Tests / e2e-deno (push) Has been cancelled
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)
|
|
}
|