mirror of
https://github.com/jellyfin/jellyfin.org.git
synced 2024-12-13 17:05:40 +00:00
171 lines
4.3 KiB
JavaScript
171 lines
4.3 KiB
JavaScript
/** @type {import('@docusaurus/types').DocusaurusConfig} */
|
|
module.exports = {
|
|
title: 'Jellyfin',
|
|
tagline: 'The Free Software Media System',
|
|
url: 'https://jellyfin.org',
|
|
baseUrl: '/',
|
|
onBrokenLinks: 'warn',
|
|
onBrokenMarkdownLinks: 'warn',
|
|
favicon: 'images/favicon.ico',
|
|
organizationName: 'jellyfin',
|
|
projectName: 'jellyfin.org',
|
|
/** @type {import('@docusaurus/types').ThemeConfig} */
|
|
themeConfig: {
|
|
image: 'images/social.png',
|
|
metadata: [
|
|
{ name: 'og:type', content: 'website' },
|
|
{ name: 'twitter:card', content: 'summary_large_image' },
|
|
{ name: 'twitter:site', content: '@jellyfin' }
|
|
],
|
|
colorMode: {
|
|
defaultMode: 'dark',
|
|
disableSwitch: true,
|
|
respectPrefersColorScheme: false
|
|
},
|
|
navbar: {
|
|
logo: {
|
|
alt: 'Jellyfin Logo',
|
|
src: 'images/logo.svg'
|
|
},
|
|
items: [
|
|
{ to: 'posts', label: 'Blog', position: 'right' },
|
|
{
|
|
to: 'downloads',
|
|
label: 'Downloads',
|
|
position: 'right'
|
|
},
|
|
{
|
|
to: 'contribute',
|
|
label: 'Contribute',
|
|
position: 'right'
|
|
},
|
|
{
|
|
type: 'doc',
|
|
docId: 'index',
|
|
label: 'Documentation',
|
|
position: 'right'
|
|
},
|
|
{
|
|
to: 'contact',
|
|
label: 'Contact',
|
|
position: 'right'
|
|
},
|
|
{
|
|
href: 'https://forum.jellyfin.org',
|
|
label: 'Forum',
|
|
position: 'right'
|
|
}
|
|
]
|
|
},
|
|
footer: {
|
|
logo: {
|
|
alt: 'Jellyfin Logo',
|
|
src: 'images/logo.svg',
|
|
width: 240,
|
|
height: 80
|
|
},
|
|
links: [
|
|
{
|
|
label: 'Documentation',
|
|
to: '/docs'
|
|
},
|
|
{
|
|
label: 'Feature Requests',
|
|
to: 'https://features.jellyfin.org'
|
|
},
|
|
{
|
|
label: 'Contribute',
|
|
to: '/contribute'
|
|
},
|
|
{
|
|
label: 'Status',
|
|
to: 'https://status.jellyfin.org'
|
|
},
|
|
{
|
|
label: 'Contact',
|
|
to: '/contact'
|
|
}
|
|
],
|
|
copyright: `<a href="https://github.com/jellyfin/jellyfin/releases/latest">
|
|
<img alt="Current Release" src="https://img.shields.io/github/release/jellyfin/jellyfin.svg"/>
|
|
</a>
|
|
<br/>
|
|
Site content is licensed <a href='http://creativecommons.org/licenses/by-nd/4.0/'>CC-BY-ND-4.0</a>`
|
|
}
|
|
},
|
|
plugins: [
|
|
// Main content
|
|
[
|
|
'@docusaurus/plugin-content-docs',
|
|
/** @type {import('@docusaurus/plugin-content-docs').Options} */
|
|
{
|
|
sidebarPath: require.resolve('./sidebars.js'),
|
|
editUrl: 'https://github.com/jellyfin/jellyfin.org/edit/master/'
|
|
}
|
|
],
|
|
[
|
|
'@docusaurus/plugin-content-blog',
|
|
/** @type {import('@docusaurus/plugin-content-blog').Options} */
|
|
{
|
|
id: 'blog-main',
|
|
routeBasePath: 'posts',
|
|
showReadingTime: true,
|
|
path: 'blog'
|
|
}
|
|
],
|
|
[
|
|
'@docusaurus/plugin-content-pages',
|
|
/** @type {import('@docusaurus/plugin-content-pages').Options} */
|
|
{}
|
|
],
|
|
// Others
|
|
[
|
|
'@docusaurus/plugin-sitemap',
|
|
/** @type {import('@docusaurus/plugin-sitemap').Options} */
|
|
{}
|
|
],
|
|
[
|
|
'docusaurus-plugin-sass',
|
|
/** @type {import('docusaurus-plugin-sass').Options} */
|
|
{}
|
|
],
|
|
[
|
|
'@docusaurus/plugin-client-redirects',
|
|
/** @type {import('@docusaurus/plugin-client-redirects').Options} */
|
|
{
|
|
fromExtensions: ['html'],
|
|
redirects: require('./redirects.js')
|
|
}
|
|
]
|
|
],
|
|
themes: [
|
|
[
|
|
require.resolve('@docusaurus/theme-classic'),
|
|
/** @type {import('@docusaurus/theme-classic').Options} */
|
|
{
|
|
customCss: [
|
|
require.resolve('@fontsource/noto-sans/index.css'),
|
|
require.resolve('./src/css/custom.scss'),
|
|
require.resolve('./src/css/swiper.scss')
|
|
]
|
|
}
|
|
],
|
|
[
|
|
require.resolve('@easyops-cn/docusaurus-search-local'),
|
|
/** @type {import('@easyops-cn/docusaurus-search-local').Options} */
|
|
{
|
|
hashed: true,
|
|
indexBlog: false,
|
|
indexPages: true,
|
|
blogRouteBasePath: '/posts',
|
|
ignoreFiles: [
|
|
// NOTE: We need to explicitly ignore the blog routes because it seems to fall through to the page indexing
|
|
'posts',
|
|
/^posts\//
|
|
],
|
|
explicitSearchResultPath: true
|
|
}
|
|
]
|
|
]
|
|
};
|