Navigation Menu

Skip to content

Commit

Permalink
doc: use DOCUMENT_VERSION* to pass version information to Sphinx
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed May 30, 2012
1 parent 9772757 commit b4b05aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build/makefiles/sphinx-build.am
Expand Up @@ -13,8 +13,8 @@ ALLSPHINXOPTS = $(PAPEROPT_$(PAPER)) -E $(SPHINXOPTS) $(SOURCE_DIR)
SPHINX_DIR = $(abs_top_builddir)/doc/sphinx
SPHINX_BUILD = $(SPHINX_DIR)/sphinx-build.py
SPHINX_BUILD_COMMAND = \
VERSION="$(DOCUMENT_VERSION)" \
VERSION_FULL="$(DOCUMENT_VERSION_FULL)" \
DOCUMENT_VERSION="$(DOCUMENT_VERSION)" \
DOCUMENT_VERSION_FULL="$(DOCUMENT_VERSION_FULL)" \
LOCALE="$(LOCALE)" \
PYTHONPATH="$(SPHINX_DIR):$$PYTHONPATH" \
python $(SPHINX_BUILD)
Expand Down
4 changes: 2 additions & 2 deletions doc/source/conf.py
Expand Up @@ -49,9 +49,9 @@
# built documents.

# The short X.Y version.
version = os.environ["VERSION"]
version = os.environ["DOCUMENT_VERSION"]
# The full version, including alpha/beta/rc tags.
release = version
release = os.environ["DOCUMENT_VERSION_FULL"]

# The directories that has *.mo files.
locale_dirs = ["../locale"]
Expand Down

0 comments on commit b4b05aa

Please sign in to comment.