Skip to content

Commit

Permalink
Merge pull request #5659 from gridbugs/enable-doc
Browse files Browse the repository at this point in the history
Clarify documentation for `enable` pseudo-variable
  • Loading branch information
kit-ty-kate authored Nov 27, 2024
2 parents 84a949f + 8c7dfab commit 359f072
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions doc/pages/Manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -512,9 +512,11 @@ the package being defined.
resolved direct dependencies of the package
- <a id="pkgvar-installed">`installed`</a>:
whether the package is installed
- <a id="pkgvar-enable">`enable`</a>:
takes the value "enable" or "disable" depending on whether the package is
installed
- <a id="pkgvar-enable">`enable`</a>: is not a variable.
It takes the value "enable" or "disable" depending on whether the package is
installed. Used with the combination operator `+`,
`name1+name2+name3:enable` is syntactic sugar for
`name1+name2+name3:installed?enable:disable`.
- <a id="pkgvar-pinned">`pinned`</a>: whether the package is pinned
- <a id="pkgvar-dirs">`bin`, `sbin`, `lib`, `man`, `doc`, `share`, `etc`</a>:
the corresponding directories for this package (similar to
Expand Down
1 change: 1 addition & 0 deletions master_changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ users)
* Fix a typo in the default man page [#6267 @fccm2]
* Point users to ways to override the default opam root location in the opam init manpage [#6251 @kit-ty-kate]
* Manual: Document the stamp field from repo files [#6306 @kit-ty-kate]
* Clarify documentation for `enable` pseudo-variable [#5659 @gridbugs]

## Security fixes

Expand Down

0 comments on commit 359f072

Please sign in to comment.