Skip to content

Commit

Permalink
docs: update config
Browse files Browse the repository at this point in the history
  • Loading branch information
ModyQyW committed Sep 1, 2024
1 parent 701a9c1 commit fa789dd
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
14 changes: 10 additions & 4 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,23 @@ export default defineConfig({
themeConfig: {
logo: { src: "/logo.png", width: 24, height: 24 },
nav: [
{ text: "指南", link: "/guide/introduction" },
{ text: "指南", link: "/guide/getting-started", activeMatch: "/guide/" },
{
text: "更新日志",
link: "https://github.com/uni-helper/typed/tree/main/CHANGELOG.md",
text: "资源",
items: [
{
text: "更新日志",
link: "https://github.com/uni-helper/typed/tree/main/CHANGELOG.md",
},
],
},
],
sidebar: [
{
text: "指南",
items: [
{ text: "介绍", link: "/guide/introduction" },
{ text: "为什么是 @uni-helper/typed?", link: "/guide/why" },
{ text: "起步", link: "/guide/getting-started" },
{ text: "uni-app-types", link: "/guide/uni-app-types" },
{ text: "uni-cloud-types", link: "/guide/uni-cloud-types" },
{ text: "uni-ui-types", link: "/guide/uni-ui-types" },
Expand Down
4 changes: 3 additions & 1 deletion docs/guide/introduction.md → docs/guide/getting-started.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# 介绍
# 起步

## 概览

`@uni-helper/typed` 是一个为 [uni-app](https://uniapp.dcloud.io/) 打造的 TypeScript 支持库,包含几个子包:

Expand Down
5 changes: 5 additions & 0 deletions docs/guide/why.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# 为什么是 @uni-helper/typed

很长一段时间,DCloud 公司(也就是 uni-app 官方)对于 TypeScript 支持只有 @dcloudio/types,它提供了脚本部分的 TypeScript 支持,但模板部分的 TypeScript 支持迟迟没有到位。

这个项目正是为了解决模板部分的 TypeScript 支持问题而生,希望对你有所帮助!

0 comments on commit fa789dd

Please # to comment.