Skip to content

Commit

Permalink
flag 'latest' docs with a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
djmitche committed Aug 9, 2011
1 parent 0b30fed commit af52c49
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion master/docs/manual/conf.py
Expand Up @@ -11,7 +11,7 @@
# All configuration values have a default; values that are commented out
# serve to show the default.

import sys, os
import sys, os, textwrap

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down Expand Up @@ -55,6 +55,15 @@
# The full version, including alpha/beta/rc tags.
release = version

# add a loud note for anyone loking at the latest docs
if release == 'latest':
rst_prolog = textwrap.dedent("""\
.. caution:: This page documents the latest, unreleased version of
Buildbot. For documentation for released versions, see
http://buildbot.net/buildbot/docs.
""")

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#language = None
Expand Down

0 comments on commit af52c49

Please sign in to comment.