~ubuntu-branches/ubuntu/utopic/python-networkx/utopic

« back to all changes in this revision

Viewing changes to doc/source/conf.py

  • Committer: Bazaar Package Importer
  • Author(s): Sandro Tosi
  • Date: 2011-03-19 12:19:16 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20110319121916-xrhlpiwc9sa5e028
Tags: 1.4-1
* New upstream release; thanks to Yaroslav Halchenko for the report;
  Closes: #617677
* debian/rules
  - don't compress objects.inv; thanks to Michael Fladischer for the report;
    Closes: #608780
* debian/watch
  - updated to point to PyPi
* debian/control
  - bump python-sphinx versioned b-d-i to 1.0.1 minimum
  - added python-pygraphviz to b-d-i, needed for doc building
* debian/copyright
  - bump upstream and packaging copyright years
* debian/patches/{40_add_networkxcss, 50_boundary-test-fix.patch
                  60_remove_svn_refs.diff 70_set_matplotlib_ps_backend.patch}
  - removed since merged upstream
* debian/patches/{10_doc_relocation, 20_example_dirs_remove,
                  30_use_local_objects.inv}
  - refreshed/adapted to new upstream code

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
import sys, os, re
15
15
 
 
16
# Check Sphinx version
 
17
import sphinx
 
18
if sphinx.__version__ < "1.0.1":
 
19
    raise RuntimeError("Sphinx 1.0.1 or newer required")
 
20
 
16
21
# If your extensions are in another directory, add it here.
17
22
sys.path.append(os.path.abspath('../sphinxext'))
18
23
 
24
29
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.pngmath', 'numpydoc',
25
30
              'sphinx.ext.coverage',
26
31
              'sphinx.ext.autosummary','sphinx.ext.todo','sphinx.ext.doctest',
27
 
              'sphinx.ext.intersphinx']
 
32
              'sphinx.ext.intersphinx', 'customroles']
28
33
 
29
34
# generate autosummary pages
30
35
autosummary_generate=True
51
56
# The short X.Y version.
52
57
import networkx
53
58
version = networkx.__version__
54
 
# The full version, including alpha/beta/rc tags.
55
 
release = version
 
59
# The full version, including dev info
 
60
release = networkx.__version__.replace('_','')
56
61
 
57
62
# There are two options for replacing |today|: either, you set today to some
58
63
# non-false value, then it is used:
69
74
# If true, the current module name will be prepended to all description
70
75
# unit titles (such as .. function::).
71
76
 
72
 
add_module_names = False
 
77
#add_module_names = False
73
78
 
74
79
# show_authors = True
75
80
 
156
161
intersphinx_mapping = {'http://docs.python.org/': '../../debian/python.org_objects.inv',
157
162
                       'http://docs.scipy.org/doc/numpy/': '../../debian/scipy.org_numpy_objects.inv',
158
163
                      }
159
 
 
 
164
                      
 
165
# For trac custom roles
 
166
trac_url = 'https://networkx.lanl.gov/trac/'