mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-30 20:21:20 -08:00
Artplayer vitepress (#446)
* init * init * update * update * update * update * update * update * add i18n option * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update
This commit is contained in:
1 parent
6a866f88c3
commit
fa7954de0d
295 files changed
+18695
-36337
No files matched your search
@@ -0,0 +1,140 @@
|
||||
/**
|
||||
* @type {import('vitepress').UserConfig}
|
||||
*/
|
||||
const config = {
|
||||
base: '/document/',
|
||||
outDir: '../../../docs/document',
|
||||
title: 'Artplayer.js',
|
||||
appearance: 'dark',
|
||||
lastUpdated: true,
|
||||
description: 'ArtPlayer.js is a modern and full featured HTML5 video player',
|
||||
themeConfig: {
|
||||
siteTitle: 'Artplayer.js',
|
||||
logo: '/logo.png',
|
||||
nav: [
|
||||
{ text: '中文版', link: '/' },
|
||||
{ text: 'English', link: '/en/', activeMatch: '/en/' },
|
||||
{ text: 'Online Editor', link: 'https://artplayer.org' },
|
||||
{ text: 'QQ群: 320881312', link: '#' },
|
||||
{
|
||||
text: '4.6.x',
|
||||
items: [
|
||||
{ text: 'Changelog', link: 'https://github.com/zhw2590582/ArtPlayer/blob/master/CHANGELOG_CN.md' },
|
||||
]
|
||||
}
|
||||
],
|
||||
socialLinks: [
|
||||
{ icon: 'github', link: 'https://github.com/zhw2590582/ArtPlayer' },
|
||||
],
|
||||
sidebar: {
|
||||
'/': [
|
||||
{
|
||||
text: '开始',
|
||||
collapsible: true,
|
||||
items: [
|
||||
{ text: '安装使用', link: '/' },
|
||||
{ text: '基础选项', link: '/start/option' },
|
||||
{ text: '组件配置', link: '/start/component' },
|
||||
{ text: '设置面板', link: '/start/setting' },
|
||||
]
|
||||
},
|
||||
{
|
||||
text: '高级',
|
||||
collapsible: true,
|
||||
items: [
|
||||
{ text: '实例属性', link: '/advanced/property' },
|
||||
{ text: '高级属性', link: '/advanced/built-in' },
|
||||
{ text: '静态属性', link: '/advanced/class' },
|
||||
{ text: '实例事件', link: '/advanced/event' },
|
||||
{ text: '编写插件', link: '/advanced/plugin' },
|
||||
]
|
||||
},
|
||||
{
|
||||
text: '插件',
|
||||
collapsible: true,
|
||||
items: [
|
||||
{ text: '弹幕库', link: '/plugin/danmuku' },
|
||||
{ text: '视频广告', link: '/plugin/ads' },
|
||||
{ text: 'Iframe 控制', link: '/plugin/iframe' },
|
||||
{ text: 'HLS 画质', link: '/plugin/hls-quality' },
|
||||
{ text: '控制器皮肤', link: '/plugin/control-ui' },
|
||||
]
|
||||
},
|
||||
{
|
||||
text: '第三方库',
|
||||
collapsible: true,
|
||||
items: [
|
||||
{ text: 'hls.js', link: '/library/hls' },
|
||||
{ text: 'flv.js', link: '/library/flv' },
|
||||
{ text: 'dash.js', link: '/library/dash' },
|
||||
]
|
||||
},
|
||||
],
|
||||
'/en/': [
|
||||
{
|
||||
text: 'Quick start',
|
||||
collapsible: true,
|
||||
items: [
|
||||
{ text: 'Install', link: '/en/' },
|
||||
{ text: 'Option', link: '/en/start/option' },
|
||||
{ text: 'Component', link: '/en/start/component' },
|
||||
{ text: 'Setting', link: '/en/start/setting' },
|
||||
]
|
||||
},
|
||||
{
|
||||
text: 'Advanced',
|
||||
collapsible: true,
|
||||
items: [
|
||||
{ text: 'Instance Property', link: '/en/advanced/property' },
|
||||
{ text: 'Advanced Property', link: '/en/advanced/built-in' },
|
||||
{ text: 'Static Property', link: '/en/advanced/class' },
|
||||
{ text: 'Instance Event', link: '/en/advanced/event' },
|
||||
{ text: 'Writing Plugin', link: '/en/advanced/plugin' },
|
||||
]
|
||||
},
|
||||
{
|
||||
text: 'Plugins',
|
||||
collapsible: true,
|
||||
items: [
|
||||
{ text: 'Video Ads', link: '/en/plugin/ads' },
|
||||
{ text: 'Iframe Control', link: '/en/plugin/iframe' },
|
||||
{ text: 'HLS Quality', link: '/en/plugin/hls-quality' },
|
||||
{ text: 'Control UI', link: '/en/plugin/control-ui' },
|
||||
]
|
||||
},
|
||||
{
|
||||
text: 'Libraries',
|
||||
collapsible: true,
|
||||
items: [
|
||||
{ text: 'hls.js', link: '/en/library/hls' },
|
||||
{ text: 'flv.js', link: '/en/library/flv' },
|
||||
{ text: 'dash.js', link: '/en/library/dash' },
|
||||
]
|
||||
},
|
||||
],
|
||||
},
|
||||
editLink: {
|
||||
pattern: 'https://github.com/zhw2590582/ArtPlayer/packages/artplayer-vitepress/docs/:path',
|
||||
text: 'Edit this page on GitHub'
|
||||
},
|
||||
},
|
||||
markdown: {
|
||||
lineNumbers: true
|
||||
},
|
||||
head: [
|
||||
[
|
||||
'script',
|
||||
{ src: "/main.js" }
|
||||
],
|
||||
[
|
||||
'link',
|
||||
{ rel: "stylesheet", href: "/style.css" }
|
||||
],
|
||||
[
|
||||
'link',
|
||||
{ rel: "shortcut icon", href: "/favicon.ico" }
|
||||
]
|
||||
]
|
||||
}
|
||||
|
||||
export default config
|
||||
Reference in new issue
Block a user