From c04ea8b141a1a8944921ff0add9b65cb0e946ec8 Mon Sep 17 00:00:00 2001 From: rameel Date: Tue, 3 Nov 2026 14:43:40 +0500 Subject: [PATCH] docs: correct and clarify XML comments and guides --- docs/articles/choosing-version.md | 5 ++-- docs/articles/responses.md | 2 ++ .../Configuration/HtmxToolkitOptions.cs | 24 +++++++++++++++++++ .../HtmxResponseAttribute.cs | 2 +- .../TagHelpers/HtmxHeadersTagHelper.cs | 8 +++---- .../TagHelpers/HtmxRequestTagHelper.cs | 8 +++---- .../TagHelpers/HtmxValsTagHelper.cs | 8 +++---- 7 files changed, 42 insertions(+), 15 deletions(-) diff --git a/docs/articles/choosing-version.md b/docs/articles/choosing-version.md index 98ab554..d552a38 100644 --- a/docs/articles/choosing-version.md +++ b/docs/articles/choosing-version.md @@ -30,8 +30,9 @@ builder.Services.AddHtmxToolkit(options => }); ``` -The version can be selected only once. Repeated configuration for the same version updates the same version-specific object; -trying to select a different version causes startup validation to fail. +Calling the same `UseHtmxV1`, `UseHtmxV2`, or `UseHtmxV4` method again reuses the existing version-specific +configuration object and applies the supplied delegate. Calling a method for a different major version +throws `InvalidOperationException`. > [!IMPORTANT] > Selecting a target version does not download or serve HTMX. The `