Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Commit

Permalink
docs: update homepage_zh
Browse files Browse the repository at this point in the history
  • Loading branch information
xs10l3 committed Jul 27, 2024
1 parent e3b90b7 commit fdb1be9
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 10 deletions.
10 changes: 5 additions & 5 deletions docs/content/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ export default defineConfig({
link: '/',
...enConfig,
},
// zh: {
// label: '中文(简体)',
// link: '/zh',
// ...zhConfig,
// },
zh: {
label: '中文(简体)',
link: '/zh',
...zhConfig,
},
},

vite,
Expand Down
4 changes: 2 additions & 2 deletions docs/content/.vitepress/en.mts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const enConfig = defineConfig({
nav: [
{
text: 'Tutorials',
link: '/getting-started',
link: '/basic/getting-started',
},
{
text: 'Guide',
Expand Down Expand Up @@ -75,7 +75,7 @@ export const enConfig = defineConfig({
items: [
{
text: 'Getting Started',
link: '/getting-started',
link: '/basic/getting-started',
},
{
text: 'Animation',
Expand Down
4 changes: 2 additions & 2 deletions docs/content/.vitepress/zh.mts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const zhConfig = defineConfig({
nav: [
{
text: '文档',
link: '/zh/getting-started',
link: '/zh/basic/getting-started',
},
{
text: '指南',
Expand Down Expand Up @@ -75,7 +75,7 @@ export const zhConfig = defineConfig({
items: [
{
text: '快速开始',
link: '/zh/getting-started',
link: '/zh/basic/getting-started',
},
{
text: '属性动画',
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/content/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ hero:
actions:
- theme: brand
text: Getting Started
link: /getting-started
link: /basic/getting-started
- theme: alt
text: API Reference
link: https://apis.newcarjs.org
Expand Down
Empty file.
29 changes: 29 additions & 0 deletions docs/content/zh/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
layout: home
title: 文档主页

hero:
name: "Newcar"
text: "现代动画引擎"
tagline: "高度可配置的通用基本引擎"
image:
src: /newcar_banner.webp
alt: Newcar Logo
actions:
- theme: brand
text: 快速开始
link: /zh/basic/getting-started
- theme: alt
text: API 参考
link: https://apis.newcarjs.org

features:
- title: 丰富的API接口 🛠️
details: 强大而多样的 API,为创建动画提供了更大的自由度
- title: 基于 CanvasKit-WASM 🧬
details: 基于CanvasKit-WASM,减少了CPU和GPU之间的通信和数据交换,保证了强大的动画速度
- title: 极高自由度 ⚙️
details: 极高的自由度,允许创建自己的动画风格
- title: 链式语法 ⛓️
details: 将对象保存为变量的写法替换为链式语法从而提高开发效率
---

0 comments on commit fdb1be9

Please sign in to comment.