-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
always show anchors on setting listings #8942
Conversation
ac2c22e
to
1ac1908
Compare
1ac1908
to
c5b4959
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this! :)
But grep for utils.nix.gen.hh
; I think we'll need to do the same song and dance for your new file so the nix help stores
and --help
doesn't break?
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2023-09-29-nix-team-meeting-minutes-90/33774/1 |
@Ericson2314 fixed. |
refactor the templates for readability
the `term` output mode leaves inline HTML around verbatim, while `nroff` mode (used for `man` pages) does not. the correct solution would be to pre-render all output with a more benign tool so we have less liabilities in our own code, but this has to do for now.
73d4b9e
to
e0e47c0
Compare
Motivation
The
nix store-info
manual page lists store parameters without anchor links. The page is quite long and one can't point readers to a particular parameter, many of which are non-trivial to describe or specific to a particular store.Context
This change is also a cleanup refactoring of the manual rendering code. It moves the expressions for formatting general settings listings and the store-specific documentation into separate files, and recovers
utils.nix
to be a little helper library that is not specific to any particular use case in the manual rendering code.Other than that, the user-visible change is insignificant: it just adds anchors to the list items, with a prefix derived from the store name.
Priorities
Add 👍 to pull requests you find important.