fix(core): update
This commit is contained in:
parent
755babdd75
commit
ea9dfa0e0d
@ -20,6 +20,9 @@ export class MkDocs {
|
|||||||
case argvArg.serve:
|
case argvArg.serve:
|
||||||
await mkdocsInstance.serve();
|
await mkdocsInstance.serve();
|
||||||
break;
|
break;
|
||||||
|
case argvArg.publish:
|
||||||
|
await mkdocsInstance.publish();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
await mkdocsInstance.compile();
|
await mkdocsInstance.compile();
|
||||||
break;
|
break;
|
||||||
@ -57,4 +60,9 @@ export class MkDocs {
|
|||||||
}:/docs registry.gitlab.com/hosttoday/ht-docker-mkdocs`
|
}:/docs registry.gitlab.com/hosttoday/ht-docker-mkdocs`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public async publish() {
|
||||||
|
await this.compile();
|
||||||
|
await this.smartshellInstance.exec(`gitzone commit`);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user