Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / docs / conf.py @ f1fc1e9c

History | View | Annotate | Download (1.3 kB)

1 4a3e83c6 Kostas Papadimitriou
import sys, os
2 4a3e83c6 Kostas Papadimitriou
3 cfa5eb53 Kostas Papadimitriou
sys.path.insert(0, os.path.abspath('../'))
4 cfa5eb53 Kostas Papadimitriou
from synnefo import settings
5 cfa5eb53 Kostas Papadimitriou
from django.core.management import setup_environ
6 cfa5eb53 Kostas Papadimitriou
setup_environ(settings)
7 cfa5eb53 Kostas Papadimitriou
8 4a3e83c6 Kostas Papadimitriou
9 b1996c81 Kostas Papadimitriou
project = u'snf-cyclades-app'
10 9940eacf Kostas Papadimitriou
copyright = u'2012, GRNET'
11 9940eacf Kostas Papadimitriou
version = '0.8'
12 9940eacf Kostas Papadimitriou
release = '0.8'
13 9940eacf Kostas Papadimitriou
html_title = 'synnefo ' + version
14 4a3e83c6 Kostas Papadimitriou
15 4a3e83c6 Kostas Papadimitriou
templates_path = ['_templates']
16 4a3e83c6 Kostas Papadimitriou
source_suffix = '.rst'
17 4a3e83c6 Kostas Papadimitriou
master_doc = 'index'
18 4a3e83c6 Kostas Papadimitriou
exclude_patterns = ['_build']
19 4a3e83c6 Kostas Papadimitriou
pygments_style = 'sphinx'
20 4a447e99 Kostas Papadimitriou
html_theme = 'nature'
21 4a3e83c6 Kostas Papadimitriou
html_static_path = ['_static']
22 9940eacf Kostas Papadimitriou
htmlhelp_basename = 'synnefodoc'
23 4a3e83c6 Kostas Papadimitriou
24 9940eacf Kostas Papadimitriou
intersphinx_mapping = {
25 9940eacf Kostas Papadimitriou
        'pithon': ('http://docs.python.org/', None),
26 9940eacf Kostas Papadimitriou
        'django': ('https://docs.djangoproject.com/en/dev/',
27 9940eacf Kostas Papadimitriou
                   'https://docs.djangoproject.com/en/dev/_objects/')
28 4a3e83c6 Kostas Papadimitriou
}
29 4a3e83c6 Kostas Papadimitriou
30 9940eacf Kostas Papadimitriou
SYNNEFO_DOCS_BASE_URL = 'http://docs.dev.grnet.gr/'
31 9940eacf Kostas Papadimitriou
SYNNEFO_PROJECTS = {
32 9940eacf Kostas Papadimitriou
    'synnefo': 'dev',
33 9940eacf Kostas Papadimitriou
    'pithos': 'dev',
34 9940eacf Kostas Papadimitriou
    'snf-webproject': 'dev',
35 9940eacf Kostas Papadimitriou
    'snf-common': 'dev',
36 9940eacf Kostas Papadimitriou
    'snf-image': 'dev',
37 b1996c81 Kostas Papadimitriou
    'snf-cyclades-app': 'dev'
38 9940eacf Kostas Papadimitriou
}
39 c9a968e8 Kostas Papadimitriou
40 9940eacf Kostas Papadimitriou
for name, ver in SYNNEFO_PROJECTS.iteritems():
41 9940eacf Kostas Papadimitriou
    intersphinx_mapping[name.replace("-","")] = (SYNNEFO_DOCS_BASE_URL +
42 9940eacf Kostas Papadimitriou
                                                 '%s/%s/' % (name, ver),
43 9940eacf Kostas Papadimitriou
                                 None)
44 c469ca86 Kostas Papadimitriou
45 9940eacf Kostas Papadimitriou
extensions = ['sphinx.ext.intersphinx',
46 9940eacf Kostas Papadimitriou
              'sphinx.ext.todo',
47 cfa5eb53 Kostas Papadimitriou
              'sphinx.ext.viewcode',
48 cfa5eb53 Kostas Papadimitriou
              'sphinx.ext.autodoc']