onRendererEnd(renderer: RendererEvent) { if (!this.application.options.getValue('skipSidebar')) { const docusarusRoot = this.findDocusaurus2Root(renderer.outputDirectory); if (docusarusRoot === null) { this.application.logger.warn( `[typedoc-markdown-plugin] ${this.sidebarName} not written as could not locate docusaurus root directory. In order to to implemnent ${this.sidebarName} functionality, the output directory must be a child of a 'docs' directory.`, ); return; } this.writeSideBar(renderer, docusarusRoot); } }
onRendererEnd(renderer: RendererEvent) { const root = this.findRoot(renderer.outputDirectory); if (root === null) { this.application.logger.warn( `[typedoc-markdown-plugin] sidebars.json not written as could not locate VuePress root directory. In order to to implemnent sidebars.json functionality, the output directory must be a child of a 'docs' directory.`, ); return; } this.writeSideBar(renderer, root); }
/** * Triggered when [[Renderer]] is finished */ onEndRenderer(event: RendererEvent) { if (this.listInvalidSymbolLinks && this.warnings.length > 0) { this.application.logger.write(''); this.application.logger.warn( 'Found invalid symbol reference(s) in JSDocs, ' + 'they will not render as links in the generated documentation.', ); for (const warning of this.warnings) { this.application.logger.write(' ' + warning); } } }
this.application.logger.warn( `Found inheritance chain with depth > 20, stopping no inherit check: ${current.getFullName()}` );
/** * Copy of default theme DefaultTheme.getEntryPoint * @param project */ getEntryPoint(project: ProjectReflection): ContainerReflection { const entryPoint = this.owner.entryPoint; // if (project.children?.[0].comment.tags?.[0] !== undefined) { // project.children[0].comment.tags[0].text = 'hello , World'; // return project.children[0].children[0]; // } if (entryPoint) { const reflection = project.getChildByName(entryPoint); if (reflection) { if (reflection instanceof ContainerReflection) { return reflection; } else { this.application.logger.warn('The given entry point `%s` is not a container.', entryPoint); } } else { this.application.logger.warn('The entry point `%s` could not be found.', entryPoint); } } return project; }
onRendererEnd(renderer: RendererEvent) { if (!this.application.options.getValue('skipSidebar')) { const docusarusRoot = this.findDocusaurusRoot(renderer.outputDirectory); if (docusarusRoot === null) { this.application.logger.warn( `[typedoc-markdown-plugin] sidebars.json not written as could not locate docusaurus root directory. In order to to implemnent sidebars.json functionality, the output directory must be a child of a 'docs' directory.`, ); return; } this.writeSideBar(renderer, docusarusRoot); } }