diff options
author | Marcel Hellkamp <marc@gsites.de> | 2011-09-18 15:56:41 +0200 |
---|---|---|
committer | Marcel Hellkamp <marc@gsites.de> | 2011-09-18 15:57:22 +0200 |
commit | 712965c5c9da0121889f34d24be9b3cb58b15445 (patch) | |
tree | 7825a19d6fc11f5d560d9f65ff82072342ba1a36 | |
parent | 0973cdd5ce41fa8380f55496383599d69b469088 (diff) | |
download | bottle-712965c5c9da0121889f34d24be9b3cb58b15445.tar.gz |
docs: Added a warning and a link to the stable release documentation.
-rw-r--r-- | docs/_templates/sidebar-intro.html | 12 | ||||
-rw-r--r-- | docs/conf.py | 7 |
2 files changed, 15 insertions, 4 deletions
diff --git a/docs/_templates/sidebar-intro.html b/docs/_templates/sidebar-intro.html index 2b99f4e..db54d91 100644 --- a/docs/_templates/sidebar-intro.html +++ b/docs/_templates/sidebar-intro.html @@ -1,6 +1,10 @@ <p> - This is the documentation of Bottle, a fast, simple and lightweight WSGI micro web-framework for Python. + Bottle is a fast, simple and lightweight WSGI micro web-framework for Python. </p> +{% if 'dev' in release %} +<p>This documentation is for Bottle <b>{{release}}</b>, which is + not released yet. The current stable release is <a href="http://bottlepy.org/docs/{{releases[1][0]}}/"><b>Bottle {{releases[1][0]}}</b></a>.</p> +{% endif %} <h3>Some Links</h3> <ul> <li><a target="_blank" href="https://github.com/defnull/bottle/issues">Issue Tracker</a></li> @@ -20,9 +24,9 @@ <p>Browse the sources at <a href="https://github.com/defnull/bottle">GitHub</a>.</p> <h3>Other Releases</h3> <ul> - <li><a href="http://bottlepy.org/docs/dev/">Bottle dev (development)</a></li> - <li><a href="http://bottlepy.org/docs/0.9/">Bottle 0.9 (stable)</a></li> - <li><a href="http://bottlepy.org/docs/0.8/">Bottle 0.8 (oldstable)</a></li> + {% for v, name in releases %} + <li><a href="http://bottlepy.org/docs/{{v}}/">Bottle {{v}} ({{name}})</a></li> + {% endfor %} </ul> diff --git a/docs/conf.py b/docs/conf.py index e944454..20bf41d 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -141,6 +141,13 @@ html_sidebars = { '**': ['localtoc.html', 'relations.html', 'sourcelink.html', 'donation.html', 'searchbox.html'] } +html_context = { + 'releases': [('dev', 'development'), + ('0.9', 'stable'), + ('0.8', 'old stable') + ] +} + # Additional templates that should be rendered to pages, maps page names to # template names. #html_additional_pages = {} |