diff --git a/docs/lib/default.nix b/docs/lib/default.nix index e105ac23..8659cad6 100644 --- a/docs/lib/default.nix +++ b/docs/lib/default.nix @@ -72,13 +72,13 @@ let function docgen { md_file="$1" in_file="$2" - name="$3" + category="$3" out_file="$out/$4" title="$5" if [[ -z "$in_file" ]]; then if [[ -z "$md_file" ]]; then - >&2 echo "No markdown or nix file for $name" + >&2 echo "No markdown or nix file for $category" exit 1 fi elif [[ -f "$in_file/default.nix" ]]; then @@ -92,7 +92,7 @@ let nixdoc \ --file "$in_file" \ --locs "$locations" \ - --category "$name" \ + --category "$category" \ --description "REMOVED BY TAIL" \ --prefix "lib" \ --anchor-prefix "" \ @@ -103,7 +103,7 @@ let print_title=true if [[ -f "$md_file" ]] && [[ "$(head --lines 1 "$md_file")" == '# '* ]]; then if [[ -n "$title" ]]; then - >&2 echo "NOTE: markdown file for $name starts with a