From owner-svn-doc-head@freebsd.org Sun Aug 27 17:38:38 2017 Return-Path: Delivered-To: svn-doc-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 87B60DF45D7; Sun, 27 Aug 2017 17:38:38 +0000 (UTC) (envelope-from wosch@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 512A57CCF9; Sun, 27 Aug 2017 17:38:38 +0000 (UTC) (envelope-from wosch@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v7RHcb9g067457; Sun, 27 Aug 2017 17:38:37 GMT (envelope-from wosch@FreeBSD.org) Received: (from wosch@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v7RHcbP6067456; Sun, 27 Aug 2017 17:38:37 GMT (envelope-from wosch@FreeBSD.org) Message-Id: <201708271738.v7RHcbP6067456@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: wosch set sender to wosch@FreeBSD.org using -f From: Wolfram Schneider Date: Sun, 27 Aug 2017 17:38:37 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r50730 - head/en_US.ISO8859-1/htdocs/cgi X-SVN-Group: doc-head X-SVN-Commit-Author: wosch X-SVN-Commit-Paths: head/en_US.ISO8859-1/htdocs/cgi X-SVN-Commit-Revision: 50730 X-SVN-Commit-Repository: doc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the doc tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Aug 2017 17:38:38 -0000 Author: wosch Date: Sun Aug 27 17:38:37 2017 New Revision: 50730 URL: https://svnweb.freebsd.org/changeset/doc/50730 Log: disable index section and intro links on homepage Modified: head/en_US.ISO8859-1/htdocs/cgi/man.cgi Modified: head/en_US.ISO8859-1/htdocs/cgi/man.cgi ============================================================================== --- head/en_US.ISO8859-1/htdocs/cgi/man.cgi Sun Aug 27 03:10:37 2017 (r50729) +++ head/en_US.ISO8859-1/htdocs/cgi/man.cgi Sun Aug 27 17:38:37 2017 (r50730) @@ -929,6 +929,10 @@ $want_to_link_to_this_page = 1; $enable_include_links = 0; $enable_mailto_links = 0; +my $enable_section_indexes = 0; +my $enable_intro = 0; + + # # end of config ####################################################################################### @@ -1657,19 +1661,23 @@ 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"; @@ -1689,7 +1697,9 @@ qq{¤ $www{'home'}$BASE
ETX - print "
\n"; + if ($enable_section_indexes || $enable_intro) { + print "
\n"; + } &html_footer( 'no_home_link' => 1 ); } @@ -1773,9 +1783,10 @@ ETX Output format +
home | help -
+
ETX 0; }