-
-
Notifications
You must be signed in to change notification settings - Fork 145
Description
I've started the discussion in #963 on how to improve the usability of the 'how to install / use' section of the search results.
What it boils down to is that the current examples are grouped by tool, but I think this would be much more useful, if grouped by use case instead.
I think this has several advantages:
- New users have a clearer advice on which way they want to go
- It is way easier to group different technologies that achieve the same means in those categories.
- Easier to extend when new ways to use nix come along that we want to showcase without overwhelming the user with choice
For example:
Run Directlycould shownix-shell --commandandnix runTry without installationcould groupnix-shellandnix shellPermanent installationcould groupnix-env,nix profile, configuration.nix based install and flake based nix configuration.Development Environmentscould groupshell.nix, flake.nix basedmkShelland perhaps devenv based installationEmbedded in Shell Scriptscould show how to usenix-shellto add it to a shell script without requiring installation.
Of course the names are up for discussion ,as these examples are lengthy, and the UI doesn't work great on small screens (cough phones cough) as it is.
Inside those tabs, perhaps an accordion could be used for the different ways to achieve this. Ideally a cookie could be used to remember the users choice and use that by default on each search result.
I would greatly appreciate the clarity this gives.
@maintainers: What do you think?