Update library function "docstrings" for nixdoc generation#49383
Merged
grahamc merged 5 commits intoNixOS:masterfrom Oct 29, 2018
Merged
Update library function "docstrings" for nixdoc generation#49383grahamc merged 5 commits intoNixOS:masterfrom
grahamc merged 5 commits intoNixOS:masterfrom
Conversation
Expands on some of the function comments and add some of the special syntaxes recognised by nixdoc.
Updates documentation comments with extra information for nixdoc[1] compatibility. Some documentation strings have additionally been reworded for clarity. "Faux types" are added where applicable, but some functions do things that are not trivially representable in the type notation used so they were ignored for this purpose. [1]: https://github.com/tazjin/nixdoc
Updates documentation comments with extra information for nixdoc[1] compatibility. [1]: https://github.com/tazjin/nixdoc
Documents functions in `lib.debug` for docs generation with nixdoc. Note that type signatures and clearer descriptions are still missing on some of these functions, but this is good enough for a first run.
Documents functions in `lib.options` for docs generation with nixdoc. The formatting change in the `mkOption` arguments is due to the way `nixdoc` parses documentation comments on pattern arguments. It's not ideal, but it works.
Member
|
Please open a backport pr with |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation for this change
This extracts the changes to documentation comments that previously were in #49275 into a new pull-request. These changes should be backportable to 18.09.
Please see the other PR for more discussion, background information and examples of rendered documentation.
Files covered:
lib/lists.nixlib/strings.nixlib/trivial.nixlib/debug.nixlib/options.nixcc: @grahamc