summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Allbery <rra@cpan.org>2019-12-31 22:57:19 -0800
committerRuss Allbery <rra@cpan.org>2019-12-31 22:57:19 -0800
commit086994d9ec254208ec57b7d549a63d01cbb1b0eb (patch)
treee983f2486adf8d04025418839bc0a873698fdb11
parentc401c0cdeafc6e44374709a317e4095bb0df52df (diff)
Add support for No Maintenance Intended
Add support for the No Maintenance Intended badge in the Markdown README file if the package is marked as orphaned.
-rw-r--r--Changes3
-rw-r--r--share/templates/readme-md.tmpl3
-rw-r--r--t/data/generate/lbcd/output/readme-md3
3 files changed, 8 insertions, 1 deletions
diff --git a/Changes b/Changes
index a183bf6..9c74d4d 100644
--- a/Changes
+++ b/Changes
@@ -2,6 +2,9 @@
DocKnot 3.02 (unreleased)
+ Add support for the No Maintenance Intended badge in the Markdown
+ README file if the package is marked as orphaned.
+
docknot dist now removes any existing directory when creating a new
distribution. It overrides permissions if possible while doing this
so that it can clean up from a failed Automake make distcheck, so the
diff --git a/share/templates/readme-md.tmpl b/share/templates/readme-md.tmpl
index 035a9b2..200d4cc 100644
--- a/share/templates/readme-md.tmpl
+++ b/share/templates/readme-md.tmpl
@@ -1,5 +1,6 @@
# [% name %] [% version %]
-[% IF vcs.travis || distribution.cpan %]
+[% IF vcs.travis || distribution.cpan || orphaned %]
+[% IF orphaned %][![No maintenance intended](http://unmaintained.tech/badge.svg)](http://unmaintained.tech/)[% END -%]
[% IF vcs.travis %][![Build status](https://travis-ci.org/[% vcs.travis %].svg?branch=master)](https://travis-ci.org/[% vcs.travis %])[% END -%]
[% IF distribution.cpan %] [![CPAN version](https://img.shields.io/cpan/v/[% distribution.cpan %].svg)](https://metacpan.org/release/[% distribution.cpan %])[% END -%]
diff --git a/t/data/generate/lbcd/output/readme-md b/t/data/generate/lbcd/output/readme-md
index c9e1763..e7bcb52 100644
--- a/t/data/generate/lbcd/output/readme-md
+++ b/t/data/generate/lbcd/output/readme-md
@@ -1,5 +1,8 @@
# lbcd 3.4.2
+[![No maintenance
+intended](http://unmaintained.tech/badge.svg)](http://unmaintained.tech/)
+
Copyright 1993-1994, 1996-1998, 2000, 2003-2009, 2012-2013 The Board of
Trustees of the Leland Stanford Junior University. This software is
distributed under a BSD-style license. Please see the section