Skip to content

Commit

Permalink
Merge 2913c0e into 3e3deff
Browse files Browse the repository at this point in the history
  • Loading branch information
tiborsimko committed Nov 20, 2017
2 parents 3e3deff + 2913c0e commit 7800b95
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
4 changes: 3 additions & 1 deletion docs/examplesapp.rst
Expand Up @@ -24,4 +24,6 @@
Example application
===================

.. automodule:: app
.. include:: ../examples/app.py
:start-after: SPHINX-START
:end-before: SPHINX-END
18 changes: 12 additions & 6 deletions examples/app.py
Expand Up @@ -25,29 +25,35 @@

"""Minimal Flask application example for development.
Run the development server:
SPHINX-START
A simple example application demonstrating Invenio-I18N language rendering.
First, install and set up the example application:
.. code-block:: console
$ pip install -e .[all]
$ cd examples
$ ./app-setup.sh
Run example development server:
Now start the example application server:
.. code-block:: console
$ FLASK_APP=app.py flask run --debugger -p 5000
The example application will render "Hello World" and display language
selectors for english, danish and spanish that allow you to change the text to
the given language.
The example application will render "Hello World" and display the language
selectors for English, Danish and Spanish. It will allow you to change the
text to the given language.
To be able to uninstall the example app:
You can uninstall the example application as follows:
.. code-block:: console
$ ./app-teardown.sh
SPHINX-END
"""

from __future__ import absolute_import, print_function
Expand Down
2 changes: 1 addition & 1 deletion invenio_i18n/version.py
Expand Up @@ -30,4 +30,4 @@

from __future__ import absolute_import, print_function

__version__ = '1.0.0b4'
__version__ = '1.0.0b5.dev20171120'

0 comments on commit 7800b95

Please sign in to comment.