Skip to content

Commit 9d27a6e

Browse files
committed
chore: use idoc build website.
1 parent 3208fcf commit 9d27a6e

File tree

6 files changed

+114
-26
lines changed

6 files changed

+114
-26
lines changed

.github/workflows/ci.yml

Lines changed: 43 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: build
1+
name: CI
22
on:
33
push:
44
branches:
@@ -8,30 +8,59 @@ jobs:
88
build:
99
runs-on: ubuntu-18.04
1010
steps:
11-
- uses: actions/checkout@v2
12-
- uses: actions/setup-node@v2
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-node@v3
1313
with:
14-
node-version: 14
14+
node-version: 16
1515

16-
- run: mkdir -p build
17-
- run: cp -rp nginx.svg build
16+
- run: npm install
17+
- run: npm run build
1818

19+
- name: Deploy
20+
uses: peaceiris/actions-gh-pages@v3
21+
with:
22+
github_token: ${{ secrets.GITHUB_TOKEN }}
23+
publish_dir: ./build
24+
1925
- name: Generate Contributors Images
2026
uses: jaywcjlove/github-action-contributors@main
2127
with:
2228
filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\])
23-
output: build/CONTRIBUTORS.svg
29+
output: dist/CONTRIBUTORS.svg
2430
avatarSize: 42
2531

26-
- name: Converts Markdown to HTML
27-
uses: jaywcjlove/markdown-to-html-cli@main
32+
- name: Create Tag
33+
id: create_tag
34+
uses: jaywcjlove/create-tag-action@v1.3.6
2835
with:
29-
source: README.md
30-
output: build/index.html
31-
36+
package-path: ./package.json
3237

33-
- name: Deploy
38+
- name: Deploy Website
3439
uses: peaceiris/actions-gh-pages@v3
3540
with:
41+
user_name: 'github-actions[bot]'
42+
user_email: 'github-actions[bot]@users.noreply.github.com'
43+
commit_message: ${{steps.tag_version.outputs.tag}} ${{ github.event.head_commit.message }}
3644
github_token: ${{ secrets.GITHUB_TOKEN }}
37-
publish_dir: ./build
45+
publish_dir: ./dist
46+
47+
- name: Generate Changelog
48+
id: changelog
49+
uses: jaywcjlove/changelog-generator@v1.5.3
50+
with:
51+
token: ${{ secrets.GITHUB_TOKEN }}
52+
filter-author: (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
53+
filter: (^[\s]+?[R|r]elease)|(^[R|r]elease)
54+
55+
- name: Create Release
56+
uses: ncipollo/release-action@v1
57+
if: steps.create_tag.outputs.successful
58+
with:
59+
token: ${{ secrets.GITHUB_TOKEN }}
60+
name: ${{ steps.create_tag.outputs.version }}
61+
tag: ${{ steps.create_tag.outputs.version }}
62+
body: |
63+
Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/jaywcjlove/vim-web/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
64+
Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
65+
66+
${{ steps.changelog.outputs.changelog }}

.gitignore

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
lib
2+
dist
3+
node_modules
4+
coverage
5+
test/out
6+
7+
npm-debug.log*
8+
lerna-debug.log
9+
yarn-error.log
10+
package-lock.json
11+
12+
.DS_Store
13+
.cache
14+
.vscode
15+
.idea
16+
17+
*.bak
18+
*.tem
19+
*.temp
20+
#.swp
21+
*.*~
22+
~*.*
23+
24+
# IDEA
25+
*.iml
26+
*.ipr
27+
*.iws
28+
.idea/

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@
55
</p>
66
<!--rehype:style=height: 210px; display: flex; align-items: center; justify-content: center;-->
77

8-
Nginx 是一款面向性能设计的 HTTP 服务器,能反向代理 HTTP,HTTPS 和邮件相关(SMTP,POP3,IMAP)的协议链接。并且提供了负载均衡以及 HTTP 缓存。它的设计充分使用异步事件模型,削减上下文调度的开销,提高服务器并发能力。采用了模块化设计,提供了丰富模块的第三方模块。
8+
[Nginx](https://nginx.org/en/) 是一款面向性能设计的 HTTP 服务器,能反向代理 HTTP,HTTPS 和邮件相关(SMTP,POP3,IMAP)的协议链接。并且提供了负载均衡以及 HTTP 缓存。它的设计充分使用异步事件模型,削减上下文调度的开销,提高服务器并发能力。采用了模块化设计,提供了丰富模块的第三方模块。
99

1010
所以关于 Nginx,有这些标签:「异步」「事件」「模块化」「高性能」「高并发」「反向代理」「负载均衡」
1111

12-
Linux系统:`Centos 7 x64`
12+
Linux系统:`Centos 7 x64`
1313
Nginx版本:`1.11.5`
1414

15+
<!--idoc:ignore:start-->
16+
1517
目录
1618
===
1719
- [安装](#安装)
@@ -75,6 +77,8 @@ Nginx版本:`1.11.5`
7577
- [错误问题](#错误问题)
7678
- [精品文章参考](#精品文章参考)
7779

80+
<!--idoc:ignore:end-->
81+
7882
## 安装
7983

8084
### 安装依赖
@@ -1534,3 +1538,9 @@ Made with [action-contributors](https://github.com/jaywcjlove/github-action-cont
15341538
## License
15351539

15361540
Licensed under the MIT License.
1541+
1542+
<!--idoc:config:
1543+
site: Nginx Tutorial
1544+
favicon: favicon.svg
1545+
logo: favicon.svg
1546+
-->

favicon.svg

Lines changed: 5 additions & 0 deletions
Loading

package.json

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,23 @@
11
{
2-
"markdown-to-html": {
3-
"document": {
4-
"title": "Nginx Tutorial 入门教程",
5-
"meta": [
6-
{ "description": "Nginx 是一款面向性能设计的 HTTP 服务器,能反向代理 HTTP,HTTPS 和邮件相关(SMTP,POP3,IMAP)的协议链接。并且提供了负载均衡以及 HTTP 缓存。它的设计充分使用异步事件模型,削减上下文调度的开销,提高服务器并发能力。采用了模块化设计,提供了丰富模块的第三方模块。" },
7-
{ "keywords": "nginx,tutorial,centos" }
8-
]
9-
},
10-
"github-corners": "https://github.com/jaywcjlove/nginx-tutorial",
11-
"favicon": "data:image/svg+xml,<svg viewBox=%220 0 1024 1024%22 xmlns=%22http://www.w3.org/2000/svg%22><style> path {fill: green; } </style><path d=%22M900.3614811 232.86518557l-339.81629553-194.18074112c-29.12711111-16.99081443-65.536-16.99081443-97.09037114 0l-339.81629553 194.18074112c-29.12711111 16.99081443-48.54518557 48.54518557-48.54518557 84.95407331v388.36148224c0 33.98163001 19.41807445 67.96325888 48.54518557 84.95407331l339.81629553 194.18074112c29.12711111 16.99081443 65.536 16.99081443 97.09037114 0l339.81629553-194.18074112c29.12711111-16.99081443 48.54518557-48.54518557 48.54518557-84.95407331V317.81925888c0-33.98163001-19.41807445-65.536-48.54518557-84.95407331z m-228.16236999 490.30636998c-21.84533333 0-48.54518557-9.70903666-65.536-29.1271111L390.63703666 436.75496334v240.29866667c0 26.69985223-19.41807445 46.11792555-46.11792555 46.11792554H342.09185223c-26.69985223 0-46.11792555-21.84533333-46.11792668-46.11792554V346.94636999c0-24.27259221 21.84533333-46.11792555 53.39970446-46.11792554 24.27259221 0 48.54518557 9.70903666 65.536 29.1271111l216.02607332 257.28948111v-240.29866667c0-26.69985223 21.84533333-46.11792555 46.11792668-46.11792554h2.42725888c26.69985223 0 46.11792555 21.84533333 46.11792554 46.11792554v330.10726002c2.42725888 26.69985223-21.84533333 46.11792555-53.39970332 46.11792554z%22 fill=%22%23333%22></path></svg>"
2+
"$schema": "https://json.schemastore.org/package.json",
3+
"private": true,
4+
"name": "nginx-tutorial",
5+
"description": "Nginx 是一款面向性能设计的 HTTP 服务器,能反向代理 HTTP,HTTPS 和邮件相关(SMTP,POP3,IMAP)的协议链接。并且提供了负载均衡以及 HTTP 缓存。它的设计充分使用异步事件模型,削减上下文调度的开销,提高服务器并发能力。采用了模块化设计,提供了丰富模块的第三方模块。",
6+
"version": "1.0.0",
7+
"scripts": {
8+
"start": "idoc --watch",
9+
"build": "idoc"
10+
},
11+
"repository": {
12+
"type": "git",
13+
"url": "https://github.com/jaywcjlove/nginx-tutorial"
14+
},
15+
"keywords": [
16+
"nginx",
17+
"tutorial",
18+
"centos"
19+
],
20+
"dependencies": {
21+
"idoc": "^1.10.1"
1222
}
1323
}

renovate.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
{
22
"extends": [
33
"config:base"
4+
],
5+
"packageRules": [
6+
{
7+
"matchPackagePatterns": ["*"],
8+
"rangeStrategy": "replace"
9+
}
410
]
511
}

0 commit comments

Comments
 (0)