From nobody Wed May 01 10:41:40 2024 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 4VTtsc69YZz5Jdb9 for ; Wed, 1 May 2024 10:41:40 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VTtsc5hdCz4ltp; Wed, 1 May 2024 10:41:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1714560100; 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=874cwdYaLMzSWm/CDjTHhmn5VMDwOngbTZ6iKyMogmQ=; b=kWUzvie1E48C06nC7q4ty+USPNS7noWHLp+n5j8VxK1giWwvOaDQ0hV0Yt/9I97lP33mRl 7qtb5x9Qx6NoHro9ADtxxpDAHXUUKgx08sDRkknT4WFfsgy3vscdWoKSvNA9LjOpou3mHm l67PMfr/K7ZHLS4gdntLyfTBI8rfna5OdWvZxc58m1KVrS8BkgWtJ4UPdPmDi1oA8NFkr6 a5WDyKrHjCfZ8YRvd9tZKEl98imflP0EDApKwnoY2bIyTSTeIraxpEgvBrKzDELG9l8e8r IaK6Mh3aoZw+sFa2HHp8UUH0MHMBiJK0icGYyV0Q5Fe2xObuKSDzpBHBiLzaEA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1714560100; a=rsa-sha256; cv=none; b=ytltElvDDbq6uEJefTYx7NjOT3berDbP03xqWV+gg3fjCsm04C/uqSx8YkS8QBSVcS4wEz ZoBSnZm+1eN/xdclfXdbyFveW+IB6AOvHtDV5KueYuBdxDJnUSgldKVZNVHbkLpBbmzld+ Q6x/g2R8Los3sDXzztNdEejul0cCSDpVpcJdwtC57w1qx8+1x0WlcE+OGTf6m0jioA59Zc NkgwdeaafWnyQQ1BExibzKNWXbwG4d1cuwnJ5o1b1QrCavHDGklIV6MnVurgA04J3apQV0 Ee9VgxKvPRAQWqZcs7AFKv+Sw2zID6eTVS8uHzFRoZFSKWjYyLbVgmNxJjr42Q== 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=1714560100; 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=874cwdYaLMzSWm/CDjTHhmn5VMDwOngbTZ6iKyMogmQ=; b=I12f1VZEuxd1ksL/UvtQ4lgGnvH2U+iNuNbXmMCMRL4LpOsNyTFOiUSY6EMw9f0E/n9akq mY5XWpbB4mQW1fl57o6uI5mggnIhRIzmZvC6BJPD+WnDUR3ZAIO9t9x5sI19K9tOM7Bom9 qAtDbeFU7vIwZ735uOeu5JRxmQ4PPGtxOY+0Pa+VYNOR69rT7gkWv3djlP0LB8gMdH458g WnNLZrnwXz0PAnFU7G1njlNAY0z+TUBZPrxLE01wWfAzQYWT6IO+7ZNAxGWBlkFzzyb0eX POh4Ve0ePJskAOA8SqFnIK8v7aofQPSzVpF+HIPaltvTZgmKiEmpGzbpVSzGsQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VTtsc5HhMzFqX; Wed, 1 May 2024 10:41:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 441Afere065529; Wed, 1 May 2024 10:41:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 441AfeBS065526; Wed, 1 May 2024 10:41:40 GMT (envelope-from git) Date: Wed, 1 May 2024 10:41:40 GMT Message-Id: <202405011041.441AfeBS065526@gitrepo.freebsd.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: Wolfram Schneider Subject: git: 457180190c - main - remove stale disabled code (includes, mailto, section indexes, intro) 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: 457180190c5dcfb19a30d4950ad2bd54f4226dc8 Auto-Submitted: auto-generated The branch main has been updated by wosch: URL: https://cgit.FreeBSD.org/doc/commit/?id=457180190c5dcfb19a30d4950ad2bd54f4226dc8 commit 457180190c5dcfb19a30d4950ad2bd54f4226dc8 Author: Wolfram Schneider AuthorDate: 2024-05-01 10:41:23 +0000 Commit: Wolfram Schneider CommitDate: 2024-05-01 10:41:23 +0000 remove stale disabled code (includes, mailto, section indexes, intro) --- website/content/en/cgi/man.cgi | 65 ------------------------------------------ 1 file changed, 65 deletions(-) diff --git a/website/content/en/cgi/man.cgi b/website/content/en/cgi/man.cgi index d82411491b..3800b72f0b 100755 --- a/website/content/en/cgi/man.cgi +++ b/website/content/en/cgi/man.cgi @@ -1226,13 +1226,6 @@ $want_to_link_to_this_page = 1; &do_man( &env('SCRIPT_NAME'), &env('PATH_INFO'), &env('QUERY_STRING') ) unless defined($main'plexus_configured); -$enable_include_links = 0; -$enable_mailto_links = 0; - -my $enable_section_indexes = 0; -my $enable_intro = 0; - - # # end of config ####################################################################################### @@ -1308,9 +1301,6 @@ sub do_man { return &faq_output($u) if ( $path =~ /\/(faq|help)\.html$/ ); return &get_the_sources if ( $path =~ /source$/ ); - return &include_output($path) - if ( $enable_include_links && $path =~ m%^/usr/include/% && -f $path ); - return &indexpage if ( $form eq "" ); &decode_form( $form, *form, 0 ); @@ -1835,24 +1825,12 @@ qq{Please try a $match\,; - } # detect references to other manual pages and set link if (/^\s/) { # skip man headers / first line s,((<[IB]>)?[\w\_\.\-]+()?\(([1-9ln][a-zA-Z]*)\)),&mlnk($1),oige; } - # detect E-Mail Addreses in manpages - if ( $enable_mailto_links && /\@/ ) { -s/([a-z0-9_\-\.]+\@[a-z0-9\-\.]+\.[a-z]+)/$1<\/A>/gi; - } - # detect URLs in manpages if (m,\b(http|https)://,) { s|(https?://[^\s\)&<>'`";\]\[]+)|sprintf("%s%s", &url_strip($1))|egi; @@ -2120,8 +2098,6 @@ sub encode_data { push @word, $l[$i]; $i += 2; $flag = 'b'; - - #printf STDERR 'B'; } # italic @@ -2130,8 +2106,6 @@ sub encode_data { push @word, $l[ $i + 2 ]; $i += 2; $flag = 'i'; - - #printf STDERR 'I'; } } @@ -2172,45 +2146,6 @@ sub indexpage { local ($m) = ( $manpath ? $manpath : $manPathDefault ); $m = &encode_url($m); - if ($enable_section_indexes) { - print "Section Indexes:\n"; - foreach ( '1', '2', '3', '4', '5', '6', '7', '8', '9', 'n' ) { - print qq{¤ } if $_ ne '1'; - print -qq{$_\n}; - } - } - - if ($enable_intro) { - print "
Explanations of Man Sections:\n"; - foreach ( '1', '2', '3', '4', '5', '6', '7', '8', '9' ) { - print qq{¤ } if $_ ne '1'; - print -qq{intro($_)\n}; - } - } - - if (0) { - print "
\nQuick Reference Categories:\n"; - foreach ( - 'database', 'disk', 'driver', 'ethernet', 'mail', - 'net', 'nfs', 'nis', 'protocol', 'ppp', - 'roff', 'string', 'scsi', 'statistic', 'tcl', - 'tcp', 'time' - ) - { - print -qq{¤ $_\n}; - } - } - - print <$www{'home'}$BASE
-ETX - - if ($enable_section_indexes || $enable_intro) { - print "
\n"; - } &html_footer( 'no_home_link' => 1, 'no_help_link' => 1 ); }