Man pages: Difference between revisions
imported>Wackbyte m syntax highlighting |
imported>9glenda Add documentation for Mandoc |
||
Line 33: | Line 33: | ||
See also: the other options in the `documentation` namespace. | See also: the other options in the `documentation` namespace. | ||
== Mandoc as the default man page viewer == | |||
Mandoc is a set of tools designed for working with mdoc(7), the preferred roff macro language for BSD manual pages, as well as man(7), the historical roff macro language used in UNIX manuals. It can be used as an alternative to man-db. | |||
To use mandoc as the default man page viewer add following code to your config: | |||
<syntaxhighlight lang="nix"> | |||
documentation.man = { | |||
# In order to enable to mandoc man-db has to be disabled. | |||
man-db.enable = false; | |||
mandoc.enable = true; | |||
}; | |||
</syntaxhighlight> | |||
See also: the [https://mandoc.bsd.lv/ Mandoc website]. | |||
=== Apropos === | === Apropos === | ||
See [[Apropos]]. | See [[Apropos]]. |