docs: Add an unreleased tag.

This allows us to conditionally include a note just for unreleased
versions of the docs (i.e., "latest") and omit it when released.
This commit is contained in:
Greg Price
2018-01-23 10:50:55 -08:00
parent d4a86c840d
commit bffc11f824
2 changed files with 8 additions and 2 deletions

View File

@@ -58,6 +58,11 @@ version = '1.7+git'
# The full version, including alpha/beta/rc tags.
release = '1.7.1+git'
# This allows us to insert a warning that appears only on an unreleased
# version, e.g. to say that something is likely to have changed.
if release.endswith('+git'):
tags.add('unreleased')
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#