Source

pygnetic / doc / conf.py

Diff from to

File doc/conf.py

 # -*- coding: utf-8 -*-
 #
-# pygame_network documentation build configuration file, created by
+# pygnetic documentation build configuration file, created by
 # sphinx-quickstart on Sun Jun 17 20:09:12 2012.
 #
 # This file is execfile()d with the current directory set to its containing dir.
 # If extensions (or modules to document with autodoc) are in another directory,
 # add these directories to sys.path here. If the directory is relative to the
 # documentation root, use os.path.abspath to make it absolute, like shown here.
-sys.path.insert(0, os.path.abspath('../pygame_network'))
+sys.path.insert(0, os.path.abspath('..'))
 
 # -- General configuration -----------------------------------------------------
 
 # Add any Sphinx extension module names here, as strings. They can be extensions
 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
 #extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode']
-extensions = ['sphinx.ext.viewcode', 'sphinx.ext.intersphinx']
+extensions = ['sphinx.ext.autodoc',
+              'sphinx.ext.viewcode',
+              'sphinx.ext.intersphinx',
+              ]
 
 # Add any paths that contain templates here, relative to this directory.
 templates_path = ['_templates']
 master_doc = 'index'
 
 # General information about the project.
-project = u'Easy Pygame networking module'
+project = u'pygnetic'
 copyright = u'2012, Szymon Wróblewski'
 
 # 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.
 #
+import pygnetic
+import distutils.version
+v = distutils.version.StrictVersion(pygnetic.__version__)
 # The short X.Y version.
-version = '0.1'
+version = '.'.join(map(str, v.version[:2]))
 # The full version, including alpha/beta/rc tags.
-release = '0.1'
+release = str(v)
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
 
 # The name of an image file (relative to this directory) to place at the top
 # of the sidebar.
-#html_logo = None
+html_logo = '_static/pygnetic.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
 #html_file_suffix = None
 
 # Output file base name for HTML help builder.
-htmlhelp_basename = 'pygame_networkdoc'
+htmlhelp_basename = 'pygneticdoc'
 
 
 # -- Options for LaTeX output --------------------------------------------------
 # Grouping the document tree into LaTeX files. List of tuples
 # (source start file, target name, title, author, documentclass [howto/manual]).
 latex_documents = [
-  ('index', 'pygame_network.tex', u'Pygame network Documentation',
+  ('index', 'pygnetic.tex', u'Pygame network Documentation',
    u'Szymon Wróblewski', 'manual'),
 ]
 
 # One entry per manual page. List of tuples
 # (source start file, name, description, authors, manual section).
 man_pages = [
-    ('index', 'pygame_network', u'pygame_network Documentation',
+    ('index', 'pygnetic', u'pygnetic Documentation',
      [u'Szymon Wróblewski'], 1)
 ]
 
 # (source start file, target name, title, author,
 #  dir menu entry, description, category)
 texinfo_documents = [
-  ('index', 'pygame_network', u'pygame_network Documentation',
-   u'Szymon Wróblewski', 'pygame_network', 'One line description of project.',
+  ('index', 'pygnetic', u'pygnetic Documentation',
+   u'Szymon Wróblewski', 'pygnetic', 'One line description of project.',
    'Miscellaneous'),
 ]
 
 # -- Options for Epub output ---------------------------------------------------
 
 # Bibliographic Dublin Core info.
-epub_title = u'pygame_network'
+epub_title = u'pygnetic'
 epub_author = u'Szymon Wróblewski'
 epub_publisher = u'Szymon Wróblewski'
 epub_copyright = u'2012, Szymon Wróblewski'