From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-2.7 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, T_FILL_THIS_FORM_SHORT,URIBL_BLOCKED shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: olddoc-public@80x24.org Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 7920B633862 for ; Thu, 15 Oct 2015 01:04:57 +0000 (UTC) From: Eric Wong To: olddoc-public@80x24.org Subject: [PATCH 1/3] support for nntp_url, make private_email optional Date: Thu, 15 Oct 2015 01:04:51 +0000 Message-Id: <20151015010453.24454-2-e@80x24.org> In-Reply-To: <20151015010453.24454-1-e@80x24.org> References: <20151015010453.24454-1-e@80x24.org> List-Id: Not every project needs private email. Maybe none do. While we're at it, fix our own .olddoc.yml to show ml_url. --- .olddoc.yml | 3 ++- Documentation/olddoc.5.txt | 6 +++++- lib/oldweb/_tail.rhtml | 8 ++++++-- olddoc.gemspec | 2 +- 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/.olddoc.yml b/.olddoc.yml index 0b37154..41f3cf8 100644 --- a/.olddoc.yml +++ b/.olddoc.yml @@ -2,8 +2,9 @@ cgit_url: http://bogomips.org/olddoc.git git_url: git://80x24.org/olddoc.git rdoc_url: http://80x24.org/olddoc/ +ml_url: http://80x24.org/olddoc-public/ +nntp_url: nntp://news.public-inbox.org/inbox.comp.lang.ruby.olddoc merge_html: olddoc_1: Documentation/olddoc.1.html olddoc_5: Documentation/olddoc.5.html public_email: olddoc-public@80x24.org -private_email: olddoc@80x24.org diff --git a/Documentation/olddoc.5.txt b/Documentation/olddoc.5.txt index 0b95578..50b6713 100644 --- a/Documentation/olddoc.5.txt +++ b/Documentation/olddoc.5.txt @@ -15,12 +15,16 @@ configuration to deal with. # KEYS -`rdoc_url`, `cgit_url` should be obvious +`rdoc_url`, `cgit_url`, and `nntp_url` should be obvious `merge_html` is a key-value mapping of (empty) RDoc source files to an HTML file that will be merged into RDoc after-the-fact. It is useful for merging non-RDoc generated HTML into the project. +`ml_url` is the mailing list archive location. +`public_email` is the email address of a publically archived mailing list +at `ml_url` + # SEE ALSO olddoc(1) diff --git a/lib/oldweb/_tail.rhtml b/lib/oldweb/_tail.rhtml index d1fc7e5..522c312 100644 --- a/lib/oldweb/_tail.rhtml +++ b/lib/oldweb/_tail.rhtml @@ -2,11 +2,12 @@ public_email = @old_cfg['public_email'] private_email = @old_cfg['private_email'] ml_url = @old_cfg['ml_url'] +nntp_url = @old_cfg['nntp_url'] git_doc = 'https://kernel.org/pub/software/scm/git/docs/' se_url = "#{git_doc}git-send-email.html" rp_url = "#{git_doc}git-request-pull.html" -if public_email && private_email && ml_url %>

+if public_email && ml_url %>


We love to hear from you!
Email patches (using git send-email), @@ -19,7 +20,10 @@ href="<%= ml_url %>"><%= ml_url %>
Please send plain-text email only and do not waste bandwidth on HTML mail, HTML mail will not be read.
Quote as little as reasonable and do not top post.
+href="http://catb.org/jargon/html/T/top-post.html">top post.
<% end +if nntp_url %>NNTP archives are available at: <%= nntp_url %><% end +if private_email %> For sensitive topics, email us privately at: <%= private_email %><% end %> diff --git a/olddoc.gemspec b/olddoc.gemspec index 17b5fa8..11e0a29 100644 --- a/olddoc.gemspec +++ b/olddoc.gemspec @@ -12,7 +12,7 @@ Gem::Specification.new do |s| s.authors = ["#{s.name} hackers"] s.summary = summary s.description = readme_description - s.email = Olddoc.config['private_email'] + s.email = 'e@80x24.org' s.files = manifest s.add_dependency('rdoc', '~> 4.2') s.add_dependency('builder', '~> 3.2') -- EW