Skip to content

Commit

Permalink
Displays version number in documentation index.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfinkels committed Apr 10, 2016
1 parent 4b3cc1b commit c2c7a9d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@

if 'dev' in release:
release = release.split('dev')[0] + 'dev'
version = '.'.join(release.split('.')[:2])
version = '.'.join(release.split('.')[:3])

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
6 changes: 6 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ Flask-Restless
models defined using SQLAlchemy (or Flask-SQLAlchemy). The generated APIs
satisfy the requirements of the `JSON API`_ specification.

This is the documentation for version |version|. See also the the most recent
`stable version documentation`_ and the `development version documentation`_

.. _stable version documentation: https://flask-restless.readthedocs.org/en/stable/
.. _development version documentation: https://flask-restless.readthedocs.org/en/latest

.. warning::

This is a "beta" version, so there may be more bugs than usual. There are
Expand Down

0 comments on commit c2c7a9d

Please sign in to comment.