Files
jellyfin.org/docusaurus.config.js
T

175 lines
4.6 KiB
JavaScript
Raw Normal View History

2021-05-06 09:16:19 +02:00
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: 'Jellyfin',
tagline: 'The Free Software Media System',
2022-10-19 02:22:20 -04:00
url: 'https://jellyfin.org',
2021-05-06 09:16:19 +02:00
baseUrl: '/',
2021-06-13 10:07:40 +02:00
onBrokenLinks: 'warn',
2021-05-06 09:16:19 +02:00
onBrokenMarkdownLinks: 'warn',
2022-07-28 15:15:48 -04:00
favicon: 'images/favicon.ico',
organizationName: 'jellyfin',
projectName: 'jellyfin.org',
2021-05-06 09:16:19 +02:00
themeConfig: {
2022-07-28 15:15:48 -04:00
image: 'images/social.png',
2022-07-27 14:23:39 -04:00
metadata: [
2021-05-08 06:02:33 +02:00
{ name: 'og:type', content: 'website' },
{ name: 'twitter:card', content: 'summary_large_image' },
{ name: 'twitter:site', content: '@jellyfin' }
],
2021-05-06 14:34:40 +02:00
colorMode: {
2022-08-24 12:14:16 -04:00
defaultMode: 'dark',
2021-05-06 14:34:40 +02:00
disableSwitch: true,
respectPrefersColorScheme: false
},
2021-05-06 09:16:19 +02:00
navbar: {
logo: {
2022-07-29 01:39:12 -04:00
alt: 'Jellyfin Logo',
2022-07-28 15:15:48 -04:00
src: 'images/logo.svg'
2021-05-06 09:16:19 +02:00
},
items: [
2022-07-28 16:55:55 -04:00
{ to: 'posts', label: 'Blog', position: 'right' },
2021-05-06 09:16:19 +02:00
{
2021-05-06 15:01:16 +02:00
to: 'downloads',
label: 'Downloads',
2021-06-13 10:07:40 +02:00
position: 'right'
2021-05-06 14:34:40 +02:00
},
{
2021-05-06 15:01:16 +02:00
to: 'contribute',
label: 'Contribute',
2021-06-13 10:07:40 +02:00
position: 'right'
2021-05-06 14:34:40 +02:00
},
{
2021-05-06 14:46:55 +02:00
type: 'doc',
2022-08-18 12:35:55 -04:00
docId: 'index',
2021-05-06 15:01:16 +02:00
label: 'Documentation',
2021-06-13 10:07:40 +02:00
position: 'right'
2021-05-06 14:34:40 +02:00
},
{
2021-05-06 15:01:16 +02:00
to: 'contact',
label: 'Contact',
2021-06-13 10:07:40 +02:00
position: 'right'
}
]
2021-05-06 09:16:19 +02:00
},
footer: {
2022-07-29 01:39:12 -04:00
logo: {
alt: 'Jellyfin Logo',
src: 'images/logo.svg',
width: 240,
height: 80
},
2021-05-06 09:16:19 +02:00
links: [
{
2022-07-29 01:39:12 -04:00
label: 'Documentation',
2022-08-18 12:35:55 -04:00
to: '/docs'
2021-05-06 09:16:19 +02:00
},
{
2022-07-29 01:39:12 -04:00
label: 'Feature Requests',
to: 'https://features.jellyfin.org'
2021-05-06 09:16:19 +02:00
},
{
2022-07-29 01:39:12 -04:00
label: 'Contribute',
to: '/contribute'
},
{
label: 'Contact',
to: '/contact'
2022-08-04 13:28:54 -04:00
}
2021-05-06 09:16:19 +02:00
],
2022-08-29 23:27:15 -04:00
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>`
2021-06-13 10:07:40 +02:00
}
2021-05-06 09:16:19 +02:00
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
2021-06-13 10:07:40 +02:00
editUrl: 'https://github.com/jellyfin/jellyfin.org/edit/master/'
2021-05-06 09:16:19 +02:00
},
blog: {
2022-07-27 12:15:54 -04:00
routeBasePath: 'posts',
2021-06-13 10:07:40 +02:00
showReadingTime: true
2021-05-06 09:16:19 +02:00
},
theme: {
2022-09-08 16:49:52 -04:00
customCss: [
require.resolve('@fontsource/noto-sans/index.css'),
2022-10-06 22:29:51 +02:00
require.resolve('./src/css/custom.scss'),
require.resolve('./src/css/swiper.scss')
2022-09-08 16:49:52 -04:00
]
2021-06-13 10:07:40 +02:00
}
}
]
2022-08-18 11:14:34 -04:00
],
plugins: [
2022-10-06 22:29:51 +02:00
'docusaurus-plugin-sass',
2022-08-18 11:14:34 -04:00
[
'@docusaurus/plugin-client-redirects',
{
2022-08-24 01:22:15 -04:00
fromExtensions: ['html'],
redirects: [
2022-09-16 18:12:41 -04:00
// These pages existed on the jellyfin-blog site, but were not fully configured
2022-08-24 01:22:15 -04:00
{
from: ['/categories', '/tags'],
to: '/posts'
2022-09-16 18:12:41 -04:00
},
// Jellyfin 10.8 and below linked to this subtitle docs page
{
from: '/docs/general/server/media/subtitles',
to: '/docs/general/server/media/external-files'
2022-09-20 01:01:26 -04:00
},
// Storage docs moved from the server guide to administrative docs
{
from: '/docs/general/server/storage',
to: '/docs/general/administration/storage'
2022-12-09 01:47:23 -05:00
},
// Unified client + server download pages
{
from: '/clients',
to: '/downloads/clients/'
},
{
from: '/clients/all',
to: '/downloads/clients/all'
2022-12-14 22:10:21 +01:00
},
// New installation documentation
{
from: '/docs/general/administration/installing',
to: '/docs/general/installation/'
},
{
from: '/docs/general/administration/install/synology',
to: '/docs/general/installation/synology'
},
{
from: '/docs/general/administration/building',
to: '/docs/general/installation/source'
2022-08-24 01:22:15 -04:00
}
]
2022-08-18 11:14:34 -04:00
}
]
2022-08-28 02:12:25 -04:00
],
themes: [
[
require.resolve('@easyops-cn/docusaurus-search-local'),
{
hashed: true,
2022-09-14 17:19:06 -04:00
indexBlog: false,
2022-08-28 22:52:08 -04:00
indexPages: true,
blogRouteBasePath: '/posts',
2022-09-14 17:19:06 -04:00
ignoreFiles: [
// NOTE: We need to explicitly ignore the blog routes because it seems to fall through to the page indexing
'posts',
/^posts\//
],
explicitSearchResultPath: true
2022-08-28 02:12:25 -04:00
}
]
2021-06-13 10:07:40 +02:00
]
2021-05-06 09:16:19 +02:00
};