UNPKG

typedoc-github-theme

Version:

Elegant and seamless look and feel for your TypeScript documentation on GitHub Pages

30 lines (29 loc) 1.24 kB
import { JSX } from 'typedoc'; export function footer(context) { return (JSX.createElement("footer", null, context.hook('footer.begin', context), generatorDisplay(context), customFooterDisplay(context), context.hook('footer.end', context))); } function generatorDisplay(context) { if (context.options.getValue('hideGenerator')) { return JSX.createElement(JSX.Fragment, null); } return (JSX.createElement("p", { class: "tsd-generator" }, 'Generated using ', JSX.createElement("a", { href: "https://typedoc.org/", target: "_blank" }, "TypeDoc"), ' with ', JSX.createElement("a", { href: "https://github.com/JulianWowra/typedoc-github-theme", target: "_blank" }, "typedoc-github-theme"))); } function customFooterDisplay(context) { const customFooterHtml = context.options.getValue('customFooterHtml'); if (!customFooterHtml) { return JSX.createElement(JSX.Fragment, null); } if (context.options.getValue('customFooterHtmlDisableWrapper')) { return JSX.createElement(JSX.Raw, { html: customFooterHtml }); } return (JSX.createElement("p", null, JSX.createElement(JSX.Raw, { html: customFooterHtml }))); }