diff options
author | Russ Allbery <rra@cpan.org> | 2019-12-31 22:57:19 -0800 |
---|---|---|
committer | Russ Allbery <rra@cpan.org> | 2019-12-31 22:57:19 -0800 |
commit | 086994d9ec254208ec57b7d549a63d01cbb1b0eb (patch) | |
tree | e983f2486adf8d04025418839bc0a873698fdb11 | |
parent | c401c0cdeafc6e44374709a317e4095bb0df52df (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-- | Changes | 3 | ||||
-rw-r--r-- | share/templates/readme-md.tmpl | 3 | ||||
-rw-r--r-- | t/data/generate/lbcd/output/readme-md | 3 |
3 files changed, 8 insertions, 1 deletions
@@ -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 |