From 33d32f7407fe9f60a8ff72561ba8d1e519dc5797 Mon Sep 17 00:00:00 2001 From: Bryton Hall Date: Mon, 29 Aug 2022 02:12:38 -0400 Subject: [PATCH] keep index file in auto-generated modules directory --- docs/content/examples/_index.md | 3 --- docs/content/modules/_index.md | 0 flake.nix | 2 +- 3 files changed, 1 insertion(+), 4 deletions(-) create mode 100644 docs/content/modules/_index.md diff --git a/docs/content/examples/_index.md b/docs/content/examples/_index.md index 27d22f2..e69de29 100644 --- a/docs/content/examples/_index.md +++ b/docs/content/examples/_index.md @@ -1,3 +0,0 @@ ---- -weight: 20 ---- diff --git a/docs/content/modules/_index.md b/docs/content/modules/_index.md new file mode 100644 index 0000000..e69de29 diff --git a/flake.nix b/flake.nix index 0d1eff9..a597df0 100644 --- a/flake.nix +++ b/flake.nix @@ -109,7 +109,7 @@ nix build '.#docs' -o ./docs/data/options.json # remove all old module pages - rm ./docs/content/modules/*.md || true + rm ./docs/content/modules/[!_]?*.md || true # create a page for each module in hugo for mod in ${builtins.toString (builtins.attrNames self.nixosModules.kubenix)}; do