docs/manual: remove header & footer from manual

This commit is contained in:
NotAShelf 2023-12-09 22:28:52 +03:00
parent 78f21b75b7
commit 444bf0a9d2
No known key found for this signature in database
GPG key ID: 02D1DD3FA08B6B29

View file

@ -87,7 +87,7 @@
release-config = builtins.fromJSON (builtins.readFile ../release.json); release-config = builtins.fromJSON (builtins.readFile ../release.json);
revision = "release-${release-config.release}"; revision = "release-${release-config.release}";
# Generate the `man home-configuration.nix` package # Generate the `man home-configuration.nix` package
home-configuration-manual = nvf-configuration-manual =
pkgs.runCommand "neovim-flake-reference-manpage" { pkgs.runCommand "neovim-flake-reference-manpage" {
nativeBuildInputs = [pkgs.buildPackages.installShellFiles pkgs.nixos-render-docs]; nativeBuildInputs = [pkgs.buildPackages.installShellFiles pkgs.nixos-render-docs];
allowedReferences = ["out"]; allowedReferences = ["out"];
@ -97,8 +97,6 @@
mkdir -p $out/share/man/man1 mkdir -p $out/share/man/man1
nixos-render-docs -j $NIX_BUILD_CORES options manpage \ nixos-render-docs -j $NIX_BUILD_CORES options manpage \
--revision ${revision} \ --revision ${revision} \
--header ${./header.5} \
--footer ${./footer.5} \
${nvimModuleDocs.optionsJSON}/share/doc/nixos/options.json \ ${nvimModuleDocs.optionsJSON}/share/doc/nixos/options.json \
$out/share/man/man5/neovim-flake.5 $out/share/man/man5/neovim-flake.5
cp ${./neovim-flake.1} $out/share/man/man1/neovim-flake.1 cp ${./neovim-flake.1} $out/share/man/man1/neovim-flake.1
@ -135,6 +133,6 @@ in {
''; '';
}; };
manPages = home-configuration-manual; manPages = nvf-configuration-manual;
manual = {inherit html htmlOpenTool;}; manual = {inherit html htmlOpenTool;};
} }