Skip to content
This repository was archived by the owner on May 26, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,19 @@ const NextConfig = {
},
redirects: async () => ([
{
source: '/docs/v1.:major.:minor/:slug*',
destination: '/docs/latest/:slug*',
source: '/docs/v2:any?/:path*',
destination: '/docs/latest/:path*',
permanent: false
},
{
source: '/docs/v:major.:minor.:patch/:path*',
destination: '/docs/v:major/:path*',
permanent: true
},
{
source: '/github/v:major.:minor.:patch/:path*',
destination: 'https://github.com/python-thread/thread/releases/tag/v:major.:minor.:patch',
permanent: true
}
])
}
Expand Down
11 changes: 5 additions & 6 deletions src/pages/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,14 @@
"title": "Documentation",
"type": "menu",
"items": {
"development-progress": {
"title": "1.X.X Development",
"href": "https://github.com/python-thread/thread",
"newWindow": true
},
"latest-release": {
"title": "1.1.1 Latest Release",
"title": "2.0.0 Latest Release",
"href": "/docs/latest"
},
"v1-release": {
"title": "1.0.1 Release",
"href": "/docs/v1"
},
"all-releases": {
"title": "All Releases",
"href": "/docs"
Expand Down
3 changes: 2 additions & 1 deletion src/pages/docs/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"timestamp": false
}
},
"latest": "v1.1.1 Latest"
"latest": "v2.0.0 Latest",
"v1": "v1.1.1"
}
100 changes: 92 additions & 8 deletions src/pages/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,26 +40,110 @@ export function Text({ children, className }) {return <p className={cn('text-sm
This is a list of all the available releases.

<div className='flex flex-wrap items-center justify-center gap-8 mt-12'>
<VersionLink className='w-56 flex-col items-start' href='https://github.com/python-thread/thread'>
<VersionLink className='w-56 flex-col justify-between items-start' href='/docs/v2'>
<div className='flex flex-row items-center gap-2'>
<ExternalLinkIcon className='w-6 h-6' />
<Text className='text-lg font-bold'>Development</Text>
<Text className='text-lg font-bold'>Latest v2.0.0</Text>
</div>
<Text className='text-sm font-light text-left ml-4'>This is the latest ***stable*** release.</Text>
<div className='flex flex-row self-end mt-auto mb-1 gap-2'>
<StatusBadge variant='latest'>latest</StatusBadge>
<StatusBadge variant='stable'>stable</StatusBadge>
</div>
<Text className='text-sm font-light text-left ml-4'>This is the latest ***in-development*** branch. This may be unstable.</Text>
<StatusBadge variant='dev' className='self-end mt-auto mb-1'>dev</StatusBadge>
</VersionLink>
<VersionLink className='w-56 flex-col justify-between items-start' href='/docs/latest'>
<VersionLink className='w-56 flex-col justify-between items-start' href='/docs/v1'>
<div className='flex flex-row items-center gap-2'>
<ExternalLinkIcon className='w-6 h-6' />
<Text className='text-lg font-bold'>Latest 1.1.1</Text>
<Text className='text-lg font-bold'>v1.1.1</Text>
</div>
<Text className='text-sm font-light text-left ml-4'>This is the latest ***stable*** release.</Text>
<Text className='text-sm font-light text-left ml-4'>This is the last ***stable*** v1.1.1 release.</Text>
<div className='flex flex-row self-end mt-auto mb-1 gap-2'>
<StatusBadge variant='latest'>latest</StatusBadge>
<StatusBadge variant='stable'>stable</StatusBadge>
</div>
</VersionLink>
</div>

<div className="w-1/3 mt-10 mb-5 h-[0.1rem] mx-auto rounded bg-black/50 dark:bg-white/50" />

<div className="mx-auto items-center flex flex-col gap-4 w-2/5">
<Link target="_blank" href='https://github.com/python-thread/thread' className="flex flex-row w-full justify-between px-4 py-2 rounded-md items-center text-sm font-light hover:bg-neutral-100/40 dark:hover:bg-neutral-800/20 transition-all">
<div className="flex flex-col justify-between">
<h1 className="font-normal text-lg">Development</h1>
<p>Now</p>
</div>
<StatusBadge variant='dev'>dev</StatusBadge>
</Link>
<Link target="_blank" href='/github/v2.0.0' className="flex flex-row w-full justify-between px-4 py-2 rounded-md items-center text-sm font-light hover:bg-neutral-100/40 dark:hover:bg-neutral-800/20 transition-all">
<div className="flex flex-col justify-between">
<h1 className="font-normal text-lg">Release v2.0.0</h1>
<p>21 April 2024</p>
</div>
<StatusBadge variant='stable'>stable</StatusBadge>
</Link>
<Link target="_blank" href='/github/v1.1.1' className="flex flex-row w-full justify-between px-4 py-2 rounded-md items-center text-sm font-light hover:bg-neutral-100/40 dark:hover:bg-neutral-800/20 transition-all">
<div className="flex flex-col justify-between">
<h1 className="font-normal text-lg">Release v1.1.1</h1>
<p>17 March 2024</p>
</div>
<StatusBadge variant='stable'>stable</StatusBadge>
</Link>
<Link target="_blank" href='/github/v1.1.0' className="flex flex-row w-full justify-between px-4 py-2 rounded-md items-center text-sm font-light hover:bg-neutral-100/40 dark:hover:bg-neutral-800/20 transition-all">
<div className="flex flex-col justify-between">
<h1 className="font-normal text-lg">Release v1.1.0</h1>
<p>17 March 2024</p>
</div>
<StatusBadge variant='stable'>stable</StatusBadge>
</Link>
<Link target="_blank" href='/github/v1.0.1' className="flex flex-row w-full justify-between px-4 py-2 rounded-md items-center text-sm font-light hover:bg-neutral-100/40 dark:hover:bg-neutral-800/20 transition-all">
<div className="flex flex-col justify-between">
<h1 className="font-normal text-lg">Release v1.0.1</h1>
<p>12 March 2024</p>
</div>
<StatusBadge variant='stable'>stable</StatusBadge>
</Link>
<Link target="_blank" href='/github/v1.0.0' className="flex flex-row w-full justify-between px-4 py-2 rounded-md items-center text-sm font-light hover:bg-neutral-100/40 dark:hover:bg-neutral-800/20 transition-all">
<div className="flex flex-col justify-between">
<h1 className="font-normal text-lg">Release v1.0.0</h1>
<p>9 March 2024</p>
</div>
<StatusBadge variant='stable'>stable</StatusBadge>
</Link>
<Link target="_blank" href='/github/v0.1.3' className="flex flex-row w-full justify-between px-4 py-2 rounded-md items-center text-sm font-light hover:bg-neutral-100/40 dark:hover:bg-neutral-800/20 transition-all">
<div className="flex flex-col justify-between">
<h1 className="font-normal text-lg">Release v0.1.3</h1>
<p>10 December 2023</p>
</div>
<StatusBadge variant='stable'>stable</StatusBadge>
</Link>
<Link target="_blank" href='/github/v0.1.2' className="flex flex-row w-full justify-between px-4 py-2 rounded-md items-center text-sm font-light hover:bg-neutral-100/40 dark:hover:bg-neutral-800/20 transition-all">
<div className="flex flex-col justify-between">
<h1 className="font-normal text-lg">Release v0.1.2</h1>
<p>16 November 2023</p>
</div>
<StatusBadge variant='stable'>stable</StatusBadge>
</Link>
<Link target="_blank" href='/github/v0.1.1' className="flex flex-row w-full justify-between px-4 py-2 rounded-md items-center text-sm font-light hover:bg-neutral-100/40 dark:hover:bg-neutral-800/20 transition-all">
<div className="flex flex-col justify-between">
<h1 className="font-normal text-lg">Release v0.1.1</h1>
<p>14 November 2023</p>
</div>
<StatusBadge variant='stable'>stable</StatusBadge>
</Link>
<Link target="_blank" href='/github/v0.1.0' className="flex flex-row w-full justify-between px-4 py-2 rounded-md items-center text-sm font-light hover:bg-neutral-100/40 dark:hover:bg-neutral-800/20 transition-all">
<div className="flex flex-col justify-between">
<h1 className="font-normal text-lg">Release v0.1.0</h1>
<p>14 November 2023</p>
</div>
<StatusBadge variant='stable'>stable</StatusBadge>
</Link>
<Link target="_blank" href='/github/v0.0.1' className="flex flex-row w-full justify-between px-4 py-2 rounded-md items-center text-sm font-light hover:bg-neutral-100/40 dark:hover:bg-neutral-800/20 transition-all">
<div className="flex flex-col justify-between">
<h1 className="font-normal text-lg">Release v0.0.1</h1>
<p>14 November 2023</p>
</div>
<StatusBadge variant='stable'>stable</StatusBadge>
</Link>
</div>

</div>

2 changes: 1 addition & 1 deletion src/pages/docs/latest/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"installation": "Installation",
"configuration": "Configuration",
"thread-class": "Thread Class",
"parallel-processing": "Parallel Processing",
"concurrent-processing": "Concurrent Processing",
"exceptions": "Exceptions",
"command-line-interface": "Command Line Interface"
}
Loading