@@ -2,7 +2,7 @@ import Link from '@docusaurus/Link';
22import useDocusaurusContext from '@docusaurus/useDocusaurusContext' ;
33import HomepageFeatures from '@site/src/components/HomepageFeatures' ;
44import SectionsNav from '@site/src/components/SectionsNav' ;
5- import { comparisonFeatures , type Support } from '@site/src/lib/comparison' ;
5+ import { comparisonFeatures , tools , type Support } from '@site/src/lib/comparison' ;
66import Heading from '@theme/Heading' ;
77import Layout from '@theme/Layout' ;
88import ThemedImage from '@theme/ThemedImage' ;
@@ -173,7 +173,7 @@ function InstallSection() {
173173 < InstallOption label = "Script" cmd = "curl -fsSL https://raidcli.dev/install.sh | bash" />
174174 </ div >
175175 < a
176- href = "https://github.com/8bitAlex /raid/releases/latest"
176+ href = "https://github.com/8bitalex /raid/releases/latest"
177177 target = "_blank"
178178 rel = "noopener noreferrer"
179179 className = { styles . manualDownload } >
@@ -203,22 +203,20 @@ function ComparisonSection() {
203203 < thead >
204204 < tr >
205205 < th className = { styles . thFeature } > </ th >
206- < th className = { styles . thRaid } > Raid</ th >
207- < th className = { styles . thOther } > make</ th >
208- < th className = { styles . thOther } > just</ th >
209- < th className = { styles . thOther } > mise</ th >
210- < th className = { styles . thOther } > turbo</ th >
206+ { tools . map ( ( { id, label} ) => (
207+ < th key = { id } className = { id === 'raid' ? styles . thRaid : styles . thOther } > { label } </ th >
208+ ) ) }
211209 </ tr >
212210 </ thead >
213211 < tbody >
214212 { comparisonFeatures . map ( ( row ) => (
215213 < tr key = { row . label } className = { styles . tableRow } >
216214 < td className = { styles . featureLabel } > { row . label } </ td >
217- < td className = { clsx ( styles . cell , styles . colRaid ) } > < SupportIcon value = { row . raid } /> </ td >
218- < td className = { styles . cell } > < SupportIcon value = { row . make } /> </ td >
219- < td className = { styles . cell } > < SupportIcon value = { row . just } /> </ td >
220- < td className = { styles . cell } > < SupportIcon value = { row . mise } /> </ td >
221- < td className = { styles . cell } > < SupportIcon value = { row . turbo } /> </ td >
215+ { tools . map ( ( { id } ) => (
216+ < td key = { id } className = { clsx ( styles . cell , id === 'raid' && styles . colRaid ) } >
217+ < SupportIcon value = { row [ id ] } />
218+ </ td >
219+ ) ) }
222220 </ tr >
223221 ) ) }
224222 </ tbody >
0 commit comments