fix(core): update

This commit is contained in:
Philipp Kunz 2019-05-15 21:25:02 +02:00
parent 755babdd75
commit ea9dfa0e0d

View File

@ -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`);
}
} }