diff options
-rw-r--r-- | Changes | 4 | ||||
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | docs/metadata/metadata.json | 1 | ||||
-rw-r--r-- | share/templates/readme-md.tmpl | 6 | ||||
-rw-r--r-- | share/templates/thread.tmpl | 8 | ||||
-rw-r--r-- | t/data/docknot/output/thread | 8 |
6 files changed, 26 insertions, 5 deletions
@@ -6,6 +6,10 @@ DocKnot 1.05 (unreleased) thread development links if the vcs.travis key is set in metadata.json. + Add a Status.io badge for the CPAN version to README.md and a link to + metacpan.org in the thread output if the distribution.cpan key is set + in metadata.json. + DocKnot now requires Perl 5.24 or later. DocKnot 1.04 (2018-03-24) @@ -1,7 +1,9 @@ # DocKnot 1.04 [![Build -Status](https://travis-ci.org/rra/docknot.svg?branch=master)](https://travis-ci.org/rra/docknot) +status](https://travis-ci.org/rra/docknot.svg?branch=master)](https://travis-ci.org/rra/docknot) +[![CPAN +version](https://img.shields.io/cpan/v/App-DocKnot.svg)](https://metacpan.org/release/App-DocKnot) Copyright 2013-2018 Russ Allbery <rra@cpan.org>. This software is distributed under a BSD-style license. Please see the section diff --git a/docs/metadata/metadata.json b/docs/metadata/metadata.json index 90d9e8f..b0371dc 100644 --- a/docs/metadata/metadata.json +++ b/docs/metadata/metadata.json @@ -30,6 +30,7 @@ "section": "devel", "tarname": "App-DocKnot", "version": "docknot", + "cpan": "App-DocKnot", }, "debian": { "personal": true, diff --git a/share/templates/readme-md.tmpl b/share/templates/readme-md.tmpl index 0418b37..d10ecc0 100644 --- a/share/templates/readme-md.tmpl +++ b/share/templates/readme-md.tmpl @@ -1,6 +1,8 @@ # [% name %] [% version %] -[% IF vcs.travis %] -[![Build Status](https://travis-ci.org/[% vcs.travis %].svg?branch=master)](https://travis-ci.org/[% vcs.travis %]) +[% IF vcs.travis || distribution.cpan %] +[% 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 -%] + [% END %] [% FOREACH copr IN copyrights %]Copyright [% copr.years %] [% copr.holder %]. [% END %]This software is distributed under diff --git a/share/templates/thread.tmpl b/share/templates/thread.tmpl index 94c8d28..f5f4e16 100644 --- a/share/templates/thread.tmpl +++ b/share/templates/thread.tmpl @@ -61,7 +61,9 @@ \link[[% vcs.browse %]] [Git repository][% END %][% IF vcs.travis %] \break \link[https://travis-ci.org/[% vcs.travis %]] - [Travis-CI][% END %][% IF vcs.openhub %] \break + [Travis-CI][% END %][% IF distribution.cpan %] \break + \link[https://metacpan.org/release/[% distribution.cpan %]] + [MetaCPAN][% END %][% IF vcs.openhub %] \break \link[[% vcs.openhub %]] [Open HUB code analysis][% END %][% IF packaging.debian %] \break \link[https://tracker.debian.org/pkg/[% packaging.debian %]] @@ -114,6 +116,10 @@ package tracker] for more information. [% ELSIF debian.personal %] A Debian package is available from my \link[../debian.html][personal repository]. +[% END %][% IF distribution.cpan %] +[% name %] is available from CPAN as the +\link[https://metacpan.org/release/[% distribution.cpan %]] +[[% distribution.cpan %] distribution]. [% END %] [% name %] is maintained using the [% vcs.type %] version control system. To check out the current development tree, [% IF vcs.github %]see diff --git a/t/data/docknot/output/thread b/t/data/docknot/output/thread index a01cd42..ce75e43 100644 --- a/t/data/docknot/output/thread +++ b/t/data/docknot/output/thread @@ -47,7 +47,9 @@ \link[https://git.eyrie.org/?p=devel/docknot.git] [Git repository] \break \link[https://travis-ci.org/rra/docknot] - [Travis-CI] + [Travis-CI] \break + \link[https://metacpan.org/release/App-DocKnot] + [MetaCPAN] ] \h2[Blurb] @@ -133,6 +135,10 @@ An \link[https://archives.eyrie.org/software/ARCHIVE/App-DocKnot/] A Debian package is available from my \link[../debian.html][personal repository]. +DocKnot is available from CPAN as the +\link[https://metacpan.org/release/App-DocKnot] [App-DocKnot +distribution]. + DocKnot is maintained using the Git version control system. To check out the current development tree, see \link[https://github.com/rra/docknot][GitHub] or clone: |