1
0
mirror of https://github.com/cydrobolt/polr.git synced 2024-09-19 15:11:40 +02:00

Use latest release shield icon instead of manual ly updated icons

This commit is contained in:
Chaoyi Zha 2017-02-04 00:09:06 -05:00
parent 2bd5cfd612
commit ca5341b046
2 changed files with 1 additions and 11 deletions

View File

@ -1,6 +1,6 @@
![Polr Logo](logo.png) ![Polr Logo](logo.png)
[![GitHub license](https://img.shields.io/badge/license-GPLv2%2B-blue.svg)](about/license) [![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. 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.

View File

@ -25,14 +25,4 @@ with open('.env.setup', 'r+') as setup_env:
setup_env.write(setup_env_lines) setup_env.write(setup_env_lines)
setup_env.truncate() 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!" print "Done!"