From ea9dfa0e0dd1e535869a42541aebce31ff10c556 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Wed, 15 May 2019 21:25:02 +0200 Subject: [PATCH] fix(core): update --- ts/tsdoc.classes.mkdocs.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ts/tsdoc.classes.mkdocs.ts b/ts/tsdoc.classes.mkdocs.ts index f8a63d2..441c512 100644 --- a/ts/tsdoc.classes.mkdocs.ts +++ b/ts/tsdoc.classes.mkdocs.ts @@ -20,6 +20,9 @@ export class MkDocs { case argvArg.serve: await mkdocsInstance.serve(); break; + case argvArg.publish: + await mkdocsInstance.publish(); + break; default: await mkdocsInstance.compile(); break; @@ -57,4 +60,9 @@ export class MkDocs { }:/docs registry.gitlab.com/hosttoday/ht-docker-mkdocs` ); } + + public async publish() { + await this.compile(); + await this.smartshellInstance.exec(`gitzone commit`); + } }