From fe586a5d59ebb319a7557c83ac44a47428701fdc Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Tue, 13 May 2025 07:14:16 +0100 Subject: [PATCH] doc/packages: add treefmt section --- doc/packages/index.md | 1 + doc/packages/treefmt.section.md | 8 ++++++++ doc/redirects.json | 3 +++ 3 files changed, 12 insertions(+) create mode 100644 doc/packages/treefmt.section.md diff --git a/doc/packages/index.md b/doc/packages/index.md index 5484ac4400df..35e2656ab670 100644 --- a/doc/packages/index.md +++ b/doc/packages/index.md @@ -25,6 +25,7 @@ nginx.section.md opengl.section.md shell-helpers.section.md python-tree-sitter.section.md +treefmt.section.md steam.section.md cataclysm-dda.section.md urxvt.section.md diff --git a/doc/packages/treefmt.section.md b/doc/packages/treefmt.section.md new file mode 100644 index 000000000000..aaf0ac69346b --- /dev/null +++ b/doc/packages/treefmt.section.md @@ -0,0 +1,8 @@ +# treefmt {#treefmt} + +[treefmt](https://github.com/numtide/treefmt) streamlines the process of applying formatters to your project, making it a breeze with just one command line. + +The [`treefmt` package](https://search.nixos.org/packages?channel=unstable&show=treefmt) +provides functions for configuring treefmt using the module system. + +Alternatively, treefmt can be configured using [treefmt-nix](https://github.com/numtide/treefmt-nix). diff --git a/doc/redirects.json b/doc/redirects.json index 598f73abc37d..362d0a197689 100644 --- a/doc/redirects.json +++ b/doc/redirects.json @@ -483,6 +483,9 @@ "tester-testEqualArrayOrMap-return": [ "index.html#tester-testEqualArrayOrMap-return" ], + "treefmt": [ + "index.html#treefmt" + ], "typst": [ "index.html#typst", "doc/languages-frameworks/typst.section.md#typst"