summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2017-04-28 01:19:01 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2017-04-28 01:19:01 +0900
commitbd66ffc1fafd0e83f07e7143f99bc4023bc72508 (patch)
treee9778f8857206e018b3a7030865804eca8cf49b5 /doc
parent67c1a8a59e006697d9b323b076408cc7001c3a4f (diff)
downloadsphinx-git-bd66ffc1fafd0e83f07e7143f99bc4023bc72508.tar.gz
Fix the unreleased version number is shown (refs: #3678, #3027)
Diffstat (limited to 'doc')
-rw-r--r--doc/_templates/indexsidebar.html2
-rw-r--r--doc/conf.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/_templates/indexsidebar.html b/doc/_templates/indexsidebar.html
index bfa0139cb..6359921a5 100644
--- a/doc/_templates/indexsidebar.html
+++ b/doc/_templates/indexsidebar.html
@@ -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
diff --git a/doc/conf.py b/doc/conf.py
index 95d14ec46..6817af12a 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -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