dbg: Adding extra info

This commit is contained in:
Laegel
2021-06-24 09:50:34 +02:00
parent 5561482d45
commit ac040fa2a6
3 changed files with 4 additions and 4 deletions

4
dist/index.js vendored
View File

@@ -714,7 +714,7 @@ async function render(project, outputDirectory) {
(_a = output.urls) === null || _a === void 0 ? void 0 : _a.forEach((mapping, i) => {
var _a;
this.renderDocument(output.createPageEvent(mapping));
console.log(`\rGenerated ${JSON.stringify(output.urls[i])} (${i + 1} of ${(_a = output.urls) === null || _a === void 0 ? void 0 : _a.length} TypeDoc docs)`);
console.log(`\rGenerated ${JSON.stringify(output.urls[i].url)} (${i + 1} of ${(_a = output.urls) === null || _a === void 0 ? void 0 : _a.length} TypeDoc docs)`);
});
console.log(`\n`);
this.trigger(events.RendererEvent.END, output);
@@ -779,7 +779,7 @@ let SidebarComponent = class SidebarComponent extends output_components.Renderer
const sidebarPath = this.sidebar.sidebarPath;
external_fs_.writeFileSync(sidebarPath, JSON.stringify(sidebarItems, null, 2));
// @ts-ignore
this.application.logger.log(sidebarItems);
this.application.logger.log(JSON.stringify(sidebarItems, null, 2));
// @ts-ignore
this.application.logger.success(`TypeDoc sidebar written to ${sidebarPath}`);
}

View File

@@ -26,7 +26,7 @@ export async function render(
output.urls?.forEach((mapping: UrlMapping, i) => {
this.renderDocument(output.createPageEvent(mapping));
console.log(
`\rGenerated ${JSON.stringify(output.urls[i])} (${i + 1} of ${output.urls?.length} TypeDoc docs)`,
`\rGenerated ${JSON.stringify(output.urls[i].url)} (${i + 1} of ${output.urls?.length} TypeDoc docs)`,
);
});
console.log(`\n`);

View File

@@ -75,7 +75,7 @@ export class SidebarComponent extends RendererComponent {
fs.writeFileSync(sidebarPath, JSON.stringify(sidebarItems, null, 2));
// @ts-ignore
this.application.logger.log(sidebarItems);
this.application.logger.log(JSON.stringify(sidebarItems, null, 2));
// @ts-ignore
this.application.logger.success(
`TypeDoc sidebar written to ${sidebarPath}`,