UNPKG

ig-typedoc-theme

Version:

infragistics theme for typedoc API documentation with versioning and localization

15 lines (14 loc) 676 B
import { JSX } from "typedoc"; import { localize } from 'typedoc-plugin-localization'; export const breadcrumb = (context, props) => { if (props.parent) { return (JSX.createElement(JSX.Fragment, null, context.breadcrumbs(props.parent), JSX.createElement("li", null, context.urlTo(props) ? JSX.createElement("a", { href: context.urlTo(props) }, props.name) : JSX.createElement("span", null, props.name)))); } if (context.urlTo(props)) { return (JSX.createElement("li", null, JSX.createElement("a", { href: context.urlTo(props) }, localize('Globals')))); } return JSX.createElement(JSX.Fragment, null); };