xuos-web/docs/.vuepress/config.js

182 lines
4.4 KiB
JavaScript
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const { description } = require('../../package')
const { name } = require('../../package')
const { getSidebarByCategory } = require('./sidebar')
module.exports = {
/**
* Refhttps://v1.vuepress.vuejs.org/config/#title
*/
title: "XiUOS 未名工业物联操作系统",
/**
* Refhttps://v1.vuepress.vuejs.org/config/#description
*/
description: description,
/**
* Extra tags to be injected to the page HTML `<head>`
*
* refhttps://v1.vuepress.vuejs.org/config/#head
*/
head: [
['meta', { name: 'theme-color', content: '#3eaf7c' }],
['meta', { name: 'apple-mobile-web-app-capable', content: 'yes' }],
['meta', { name: 'apple-mobile-web-app-status-bar-style', content: 'black' }]
],
/**
* Theme configuration, here is the default theme configuration for VuePress.
*
* refhttps://v1.vuepress.vuejs.org/theme/default-theme-config.html
*/
themeConfig: {
repo: 'https://github.com/xuos/xuos',
editLinks: false,
docsDir: '',
editLinkText: '',
lastUpdated: true,
nav: [
{
text: '文档',
items: [
{
text: 'XiUOS 简介',
link: '/doc/intro.html',
},
{
text: '内核',
link: '/doc/kernel/',
},
{
text: '组件',
link: '/doc/component/'
},
{
text: '处理器',
link: '/doc/processor/',
},
{
text: '通信器',
link: '/doc/communication/',
},
{
text: '传感器',
link: '/doc/sensor/',
},
{
text: '控制器',
link: '/doc/controller/',
},
{
text: '开发板',
link: '/doc/board/',
},
{
text: '自研终端',
link: '/doc/selfterminal/'
},
{
text: '应用框架',
link: '/doc/apparch/'
},
{
text: '快速上手',
link: '/doc/appdev/',
}
]
},
{
text: '资源',
link: '/resource/',
},
{
text: '社区',
link: '/community/',
},
{
text: '关于',
items: [
{
text: '项目概况',
link: '/about/index.html',
},
{
text: '未名泛在操作系统计划',
link: '/about/xuos.html',
},
{
text: '联系方式',
link: '/about/contact.html',
},
{
text: '开源许可',
link: '/about/license.html',
},
]
},
],
sidebar: {
'/doc/': [
{
title: '简介',
children: getSidebarByCategory('intro','en')
},
{
title: '内核',
children: getSidebarByCategory('kernel','en')
},
{
title: '组件',
children: getSidebarByCategory('component','en')
},
{
title: '处理器',
children: getSidebarByCategory('processor','en')
},
{
title: '通信器',
children: getSidebarByCategory('communication','en')
},
{
title: '传感器',
children: getSidebarByCategory('sensor','en')
},
{
title: '控制器',
children: getSidebarByCategory('controller','en')
},
{
title: '开发板',
children: getSidebarByCategory('board','en')
},
{
title: '自研终端',
children: getSidebarByCategory('selfterminal','en')
},
{
title: '应用框架',
children: getSidebarByCategory('apparch','en')
},
{
title: '快速上手',
children: getSidebarByCategory('appdev','en')
}
],
'/about/': [
['','项目概况'],
['xuos','XiUOS操作系统计划'],
['contact','联系方式'],
['license','开源协议']
]
}
},
/**
* Apply pluginsrefhttps://v1.vuepress.vuejs.org/zh/plugin/
*/
plugins: [
'@vuepress/plugin-back-to-top',
'@vuepress/plugin-medium-zoom',
]
}