diff --git a/mkdocsPublisher/githubInteraction/upload.ts b/mkdocsPublisher/githubInteraction/upload.ts index 828d4d72..cf819150 100644 --- a/mkdocsPublisher/githubInteraction/upload.ts +++ b/mkdocsPublisher/githubInteraction/upload.ts @@ -59,9 +59,13 @@ export default class MkdocsPublish { const path = getReceiptFolder(file, this.settings, this.metadataCache) await this.uploadText(file.path, text, path, file.name, ref); if (linkedImage.length > 0 && this.settings.transferEmbedded) { + new Notice(`Upload ${linkedImage.length} images!`) + let i=0; for (const image of linkedImage) { await this.uploadImage(image, ref); + i++; } + new Notice(`Uploaded successfully ${i} images!`); } if (one_file) { await deleteFromGithub(true, this.settings, this.octokit, ref, shareFiles); diff --git a/mkdocsPublisher/utils/commands.ts b/mkdocsPublisher/utils/commands.ts index 8fd8d120..32a12e4c 100644 --- a/mkdocsPublisher/utils/commands.ts +++ b/mkdocsPublisher/utils/commands.ts @@ -68,10 +68,8 @@ export async function deleteUnsharedDeletedNotes(PublisherManager: GithubBranch, export async function shareOneNote(branchName: string, PublisherManager: GithubBranch, settings: MkdocsPublicationSettings, file: TFile) { try { await PublisherManager.newBranch(branchName); - new Notice('Branch created') const publishSuccess = await PublisherManager.publish(file, true, branchName); - new Notice(`${branchName} created and ${publishSuccess}`) if (publishSuccess) { const update = await PublisherManager.updateRepository(branchName); if (update) {