lib/wrongdoc/final.rb in wrongdoc-1.7.0 vs lib/wrongdoc/final.rb in wrongdoc-1.8.0
- old
+ new
@@ -13,10 +13,11 @@
end
def initialize(opts, git_tag = nil)
@cgit_uri = URI.parse(opts[:cgit_url])
@rdoc_uri = URI.parse(opts[:rdoc_url])
+ @ml_uri = URI.parse(opts[:ml_url])
@public_email = opts[:public_email] or warn ":public_email unset"
@private_email = opts[:private_email] or warn ":private_email unset"
@git_tag = git_tag
end
@@ -38,11 +39,11 @@
# if your project's big enough to need JS search, it's too bloated
doc.search('span.search-toggle').each(&unlink)
doc.search('form').each(&unlink)
- # remove W3C validator link, we don't care as long as there's no JS
+ # remove W3C validator link, we use tidy instead
doc.search('div#validator-badges p').each { |x|
/Validate/i =~ x.content and x.unlink
}
# this shows up in browsers that don't do stylesheets
@@ -89,12 +90,12 @@
@public_email && @private_email or return
txt = <<-EOF
We love to hear from you!<br />
Email patches (with <a href="#{SE_URL}">git send-email</a>),
pull requests, questions, bug reports, suggestions, etc.
- to us publically at
- <a href="mailto:#@public_email">#@public_email</a>.<br />
+ to us publically at:
+ <a href="mailto:#@public_email">#@public_email</a><br />
EOF
case @public_email
when /@librelist\.(?:com|org)\z/
txt << <<-EOF
@@ -110,21 +111,28 @@
To subscribe, email
<a href="mailto:#{requests}?subject=subscribe">#{requests}</a>
with \"subscribe\" in the Subject
and respond to the automated confirmation message.
EOF
+ when /public/
+ txt << <<-EOF
+ This is a <a href="http://public-inbox.org/">public-inbox</a> with no sign up.<br />
+ Please Cc: all recipients on replies, as not everybody subscribes
+ with <a href="http://ssoma.public-inbox.org/">ssoma</a>.<br />
+ See <a href="#@ml_uri">#@ml_uri</a> for archives and more information.
+ EOF
end
txt << <<-EOF
<br />
<b>
Do not waste bandwidth with HTML, HTML mail will not be read.<br />
Quote only parts you're responding to and do not
<a href="http://catb.org/jargon/html/T/top-post.html">top post</a>.
<br />
</b>
- For sensitive topics, email us privately at
- <a href="mailto:#@private_email">#@private_email</a>.
+ For sensitive topics, email us privately at:
+ <a href="mailto:#@private_email">#@private_email</a>
EOF
para = Nokogiri::XML.fragment(txt)
last.parent.parent.add_next_sibling(para)
end