Skip to content

Commit

Permalink
fix: File menu/menu editor doesn't active workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Mara-Li committed Apr 15, 2022
1 parent f55d950 commit 8d2ce3e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mkdocsPublisher/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,14 @@ export default class mkdocsPublication extends Plugin {
const publishSuccess =
await publish.publish(file, true);
if (publishSuccess) {
await publish.workflow_gestion();
new Notice(
"Successfully published " +
file.basename +
" to mkdocs."
);
}

} catch (e) {
console.error(e);
new Notice("Error publishing to mkdocs.");
Expand Down Expand Up @@ -81,6 +83,7 @@ export default class mkdocsPublication extends Plugin {
const publishSuccess =
await publish.publish(view.file, true);
if (publishSuccess) {
await publish.workflow_gestion();
new Notice(
"Successfully published " +
view.file.basename +
Expand Down

0 comments on commit 8d2ce3e

Please sign in to comment.