Skip to content

Commit

Permalink
Add dedicated dotnet tab for dotnet protable build
Browse files Browse the repository at this point in the history
We are listing these portable builds under all OS tabs, which may confuse users because each OS also has its own platform-specific builds that we refer to as “portable” in our documentation. To avoid confusion, separate the tabs accordingly.
  • Loading branch information
gnattu committed Aug 14, 2024
1 parent 0550ead commit 8746bde
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/data/downloads.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ export enum OsType {
Docker,
Linux,
MacOS,
Windows
Windows,
DotNet,
}

export type Button = {
Expand Down Expand Up @@ -275,11 +276,11 @@ sudo apt install jellyfin`}
{
id: 'portable',
name: 'Portable',
osTypes: [OsType.Linux, OsType.MacOS, OsType.Windows],
osTypes: [OsType.DotNet],
status: DownloadStatus.Official,
features: [],
platforms: [Platform.DotNet],
description: 'The portable version can be run on any system with a .NET Core runtime.',
description: 'The portable version can be run on any system with a .NET runtime.',
stableButtons: [
{
id: 'portable-manual-stable-link',
Expand Down
8 changes: 8 additions & 0 deletions src/pages/downloads/dotnet.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import React from 'react';

import DownloadsPage from './server';
import { OsType } from '../../data/downloads';

export default function DotNetDownloads() {
return <DownloadsPage osType={OsType.DotNet} />;
}
6 changes: 6 additions & 0 deletions src/pages/downloads/server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ export default function DownloadsPage({ osType = OsType.Linux }: { osType?: OsTy
>
macOS
</Link>
<Link
to='/downloads/dotnet'
className={clsx('pills__item', { 'pills__item--active': osType === OsType.DotNet })}
>
DotNet
</Link>
</div>
</div>

Expand Down

0 comments on commit 8746bde

Please sign in to comment.