Browse Source

更新文档

drake 4 years ago
parent
commit
3a952fc3e2
3 changed files with 22 additions and 3 deletions
  1. 20 1
      docs/css/extra.css
  2. 1 1
      docs/switch-dispatcher.md
  3. 1 1
      mkdocs.yml

+ 20 - 1
docs/css/extra.css

@@ -185,11 +185,14 @@ img {
 .md-typeset .md-content__button {
     color: var(--md-default-fg-color--lighter) !important;
 }
+.md-icon svg {
+    width: 14px;
+}
 
 /*标题*/
 h1, h2, h3, h4, h5, h6, .md-header-nav__title {
     font-weight: bold !important;
-    color: #273849 !important;
+    color: #273849;
 }
 .md-typeset h1 {
     text-align: center;
@@ -208,4 +211,20 @@ h2:after {
     background-color:#273849;
     border-radius: 2px;
     margin-right: 1.1em;
+}
+
+/*清单*/
+.md-typeset [type=checkbox]:checked+.task-list-indicator:before {
+    background-color: #43A047;
+}
+.md-typeset .task-list-indicator:before {
+    background-color: #c7c7c7;
+}
+.md-typeset .task-list-control {
+    margin-right: 8px;
+}
+
+/*复制图标*/
+.md-clipboard:after {
+    background-color: #4d4d4d;
 }

+ 1 - 1
docs/switch-dispatcher.md

@@ -3,7 +3,7 @@
 所有作用域默认情况下为主线程, 即可以在作用域内直接操作UI, 但是在创建异步任务的时候我们可能需要手动切换到其他调度器上
 
 <br>
-[SuspendUtils](https://github.com/liangjingkanji/Net/blob/master/net/src/main/java/com/drake/net/utils/SuspendUtils.kt)
+[SuspendUtils](https://github.com/liangjingkanji/Net/blob/master/net/src/main/java/com/drake/net/utils/Suspend.kt)
 函数包含一些快捷切换调度器的`withContext`扩展函数
 
 |函数|描述|

+ 1 - 1
mkdocs.yml

@@ -57,7 +57,7 @@ nav:
   - 返回集合结果: parse-list.md
   - 嵌套作用域: nested-scope.md
   - 最快请求结果: fastest.md
-  - 唯一请求: unique.md
+  - 重复请求: unique.md
   - 取消请求: cancel.md
   - 日志记录器: log-recorder.md
   - 轮循器: interval.md