typedoc-github-theme
Version:
Elegant and seamless look and feel for your TypeScript documentation on GitHub Pages
14 lines (13 loc) • 584 B
JavaScript
import { GitHubTheme } from './GitHubTheme.js';
/**
* Called by TypeDoc when loading this theme as a plugin
*/
export function load(app) {
app.renderer.defineTheme('typedoc-github-theme', GitHubTheme);
app.on('bootstrapEnd', () => {
if (app.options.isSet('theme') && app.options.getValue('theme') !== 'typedoc-github-theme') {
return app.logger.warn(`The theme 'typedoc-github-theme' is not used because another theme (${app.options.getValue('theme')}) was specified!`);
}
app.options.setValue('theme', 'typedoc-github-theme');
});
}