From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id F16191F4AA for ; Thu, 9 May 2019 07:51:04 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 6/9] doc: give txt files proper titles Date: Thu, 9 May 2019 07:51:00 +0000 Message-Id: <20190509075103.27132-7-e@80x24.org> In-Reply-To: <20190509075103.27132-1-e@80x24.org> References: <20190509075103.27132-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: We can fix the redundant rule in include.mk which causes make(1) on FreeBSD to complain; but HTML docs will likely still require GNU make. --- Documentation/design_www.txt | 2 ++ Documentation/hosted.txt | 2 ++ Documentation/include.mk | 5 +++-- Documentation/txt2pre | 3 +-- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Documentation/design_www.txt b/Documentation/design_www.txt index cd715b2..f15a556 100644 --- a/Documentation/design_www.txt +++ b/Documentation/design_www.txt @@ -1,3 +1,5 @@ +PublicInbox::WWW (PSGI interface) design notes + URL and anchor naming --------------------- diff --git a/Documentation/hosted.txt b/Documentation/hosted.txt index 42926d2..0b1fb92 100644 --- a/Documentation/hosted.txt +++ b/Documentation/hosted.txt @@ -1,3 +1,5 @@ +unofficially hosted mirrors at public-inbox.org + In addition to eating our own dogfood at , public-inbox.org hosts unofficial archives for several other projects as a service to their users and to further test our own software. diff --git a/Documentation/include.mk b/Documentation/include.mk index 02cbef3..9089e06 100644 --- a/Documentation/include.mk +++ b/Documentation/include.mk @@ -87,8 +87,9 @@ dtxt := $(addprefix Documentation/, $(dtxt)) $(mantxt) Documentation/standards.txt : Documentation/standards.perl $(PERL) $< >$@+ && mv $@+ $@ -%.html: %.txt - TITLE="$(basename $( }; -my $title = $ENV{TITLE}; -($title) = ($str =~ /\A([^\n]+)/) unless $title; +my ($title) = ($str =~ /\A([^\n]+)/); $title = ascii_html($title); my $l = PublicInbox::Linkify->new; $str = $l->linkify_1($str); -- EW