Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(renderer: Renderer, basePath: string) {
super(renderer, basePath);
this.indexName = 'index';
renderer.addComponent('frontmatter', new FrontMatterComponent(renderer));
this.listenTo(renderer, RendererEvent.END, this.onRendererEnd, 1024);
}
constructor(renderer: Renderer, basePath: string) {
super(renderer, basePath);
this.listenTo(renderer, RendererEvent.END, this.onRendererEnd, 1024);
}
constructor(renderer: Renderer, basePath: string) {
super(renderer, basePath);
this.listenTo(renderer, RendererEvent.END, this.writeSummary, 1024);
}
constructor(renderer: Renderer, basePath: string) {
super(renderer, basePath);
this.indexName = 'index';
this.sidebarName = 'sidebars.js';
renderer.addComponent('frontmatter', new FrontMatterComponent(renderer));
this.listenTo(renderer, RendererEvent.END, this.onRendererEnd, 1024);
}
initialize() {
super.initialize();
this.includes = this.application.options.getValue('includes');
this.mediaDirectory = this.application.options.getValue('media');
this.listInvalidSymbolLinks = this.application.options.getValue('listInvalidSymbolLinks');
this.listenTo(
this.owner,
{
[RendererEvent.END]: this.onEndRenderer,
},
undefined,
100,
);
const component = this;
MarkdownTheme.handlebars.registerHelper('comment', function(this: string) {
return component.parseComments(this);
});
MarkdownTheme.handlebars.registerHelper('breadcrumbs', function(this: PageEvent) {
return component.breadcrumb(this.model, this.project, []);
});
MarkdownTheme.handlebars.registerHelper('relativeURL', (url: string) => {
initialize() {
super.initialize();
this.includes = this.application.options.getValue('includes');
this.mediaDirectory = this.application.options.getValue('media');
this.listInvalidSymbolLinks = this.application.options.getValue('listInvalidSymbolLinks');
this.listenTo(
this.owner,
{
[RendererEvent.END]: this.onEndRenderer,
},
undefined,
100,
);
const component = this;
Handlebars.registerHelper('comment', function(this: string) {
return component.parseComments(this);
});
Handlebars.registerHelper('breadcrumbs', function(this: PageEvent) {
return component.breadcrumb(this.model, this.project, []);
});
Handlebars.registerHelper('if_eq', function(a: any, b: any, opts: any) {