]> git.donarmstrong.com Git - neurodebian.git/blobdiff - sphinx/conf.py
Update and de-personalize the copyright.
[neurodebian.git] / sphinx / conf.py
index 16125ab1087798935f432898dc1ffe52ec4df92a..698c32dcdf683a19618551baa0ebcf011cd9b469 100644 (file)
@@ -21,6 +21,21 @@ import sys, os
 # absolute, like shown here.
 #sys.path.append(os.path.abspath('.'))
 
+def artworkdir():
+    """Look into every parent dir for 'artwork' and return its relative path."""
+    level = 0
+    while True:
+        target = os.path.join(*([os.path.pardir] * level + ['artwork']))
+        if os.path.isdir(target):
+            return target
+        else:
+            level += 1
+        # if there is no way up
+        if os.path.abspath(os.path.join(*([os.path.pardir] * level))) == \
+           os.path.abspath(os.path.join(*([os.path.pardir] * (level + 1)))):
+            raise(ValueError, "Cannot find 'artwork'.")
+
+
 # General configuration
 # ---------------------
 
@@ -42,7 +57,7 @@ master_doc = 'index'
 
 # General information about the project.
 project = u'Debian Neuroscience Package Repository'
-copyright = u'2009, Michael Hanke'
+copyright = u'2009-2010, NeuroDebian Team'
 
 # The version info for the project you're documenting, acts as replacement for
 # |version| and |release|, also used in various other places throughout the
@@ -105,17 +120,17 @@ html_title = project
 
 # The name of an image file (relative to this directory) to place at the top
 # of the sidebar.
-html_logo = 'pics/neurodebian.png'
+html_logo = os.path.join(artworkdir(), 'logo_tuned/fmri_w200.png')
 
 # The name of an image file (within the static path) to use as favicon of the
 # docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
 # pixels large.
-#html_favicon = None
+html_favicon = 'favicon.ico'
 
 # Add any paths that contain custom static files (such as style sheets) here,
 # relative to this directory. They are copied after the builtin static files,
 # so a file named "default.css" will overwrite the builtin "default.css".
-html_static_path = ['_static', 'static']
+html_static_path = ['_static']
 
 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
 # using the given strftime format.
@@ -136,7 +151,7 @@ html_static_path = ['_static', 'static']
 html_use_modindex = False
 
 # If false, no index is generated.
-#html_use_index = True
+html_use_index = False
 
 # If true, the index is split into individual pages for each letter.
 #html_split_index = False