Browse Source

修订文档

drake 3 years ago
parent
commit
aa2f88dc5e
5 changed files with 59 additions and 25 deletions
  1. 23 6
      docs/api/styles/jetbrains-mono.css
  2. 8 8
      docs/api/styles/style.css
  3. 1 1
      docs/config.md
  4. 26 9
      docs/css/extra.css
  5. 1 1
      docs/model-generate.md

+ 23 - 6
docs/api/styles/jetbrains-mono.css

@@ -1,15 +1,32 @@
 @font-face {
-	font-family: 'Iosevka SS05';
-	src: local('Iosevka SS05 Medium'),
-	     url('https://raw.githubusercontent.com/liangjingkanji/liangjingkanji/master/font/iosevka/iosevka-ss05-medium.woff2') format('woff2');
-	font-display: swap;
-	font-weight: normal;
-	font-style: normal;
+    font-family: 'Iosevka';
+    src: local('Iosevka Medium'),
+         url('https://raw.githubusercontent.com/liangjingkanji/liangjingkanji/master/font/iosevka/iosevka-medium.woff2') format('woff2');
+    font-display: swap;
+    font-weight: normal;
+    font-style: normal;
+}
+@font-face {
+    font-family: 'Iosevka';
+    src: local('Iosevka-bold'),
+         url('https://raw.githubusercontent.com/liangjingkanji/liangjingkanji/master/font/iosevka/iosevka-medium.woff2') format('woff2');
+    font-display: swap;
+    font-weight: bold;
+    font-style: normal;
 }
 @font-face{
     font-family: 'HYZhengYuan';
     src: local('HYZhengYuan'),
          url('https://raw.githubusercontent.com/liangjingkanji/liangjingkanji/master/font/HYZhengYuan.ttf') format('truetype');
+    font-display: swap;
     font-weight: normal;
     font-style: normal;
 }
+@font-face{
+    font-family: 'HYZhengYuan';
+    src: local('HYZhengYuan-75W'),
+         url('https://raw.githubusercontent.com/liangjingkanji/liangjingkanji/master/font/HYZhengYuan.ttf') format('truetype');
+    font-display: swap;
+    font-weight: bold;
+    font-style: normal;
+}

+ 8 - 8
docs/api/styles/style.css

@@ -98,11 +98,11 @@ html ::-webkit-scrollbar-thumb {
     color: var(--average-color);
     outline: none;
     margin: 0 8px;
-    font-family: "Iosevka SS05", "HYZhengYuan";
+    font-family: "Iosevka", "HYZhengYuan";
 }
 
 .breadcrumbs {
-    font-family: "Iosevka SS05", "HYZhengYuan";
+    font-family: "Iosevka", "HYZhengYuan";
 }
 
 .section-tab:hover {
@@ -296,7 +296,7 @@ code.paragraph {
     font-weight: normal;
     position: relative;
     line-height: 24px;
-    font-family: Iosevka SS05, HYZhengYuan, Bitstream Vera Sans Mono, Lucida Console, Terminal;
+    font-family: "Iosevka", HYZhengYuan, Bitstream Vera Sans Mono, Lucida Console, Terminal;
     font-size: 12px;
     min-height: 43px;
 }
@@ -383,7 +383,7 @@ code.paragraph {
     position: relative;
     user-select: none; /* there's a weird bug with text selection */
     padding: 8px 0;
-    font-family: "Iosevka SS05", "HYZhengYuan";
+    font-family: "Iosevka", "HYZhengYuan";
 }
 
 .sideMenuPart a {
@@ -450,7 +450,7 @@ code.paragraph {
 }
 
 body, table {
-    font-family: 'Iosevka SS05', "HYZhengYuan", "Helvetica Neue", Helvetica, Arial, sans-serif;
+    font-family: "Iosevka", "HYZhengYuan", "Helvetica Neue", Helvetica, Arial, sans-serif;
     background: #F4F4F4;
     font-style: normal;
     font-weight: normal;
@@ -477,14 +477,14 @@ td:first-child {
 
 .keyword {
     color: black;
-    font-family: Iosevka SS05, Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal;
+    font-family: "Iosevka", Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal;
     font-size: 12px;
 }
 
 .identifier {
     color: darkblue;
     font-size: 12px;
-    font-family: Iosevka SS05, Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal;
+    font-family: "Iosevka", Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal;
 }
 
 .brief {
@@ -1114,7 +1114,7 @@ td.content {
 
 .footer > span {
     padding: 0 16px;
-    font-family: "Iosevka SS05", "HYZhengYuan";
+    font-family: "Iosevka", "HYZhengYuan";
 }
 
 .footer a {

+ 1 - 1
docs/config.md

@@ -1,4 +1,4 @@
-全局配置建议在Application中设
+全局配置建议在Application的onCreate函数中配
 
 === "普通初始化"
 

+ 26 - 9
docs/css/extra.css

@@ -37,26 +37,43 @@
 
 /*字体渲染*/
 @font-face {
-	font-family: 'Iosevka SS05';
-	src: local('Iosevka SS05 Medium'),
-	     url('https://raw.githubusercontent.com/liangjingkanji/liangjingkanji/master/font/iosevka/iosevka-ss05-medium.woff2') format('woff2');
-	font-display: swap;
-	font-weight: normal;
-	font-style: normal;
+    font-family: 'Iosevka';
+    src: local('Iosevka Medium'),
+         url('https://raw.githubusercontent.com/liangjingkanji/liangjingkanji/master/font/iosevka/iosevka-medium.woff2') format('woff2');
+    font-display: swap;
+    font-weight: normal;
+    font-style: normal;
+}
+@font-face {
+    font-family: 'Iosevka';
+    src: local('Iosevka-bold'),
+         url('https://raw.githubusercontent.com/liangjingkanji/liangjingkanji/master/font/iosevka/iosevka-medium.woff2') format('woff2');
+    font-display: swap;
+    font-weight: bold;
+    font-style: normal;
 }
 @font-face{
     font-family: 'HYZhengYuan';
     src: local('HYZhengYuan'),
          url('https://raw.githubusercontent.com/liangjingkanji/liangjingkanji/master/font/HYZhengYuan.ttf') format('truetype');
+    font-display: swap;
     font-weight: normal;
     font-style: normal;
 }
+@font-face{
+    font-family: 'HYZhengYuan';
+    src: local('HYZhengYuan-75W'),
+         url('https://raw.githubusercontent.com/liangjingkanji/liangjingkanji/master/font/HYZhengYuan.ttf') format('truetype');
+    font-display: swap;
+    font-weight: bold;
+    font-style: normal;
+}
 * {
     -webkit-font-feature-settings: "liga" on, "calt" on;
     -webkit-font-smoothing: subpixel-antialiased;
-     -moz-osx-font-smoothing: auto;
+    -moz-osx-font-smoothing: auto;
     text-rendering: optimizeLegibility;
-    font-family: 'Iosevka SS05', "HYZhengYuan" !important;
+    font-family: 'Iosevka', "HYZhengYuan" !important;
 }
 
 /*布局*/
@@ -251,7 +268,7 @@ h2:after {
 
 /*头部*/
 .md-ellipsis {
-    font-weight: bolder;
+    font-weight: bold;
 }
 
 /*折叠块*/

+ 1 - 1
docs/model-generate.md

@@ -1,6 +1,6 @@
 在请求网络数据过程中会需要编写大量的数据模型对象, 映射后端返回的数据创建数据对象. 因为我们业务逻辑中一般是直接数据对象更为方便
 
-创建数据模型我不推荐手写, 错误率高且不方便. 我推荐`JSON To Kotlin Class` 插件
+创建数据模型我不推荐手写, 错误率高且不方便. 我推荐使用`JSON To Kotlin Class` 插件自动生成
 
 ## 安装插件