From 190b1b3bb8f900af59c6869955fcf5915d5b100c Mon Sep 17 00:00:00 2001
From: Steven Loria <sloria1@gmail.com>
Date: Sun, 6 Nov 2016 14:37:02 -0500
Subject: [PATCH] Fix links; add readme task

---
 .gitignore | 1 +
 README.rst | 6 +++---
 tasks.py   | 8 ++++++++
 3 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/.gitignore b/.gitignore
index 9fa7d127..217117d6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -39,6 +39,7 @@ output/*/index.html
 
 # Sphinx
 docs/_build
+README.html
 
 # Cookiecutter
 output/
diff --git a/README.rst b/README.rst
index ffaf8e7b..0248cbe2 100644
--- a/README.rst
+++ b/README.rst
@@ -78,9 +78,9 @@ Changelog
 0.11.1 (11/06/2016)
 *******************
 
-- Correctly pass first parameter to ``Flask`` according to the 0.11 `docs <http://flask.pocoo.org/docs/0.11/api/#application-object>`. Thanks `aliavni <https://github.com/aliavni>`.
-- Remove setuptools and wheel as dependencies to fix deployment on Heroku. Thanks `Cabalist <https://github.com/Cabalist>`.
-- Make User.password a Binary field for compatibility with new versions of bcrypt. Thanks again `Cabalist <https://github.com/Cabalist>`.
+- Correctly pass first parameter to ``Flask`` according to the 0.11 `docs <http://flask.pocoo.org/docs/0.11/api/#application-object>`_. Thanks `@aliavni <https://github.com/aliavni>`_.
+- Remove setuptools and wheel as dependencies to fix deployment on Heroku. Thanks `@Cabalist <https://github.com/Cabalist>`_.
+- Make User.password a Binary field for compatibility with new versions of bcrypt. Thanks again `@Cabalist <https://github.com/Cabalist>`_.
 
 0.11.0 (09/10/2016)
 *******************
diff --git a/tasks.py b/tasks.py
index 0fe71584..e0086901 100644
--- a/tasks.py
+++ b/tasks.py
@@ -4,6 +4,7 @@
 import os
 import json
 import shutil
+import webbrowser
 
 from invoke import task
 
@@ -44,3 +45,10 @@ def test(ctx):
     os.chdir(COOKIE)
     _run_flask_command(ctx, 'lint')
     _run_flask_command(ctx, 'test')
+
+@task
+def readme(ctx, browse=False):
+    ctx.run("rst2html.py README.rst > README.html")
+    if browse:
+        webbrowser.open_new_tab('README.html')
+
-- 
GitLab