UNPKG

typedoc-theme-yaf

Version:

A fresh, opinionated and standalone front-end documentation application consuming Typedoc generated data.

25 lines 1.21 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.load = void 0; const typedoc_plugin_versions_1 = require("typedoc-plugin-versions"); const highlighter_1 = require("./backend/highlighter"); const YafTheme_1 = require("./backend/YafTheme"); /** * This is the theme entry point as per the {@link https://github.com/TypeStrong/typedoc/blob/master/internal-docs/custom-themes.md TypeDoc documentation}. * * Note that the theme is defined asynchronously within the {@link backend.highlighter.loadHighlighter} method call. * * The default `shiki` highlighter is replaced for {@link backend.highlighter.getHighlighted reasons}.\ * This is a workaround in order to dynamically load the replacement ESM [starry-night](https://github.com/wooorm/starry-night) Markdown Highlighter. * @param app */ function load(app) { (0, typedoc_plugin_versions_1.load)(app); console.log('Loaded plugin typedoc-plugin-versions'); return (0, highlighter_1.loadHighlighter)().then((higlighter) => { YafTheme_1.YafTheme.highlighter = higlighter; app.renderer.defineTheme('yaf', YafTheme_1.YafTheme); }); } exports.load = load; //# sourceMappingURL=index.js.map