update frontpage, set navbar

This commit is contained in:
Donggang Cao 2020-08-30 23:57:55 +08:00
parent 257b2c64c6
commit d4db833a4d
20 changed files with 55 additions and 51 deletions

View File

@ -28,33 +28,57 @@ module.exports = {
* refhttps://v1.vuepress.vuejs.org/theme/default-theme-config.html
*/
themeConfig: {
repo: '',
repo: 'https://github.com/xuos/xuos',
editLinks: false,
docsDir: '',
editLinkText: '',
lastUpdated: false,
lastUpdated: true,
nav: [
{
text: 'Guide',
link: '/guide/',
text: '文档',
items: [
{
text: '简介',
link: '/doc/intro.html',
},
{
text: '内核',
link: '/doc/kernel.html',
},
{
text: '驱动',
link: '/doc/driver.html',
},
{
text: '应用开发',
link: '/doc/appdev.html',
}
]
},
{
text: 'Config',
link: '/config/'
text: '资源',
link: '/resource/',
},
{
text: 'VuePress',
link: 'https://v1.vuepress.vuejs.org'
}
text: '社区',
link: '/community/',
},
{
text: '关于',
link: '/about/',
},
],
sidebar: {
'/guide/': [
'/doc/': [
{
title: 'Guide',
title: '文档',
collapsable: false,
children: [
'',
'using-vue',
'intro',
'kernel',
'appdev',
'api',
]
}
],

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

View File

@ -1,16 +1,16 @@
---
home: true
heroImage: https://v1.vuepress.vuejs.org/hero.png
tagline: 面向工业场景,使能智能感联, 助力智能生产
actionText: 快速上手
heroImage: images/hero.png
tagline: 为工业而生,以智能为擎,循标准而行
actionText: 了解更多
actionLink: /guide/
features:
- title: 实时感知智能识别
details: 在工业生产等环境下, 通过节点级物联网设备, 实时感知并智能识别图像、声音、环境参数各类数据, 使其数字化
details: 节点级物联网设备实时感知并智能识别工业环境下的图像、声音、环境等数据
- title: 灵活组网互联互通
details: 支持多种低延迟低能耗的无线通信协议, 在复杂环境中灵活自组网络, 传输和汇聚工业数据,实现网络化
details: 支持多种低延迟低能耗的无线通信协议, 在复杂环境中灵活自组网络
- title: 生态友好标准兼容
details: 兼容POSIX标准支持主流硬件架构, 对Linux/RISC-V/ARM等生态的用户友好, 开发移植门槛低
details: 兼容POSIX标准支持主流硬件架构, 对Linux/RISC-V/ARM等生态的用户友好
footer: ©2020 北京大学信息技术高等研究院泛在操作系统实验室
---

1
docs/about/README.md Normal file
View File

@ -0,0 +1 @@
# 关于

1
docs/about/contact.md Normal file
View File

@ -0,0 +1 @@
# 联系方式

1
docs/about/license.md Normal file
View File

@ -0,0 +1 @@
# License

0
docs/about/xuos.md Normal file
View File

0
docs/community/README.md Normal file
View File

View File

@ -1,15 +0,0 @@
---
sidebar: auto
---
# Config
## foo
- Type: `string`
- Default: `/`
## bar
- Type: `string`
- Default: `/`

1
docs/doc/README.md Normal file
View File

@ -0,0 +1 @@
# 文档中心

1
docs/doc/api.md Normal file
View File

@ -0,0 +1 @@
# API

1
docs/doc/appdev.md Normal file
View File

@ -0,0 +1 @@
# 应用开发

1
docs/doc/driver.md Normal file
View File

@ -0,0 +1 @@
# 驱动

1
docs/doc/intro.md Normal file
View File

@ -0,0 +1 @@
# 简介

1
docs/doc/kernel.md Normal file
View File

@ -0,0 +1 @@
# 内核

View File

@ -1,5 +0,0 @@
# Introduction
VuePress is composed of two parts: a [minimalistic static site generator](https://github.com/vuejs/vuepress/tree/master/packages/%40vuepress/core) with a Vue-powered [theming system](https://v1.vuepress.vuejs.org/theme/) and [Plugin API](https://v1.vuepress.vuejs.org/plugin/), and a [default theme](https://v1.vuepress.vuejs.org/theme/default-theme-config.html) optimized for writing technical documentation. It was created to support the documentation needs of Vue's own sub projects.
Each page generated by VuePress has its own pre-rendered static HTML, providing great loading performance and is SEO-friendly. Once the page is loaded, however, Vue takes over the static content and turns it into a full Single-Page Application (SPA). Additional pages are fetched on demand as the user navigates around the site.

View File

@ -1,9 +0,0 @@
# Using Vue in Markdown
## Browser API Access Restrictions
Because VuePress applications are server-rendered in Node.js when generating static builds, any Vue usage must conform to the [universal code requirements](https://ssr.vuejs.org/en/universal.html). In short, make sure to only access Browser / DOM APIs in `beforeMount` or `mounted` hooks.
If you are using or demoing components that are not SSR friendly (for example containing custom directives), you can wrap them inside the built-in `<ClientOnly>` component:
##

0
docs/resource/README.md Normal file
View File

View File

View File

@ -4,15 +4,15 @@
"description": "使能智能化制造, 促进人机物融合",
"main": "index.js",
"authors": {
"name": "",
"email": ""
"name": "XUOS Lab",
"email": "caodg@pku.edu.cn"
},
"repository": "",
"repository": "https://github.com/xuos/xuos-web",
"scripts": {
"dev": "vuepress dev docs",
"build": "vuepress build docs"
},
"license": "MIT",
"license": "Mulan",
"devDependencies": {
"vuepress": "^1.3.1",
"@vuepress/plugin-back-to-top": "^1.3.1",