From bc506e4f6741ce62f7d865eaa379f0fd56ecf753 Mon Sep 17 00:00:00 2001 From: blokyk Date: Tue, 17 Mar 2026 04:17:41 +0100 Subject: [PATCH] docs: fix indent of builtins and nix.conf descriptions in manual The manual for the builtins and nix.conf currently has inconsistent indentation, which causes some of the descriptions to end up being partially treatedas code blocks in markdown (and thus the manual). This was simply caused by the template string for the docs having too much indentation before the description is inserted, so this fixes that 16-bytes mistake. Change-Id: Ia264e3b1abb20430109029d07a2d2b0a1a726bd4 (cherry picked from commit 8294cd534b2f01ee967b28aa73fcab1535d62b3d) --- lix/code-generation/build_builtins.py | 2 +- lix/code-generation/build_settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lix/code-generation/build_builtins.py b/lix/code-generation/build_builtins.py index 020ad697a..c0ecaecbd 100644 --- a/lix/code-generation/build_builtins.py +++ b/lix/code-generation/build_builtins.py @@ -52,7 +52,7 @@ class Builtin:
- {indent(self.documentation, " " * 3)} +{indent(self.documentation, " " * 3)} { f"This function is only available if the [{self.experimental_feature}](@docroot@/contributing/experimental-features.md#xp-feature-{self.experimental_feature}) experimental feature is enabled." diff --git a/lix/code-generation/build_settings.py b/lix/code-generation/build_settings.py index 0d4d9e0fb..fe5c08139 100644 --- a/lix/code-generation/build_settings.py +++ b/lix/code-generation/build_settings.py @@ -90,7 +90,7 @@ class Setting: aliases = [f"`{item}`" for item in self.aliases] description = dedent(f""" - {indent(indentation, self.documentation)} +{indent(indentation, self.documentation)} {indent(indentation, PLATFORM_WARNING.format(platforms=str(platforms)[1:-1])) if self.platforms else ""} {indent(indentation, XP_WARNING.format(feature=self.experimental_feature, name=self.name)) if self.experimental_feature is not None else ""}