Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
d441f5b489 | |||
38f3ccb364 | |||
0c7f50e3cc | |||
7937cc8898 |
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@gitzone/tsdoc",
|
"name": "@gitzone/tsdoc",
|
||||||
"version": "1.0.9",
|
"version": "1.0.11",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@gitzone/tsdoc",
|
"name": "@gitzone/tsdoc",
|
||||||
"version": "1.0.9",
|
"version": "1.0.11",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "a tool for better documentation",
|
"description": "a tool for better documentation",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
@ -20,7 +20,7 @@ export class MkDocs {
|
|||||||
case argvArg.serve:
|
case argvArg.serve:
|
||||||
await mkdocsInstance.serve();
|
await mkdocsInstance.serve();
|
||||||
break;
|
break;
|
||||||
case argvArg.publish:
|
case argvArg.publish:
|
||||||
await mkdocsInstance.publish();
|
await mkdocsInstance.publish();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@ -45,17 +45,16 @@ export class MkDocs {
|
|||||||
await this.update();
|
await this.update();
|
||||||
await this.smartshellInstance.exec(`rm -rf public/`);
|
await this.smartshellInstance.exec(`rm -rf public/`);
|
||||||
await this.smartshellInstance.exec(
|
await this.smartshellInstance.exec(
|
||||||
`docker run --rm -it -p 8000:8000 -v ${
|
`docker run --rm -p 8000:8000 -v ${
|
||||||
paths.cwd
|
paths.cwd
|
||||||
}:/docs registry.gitlab.com/hosttoday/ht-docker-mkdocs build`
|
}:/docs registry.gitlab.com/hosttoday/ht-docker-mkdocs build`
|
||||||
);
|
);
|
||||||
await this.smartshellInstance.exec(`gitzone commit`);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public async serve() {
|
public async serve() {
|
||||||
await this.update();
|
await this.update();
|
||||||
await this.smartshellInstance.exec(
|
await this.smartshellInstance.exec(
|
||||||
`docker run --rm -it -p 8000:8000 -v ${
|
`docker run --rm -p 8000:8000 -v ${
|
||||||
paths.cwd
|
paths.cwd
|
||||||
}:/docs registry.gitlab.com/hosttoday/ht-docker-mkdocs`
|
}:/docs registry.gitlab.com/hosttoday/ht-docker-mkdocs`
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user