dabodoc Commit
Revision 83
Date: 2012-03-02 10:27:52 -0800 (Fri, 02 Mar 2012)
Author: Ed
Trac: http://trac.dabodev.com/changeset/83
Changed:
U trunk/api/sphinx/source/conf.py
Log:
Changed the copyright year and Dabo version to be dynamically determined.
Diff:
Modified: trunk/api/sphinx/source/conf.py
===================================================================
--- trunk/api/sphinx/source/conf.py 2011-07-01 15:15:41 UTC (rev 82)
+++ trunk/api/sphinx/source/conf.py 2012-03-02 18:27:52 UTC (rev 83)
@@ -11,7 +11,9 @@
# All configuration values have a default; values that are commented out
# serve to show the default.
-import sys, os
+import datetime
+import os
+import sys
import pkg_resources
pkg_resources.require("rst2pdf") # get latest version
@@ -73,17 +75,17 @@
# General information about the project.
project = u'Dabo'
-copyright_year = '2011'
-copyright = copyright_year + u' by Ed Leafe and Paul McNett'
+copyright_year = datetime.date.today().year
+copyright = u'%s by Ed Leafe and Paul McNett' % copyright_year
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
-version = '0.9.3'
+version = dabo.version["version"]
# The full version, including alpha/beta/rc tags.
-release = '0.9.3'
+release = version
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]