chore: snake_case to camelCase
This commit is contained in:
parent
2b704cc5e7
commit
f4e47cbf97
5 changed files with 14 additions and 14 deletions
|
|
@ -1,7 +1,7 @@
|
|||
# with friendly help by stylix: https://github.com/danth/stylix/blob/master/docs/default.nix
|
||||
{
|
||||
pkgs,
|
||||
build_systems,
|
||||
buildSystems,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
summaryAppend = name: ''
|
||||
echo "- [${name}](${name}.md)" >> src/SUMMARY.md
|
||||
'';
|
||||
system = (build_systems {root = ../example/.;})."example".options;
|
||||
system = (buildSystems {root = ../example/.;})."example".options;
|
||||
makeOptionsDocPrograms = names: pkgs.nixosOptionsDoc {options = lib.attrByPath (lib.splitString "." names) null system.mods;};
|
||||
conf = makeOptionsDoc system.conf;
|
||||
basePath = ../modules/programs;
|
||||
|
|
@ -39,7 +39,7 @@
|
|||
filteredNames = builtins.filter (names: !(lib.strings.hasInfix "default" names)) (
|
||||
map (name: lib.strings.removeSuffix ".nix" name) (lib.lists.flatten (pathToStrings basePath ""))
|
||||
);
|
||||
deduplicatedNames = map (name: lib.strings.splitString "." name |> lib.lists.unique |> lib.strings.concatStringsSep "." ) filteredNames;
|
||||
deduplicatedNames = map (name: lib.strings.splitString "." name |> lib.lists.unique |> lib.strings.concatStringsSep ".") filteredNames;
|
||||
mods = map makeOptionsDocPrograms deduplicatedNames;
|
||||
docs = lib.strings.concatLines (map generateDocs (lib.lists.zipLists deduplicatedNames mods));
|
||||
summary = lib.strings.concatStringsSep " " (map summaryAppend deduplicatedNames);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue