Add docs
This commit is contained in:
parent
2195c7a850
commit
cc67ca420c
5 changed files with 20 additions and 3 deletions
1
.github/workflows/docs.yaml
vendored
1
.github/workflows/docs.yaml
vendored
|
|
@ -1,3 +1,4 @@
|
|||
# by https://github.com/danth/stylix/blob/master/.github/workflows/docs.yml
|
||||
name: Docs
|
||||
|
||||
on:
|
||||
|
|
|
|||
|
|
@ -1,7 +1,22 @@
|
|||
# with friendly help by stylix: https://github.com/danth/stylix/blob/master/docs/default.nix
|
||||
{ pkgs, build_systems, ... }:
|
||||
|
||||
let
|
||||
makeOptionsDoc = configuration: pkgs.nixosOptionsDoc { inherit (configuration) options lib; };
|
||||
makeOptionsDoc =
|
||||
configuration:
|
||||
pkgs.nixosOptionsDoc {
|
||||
inherit (configuration) options;
|
||||
|
||||
# Filter out any options not beginning with `stylix`
|
||||
transformOptions =
|
||||
option:
|
||||
option
|
||||
// {
|
||||
visible =
|
||||
option.visible
|
||||
&& (builtins.elemAt option.loc 0 == "conf" || builtins.elemAt option.loc 0 == "mods");
|
||||
};
|
||||
};
|
||||
example = makeOptionsDoc (build_systems [ "example" ] ../example/.)."example";
|
||||
in
|
||||
pkgs.stdenvNoCC.mkDerivation {
|
||||
|
|
|
|||
|
|
@ -0,0 +1,2 @@
|
|||
[Options](dashNix.md)
|
||||
|
||||
|
|
@ -1 +0,0 @@
|
|||
pingpang
|
||||
2
result
2
result
|
|
@ -1 +1 @@
|
|||
/nix/store/hpbdpm0knf560f4igq5yc6c6nvap7s65-dashNix-book
|
||||
/nix/store/0fpgnkzjnwbjykdvbk4p2h3c7isb9sz9-dashNix-book
|
||||
Loading…
Add table
Add a link
Reference in a new issue