Skip to content

Commit 6ae4130

Browse files
committed
update docs
1 parent e8ca04a commit 6ae4130

File tree

5 files changed

+52
-30
lines changed

5 files changed

+52
-30
lines changed

docs/coverpage.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@
99
- [Spring 教程](https://dunwu.gitbooks.io/spring-tutorial/)
1010
- [Spring Boot 教程](https://dunwu.github.io/spring-boot-tutorial/)
1111

12-
[Java Tutorial](https://dunwu.github.io/java-tutorial/)
1312
[开始阅读](README.md)

docs/index.html

Lines changed: 42 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,8 @@
99
name="viewport"
1010
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
1111
/>
12-
<link
13-
rel="icon"
14-
href="http://dunwu.test.upcdn.net/images/others/zp_50_50.png"
15-
type="image/x-icon"
16-
/>
17-
<link
18-
rel="stylesheet"
19-
href="//unpkg.com/docsify/lib/themes/vue.css"
20-
title="vue"
21-
/>
12+
<link rel="icon" href="http://dunwu.test.upcdn.net/images/others/zp_50_50.png" type="image/x-icon" />
13+
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/vue.css" title="vue" />
2214
<style>
2315
h1 + ul {
2416
display: block !important;
@@ -52,41 +44,72 @@
5244
}
5345

5446
.cover-main p a:hover {
55-
color: white !important;
47+
text-align: center;
48+
background-image: -webkit-linear-gradient(left, #ffdcb4, #b96972 25%, #e88a57 50%, #804170 75%, #a596cd);
49+
-webkit-text-fill-color: transparent;
50+
-webkit-background-clip: text;
51+
-webkit-background-size: 200% 100%;
52+
-webkit-animation: masked-animation 1.5s infinite linear;
5653
}
5754

5855
/* content 样式内容 */
5956
.sidebar a,
6057
.content a {
6158
color: #399ab2 !important;
62-
text-decoration: none;
59+
text-decoration: none !important;
6360
}
6461

6562
.sidebar a:hover,
6663
.content a:hover {
6764
color: #fe4165 !important;
65+
text-decoration: underline !important;
66+
}
67+
68+
.content h1 :hover,
69+
.content h2 :hover,
70+
.content h3 :hover,
71+
.content h4 :hover {
72+
text-align: center;
73+
background-image: -webkit-linear-gradient(left, #ffdcb4, #b96972 25%, #e88a57 50%, #804170 75%, #a596cd);
74+
-webkit-text-fill-color: transparent;
75+
-webkit-background-clip: text;
76+
-webkit-background-size: 200% 100%;
77+
-webkit-animation: masked-animation 1.5s infinite linear;
78+
}
79+
80+
@-webkit-keyframes masked-animation {
81+
0% {
82+
background-position: 0 0;
83+
}
84+
100% {
85+
background-position: -100% 0;
86+
}
6887
}
6988

89+
.content h1 a,
7090
.content h1 span {
7191
color: #399ab2 !important;
72-
font-size: 24px;
92+
font-size: 30px;
7393
text-shadow: 0 -1px 5px rgba(0, 0, 0, 0.4);
7494
}
7595

96+
.content h2 a,
7697
.content h2 span {
7798
color: #60497c !important;
78-
font-size: 20px;
99+
font-size: 26px;
79100
text-shadow: 0 -1px 5px rgba(0, 0, 0, 0.4);
80101
}
81102

103+
.content h3 a,
82104
.content h3 span {
83105
color: #346093 !important;
84-
font-size: 18px;
106+
font-size: 22px;
85107
text-shadow: 0 -1px 5px rgba(0, 0, 0, 0.4);
86108
}
87109

110+
.content h4 a,
88111
.content h4 span {
89-
font-size: 16px;
112+
font-size: 18px;
90113
color: #78943a;
91114
text-shadow: 0 -1px 5px rgba(0, 0, 0, 0.4);
92115
}
@@ -164,13 +187,13 @@
164187
<div id="app">正在加载...</div>
165188
<script>
166189
window.$docsify = {
167-
name: "Java Tutorial",
190+
name: "Java Tutoria",
168191
repo: "https://github.com/dunwu/java-tutorial",
169-
auto2top: true,
170192
logo: "http://dunwu.test.upcdn.net/images/others/zp_100_100.png",
193+
auto2top: true,
171194
coverpage: "coverpage.md",
172-
subMaxLevel: 4,
173195
maxLevel: 4,
196+
subMaxLevel: 4,
174197
formatUpdated: "{MM}/{DD} {HH}:{mm}",
175198
search: {
176199
maxAge: 86400000,

docs/javalib/java-log.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ logback 当前分成三个模块:`logback-core`、`logback-classic` 和 `logba
8181

8282
Log4j2 架构:
8383

84-
<div align="center"><img src="https://raw.githubusercontent.com/dunwu/images/master/images/java/javalib/log/log4j2-architecture.jpg"/></div>
84+
<div align="center"><img src="https://gitee.com/turnon/images/raw/master/images/java/javalib/log/log4j2-architecture.jpg"/></div>
8585

8686
### Log4j vs Logback vs Log4j2
8787

@@ -125,7 +125,7 @@ common-logging 的功能是提供日志功能的 API 接口,本身并不提供
125125

126126
[官网地址](http://www.slf4j.org/)
127127

128-
<div align="center"><img src="https://raw.githubusercontent.com/dunwu/images/master/images/java/javalib/log/slf4j-to-other-log.png"/></div>
128+
<div align="center"><img src="https://gitee.com/turnon/images/raw/master/images/java/javalib/log/slf4j-to-other-log.png"/></div>
129129

130130
### common-logging vs slf4j
131131

@@ -219,7 +219,7 @@ _slf4j-jdk14-1.7.21.jar_ 会自动将 _slf4j-api-1.7.21.jar_ 也添加到你的
219219

220220
假如你正在开发应用程序所调用的组件当中已经使用了 common-logging,这时你需要 jcl-over-slf4j.jar 把日志信息输出重定向到 slf4j-api,slf4j-api 再去调用 slf4j 实际依赖的日志组件。这个过程称为桥接。下图是官方的 slf4j 桥接策略图:
221221

222-
<div align="center"><img src="https://raw.githubusercontent.com/dunwu/images/master/images/java/javalib/log/slf4j-bind-strategy.png"/></div>
222+
<div align="center"><img src="https://gitee.com/turnon/images/raw/master/images/java/javalib/log/slf4j-bind-strategy.png"/></div>
223223

224224
从图中应该可以看出,无论你的老项目中使用的是 common-logging 或是直接使用 log4j、java.util.logging,都可以使用对应的桥接 jar 包来解决兼容问题。
225225

@@ -435,7 +435,7 @@ log4j2 基本配置形式如下:
435435
- 要点
436436
- 它有 `<appender>``<logger>``<root>` 三个子元素。
437437

438-
<div align="center"><img src="https://raw.githubusercontent.com/dunwu/images/master/images/java/javalib/log/logback-configuration.png"/></div>
438+
<div align="center"><img src="https://gitee.com/turnon/images/raw/master/images/java/javalib/log/logback-configuration.png"/></div>
439439

440440
### `<appender>`
441441

@@ -473,7 +473,7 @@ log4j2 基本配置形式如下:
473473
- 属性
474474
- class:设置具体的实例化类。
475475

476-
<div align="center"><img src="https://raw.githubusercontent.com/dunwu/images/master/images/java/javalib/log/logback-appender.png"/></div>
476+
<div align="center"><img src="https://gitee.com/turnon/images/raw/master/images/java/javalib/log/logback-appender.png"/></div>
477477

478478
### `<logger>`
479479

docs/javalib/junit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353

5454
组件间依赖关系:
5555

56-
<div align="center"><img src="https://raw.githubusercontent.com/dunwu/images/master/images/java/javalib/test/junit/junit5-components.png"/></div>
56+
<div align="center"><img src="https://gitee.com/turnon/images/raw/master/images/java/javalib/test/junit/junit5-components.png"/></div>
5757

5858
## 2. JUnit 注解
5959

docs/javatool/build/maven/maven-action.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,21 +226,21 @@ maven 的 JDK 源与指定的 JDK 编译版本不符。
226226

227227
Project SDK 是否正确
228228

229-
<div align="center"><img src="http://dunwu.test.upcdn.net/snap/20181127203324.png"/></div>
229+
<div align="center"><img src="https://gitee.com/turnon/images/raw/master/snap/20181127203324.png"/></div>
230230

231231
SDK 路径是否正确
232232

233-
<div align="center"><img src="http://dunwu.test.upcdn.net/snap/20181127203427.png"/></div>
233+
<div align="center"><img src="https://gitee.com/turnon/images/raw/master/snap/20181127203427.png"/></div>
234234

235235
- **查看 Settings > Maven 的配置**
236236

237237
JDK for importer 是否正确
238238

239-
<div align="center"><img src="http://dunwu.test.upcdn.net/snap/20181127203408.png"/></div>
239+
<div align="center"><img src="https://gitee.com/turnon/images/raw/master/snap/20181127203408.png"/></div>
240240

241241
Runner 是否正确
242242

243-
<div align="center"><img src="http://dunwu.test.upcdn.net/snap/20181127203439.png"/></div>
243+
<div align="center"><img src="https://gitee.com/turnon/images/raw/master/snap/20181127203439.png"/></div>
244244

245245
### 1.11. 重复引入依赖
246246

0 commit comments

Comments
 (0)