fix(core): update
This commit is contained in:
		| @@ -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`); | ||||
|   } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user