Skip to content

Commit

Permalink
docs: 优化使用文档
Browse files Browse the repository at this point in the history
  • Loading branch information
liangjingkanji committed Aug 3, 2023
1 parent 9d58f71 commit a3a2b04
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 11 deletions.
2 changes: 1 addition & 1 deletion docs/css/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ code,
.md-nav,
.md-typeset code,
.md-typeset {
font-size: 14px;
font-size: 14px !important;
}
17 changes: 14 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
本框架使用Android主流的Http框架OkHttp作为请求内核, 遵守不影响OkHttp原有的函数组件使用原则开发

<br>
<p align="center"><strong>STAR/分享可以让更多人参与到本开源项目, 点击文档右上角小铅笔可直接修订文档 ↗</strong></p>
<p align="center"><strong>STAR/分享可以让更多人参与到本开源项目</strong></p>
<br>


!!! tip "前言"

- Net没有的功能可以搜索`"OkHttp如何XX"`来实现
- 强烈建议下载仓库运行sample项目来学习/实践
- 推荐下载示例代码结合学习
- 如果觉得文档看不懂那肯定是作者问题, 请反馈给作者或者自我修订

## 使用
Expand Down Expand Up @@ -79,4 +79,15 @@ scopeNetLife {
| Response | 最基础的响应 |
| File | 文件对象, 这种情况其实应当称为[下载文件](download-file.md) |

详细查看[转换器](customizer-converter.md), 非以上类型要求[自定义转换器](customizer-converter.md)
```kotlin
scopeNetLife {
val file = Get<File>(Api.FILE).await()
}
```

详细查看[转换器](customizer-converter.md), 非以上类型要求[自定义转换器](customizer-converter.md)

---
[下载Apk](https://github.com/liangjingkanji/Net/releases/latest/download/net-sample.apk){ .md-button }
[下载源码](https://github.com/liangjingkanji/Net.git){ .md-button }
[示例代码](https://github.com/liangjingkanji/Net/tree/master/sample/src/main/java/com/drake/net/sample/ui/fragment){ .md-button }
23 changes: 16 additions & 7 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
site_name: Net
site_author: drake
site_description: Net document
copyright: Copyright &copy; 2018 - 2023 劉強東

repo_name: GitHub
repo_url: https://github.com/liangjingkanji/Net

site_author: 劉強東
copyright: Copyright &copy; 2018 - 2020 劉強東
repo_name: GitHub
docs_dir: 'docs'
extra:
social:
- icon: fontawesome/brands/github
link: https://github.com/
- icon: fontawesome/brands/qq
link: https://raw.githubusercontent.com/liangjingkanji/liangjingkanji/master/img/group-qrcode.png
- icon: fontawesome/brands/twitch
link: https://github.com/liangjingkanji/Net/discussions
extra_css:
- css/extra.css

docs_dir: docs

theme:
name: material
custom_dir: docs/material
Expand All @@ -23,6 +28,10 @@ theme:
font: false
language: zh
features:
- navigation.top
- navigation.prune
- navigation.footer
- navigation.instant
- search.highlight
- search.suggest
- search.share
Expand Down

0 comments on commit a3a2b04

Please sign in to comment.