UNPKG

ig-typedoc-theme

Version:

infragistics theme for typedoc API documentation with versioning and localization

7 lines (6 loc) 527 B
import { JSX } from "typedoc"; import { localize } from 'typedoc-plugin-localization'; export const breadcrumb = (context, props) => props.parent ? (JSX.createElement(JSX.Fragment, null, context.breadcrumb(props.parent), JSX.createElement("li", null, props.url ? JSX.createElement("a", { href: context.urlTo(props) }, props.name) : JSX.createElement("span", null, props.name)))) : props.url ? (JSX.createElement("li", null, JSX.createElement("a", { href: context.urlTo(props) }, localize('Globals')))) : undefined;