From 275524e6d77516214da47317036c50f400bae1a7 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Mon, 9 Jan 2017 13:38:31 +0100 Subject: [PATCH] doc/index.rst: include status links for development documentation --- doc/conf.py | 3 +++ doc/index.rst | 4 ++++ doc/statuslinks.rst | 24 ++++++++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 doc/statuslinks.rst diff --git a/doc/conf.py b/doc/conf.py index d9e738dc..ad030c6a 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -243,3 +243,6 @@ texinfo_documents = [ # How to display URL addresses: 'footnote', 'no', or 'inline'. #texinfo_show_urls = 'footnote' + +def setup(app): + if release.endswith('~alpha'): app.tags.add('devel') diff --git a/doc/index.rst b/doc/index.rst index ca2cae17..c9dfc849 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -18,6 +18,10 @@ Quick links * :ref:`develop` * :ref:`building` +.. only:: devel + + .. include:: statuslinks.rst + Project pages ============= diff --git a/doc/statuslinks.rst b/doc/statuslinks.rst new file mode 100644 index 00000000..b28a6132 --- /dev/null +++ b/doc/statuslinks.rst @@ -0,0 +1,24 @@ +Current status +============== + +.. image:: https://travis-ci.org/aubio/aubio.svg?branch=master + :target: https://travis-ci.org/aubio/aubio + :alt: Travis build status + +.. image:: https://ci.appveyor.com/api/projects/status/f3lhy3a57rkgn5yi?svg=true + :target: https://ci.appveyor.com/project/piem/aubio/ + :alt: Appveyor build status + +.. image:: https://landscape.io/github/aubio/aubio/master/landscape.svg?style=flat + :target: https://landscape.io/github/aubio/aubio/master + :alt: Landscape code health + +.. image:: https://readthedocs.org/projects/aubio/badge/?version=latest + :target: https://aubio.readthedocs.io/en/latest/?badge=latest + :alt: Documentation status + +.. image:: https://img.shields.io/github/commits-since/aubio/aubio/0.4.3.svg?maxAge=2592000 + :target: https://github.com/aubio/aubio + :alt: Commits since last release + + -- 2.11.0