mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-08 19:06:15 -08:00
93 lines
2.9 KiB
JavaScript
93 lines
2.9 KiB
JavaScript
const lightCodeTheme = require('prism-react-renderer/themes/github');
|
|
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
|
|
|
|
module.exports = {
|
|
title: 'Artplayer.js',
|
|
tagline: 'Public Product Api Document',
|
|
url: 'https://artplayer.org',
|
|
baseUrl: '/document/',
|
|
onBrokenLinks: 'ignore',
|
|
onBrokenMarkdownLinks: 'ignore',
|
|
organizationName: 'zhw2590582',
|
|
projectName: 'Artplayer',
|
|
favicon: 'img/favicon.ico',
|
|
clientModules: [require.resolve('./src/script/main.js')],
|
|
themeConfig: {
|
|
hideableSidebar: true,
|
|
navbar: {
|
|
title: 'Artplayer.js',
|
|
items: [
|
|
{
|
|
href: 'https://artplayer.org',
|
|
position: 'left',
|
|
label: 'Online Editor',
|
|
},
|
|
{
|
|
href: 'https://artplayer.org/?libs=.%2Funcompiled%2Fartplayer-plugin-danmuku.js&example=danmuku',
|
|
position: 'left',
|
|
label: 'Danmuku Demo',
|
|
},
|
|
{
|
|
href: 'https://github.com/zhw2590582/ArtPlayer',
|
|
position: 'left',
|
|
label: 'Github',
|
|
},
|
|
{
|
|
href: '#',
|
|
label: 'QQ群: 320881312',
|
|
position: 'right',
|
|
},
|
|
{
|
|
label: 'v 4.x.x',
|
|
position: 'right',
|
|
items: [
|
|
{
|
|
label: 'v 3.x.x',
|
|
href: 'https://artplayer.org/document_v3/',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
label: 'English',
|
|
position: 'right',
|
|
items: [
|
|
{
|
|
label: 'English',
|
|
href: '/',
|
|
},
|
|
{
|
|
label: '中文',
|
|
href: '/zh-cn/',
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
footer: {
|
|
style: 'dark',
|
|
copyright: `Copyright © ${new Date().getFullYear()} Artplayer.js, Inc. Built with Docusaurus.`,
|
|
},
|
|
prism: {
|
|
theme: lightCodeTheme,
|
|
darkTheme: darkCodeTheme,
|
|
},
|
|
},
|
|
plugins: [require.resolve('docusaurus-lunr-search')],
|
|
presets: [
|
|
[
|
|
'@docusaurus/preset-classic',
|
|
{
|
|
docs: {
|
|
path: './docs',
|
|
routeBasePath: '/',
|
|
sidebarPath: require.resolve('./sidebars.js'),
|
|
},
|
|
blog: false,
|
|
theme: {
|
|
customCss: require.resolve('./src/css/custom.css'),
|
|
},
|
|
},
|
|
],
|
|
],
|
|
};
|