From a6760f152538c96d8f0c743b204e24c6fd860fa3 Mon Sep 17 00:00:00 2001 From: Karan Bansal Date: Tue, 27 Jan 2026 22:49:37 +0530 Subject: [PATCH] [Doc] Improve serve parameter documentation with meaningful defaults (#33082) Signed-off-by: Karan Bansal Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> Co-authored-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> --- docs/mkdocs/hooks/generate_argparse.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/mkdocs/hooks/generate_argparse.py b/docs/mkdocs/hooks/generate_argparse.py index 53bfce93ce..ecb18b1522 100644 --- a/docs/mkdocs/hooks/generate_argparse.py +++ b/docs/mkdocs/hooks/generate_argparse.py @@ -162,7 +162,8 @@ class MarkdownFormatter(HelpFormatter): if action.help: self._markdown_output.append(f"{action.help}\n\n") - if (default := action.default) != SUPPRESS: + # None usually means the default is determined at runtime + if (default := action.default) != SUPPRESS and default is not None: # Make empty string defaults visible if default == "": default = '""'