Docs: Improve docs, fix doc script

This commit is contained in:
Pieter Vander Vennet 2023-07-20 13:28:38 +02:00
parent d036350893
commit 124cfad8f8
142 changed files with 9404 additions and 908 deletions

View file

@ -1,5 +1,4 @@
import TagRenderingConfig from "./TagRenderingConfig"
import SharedTagRenderings from "../../Customizations/SharedTagRenderings"
import { TagRenderingConfigJson } from "./Json/TagRenderingConfigJson"
export default class WithContextLoader {
@ -26,12 +25,6 @@ export default class WithContextLoader {
`${translationContext ?? this._context}.${key}.default value`
)
}
if (typeof v === "string") {
const shared = SharedTagRenderings.SharedTagRendering.get(v)
if (shared) {
return shared
}
}
if (Object.keys(v).length === 1 && typeof v["render"] === "string") {
throw `At ${
translationContext ?? "<unknown>"