Skip to content

Commit e17994e

Browse files
author
nebulaliu
committed
conf: vite press
1 parent f44be95 commit e17994e

File tree

4 files changed

+91
-1
lines changed

4 files changed

+91
-1
lines changed

.config/.vitepress/config.mts

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
import { defineConfig } from 'vitepress'
2+
3+
// https://vitepress.dev/reference/site-config
4+
export default defineConfig({
5+
title: "微信小游戏团结/Unity快适配方案",
6+
description: "Wechat Mini Game Unity engine adapter documents.",
7+
themeConfig: {
8+
nav: [
9+
{ text: '主页', link: '/' },
10+
{ text: '微信小游戏官方文档', link: 'https://developers.weixin.qq.com/minigame/dev/guide/' },
11+
{
12+
text: '帮助',
13+
items: [
14+
{ text: '微信开发者社区', link: 'https://developers.weixin.qq.com/community/develop/question' },
15+
{ text: '客服助手', link: 'https://work.weixin.qq.com/kfid/kfcca4feec277f91616' },
16+
],
17+
},
18+
{ text: '团结引擎', link: 'https://unity.cn/tuanjie/tuanjieyinqing' },
19+
],
20+
21+
sidebar: [
22+
{
23+
text: 'Examples',
24+
items: [
25+
{ text: 'Markdown Examples', link: '/markdown-examples' },
26+
{ text: 'Runtime API Examples', link: '/api-examples' }
27+
]
28+
}
29+
],
30+
31+
socialLinks: [
32+
{ icon: 'github', link: 'https://github.com/wechat-miniprogram/minigame-unity-webgl-transform' }
33+
],
34+
35+
search: {
36+
provider: 'local',
37+
}
38+
},
39+
srcDir: '../',
40+
base: '/minigame-unity-webgl-transform/',
41+
outDir: '../docs',
42+
// ignoreDeadLinks: true,
43+
lang: 'zh-cn'
44+
})

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,9 @@ Plugins.meta
5050

5151
!minigame.texturecompressed.backup.unitypackage
5252
!minigame.202305172131.unitypackage
53-
!Demo/LaunchOpera/Assets/WebGLTemplates
53+
!Demo/LaunchOpera/Assets/WebGLTemplates
54+
55+
docs
56+
node_modules
57+
.config/.vitepress/dist
58+
.config/.vitepress/cache

index.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
layout: home
3+
4+
hero:
5+
name: "团结/Unity快适配方案"
6+
text: "基于WebGL + WebAssembly"
7+
tagline: 无需使用JavaScript重构,快速移植团结/Unity游戏至微信小游戏平台解决方案。
8+
actions:
9+
- theme: brand
10+
text: 现在开始
11+
link: /markdown-examples
12+
- theme: alt
13+
text: 在 GitHub 上查看
14+
link: https://github.com/wechat-miniprogram/minigame-unity-webgl-transform
15+
16+
features:
17+
- title: 无需重构
18+
details: 保持原引擎工具链与技术栈,无需重写游戏核心逻辑,支持大部分第三方插件。
19+
- title: 高度还原
20+
details: 转换工具与微信小游戏运行环境保证适配兼容,保持较高还原度。
21+
- title: 众多案例
22+
details: 目前超3000款Unity游戏在微信小游戏平台发布,持续为用户带来优质的游戏体验。
23+
---
24+

package.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "minigame-unity-webgl-transform",
3+
"version": "1.0.0",
4+
"description": "Wechat Mini Game Unity engine adapter documents.",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1",
8+
"docs:dev": "vitepress dev .config",
9+
"docs:build": "vitepress build .config",
10+
"docs:preview": "vitepress preview .config"
11+
},
12+
"author": "Wechat MiniGame Team",
13+
"license": "MIT",
14+
"devDependencies": {
15+
"vitepress": "^1.0.2"
16+
}
17+
}

0 commit comments

Comments
 (0)