Skip to content
This repository was archived by the owner on May 26, 2024. It is now read-only.

Commit cc79223

Browse files
Merge pull request #53 from python-thread/feature/v2.0.0
Update documentation for v2.0.0 Signed-off-by: AlexNg <[email protected]>
2 parents 139fdfa + a0770a0 commit cc79223

18 files changed

+1918
-30
lines changed

next.config.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,19 @@ const NextConfig = {
1717
},
1818
redirects: async () => ([
1919
{
20-
source: '/docs/v1.:major.:minor/:slug*',
21-
destination: '/docs/latest/:slug*',
20+
source: '/docs/v2:any?/:path*',
21+
destination: '/docs/latest/:path*',
2222
permanent: false
23+
},
24+
{
25+
source: '/docs/v:major.:minor.:patch/:path*',
26+
destination: '/docs/v:major/:path*',
27+
permanent: true
28+
},
29+
{
30+
source: '/github/v:major.:minor.:patch/:path*',
31+
destination: 'https://github.com/python-thread/thread/releases/tag/v:major.:minor.:patch',
32+
permanent: true
2333
}
2434
])
2535
}

src/pages/_meta.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,14 @@
1414
"title": "Documentation",
1515
"type": "menu",
1616
"items": {
17-
"development-progress": {
18-
"title": "1.X.X Development",
19-
"href": "https://github.com/python-thread/thread",
20-
"newWindow": true
21-
},
2217
"latest-release": {
23-
"title": "1.1.1 Latest Release",
18+
"title": "2.0.0 Latest Release",
2419
"href": "/docs/latest"
2520
},
21+
"v1-release": {
22+
"title": "1.0.1 Release",
23+
"href": "/docs/v1"
24+
},
2625
"all-releases": {
2726
"title": "All Releases",
2827
"href": "/docs"

src/pages/docs/_meta.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@
1010
"timestamp": false
1111
}
1212
},
13-
"latest": "v1.1.1 Latest"
13+
"latest": "v2.0.0 Latest",
14+
"v1": "v1.1.1"
1415
}

src/pages/docs/index.mdx

Lines changed: 92 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,26 +40,110 @@ export function Text({ children, className }) {return <p className={cn('text-sm
4040
This is a list of all the available releases.
4141

4242
<div className='flex flex-wrap items-center justify-center gap-8 mt-12'>
43-
<VersionLink className='w-56 flex-col items-start' href='https://github.com/python-thread/thread'>
43+
<VersionLink className='w-56 flex-col justify-between items-start' href='/docs/v2'>
4444
<div className='flex flex-row items-center gap-2'>
4545
<ExternalLinkIcon className='w-6 h-6' />
46-
<Text className='text-lg font-bold'>Development</Text>
46+
<Text className='text-lg font-bold'>Latest v2.0.0</Text>
47+
</div>
48+
<Text className='text-sm font-light text-left ml-4'>This is the latest ***stable*** release.</Text>
49+
<div className='flex flex-row self-end mt-auto mb-1 gap-2'>
50+
<StatusBadge variant='latest'>latest</StatusBadge>
51+
<StatusBadge variant='stable'>stable</StatusBadge>
4752
</div>
48-
<Text className='text-sm font-light text-left ml-4'>This is the latest ***in-development*** branch. This may be unstable.</Text>
49-
<StatusBadge variant='dev' className='self-end mt-auto mb-1'>dev</StatusBadge>
5053
</VersionLink>
51-
<VersionLink className='w-56 flex-col justify-between items-start' href='/docs/latest'>
54+
<VersionLink className='w-56 flex-col justify-between items-start' href='/docs/v1'>
5255
<div className='flex flex-row items-center gap-2'>
5356
<ExternalLinkIcon className='w-6 h-6' />
54-
<Text className='text-lg font-bold'>Latest 1.1.1</Text>
57+
<Text className='text-lg font-bold'>v1.1.1</Text>
5558
</div>
56-
<Text className='text-sm font-light text-left ml-4'>This is the latest ***stable*** release.</Text>
59+
<Text className='text-sm font-light text-left ml-4'>This is the last ***stable*** v1.1.1 release.</Text>
5760
<div className='flex flex-row self-end mt-auto mb-1 gap-2'>
58-
<StatusBadge variant='latest'>latest</StatusBadge>
5961
<StatusBadge variant='stable'>stable</StatusBadge>
6062
</div>
6163
</VersionLink>
6264
</div>
6365

66+
<div className="w-1/3 mt-10 mb-5 h-[0.1rem] mx-auto rounded bg-black/50 dark:bg-white/50" />
67+
68+
<div className="mx-auto items-center flex flex-col gap-4 w-2/5">
69+
<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">
70+
<div className="flex flex-col justify-between">
71+
<h1 className="font-normal text-lg">Development</h1>
72+
<p>Now</p>
73+
</div>
74+
<StatusBadge variant='dev'>dev</StatusBadge>
75+
</Link>
76+
<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">
77+
<div className="flex flex-col justify-between">
78+
<h1 className="font-normal text-lg">Release v2.0.0</h1>
79+
<p>21 April 2024</p>
80+
</div>
81+
<StatusBadge variant='stable'>stable</StatusBadge>
82+
</Link>
83+
<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">
84+
<div className="flex flex-col justify-between">
85+
<h1 className="font-normal text-lg">Release v1.1.1</h1>
86+
<p>17 March 2024</p>
87+
</div>
88+
<StatusBadge variant='stable'>stable</StatusBadge>
89+
</Link>
90+
<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">
91+
<div className="flex flex-col justify-between">
92+
<h1 className="font-normal text-lg">Release v1.1.0</h1>
93+
<p>17 March 2024</p>
94+
</div>
95+
<StatusBadge variant='stable'>stable</StatusBadge>
96+
</Link>
97+
<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">
98+
<div className="flex flex-col justify-between">
99+
<h1 className="font-normal text-lg">Release v1.0.1</h1>
100+
<p>12 March 2024</p>
101+
</div>
102+
<StatusBadge variant='stable'>stable</StatusBadge>
103+
</Link>
104+
<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">
105+
<div className="flex flex-col justify-between">
106+
<h1 className="font-normal text-lg">Release v1.0.0</h1>
107+
<p>9 March 2024</p>
108+
</div>
109+
<StatusBadge variant='stable'>stable</StatusBadge>
110+
</Link>
111+
<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">
112+
<div className="flex flex-col justify-between">
113+
<h1 className="font-normal text-lg">Release v0.1.3</h1>
114+
<p>10 December 2023</p>
115+
</div>
116+
<StatusBadge variant='stable'>stable</StatusBadge>
117+
</Link>
118+
<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">
119+
<div className="flex flex-col justify-between">
120+
<h1 className="font-normal text-lg">Release v0.1.2</h1>
121+
<p>16 November 2023</p>
122+
</div>
123+
<StatusBadge variant='stable'>stable</StatusBadge>
124+
</Link>
125+
<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">
126+
<div className="flex flex-col justify-between">
127+
<h1 className="font-normal text-lg">Release v0.1.1</h1>
128+
<p>14 November 2023</p>
129+
</div>
130+
<StatusBadge variant='stable'>stable</StatusBadge>
131+
</Link>
132+
<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">
133+
<div className="flex flex-col justify-between">
134+
<h1 className="font-normal text-lg">Release v0.1.0</h1>
135+
<p>14 November 2023</p>
136+
</div>
137+
<StatusBadge variant='stable'>stable</StatusBadge>
138+
</Link>
139+
<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">
140+
<div className="flex flex-col justify-between">
141+
<h1 className="font-normal text-lg">Release v0.0.1</h1>
142+
<p>14 November 2023</p>
143+
</div>
144+
<StatusBadge variant='stable'>stable</StatusBadge>
145+
</Link>
146+
</div>
147+
64148
</div>
65149

src/pages/docs/latest/_meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"installation": "Installation",
44
"configuration": "Configuration",
55
"thread-class": "Thread Class",
6-
"parallel-processing": "Parallel Processing",
6+
"concurrent-processing": "Concurrent Processing",
77
"exceptions": "Exceptions",
88
"command-line-interface": "Command Line Interface"
99
}

0 commit comments

Comments
 (0)