Skip to content

Commit

Permalink
Merge pull request #754 from jellyfin/nvv-redirects-file
Browse files Browse the repository at this point in the history
Move redirects to separate file
  • Loading branch information
Shadowghost authored Nov 27, 2023
2 parents 64a2e02 + 0dd6087 commit d4ed288
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 39 deletions.
40 changes: 1 addition & 39 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,45 +134,7 @@ Site content is licensed <a href='http://creativecommons.org/licenses/by-nd/4.0/
/** @type {import('@docusaurus/plugin-client-redirects').Options} */
{
fromExtensions: ['html'],
redirects: [
// These pages existed on the jellyfin-blog site, but were not fully configured
{
from: ['/categories', '/tags'],
to: '/posts'
},
// Jellyfin 10.8 and below linked to this subtitle docs page
{
from: ['/docs/general/server/media/subtitles', '/docs/general/server/media/subtitles.html'],
to: '/docs/general/server/media/external-files'
},
// Storage docs moved from the server guide to administrative docs
{
from: '/docs/general/server/storage',
to: '/docs/general/administration/storage'
},
// Unified client + server download pages
{
from: '/clients',
to: '/downloads/clients/'
},
{
from: '/clients/all',
to: '/downloads/clients/all'
},
// 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'
}
]
redirects: require('./redirects.js')
}
]
],
Expand Down
40 changes: 40 additions & 0 deletions redirects.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/** @type {import('@docusaurus/plugin-client-redirects').Options['redirects']} */
module.exports = [
// These pages existed on the jellyfin-blog site, but were not fully configured
{
from: ['/categories', '/tags'],
to: '/posts'
},
// Jellyfin 10.8 and below linked to this subtitle docs page
{
from: ['/docs/general/server/media/subtitles', '/docs/general/server/media/subtitles.html'],
to: '/docs/general/server/media/external-files'
},
// Storage docs moved from the server guide to administrative docs
{
from: '/docs/general/server/storage',
to: '/docs/general/administration/storage'
},
// Unified client + server download pages
{
from: '/clients',
to: '/downloads/clients/'
},
{
from: '/clients/all',
to: '/downloads/clients/all'
},
// 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'
}
];
1 change: 1 addition & 0 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
module.exports = {
// By default, Docusaurus generates a sidebar from the docs folder structure
docs: [
// "docs/general" pages
'index',
{ type: 'autogenerated', dirName: 'general' },
{ type: 'link', label: 'API Documentation', href: 'https://api.jellyfin.org' }
Expand Down

0 comments on commit d4ed288

Please sign in to comment.