167 lines
4.3 KiB
JavaScript
Executable File
167 lines
4.3 KiB
JavaScript
Executable File
const { description } = require('../../package')
|
||
const { name } = require('../../package')
|
||
|
||
const { getSidebarByCategory } = require('./sidebar')
|
||
|
||
module.exports = {
|
||
/**
|
||
* Ref:https://v1.vuepress.vuejs.org/config/#title
|
||
*/
|
||
title: "XiUOS 矽璓工业物联操作系统",
|
||
/**
|
||
* Ref:https://v1.vuepress.vuejs.org/config/#description
|
||
*/
|
||
description: description,
|
||
|
||
/**
|
||
* Extra tags to be injected to the page HTML `<head>`
|
||
*
|
||
* ref:https://v1.vuepress.vuejs.org/config/#head
|
||
*/
|
||
head: [
|
||
['link', { rel: "apple-touch-icon", sizes: "180x180", href: "/apple-icon.png"}],
|
||
['link', { rel: "icon", type: "image/png", sizes: "32x32", href: "/favicon-32x32.png"}],
|
||
['link', { rel: "icon", type: "image/png", sizes: "16x16", href: "/favicon-16x16.png"}],
|
||
['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.
|
||
*
|
||
* ref:https://v1.vuepress.vuejs.org/theme/default-theme-config.html
|
||
*/
|
||
themeConfig: {
|
||
repo: 'https://git.trustie.net/xuos/xiuos',
|
||
repoLabel: '源码',
|
||
editLinks: false,
|
||
docsDir: '',
|
||
editLinkText: '',
|
||
lastUpdated: true,
|
||
nav: [
|
||
{
|
||
text: '文档',
|
||
items: [
|
||
{
|
||
text: 'XiUOS 简介',
|
||
link: '/doc/intro.html',
|
||
},
|
||
{
|
||
text: '硬件设备',
|
||
link: '/doc/hardware/',
|
||
},
|
||
{
|
||
text: '系统内核',
|
||
link: '/doc/kernel/',
|
||
},
|
||
{
|
||
text: '功能构件',
|
||
link: '/doc/component/'
|
||
},
|
||
{
|
||
text: '应用框架',
|
||
link: '/doc/framework/'
|
||
},
|
||
{
|
||
text: '应用开发',
|
||
link: '/doc/appdev/',
|
||
},
|
||
{
|
||
text: '应用案例',
|
||
link: '/doc/demo/'
|
||
},
|
||
]
|
||
},
|
||
{
|
||
text: '资源',
|
||
link: '/resource/'
|
||
},
|
||
{
|
||
text: '社区',
|
||
items: [
|
||
{
|
||
text: '贡献代码',
|
||
link: '/community/contrib.html'
|
||
},
|
||
{
|
||
text: '完善文档',
|
||
link: '/community/webdoc.html'
|
||
},
|
||
{
|
||
text: '报告Bug',
|
||
link: '/community/bugreport.html'
|
||
},
|
||
]
|
||
},
|
||
{
|
||
text: '关于',
|
||
items: [
|
||
{
|
||
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('hardware','en')
|
||
},
|
||
{
|
||
title: '系统内核',
|
||
children: getSidebarByCategory('kernel','en')
|
||
},
|
||
{
|
||
title: '功能构件',
|
||
children: getSidebarByCategory('component','en')
|
||
},
|
||
{
|
||
title: '应用框架',
|
||
children: getSidebarByCategory('framework','en')
|
||
},
|
||
{
|
||
title: '应用开发',
|
||
children: getSidebarByCategory('appdev','en')
|
||
},
|
||
{
|
||
title: '应用案例',
|
||
children: getSidebarByCategory('demo','en')
|
||
},
|
||
],
|
||
'/community/': [
|
||
['contrib','贡献代码'],
|
||
['webdoc','完善文档'],
|
||
['bugreport','报告Bug']
|
||
],
|
||
'/about/': [
|
||
['xuos','泛在操作系统研究计划'],
|
||
['contact','联系方式'],
|
||
['license','开源许可']
|
||
]
|
||
}
|
||
},
|
||
|
||
/**
|
||
* Apply plugins,ref:https://v1.vuepress.vuejs.org/zh/plugin/
|
||
*/
|
||
plugins: [
|
||
'@vuepress/plugin-back-to-top',
|
||
'@vuepress/plugin-medium-zoom',
|
||
]
|
||
}
|