mirror of
https://github.com/tauri-apps/typedocusaurus.git
synced 2026-02-04 02:31:22 +01:00
dbg: Adding extra info
This commit is contained in:
4
dist/index.js
vendored
4
dist/index.js
vendored
@@ -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}`);
|
||||
}
|
||||
|
||||
@@ -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`);
|
||||
|
||||
@@ -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}`,
|
||||
|
||||
Reference in New Issue
Block a user