Commit 22936c39 by benjaoming

Automating version number for sphinx

parent f232fd65
#!/bin/bash
#sphinx-build -b html . _build
make html
...@@ -41,16 +41,32 @@ master_doc = 'index' ...@@ -41,16 +41,32 @@ master_doc = 'index'
# General information about the project. # General information about the project.
project = u'django-wiki' project = u'django-wiki'
copyright = u'2012, Benjamin Bach' copyright = u'2013, Benjamin Bach'
path = os.path.join(
os.path.split(
os.path.abspath(
os.path.dirname(__file__)
)
)[:-1]
)[0]
sys.path = [path] + sys.path
sys.path = [os.path.join(path, 'wiki')] + sys.path
import wiki
print wiki.__file__
# The version info for the project you're documenting, acts as replacement for # The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the # |version| and |release|, also used in various other places throughout the
# built documents. # built documents.
# #
# The short X.Y version. # The short X.Y version.
version = '0.1' version = ".".join(wiki.VERSION.split(".")[:-1])
# The full version, including alpha/beta/rc tags. # The full version, including alpha/beta/rc tags.
release = '0.1.1' release = wiki.VERSION
# The language for content autogenerated by Sphinx. Refer to documentation # The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages. # for a list of supported languages.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment