diff --git a/docs/fragments/badges.rst b/docs/fragments/badges.rst new file mode 100644 index 0000000..c498b33 --- /dev/null +++ b/docs/fragments/badges.rst @@ -0,0 +1,14 @@ +.. image:: https://img.shields.io/badge/python-3.6%20%7C%203.7%20%7C%203.8%20%7C%203.9%20%7C%203.10%20%7C%203.11-blue + :target: https://pypi.org/project/doubledate + +.. image:: https://github.com/dschenck/doubledate/workflows/doubledate/badge.svg + :target: https://github.com/dschenck/doubledate/actions + +.. image:: https://badge.fury.io/py/doubledate.svg + :target: https://badge.fury.io/py/doubledate + +.. image:: https://readthedocs.org/projects/doubledate/badge/?version=latest + :target: https://doubledate.readthedocs.io/en/latest/?badge=latest + +.. image:: https://img.shields.io/badge/code%20style-black-000000.svg + :target: https://github.com/psf/black \ No newline at end of file diff --git a/docs/index.rst b/docs/index.rst index 7168e68..9509641 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -2,20 +2,7 @@ doubledate ===================================== **doubledate** exposes a set of 20+ utility functions as well as an immutable :code:`Calendar` object representing a sorted-set of dates. -.. image:: https://img.shields.io/badge/python-3.6%20%7C%203.7%20%7C%203.8%20%7C%203.9%20%7C%203.10%20%7C%203.11-blue - :target: https://pypi.org/project/doubledate - -.. image:: https://github.com/dschenck/doubledate/workflows/doubledate/badge.svg - :target: https://github.com/dschenck/doubledate/actions - -.. image:: https://badge.fury.io/py/doubledate.svg - :target: https://badge.fury.io/py/doubledate - -.. image:: https://readthedocs.org/projects/doubledate/badge/?version=latest - :target: https://doubledate.readthedocs.io/en/latest/?badge=latest - -.. image:: https://img.shields.io/badge/code%20style-black-000000.svg - :target: https://github.com/psf/black +.. include:: fragments/badges.rst Installation ------------------------------------- diff --git a/docs/source/installation.rst b/docs/source/installation.rst index b7f54fc..5bd63b7 100644 --- a/docs/source/installation.rst +++ b/docs/source/installation.rst @@ -1,5 +1,7 @@ Installation -======================== +============ +.. include:: ../fragments/badges.rst + :code:`doubledate` is hosted in `PyPI `_ - you can install it using pip: :: @@ -17,7 +19,7 @@ Installing a specific version of :code:`doubledate`: Dependencies ------------------------- -:code:`doubledate` has the following dependencies: +:code:`doubledate` has the following 2 dependencies: - `sortedcontainers `_ - `python-dateutil `_