Skip to content

Commit 3f1f6dc

Browse files
committed
Fixed wrong language highlight identifier #20
1 parent 6616926 commit 3f1f6dc

File tree

6 files changed

+25
-7
lines changed

6 files changed

+25
-7
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,24 @@ Nginx 官方文档中文翻译版,由本人在学习 nginx 时顺带翻译。
1212

1313
在线阅读:[Github](https://github.com/DocsHome/nginx-docs/blob/master/SUMMARY.md) | [GitBook](https://www.gitbook.com/book/docshome/nginx-docs/details)
1414

15+
## 安装
16+
17+
如果你没有安装 gitbook,则先使用 npm(或者 cnpm)安装 `gitbook-cli`
18+
19+
```shell
20+
npm install gitbook-cli -g
21+
```
22+
23+
进入项目根目录,执行以下命令运行 gitbook:
24+
25+
```shell
26+
gitbook install
27+
```
28+
29+
```shell
30+
gitbook serve
31+
```
32+
1533
## 项目状态
1634

1735
翻译中……

模块参考/http/ngx_http_core_module.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1212,7 +1212,7 @@ server {
12121212

12131213
也可以在服务器名称中使用正则表达式,在名称前面加上波浪号(``):
12141214

1215-
```ngixn
1215+
```nginx
12161216
server {
12171217
server_name www.example.com ~^www\d+\.example\.com$;
12181218
}

模块参考/http/ngx_http_grpc_module.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ grpc_bind $remote_addr transparent;
215215

216216
设置 gRPC 服务器地址。该地址可以指定为域名或 IP 地址以及端口:
217217

218-
```ngixn
218+
```nginx
219219
grpc_pass localhost:9000;
220220
```
221221
或使用 UNIX 域套接字路径:

模块参考/http/ngx_http_limit_conn_module.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ server {
108108
109109
用法示例:
110110

111-
```ngixn
111+
```nginx
112112
limit_conn_zone $binary_remote_addr zone=addr:10m;
113113
```
114114

模块参考/http/ngx_http_limit_req_module.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ server {
109109
110110
用法示例:
111111

112-
```ngixn
112+
```nginx
113113
limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s;
114114
```
115115

模块参考/http/ngx_http_perl_module.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ http {
6767

6868
The perl/lib/hello.pm module:
6969

70-
```pm
70+
```perl
7171
package hello;
7272

7373
use nginx;
@@ -163,7 +163,7 @@ __END__
163163
164164
如果请求中没有请求体,则返回 0。如果存在,则为请求设置指定的处理程序,并返回 1。在读取请求体后,nginx 将调用指定的处理程序。请注意,处理函数应该通过引用传递。例:
165165
166-
```pm
166+
```perl
167167
package hello;
168168
169169
use nginx;
@@ -267,7 +267,7 @@ __END__
267267
268268
设置指定的处理程序(`handler`)和指定停止请求处理的时间(`milliseconds`)。在此期间,nginx 继续处理其他请求。在经过指定的时间后,nginx 将调用已安装的处理程序。请注意,处理函数应该通过引用传递。为了在处理程序之间传递数据,应使用 `$r->variable()`。例:
269269
270-
```pm
270+
```perl
271271
package hello;
272272
273273
use nginx;

0 commit comments

Comments
 (0)