New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accessible documentation #11499
Comments
Most of our docs are in DocBook, so there should be plenty of semantic information to get a reasonable Local "docs-google" would be nice indeed. Perhaps some distro has already paved a way? IMHO people tend to use the web search engines mainly because it's an extremely simple way to get good results. |
Vladimír Čunát notifications@github.com writes:
Yep, I hope to get into that in January.
Regrettably, I'm not aware of a really awesome solution. Closest thing |
I have been thinking about this with respect to my user profile (I don't tend to install lots of packages into the system profile); at the moment to get an info dir for these packages and to have a working apropos I have some horrible scripts which generate the relevant indexes for my profile into some custom directories. What I am wondering is (and maybe someone here will have a view?) whether there is any way to persuade nix-env to do this, by (say) adding a post-build hook for the user's environment which does this job. It seems like quite a common thing to want to be able to do: generate a user (or system) profile, and then build an index of all the things that went into it. |
|
I just had a poke around in the source and see that it would require changes to nix and hence a global rebuild, which is not on the cards for me to consider today. However, for any other interested readers, the buildEnv in nixpkgs does have this facility, via It seems that a user-level solution will then be to package up a few commands for generating indexes (e.g. for texinfo), and then to glue them to user environments built with I do not know about the system profile equivalent. |
Hah, further source reading suggests that this will still not work, specifically for texinfo, because the basic |
In any case, I believe |
So for future reference,
works, but generating the texinfo index into |
Related to #38114. |
Previously, `man 5 configuration.nix` would only show options of modules in the `baseModules` set, which consists only of the list of modules in `nixos/modules/module-list.nix` however, with this change, any extra module that is included in your `configuration.nix` file by the means of ``` imports = [ ./rootfs.nix ] ``` will also be included the generated documentation. Example output: ``` OPTIONS You can use the following options in configuration.nix. arian.rootfs.device The device that contains the btrfs volume Type: string Declared by: /home/arian/Projects/nixos-stuff/computers/t430s/rootfs.nix boot.enableContainers Whether to enable support for nixos containers. Type: boolean Default: true Declared by: <nixpkgs/nixos/modules/virtualisation/containers.nix> ``` I found it useful for my machine to be self-documenting. It also means that if you import modules like `gce.nix` or `azure.nix` which aren't in `module-list.nix`, documentation is still generated for these modules cc: NixOS#11499 - [ ] I have no idea if this patch impacts the way the documentation for https://nixos.org/nixos is generated. It might. We should check this. ---
Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly:
|
Goals:
/nix/store
), accessible (with standard tools) and discoverable (in deterministic locations) locally.info
format.This issue exist to list current issues, ideas and progress in that pursuit of said goals.
[1] Mail-list thread http://lists.science.uu.nl/pipermail/nix-dev/2015-December/018844.html
[2] Related mail-list subthread http://lists.science.uu.nl/pipermail/nix-dev/2015-November/018740.html
The text was updated successfully, but these errors were encountered: