depot/third_party/tvl/users/sterni/htmlman/README.md
Default email a291c8690a Project import generated by Copybara.
GitOrigin-RevId: e6e19f3d81a982a62e1bba08f0b4f7fdc21b4ea0
2022-05-19 16:39:52 +02:00

36 lines
620 B
Markdown

# htmlman
static site generator for man pages intended for
rendering man page documentation viewable using
a web browser.
## usage
If you have a nix expression, `doc.nix`, like this:
```nix
{ depot, ... }:
depot.users.sterni.htmlman {
title = "foo project";
pages = [
{
name = "foo";
section = 1;
}
{
name = "foo";
section = 3;
path = ../devman/foo.3;
}
];
manDir = ../man;
}
```
You can run the following to directly deploy the resulting
documentation output to a specific target directory:
```sh
nix-build -A deploy doc.nix && ./result target_directory
```