From 4d8b54150ac344717b3993d91697c1fe77a7eb52 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Fri, 23 Jul 2010 15:36:39 +0100 Subject: [PATCH] Removed extension dev part on website, now part of docs --- .../templates/extensions/creating.html | 48 ------------------- flask_website/templates/extensions/index.html | 4 +- flask_website/views/extensions.py | 2 +- 3 files changed, 3 insertions(+), 51 deletions(-) delete mode 100644 flask_website/templates/extensions/creating.html diff --git a/flask_website/templates/extensions/creating.html b/flask_website/templates/extensions/creating.html deleted file mode 100644 index fa2c6e8f..00000000 --- a/flask_website/templates/extensions/creating.html +++ /dev/null @@ -1,48 +0,0 @@ -{% extends "extensions/layout.html" %} -{% block title %}Creating Extensions{% endblock %} -{% block body %} -

Creating Extensions

-

- Extensions to Flask are regular Python packages. But there are some - rules you should/must follow so that we can enlist your extension on - the Flask extension registry: -

    -
  1. - Your extension must be placed in a flaskext. - namespace package. This makes it easier for others to locate - your extension and does not clutter the PyPI index with generic - toplevel packages. -
  2. - Your extension should have the word “Flask” in the name. This - makes it easier to locate all the packages that go well with - Flask. This is also how the moderators of the extension registry - spot your extension. -
  3. - The extension should be documented with Sphinx and it's recommended - to use intersphinx to interlink the documentation with Flask itself - and other extensions it might depend on. It's also recommended to use - the Flask - Sphinx Themes or a modified version of one of them. -
  4. - Extensions should have proper dependencies in the setup.py - file specified so that installation with pip/easy_install works. -
  5. - Ideally your extension has at least one example in the repository - or tarball so that it's easier to understand how it works. -
-

- To simplify creating new extensions there is a script that can - bootstrap a new extension: flask-extension-wizard -

- We scan the PyPI index in regular intervals for new Flask packages - so your extension should sooner or later end up here. If this is - not quick enough for you, send me a mail. -

- If you need some help on extension development check out the - guide on extension development and consider joining the - mailinglist - and IRC channel. -{% endblock %} diff --git a/flask_website/templates/extensions/index.html b/flask_website/templates/extensions/index.html index 9d423e20..5fa8995d 100644 --- a/flask_website/templates/extensions/index.html +++ b/flask_website/templates/extensions/index.html @@ -5,8 +5,8 @@ Welcome to the Flask extensions registry. Here you can find a list of packages that extend Flask. This list is moderated and updated on a regular basis. If you want your package to show up here, - follow the guide on creating - extensions. + follow the guide on creating extensions. {% for extension in extensions %}

{{ extension.name }}

diff --git a/flask_website/views/extensions.py b/flask_website/views/extensions.py index 91757de5..cd3bf031 100644 --- a/flask_website/views/extensions.py +++ b/flask_website/views/extensions.py @@ -14,4 +14,4 @@ def index(): @mod.route('/creating/') def creating(): - return render_template('extensions/creating.html') + return redirect(url_for('docs.show', page='extensiondev'), 301)