diff options
author | Chaoyi Zha <summermontreal@gmail.com> | 2017-02-04 08:09:06 +0300 |
---|---|---|
committer | Chaoyi Zha <summermontreal@gmail.com> | 2017-02-04 08:09:06 +0300 |
commit | ca5341b0460e1346b4ef2155f0bc5d7084b73ed7 (patch) | |
tree | ebc903c4764e6cfb633eccaed96ba8ead8f84f49 | |
parent | 2bd5cfd6122b6f29ad5b250c7145af07ceb1272d (diff) |
Use latest release shield icon instead of manual ly updated icons
-rw-r--r-- | docs/index.md | 2 | ||||
-rw-r--r-- | util/version.py | 10 |
2 files changed, 1 insertions, 11 deletions
diff --git a/docs/index.md b/docs/index.md index 80a0203..e23b6ea 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,6 +1,6 @@ ![Polr Logo](logo.png) [![GitHub license](https://img.shields.io/badge/license-GPLv2%2B-blue.svg)](about/license) -[![GitHub release](https://img.shields.io/badge/stable-2.1.1-green.svg)](https://github.com/cydrobolt/polr/releases) +[![GitHub release](https://img.shields.io/github/release/cydrobolt/polr.svg)](https://github.com/cydrobolt/polr/releases) Polr is a beautiful, modern, lightweight, and minimalist open-source URL shortening application. It allows you to host your own URL shortener, to brand your URLs, and to gain control over your data. Polr is especially easy to use, and provides a modern, themable interface. diff --git a/util/version.py b/util/version.py index 36f4c5a..612e711 100644 --- a/util/version.py +++ b/util/version.py @@ -25,14 +25,4 @@ with open('.env.setup', 'r+') as setup_env: setup_env.write(setup_env_lines) setup_env.truncate() -if is_stable == 'y': - with open('docs/index.md', 'r+') as index_md: - index_md_lines = index_md.read() - index_md_lines = re.sub(r'(?is)stable-[0-9\.]+-green.svg', 'stable-{}-green.svg'.format(new_version), index_md_lines) - - # Overwite existing file - index_md.seek(0) - index_md.write(index_md_lines) - index_md.truncate() - print "Done!" |