From 4f25981183029b1ce12189a144a7848930a2e980 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Wed, 15 May 2019 21:10:19 +0200 Subject: [PATCH] fix(core): update --- ts/tsdoc.classes.mkdocs.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ts/tsdoc.classes.mkdocs.ts b/ts/tsdoc.classes.mkdocs.ts index f04a8ff..db8ba80 100644 --- a/ts/tsdoc.classes.mkdocs.ts +++ b/ts/tsdoc.classes.mkdocs.ts @@ -20,13 +20,19 @@ export class MkDocs { this.typedocDirectory = dirPathArg; } + public async update () { + await this.smartshellInstance.exec(`docker pull registry.gitlab.com/hosttoday/ht-docker-mkdocs`); + } + public async compile () { + await this.update(); await this.smartshellInstance.exec(`rm -rf public/`); - await this.smartshellInstance.exec(`docker run --rm -it -p 8000:8000 -v ${paths.cwd}:/docs mkdocs build`); + await this.smartshellInstance.exec(`docker run --rm -it -p 8000:8000 -v ${paths.cwd}:/docs registry.gitlab.com/hosttoday/ht-docker-mkdocs build`); await this.smartshellInstance.exec(`gitzone commit`); } public async serve () { + await this.update(); await this.smartshellInstance.exec(`docker run --rm -it -p 8000:8000 -v ${paths.cwd}:/docs registry.gitlab.com/hosttoday/ht-docker-mkdocs`); } }