-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3d70be9
commit 011d9d8
Showing
13 changed files
with
156 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,61 @@ | ||
import { defineConfig } from 'vitepress' | ||
import { defineConfig, UserConfig } from 'vitepress' | ||
import { withSidebar } from "vitepress-sidebar"; | ||
import { VitePressSidebarOptions } from 'vitepress-sidebar/types'; | ||
|
||
// https://vitepress.dev/reference/site-config | ||
export default defineConfig({ | ||
const vitepressOptions: UserConfig = { | ||
title: "Bingyan DevKit", | ||
description: "Unity DevKit powered by Bingyan Studio", | ||
appearance: "dark", | ||
|
||
themeConfig: { | ||
|
||
logo: '/logo.webp', | ||
|
||
// https://vitepress.dev/reference/default-theme-config | ||
nav: [ | ||
{ text: 'Home', link: '/' }, | ||
{ text: 'Examples', link: '/markdown-examples' } | ||
{ text: '主页', link: '/' }, | ||
{ text: '文档', link: '/getting-started' } | ||
], | ||
|
||
sidebar: [ | ||
{ | ||
text: 'Examples', | ||
items: [ | ||
{ text: 'Markdown Examples', link: '/markdown-examples' }, | ||
{ text: 'Runtime API Examples', link: '/api-examples' } | ||
] | ||
} | ||
], | ||
outline: { | ||
level: [2, 3], | ||
label: "本页内容" | ||
}, | ||
|
||
socialLinks: [ | ||
{ icon: 'github', link: 'https://github.com/vuejs/vitepress' } | ||
] | ||
} | ||
}) | ||
{ icon: 'github', link: 'https://github.com/BingyanStudio/BingyanDevKit' } | ||
], | ||
|
||
search: { | ||
provider: "local", | ||
}, | ||
|
||
lastUpdated: { | ||
text: "上次更新", | ||
formatOptions: { | ||
dateStyle: "full", | ||
timeStyle: "medium", | ||
}, | ||
}, | ||
}, | ||
|
||
lastUpdated: true, | ||
} | ||
|
||
const vitePressSidebarOptions: VitePressSidebarOptions = { | ||
// VitePress Sidebar's options here... | ||
collapsed: false, | ||
capitalizeFirst: true, | ||
useTitleFromFileHeading: true, | ||
useFolderTitleFromIndexFile: true, | ||
|
||
sortMenusByFrontmatterOrder: true, | ||
sortMenusOrderByDescending: true, | ||
|
||
sortFolderTo: "bottom" | ||
}; | ||
|
||
// https://vitepress.dev/reference/site-config | ||
export default defineConfig( | ||
withSidebar(vitepressOptions, vitePressSidebarOptions) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<script type="ts" setup> | ||
import DefaultTheme from 'vitepress/theme' | ||
import { useRouter } from "vitepress"; | ||
import mediumZoom from 'medium-zoom' | ||
import { watch, nextTick, onMounted } from "vue"; | ||
let { route } = useRouter(); | ||
const initZoom = () => { | ||
mediumZoom('.main img', { background: 'var(--vp-c-bg)' }); | ||
} | ||
onMounted(() => { | ||
initZoom(); | ||
// 监听路由变化 | ||
watch(() => route.path, () => { | ||
nextTick(() => { | ||
initZoom(); | ||
}); | ||
} | ||
); | ||
}); | ||
const { Layout } = DefaultTheme | ||
</script> | ||
|
||
<!-- .vitepress/theme/Layout.vue --> | ||
<template> | ||
<!-- 这里的Layout不是递归组件, 而是默认主题的Layout组件, 相当于组件的入口, 若不使用此组件, 那么整个网页都没有内容 --> | ||
<Layout></Layout> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# 快速开始 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# 安装 | ||
|
||
有测试 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# 导言 | ||
|
||
## 这是什么? | ||
`Bingyan DevKit` 是**冰岩作坊游戏组**在项目开发的过程中从具体游戏逻辑中抽离出的泛用型工具。 | ||
|
||
这些工具致力于解决在 **代码逻辑实现** 与 **团队协作** 中遇到的种种问题,提供简单、便捷且高效的解决方案。 | ||
|
||
## 它适合我吗? | ||
`Bingyan DevKit` 是在多个 **3 ~ 6人** 的团队项目中发展演化而来的,在短至 48 小时 GameJam、长至数月跨度的协作项目中都发挥过良好的作用。 | ||
|
||
如果... | ||
- 你希望迅速实现一些游戏逻辑 | ||
- 你需要一些简化代码的方法(例如,获取物体位置总需要把 `transform` 再写一次) | ||
- 你厌倦了 Unity 的一些恼人的特性(例如,`Vector3` 与 `Vector2` 不能直接相加) | ||
- 你带领一个团队,需要向非程序成员提供更好的编辑器界面以提高他们的效率 | ||
|
||
那么不妨试一试! |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.