Skip to content

Commit 02fe013

Browse files
committed
去掉空白页面
1 parent f44918c commit 02fe013

File tree

6 files changed

+16
-9
lines changed

6 files changed

+16
-9
lines changed

text/.vuepress/config.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,22 @@ module.exports = {
3636
extendMarkdown: md => {
3737
md.use(require('markdown-it-disable-url-encode'));
3838
},
39+
headers: {
40+
// 用到哪一级就提取哪一级
41+
level: [2, 3, 4, 5, 6],
42+
},
3943
},
4044
 themeConfig: {
4145
sidebar: [
4246
{
4347
title: '基础教程', // 必要的
4448
// path: '/', // 可选的, 标题的跳转链接,应为绝对路径且必须存在
4549
collapsable: false, // 可选的, 默认值是 true,
46-
sidebarDepth: 3, // 可选的, 默认值是 1
50+
sidebarDepth: 4, // 可选的, 默认值是 1
4751
children: toc
4852
}
4953
],
50-
sidebarDepth: 3,
54+
sidebarDepth: 4,
5155
   logo: '/images/logo.png',
5256
nav: [
5357
    { text: '首页', link: '/' },

text/.vuepress/toc.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ const fs = require('fs')
22
const path = require('path')
33
const toc = []
44
const mks = fs.readdirSync(path.join(__dirname, '../')).forEach((file) => {
5-
if (file === 'README.md' || file === 'SUMMARY.md') {
5+
if (file === 'README.md'
6+
|| file === 'SUMMARY.md'
7+
|| file === '15_micro_service.md'
8+
|| file === '16_openapi_doc.md') {
69
return
710
}
811
if (file.endsWith('.md')) {

text/14_node_log_and_monitor.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ ksqldb 的端口号,改写成了 8090,因为很多人电脑上 8080 端口
216216

217217
在上图的文本框中输入以下语句
218218

219-
```ksqldb
219+
```sql
220220
CREATE STREAM req_log (
221221
req_id STRING,
222222
domain STRING,
@@ -376,23 +376,23 @@ Index pattern 选项中我们使用 * 通配符进行索引,是由于我们的
376376

377377
如果想检索数据可以在⑦号位中输入 [KQL](https://www.elastic.co/guide/en/kibana/current/kuery-query.html) 表达式,举几个例子,我们前面收集的日志中有 method 这个字段,那么我们搜 method 为 GET 的日志,可以用以下表达式,输入⑦号位后回车即可展现查询结果:
378378

379-
```kql
379+
```sql
380380
method: GET
381381
```
382382

383383
**表达式 14.1.2.1.1**
384384

385385
如果想查 method 为 GET,并且 router 为 /a 的日志,可以用 AND 关键字连接两个查询表达式:
386386

387-
```kql
387+
```sql
388388
method: GET AND router: /a
389389
```
390390

391391
**表达式 14.1.2.1.2**
392392

393393
如果想查 user_agent 字段中包含 Windows NT 10.0; Win64; x64 字符串的日志,你需要使用下面的表达式:
394394

395-
```kql
395+
```sql
396396
user_agent: "Windows NT 10.0; Win64; x64"
397397
```
398398

@@ -402,7 +402,7 @@ user_agent: "Windows NT 10.0; Win64; x64"
402402

403403
还有一点需要注意,如果你查询的字符串中包含如下字符 `\():<>"*` ,那么你需要使用 \ 字符进行转义,或者使用引号将查询字符串包裹起来。比如说我们查询 referer 字段为 http://localhost 的时候,可以写成以下两种方式:
404404

405-
```kql
405+
```sql
406406
referer: http\://localhost
407407
referer: "http://localhost"
408408
```
@@ -411,7 +411,7 @@ referer: "http://localhost"
411411

412412
如果我们查询的逻辑比较负责,可以使用小括号来更改逻辑判断的优先级,比如说我们想查询 method 为 GET ,且 router 为 /a 或者 /b 的日志,可以写成如下表达式:
413413

414-
```kql
414+
```sql
415415
method: GET AND (router: /a OR router: /b)
416416
```
417417

text/images 1.md

Whitespace-only changes.

text/images 2.md

Whitespace-only changes.

text/images.md

Whitespace-only changes.

0 commit comments

Comments
 (0)