-
-
Notifications
You must be signed in to change notification settings - Fork 133
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 Directly
could shownix-shell --command
andnix run
Try without installation
could groupnix-shell
andnix shell
Permanent installation
could groupnix-env
,nix profile
, configuration.nix based install and flake based nix configuration.Development Environments
could groupshell.nix
, flake.nix basedmkShell
and perhaps devenv based installationEmbedded in Shell Scripts
could show how to usenix-shell
to 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?