Statistics
| Branch: | Tag: | Revision:

root / snf-common / docs / conf.py @ 762b93d7

History | View | Annotate | Download (2.1 kB)

1
import sys
2
import os
3

    
4
sys.path.insert(0, os.path.abspath('../'))
5
from synnefo.versions.common import __version__
6

    
7
project = u'snf-common'
8
copyright = u'2012-2013, GRNET'
9
version = __version__
10
release = __version__
11
html_title = 'synnefo ' + version
12

    
13
templates_path = ['_templates']
14
source_suffix = '.rst'
15
master_doc = 'index'
16
exclude_patterns = ['_build']
17
pygments_style = 'sphinx'
18
html_theme = 'default'
19
html_theme_options = {'collapsiblesidebar': 'true',
20
                      'footerbgcolor':    '#55b577',
21
                      'footertextcolor':  '#000000',
22
                      'sidebarbgcolor':   '#ffffff',
23
                      'sidebarbtncolor':  '#f2f2f2',
24
                      'sidebartextcolor': '#000000',
25
                      'sidebarlinkcolor': '#328e4a',
26
                      'relbarbgcolor':    '#55b577',
27
                      'relbartextcolor':  '#ffffff',
28
                      'relbarlinkcolor':  '#ffffff',
29
                      'bgcolor':          '#ffffff',
30
                      'textcolor':        '#000000',
31
                      'headbgcolor':      '#ffffff',
32
                      'headtextcolor':    '#000000',
33
                      'headlinkcolor':    '#c60f0f',
34
                      'linkcolor':        '#328e4a',
35
                      'visitedlinkcolor': '#63409b',
36
                      'codebgcolor':      '#eeffcc',
37
                      'codetextcolor':    '#333333'}
38

    
39
html_static_path = ['_static']
40
htmlhelp_basename = 'synnefodoc'
41

    
42
intersphinx_mapping = {
43
    'pithon': ('http://docs.python.org/', None),
44
    'django': ('https://docs.djangoproject.com/en/dev/',
45
               'https://docs.djangoproject.com/en/dev/_objects/')
46
}
47

    
48
SYNNEFO_DOCS_BASE_URL = 'http://www.synnefo.org/docs'
49
SYNNEFO_PROJECTS = {
50
    'synnefo': 'dev',
51
    'pithos': 'dev',
52
    'snf-webproject': 'dev',
53
    'snf-common': 'dev',
54
    'snf-image': 'dev',
55
    'snf-cyclades-app': 'dev'
56
}
57

    
58
for name, ver in SYNNEFO_PROJECTS.iteritems():
59
    mapping = (SYNNEFO_DOCS_BASE_URL + '%s/%s/' % (name, ver), None)
60
    intersphinx_mapping[name.replace("-", "")] = mapping
61

    
62
extensions = ['sphinx.ext.intersphinx',
63
              'sphinx.ext.todo',
64
              'sphinx.ext.viewcode']