mirror of
https://github.com/nix-community/home-manager
synced 2024-12-22 02:53:16 +00:00
613dbb35db
The `nixos-render-docs` tool outputs XHTML formatted content. In order to convince browsers like `firefox` to treat the data as XHTML the extension must be `.xhtml` and not `.html`. Using the XHTML-formatted content as HTML is mainly an issue with self-closing `<a />` tags.
19 lines
507 B
Nix
19 lines
507 B
Nix
{ ... }:
|
|
|
|
{
|
|
config = {
|
|
manual = {
|
|
html.enable = true;
|
|
manpages.enable = true;
|
|
json.enable = true;
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-path/share/doc/home-manager/index.xhtml
|
|
assertFileExists home-path/share/doc/home-manager/options.html
|
|
assertFileExists home-path/share/doc/home-manager/options.json
|
|
assertFileExists home-path/share/man/man1/home-manager.1
|
|
assertFileExists home-path/share/man/man5/home-configuration.nix.5
|
|
'';
|
|
};
|
|
}
|