Skip to content

Commit

Permalink
refactor: complete the basic framework construction
Browse files Browse the repository at this point in the history
  • Loading branch information
easterNday committed Jun 26, 2023
1 parent 29529a6 commit a62e71a
Show file tree
Hide file tree
Showing 16 changed files with 428 additions and 191 deletions.
46 changes: 28 additions & 18 deletions ArbitrarilyTong/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,28 +1,38 @@
import { defineConfig } from 'vitepress'
import { defineConfig } from "vitepress";

import nav from "./config/nav";
import sidebar from "./config/sidebar";

// https://vitepress.dev/reference/site-config
export default defineConfig({
title: "ArbitrarilyTong",
description: "ArbitrarilyTong UI",
themeConfig: {
logo: "/favicon.png",
// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: 'Home', link: '/' },
{ text: 'Examples', link: '/markdown-examples' }
],
nav,

sidebar: [
{
text: 'Examples',
items: [
{ text: 'Markdown Examples', link: '/markdown-examples' },
{ text: 'Runtime API Examples', link: '/api-examples' }
]
}
],
sidebar,

socialLinks: [
{ icon: 'github', link: 'https://github.com/vuejs/vitepress' }
]
}
})
{
icon: "github",
link: "https://github.com/ArbitrarilyTong/ArbitrarilyTong.github.io",
},
{
icon: {
svg: '<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Telegram</title><path d="M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"/></svg>',
},
link: "https://t.me/ArbitrarilyTong",
},
{
icon: "twitter",
link: "https://twitter.com/Ninni_kiri_jp",
},
],
},
// Head 部分设置
head: [
["link", { rel: "icon", type: "image/svg+xml", href: "/favicon.svg" }],
],
});
11 changes: 11 additions & 0 deletions ArbitrarilyTong/.vitepress/config/nav.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { DefaultTheme } from "vitepress";

const navConfig: DefaultTheme.NavItem[] = [
{ text: "主页", link: "/" },
{ text: "开发文档", link: "/Guide/" },
{ text: "常见问题", link: "/FAQ/" },
{ text: "镜像下载", link: "/Download/" },
{ text: "关于我们", link: "/About/" },
];

export default navConfig;
27 changes: 27 additions & 0 deletions ArbitrarilyTong/.vitepress/config/sidebar.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { DefaultTheme } from "vitepress";

const sidebarConfig: DefaultTheme.Sidebar = {
"/About/": [
{
text: "关于",
items: [
{ text: "项目介绍", link: "/About/" },
{ text: "团队成员", link: "/About/TeamMates" },
],
},
],
"/FAQ/": [
{
text: "常见问题",
items: [{ text: "简介", link: "/FAQ/" }],
},
],
"/Guide/": [
{
text: "开发指南",
items: [{ text: "前言", link: "/Guide/" }],
},
],
};

export default sidebarConfig;
37 changes: 37 additions & 0 deletions ArbitrarilyTong/About/TeamMates.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<script setup>
import { VPTeamMembers } from 'vitepress/theme'

const members = [
{
avatar: 'https://www.github.com/yyx990803.png',
name: 'Evan You',
title: 'Creator',
links: [
{ icon: 'github', link: 'https://github.com/yyx990803' },
{ icon: 'twitter', link: 'https://twitter.com/youyuxi' }
]
},
{
avatar: 'https://www.github.com/yyx990803.png',
name: 'Evan You',
title: 'Creator',
links: [
{ icon: 'github', link: 'https://github.com/yyx990803' },
{ icon: 'twitter', link: 'https://twitter.com/youyuxi' }
]
},
{
avatar: 'https://www.github.com/yyx990803.png',
name: 'Evan You',
title: 'Creator',
links: [
{ icon: 'github', link: 'https://github.com/yyx990803' },
{ icon: 'twitter', link: 'https://twitter.com/youyuxi' }
]
},
]
</script>

# 团队成员

<VPTeamMembers size="small" :members="members" />
3 changes: 3 additions & 0 deletions ArbitrarilyTong/About/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# 团队介绍

你好,世界!
45 changes: 45 additions & 0 deletions ArbitrarilyTong/Download/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
# https://vitepress.dev/reference/default-theme-home-page
layout: home

hero:
name: "ArbitrarilyTong"
text: "设备列表"
features:
- title: 小米10S
details: 测试测试测试测试
link: www.baidu.com
linkText: 下载地址
- title: 小米10S
details: 测试测试测试测试
link: www.baidu.com
linkText: 下载地址
- title: 小米10S
details: 测试测试测试测试
link: www.baidu.com
linkText: 下载地址
- title: 小米10S
details: 测试测试测试测试
link: www.baidu.com
linkText: 下载地址
- title: 小米10S
details: 测试测试测试测试
link: www.baidu.com
linkText: 下载地址
- title: 小米10S
details: 测试测试测试测试
link: www.baidu.com
linkText: 下载地址
- title: 小米10S
details: 测试测试测试测试
link: www.baidu.com
linkText: 下载地址
- title: 小米10S
details: 测试测试测试测试
link: www.baidu.com
linkText: 下载地址
- title: 小米10S
details: 测试测试测试测试
link: www.baidu.com
linkText: 下载地址
---
18 changes: 18 additions & 0 deletions ArbitrarilyTong/FAQ/JoinUs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# 如何加入任意桐?

任意桐目前接受两种职位的请求,即:

- 开发者
- 维护者

## 开发者

- 会 C++、Java、Kotlin
- 会开发 Android 应用

## 维护者

- 熟练操作安卓源码
- 能够随着需要来修改 device tree、vendor tree、kernel tree

如果您有意向,请联系项目负责人 [@respectowl](https://t.me/respectowl) 并参与面试
1 change: 1 addition & 0 deletions ArbitrarilyTong/FAQ/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# 常见问题集合
1 change: 1 addition & 0 deletions ArbitrarilyTong/Guide/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# 开发指南
49 changes: 0 additions & 49 deletions ArbitrarilyTong/api-examples.md

This file was deleted.

48 changes: 36 additions & 12 deletions ArbitrarilyTong/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,45 @@ layout: home
hero:
name: "ArbitrarilyTong"
text: "ArbitrarilyTong UI"
tagline: My great project tagline
tagline: Coming soon ......
image:
src: https://avatars.githubusercontent.com/u/134734108?s=400&u=dd8ce7794e04a989106fe7542166312e7816dbd5&v=4
alt: ArbitrarilyTong
actions:
- theme: brand
text: Markdown Examples
link: /markdown-examples
text: 开发导引
link: /Guide/
- theme: alt
text: API Examples
link: /api-examples
text: 常见问题
link: /FAQ

features:
- title: Feature A
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
- title: Feature B
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
- title: Feature C
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
- title: android
details: 测试测试测试测试
link: www.baidu.com
linkText: 仓库地址
- title: android
details: 测试测试测试测试
link: www.baidu.com
- title: android
details: 测试测试测试测试
link: www.baidu.com
- title: android
details: 测试测试测试测试
link: www.baidu.com
- title: android
details: 测试测试测试测试
link: www.baidu.com
- title: android
details: 测试测试测试测试
link: www.baidu.com
- title: android
details: 测试测试测试测试
link: www.baidu.com
- title: android
details: 测试测试测试测试
link: www.baidu.com
- title: android
details: 测试测试测试测试
link: www.baidu.com
---

Loading

0 comments on commit a62e71a

Please sign in to comment.