update to 4.0

This commit is contained in:
Otto Mao
2017-12-01 21:30:49 +08:00
parent e392fefc64
commit 4be5aa8954
267 changed files with 27008 additions and 84482 deletions

View File

@@ -0,0 +1,23 @@
/* eslint no-var: off */
/**
* detect if the browser is in UTF-8 zone
* @return boolean
*/
function isUTF8Zone() {
return new Date().getTimezoneOffset() === -480;
}
/**
* detect if the browser is already in a locale view
*/
function isInLocaleView() {
return /(cn|en)/i.test(location.href);
}
function initDefaultLocaleAndStatic() {
if (!isInLocaleView()) {
location.href = isUTF8Zone() ? '/cn' : 'en';
}
}
initDefaultLocaleAndStatic();

BIN
docs-src/assets/favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

12
docs-src/assets/main.js Normal file
View File

@@ -0,0 +1,12 @@
/* eslint no-var: off */
function injectBaiduStatic() {
var _hmt = _hmt || [];
var hm = document.createElement('script');
var s = document.getElementsByTagName('script')[0];
hm.src = '//hm.baidu.com/hm.js?4e51565b7d471fd6623c163a8fd79e07';
s.parentNode.insertBefore(hm, s);
}
injectBaiduStatic();

View File

@@ -0,0 +1,51 @@
.book .book-summary ul.summary li.active>a, .book .book-summary ul.summary li a:hover {
color: #008cff;
background: transparent;
text-decoration: none !important;
}
h1 {
color: #2674BA;
}
h2 {
color: #0099CC;
}
h3 {
color: #108ee9;
}
h4 {
color: #662D91;
}
h5 {
color: #444444;
}
.gitbook-link {
display: none !important;
}
.summary-title-span {
position: relative !important;
padding: 0 !important;
}
.rule-title:after,
.sample-title:after {
font-size: 12px;
padding: 0 3px;
border-radius: 3px;
color: #fff;
}
.rule-title:after{
content: 'rule';
background-color: #108ee9;
}
.sample-title:after {
content: 'sample';
background-color: #00a854;
}
.page-inner {
max-width: 1000px !important;
}