diff --git a/.gitignore b/.gitignore index 9fa7d12..217117d 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 ffaf8e7..0248cbe 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 `. Thanks `aliavni `. -- Remove setuptools and wheel as dependencies to fix deployment on Heroku. Thanks `Cabalist `. -- Make User.password a Binary field for compatibility with new versions of bcrypt. Thanks again `Cabalist `. +- Correctly pass first parameter to ``Flask`` according to the 0.11 `docs `_. Thanks `@aliavni `_. +- Remove setuptools and wheel as dependencies to fix deployment on Heroku. Thanks `@Cabalist `_. +- Make User.password a Binary field for compatibility with new versions of bcrypt. Thanks again `@Cabalist `_. 0.11.0 (09/10/2016) ******************* diff --git a/tasks.py b/tasks.py index 0fe7158..e008690 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') +