wrapper-manager-fds/docs: fix module options doc generation

This commit is contained in:
Gabriel Arazas 2024-07-28 10:52:24 +08:00
parent 5180f42a48
commit ec2e1ba068
4 changed files with 8 additions and 8 deletions

View File

@ -16,7 +16,7 @@ let
evalDoc = args@{ modules, includeModuleSystemOptions ? false, ... }: evalDoc = args@{ modules, includeModuleSystemOptions ? false, ... }:
let let
options = (pkgs.lib.evalModules { options = (pkgs.lib.evalModules {
modules = modules ++ [ { _module.check = false; } ]; modules = modules ++ [ { _module.check = false; _module.args.pkgs = pkgs; } ];
class = "wrapperManager"; class = "wrapperManager";
}).options; }).options;
in in

View File

@ -50,7 +50,7 @@ Assuming you have already initialized npins, you can simply add wrapper-manager-
[source, shell, subs="attributes+"] [source, shell, subs="attributes+"]
---- ----
npins add github foo-dogsquared {github-repo} npins add --name wrapper-manager github foo-dogsquared {github-repo} --branch main
---- ----
Similar to channels installation, you'll have to import the <<user-entrypoint>> object. Similar to channels installation, you'll have to import the <<user-entrypoint>> object.
@ -129,8 +129,8 @@ Instead of a home environment from home-manager or an installation script from d
This can be thought of as a declarative layer over `makeWrapper` build hook from nixpkgs. This can be thought of as a declarative layer over `makeWrapper` build hook from nixpkgs.
If you want to view the module options, you can see it in If you want to view the module options, you can see it in
ifdef::env-hugo[link:./nix-module-options/[wrapper-manager module options].] ifdef::env-hugo[link:./wrapper-manager-env-options/[wrapper-manager module options].]
ifndef::env-hugo[{docs-site}/nix-module-options[wrapper-manager documentation site].] ifndef::env-hugo[{docs-site}/wrapper-manager-env-options[wrapper-manager documentation site].]
Here's a very simple example of a wrapper for Neofetch. Here's a very simple example of a wrapper for Neofetch.
@ -360,7 +360,7 @@ It is also quicker to eyeball results in this way especially if you're always wo
This project also has a website set up with https://gohugo.io/[Hugo]. This project also has a website set up with https://gohugo.io/[Hugo].
The files that you need to see are in The files that you need to see are in
ifdef::env-hugo[github:foo-dogsquared/wrapper-manager-fds[`docs`, rev=main, path=docs]] ifdef::env-hugo[github:{github-full}[`docs`, rev=main, path=docs]]
ifndef::env-hugo[link:./docs[`./docs`]] ifndef::env-hugo[link:./docs[`./docs`]]
directory. directory.

View File

@ -6,10 +6,10 @@ in
let let
docs = import ../. { inherit pkgs; }; docs = import ../. { inherit pkgs; };
in in
with pkgs; mkShell { pkgs.mkShell {
inputsFrom = [ docs.website ]; inputsFrom = [ docs.website ];
packages = [ packages = with pkgs; [
nodePackages.prettier nodePackages.prettier
vscode-langservers-extracted vscode-langservers-extracted
]; ];

View File

@ -11,7 +11,7 @@ in
config = lib.mkMerge [ config = lib.mkMerge [
{ wrapper-manager.extraSpecialArgs.hmConfig = config; } { wrapper-manager.extraSpecialArgs.hmConfig = config; }
(lib.mkIf moduleArgs?nixosConfig { (lib.mkIf (moduleArgs ? nixosConfig) {
wrapper-manager.sharedModules = [ wrapper-manager.sharedModules = [
({ lib, ... }: { ({ lib, ... }: {
# NixOS already has the option to set the locale so we don't need to # NixOS already has the option to set the locale so we don't need to