Fix the unreleased version number is shown (refs: #3678, #3027)

This commit is contained in:
Takeshi KOMIYA
2017-04-28 01:19:01 +09:00
parent 67c1a8a59e
commit bd66ffc1fa
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
{%trans%}project{%endtrans%}</p>
<h3>Download</h3>
{% if version.endswith('a0') %}
{% if version.endswith('+') %}
<p>{%trans%}This documentation is for version <b><a href="changes.html">{{ version }}</a></b>, which is
not released yet.{%endtrans%}</p>
<p>{%trans%}You can use it from the

View File

@@ -16,7 +16,7 @@ exclude_patterns = ['_build']
project = 'Sphinx'
copyright = '2007-2017, Georg Brandl and the Sphinx team'
version = sphinx.__released__
version = sphinx.__display_version__
release = version
show_authors = True