Commits

Éric Araujo committed 28c8dc2

Fiddle with conf.py

  • Participants
  • Parent commits 023b812

Comments (0)

Files changed (2)

 # This file has been minimized, run sphinx-quickstart in an empty dir
 # to get a new file with all options, default values and comments.
 
-extensions = []
-templates_path = ['_templates']
-source_suffix = '.rst'
-master_doc = 'index'
+import sphinx
+
 project = u'Static Metadata Discussion'
 copyright = u'2010, Carl Meyer, Éric Araujo and others'
-version = '0.1'
+version = '1.5'
 release = version
+
+master_doc = 'index'
+source_suffix = '.rst'
+templates_path = ['_templates']
 exclude_trees = ['_build']
+
 add_function_parentheses = False # a reference is not a call dammit
 pygments_style = 'sphinx'
 html_theme = 'default'
-html_theme_options = {'collapsiblesidebar': True} # requires Sphinx 1.0
 html_title = project
 htmlhelp_basename = 'StaticMetadataDiscussion'
+
+if sphinx.__version__[:3] >= '1.0':
+    html_theme_options = {'collapsiblesidebar': True}
+

new-config-file.rst

 :Author: Éric Araujo <merwok@netwok.org>
 :Credits: Carl Meyer, folks at PyCon 2010, people in #distutils
 :License: PSF
-:Revision: 1.4
+:Revision: |version|
 
 .. warning::