From nobody Sun Feb 8 17:52:35 2026 X-Original-To: dev-commits-doc-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4f8Flm0LtVz6RX2W for ; Sun, 08 Feb 2026 17:52:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4f8Fll64pyz3vqj for ; Sun, 08 Feb 2026 17:52:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1770573155; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=DYqZhLz3eM+qHfJ0VE9y9U9/3kJfwfyUHKMJC2rFtjE=; b=KklBHFTuZNYCdAfIvja+UoEV6idgk4X6kZoGPVmsQ9kEL6rHZmHz8h7mjuWZkd8Oi08rKe BCcGj0OrZ5W/jP/xSDxVUEHMQmBoOw+R/2JbG3ZQ8wtVFt5zlv8xXVPCzwScb/lpA32WJR lEFbgiGTSV7kru+Y+pFjPixCCHvBeZaOh7kzY66UYMS6uTUETrLSTV8eAWlAaAqQ2go5Wx KFwhMFnV4AUDlWJ2epWe5o+czOeCOSI3re6P/VdeVOqEwFnbw3z3sYTS8uWbdC4hAfg6JJ B4v0a1OTRy+MxyViOYrrYTmg0fj7DFn9CFHy/v67Ea67GHzz76eJiDDtoEtlOw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1770573155; a=rsa-sha256; cv=none; b=v6nycnkaBdkHMZo5P6+Dz+0Kv26Ebd8xXTzpzzbZ/qm37ZYEww2IMVhZ8xrXQCnh/okBgT fK4TURKktl2OOzj89dOBM1AnpdGFGdjlqOqj/FIGVuNa6ghxhn7FZ4jEzV6444AKBvtECw EUVv20f9XqIk2P2fiG/ewLji6SDw1izRwXlGbcaniXZb0ohVhWBXPzDpfdDrs/vtvRM86N Y3uPNmjLi/ynxOVwjrHdH2EH6OoEucnuCNZbQ4dWiowjBuuEULwAq0kH+ofjvSr3KHIABw NXo84mYpcxHTMCAccPARoNPEYQ7kj2oLbpQPkjewPouGp2Mz2gPBGFjqdBjdDg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1770573155; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=DYqZhLz3eM+qHfJ0VE9y9U9/3kJfwfyUHKMJC2rFtjE=; b=UsIZF761CUZx+suqvshdOaTCC7OCrzuHGGYCWB38OE7hWuJ4E+OWlH1BrddS5I+3ZuVBT6 TDmkSQs2unMEJPVWFo+M5yN+zMqhISEuNuOK4qnY9WFcMK3+87tVJSNvHI9n1oWqTYvdzR ILJEUdT1WSfTuU4RD8bwnSu74hL6mQChp2UqnNCRkLOuWxiwWubI9hoVz36XDlsx97MxhG badjpwbFyhkrptxFy5FmCw8ZK3P3yLRxregS0GgIzwrDxwJSdIdrIyYm6ZHKD1GCtTplUb hKNXN5L/tlxkc+dze6MBZ14bI7+X5Nx0Al5LUBB/3giwE0BYO8ezX61rXHhoZQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4f8Fll5gMxzxrv for ; Sun, 08 Feb 2026 17:52:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 261ec by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 08 Feb 2026 17:52:35 +0000 To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: Wolfram Schneider Subject: git: a67913daaa - main - man.cgi: do not show the drop-down menu for architectures if empty List-Id: Commit messages for all branches of the doc repository List-Archive: https://lists.freebsd.org/archives/dev-commits-doc-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-doc-all@freebsd.org Sender: owner-dev-commits-doc-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wosch X-Git-Repository: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a67913daaa69d24344cd9c5fde671f1524ae8c88 Auto-Submitted: auto-generated Date: Sun, 08 Feb 2026 17:52:35 +0000 Message-Id: <6988cd63.261ec.1f3add9e@gitrepo.freebsd.org> The branch main has been updated by wosch: URL: https://cgit.FreeBSD.org/doc/commit/?id=a67913daaa69d24344cd9c5fde671f1524ae8c88 commit a67913daaa69d24344cd9c5fde671f1524ae8c88 Author: Wolfram Schneider AuthorDate: 2026-02-08 17:52:27 +0000 Commit: Wolfram Schneider CommitDate: 2026-02-08 17:52:27 +0000 man.cgi: do not show the drop-down menu for architectures if empty --- website/content/en/cgi/man.cgi | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/website/content/en/cgi/man.cgi b/website/content/en/cgi/man.cgi index 4924d9f684..e77175554e 100755 --- a/website/content/en/cgi/man.cgi +++ b/website/content/en/cgi/man.cgi @@ -61,6 +61,13 @@ my $download_streaming_caching = 0; # enable to download the manual pages as a tarball my $enable_download = 1; +# show the drop-down menu for architectures +my $enable_architectures = 1; + +# show the drop-down menu for architectures even if there are no know architectures +my $enable_architectures_none = 0; + + #$command{'man'} = '/usr/bin/man'; # 8Bit clean man $command{'man'} = '/usr/local/www/bin/man.wrapper'; # set CPU limits @@ -1506,6 +1513,8 @@ sub do_man { $arch = ""; } + $arch = "" if !$enable_architectures; + # remove trailing spaces for dumb users $form{'query'} =~ s/\s+$//; $form{'query'} =~ s/^\s+//; @@ -2379,8 +2388,10 @@ ETX print qq{\n}; - print qq{\n}; unshift @arch, 'default'; my $a; @@ -2403,6 +2414,7 @@ ETX } print qq{\n\n}; + } local ($m) = &encode_url($l);