sagemathinc / cocalc

CoCalc: Collaborative Calculation in the Cloud
https://CoCalc.com
Other
1.14k stars 207 forks source link

next/software must not hardcode software inventory information #5533

Open haraldschilly opened 2 years ago

haraldschilly commented 2 years ago

For example, the file packages/next/components/landing/r-libraries.tsx hardcodes two columns for two R environments and their names&descriptions. This is just going to break, because the definition of available environments per language is in the compute-inventory.json file, under the key julia, octave, python, and R. The keys inside of each mapping are defined in the language_exes entry, where the key name holds the name, and shows the appropriate description in doc.

reference implementation: https://github.com/sagemathinc/cocalc-landing/blob/master/views/_base.pug#L163

haraldschilly commented 2 years ago

same for SPEC and Item in packages/next/lib/landing/libraries.ts