Skip to content
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

Merged
merged 3 commits into from
Oct 9, 2023

Conversation

fricklerhandwerk
Copy link
Contributor

@fricklerhandwerk fricklerhandwerk commented Sep 6, 2023

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.

Copy link
Member

@Ericson2314 Ericson2314 left a 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?

@nixos-discourse
Copy link

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

@fricklerhandwerk
Copy link
Contributor Author

@Ericson2314 fixed.

@github-actions github-actions bot added the new-cli Relating to the "nix" command label Oct 4, 2023
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.
@Ericson2314 Ericson2314 merged commit 22513c9 into NixOS:master Oct 9, 2023
15 checks passed
@fricklerhandwerk fricklerhandwerk deleted the option-anchors branch October 9, 2023 21:15
@fricklerhandwerk fricklerhandwerk added backport 2.18-maintenance Automatically creates a PR against the branch backport 2.17-maintenance labels Nov 10, 2023
@NixOS NixOS deleted a comment from github-actions bot Nov 10, 2023
@fricklerhandwerk fricklerhandwerk removed backport 2.17-maintenance backport 2.18-maintenance Automatically creates a PR against the branch labels Nov 10, 2023
@NixOS NixOS deleted a comment from github-actions bot Nov 10, 2023
@NixOS NixOS deleted a comment from github-actions bot Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation new-cli Relating to the "nix" command
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants