Skip to content

Commit 2566296

Browse files
committed
website: build website.
1 parent 8ba3c2a commit 2566296

File tree

3 files changed

+54
-2
lines changed

3 files changed

+54
-2
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: build
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-18.04
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v2
13+
with:
14+
node-version: 14
15+
16+
- run: mkdir -p build
17+
- run: cp -rp img build
18+
- run: npm i markdown-to-html-cli -g
19+
- run: markdown-to-html --output build/index.html
20+
- run: markdown-to-html -s docker/sourcegraph.md --output build/sourcegraph.html
21+
- run: markdown-to-html -s docker/redis.md --output build/redis.html
22+
- run: markdown-to-html -s docker/rancher.md --output build/rancher.html
23+
- run: markdown-to-html -s docker/portainer.md --output build/portainer.html
24+
- run: markdown-to-html -s docker/nginx.md --output build/nginx.html
25+
- run: markdown-to-html -s docker/mysql.md --output build/mysql.html
26+
- run: markdown-to-html -s docker/mattermost.md --output build/mattermost.html
27+
- run: markdown-to-html -s docker/harbor.md --output build/harbor.html
28+
- run: markdown-to-html -s docker/gitlab.md --output build/gitlab.html
29+
- run: markdown-to-html -s docker/elasticsearch.md --output build/elasticsearch.html
30+
- run: markdown-to-html -s docker/seaweedfs/README.md --output build/seaweedfs.html
31+
- run: markdown-to-html -s docker/rocket.chat/README.md --output build/rocket.chat.html

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -578,11 +578,11 @@ docker container stop registry && docker container rm -v registry
578578

579579
### `Rocket.Chat`
580580

581-
[在 docker 中部署 Gitlab](docker/rocket.chat)
581+
[在 docker 中部署 Gitlab](docker/rocket.chat/README.md)
582582

583583
### `Rancher`
584584

585-
[在 docker 中部署 Rancher](docker/rancher)
585+
[在 docker 中部署 Rancher](docker/rancher.md)
586586

587587
### `Humpback`
588588

package.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"markdown-to-html": {
3+
"document": {
4+
"title": "Docker 入门教程",
5+
"meta": [
6+
{ "description": "Docker 是一个开源的应用容器引擎,而一个容器其实是一个虚拟化的独立的环境,让开发者可以打包他们的应用以及依赖包到一个可移植的容器中,然后发布到任何流行的 Linux 机器上,也可以实现虚拟化。容器是完全使用沙箱机制,相互之间不会有任何接口。" },
7+
{ "keywords": "docker,tutorial,containers" }
8+
]
9+
},
10+
"github-corners": "https://github.com/jaywcjlove/docker-tutorial",
11+
"reurls": {
12+
"docker/nginx.md": "nginx.html",
13+
"docker/redis.md": "redis.html",
14+
"docker/elasticsearch.md": "elasticsearch.html",
15+
"docker/gitlab.md": "gitlab.html",
16+
"docker/rocket.chat/README.md": "rocket.chat.html",
17+
"docker/rancher.md": "rancher.html",
18+
"docker/mysql.md": "mysql.html"
19+
}
20+
}
21+
}

0 commit comments

Comments
 (0)