Commit 4ab55fe4 authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

pep8 fixes

parent 64de2a9f
#!/usr/bin/env sh
. ./ci/config
EXCLUDE=migrations,build,setup,distribute_setup.py,setup.py,rapi.py,dictconfig.py,\
ordereddict.py
for project in $PROJECTS; do
pep8 --exclude=migrations,build $project
pep8 --exclude=$EXCLUDE $project
done
import sys, os
import sys
import os
sys.path.insert(0, os.path.abspath('../'))
from synnefo.versions.common import __version__
......@@ -15,35 +16,33 @@ master_doc = 'index'
exclude_patterns = ['_build']
pygments_style = 'sphinx'
html_theme = 'default'
html_theme_options = {
'collapsiblesidebar': 'true',
'footerbgcolor': '#55b577',
'footertextcolor': '#000000',
'sidebarbgcolor': '#ffffff',
'sidebarbtncolor': '#f2f2f2',
'sidebartextcolor': '#000000',
'sidebarlinkcolor': '#328e4a',
'relbarbgcolor': '#55b577',
'relbartextcolor': '#ffffff',
'relbarlinkcolor': '#ffffff',
'bgcolor': '#ffffff',
'textcolor': '#000000',
'headbgcolor': '#ffffff',
'headtextcolor': '#000000',
'headlinkcolor': '#c60f0f',
'linkcolor': '#328e4a',
'visitedlinkcolor': '#63409b',
'codebgcolor': '#eeffcc',
'codetextcolor': '#333333'
}
html_theme_options = {'collapsiblesidebar': 'true',
'footerbgcolor': '#55b577',
'footertextcolor': '#000000',
'sidebarbgcolor': '#ffffff',
'sidebarbtncolor': '#f2f2f2',
'sidebartextcolor': '#000000',
'sidebarlinkcolor': '#328e4a',
'relbarbgcolor': '#55b577',
'relbartextcolor': '#ffffff',
'relbarlinkcolor': '#ffffff',
'bgcolor': '#ffffff',
'textcolor': '#000000',
'headbgcolor': '#ffffff',
'headtextcolor': '#000000',
'headlinkcolor': '#c60f0f',
'linkcolor': '#328e4a',
'visitedlinkcolor': '#63409b',
'codebgcolor': '#eeffcc',
'codetextcolor': '#333333'}
html_static_path = ['_static']
htmlhelp_basename = 'synnefodoc'
intersphinx_mapping = {
'pithon': ('http://docs.python.org/', None),
'django': ('https://docs.djangoproject.com/en/dev/',
'https://docs.djangoproject.com/en/dev/_objects/')
'pithon': ('http://docs.python.org/', None),
'django': ('https://docs.djangoproject.com/en/dev/',
'https://docs.djangoproject.com/en/dev/_objects/')
}
SYNNEFO_DOCS_BASE_URL = 'http://www.synnefo.org/docs'
......@@ -57,9 +56,8 @@ SYNNEFO_PROJECTS = {
}
for name, ver in SYNNEFO_PROJECTS.iteritems():
intersphinx_mapping[name.replace("-","")] = (SYNNEFO_DOCS_BASE_URL +
'%s/%s/' % (name, ver),
None)
mapping = (SYNNEFO_DOCS_BASE_URL + '%s/%s/' % (name, ver), None)
intersphinx_mapping[name.replace("-", "")] = mapping
extensions = ['sphinx.ext.intersphinx',
'sphinx.ext.todo',
......
from django.utils.safestring import mark_safe
from django.conf import settings
def cloudbar(request):
"""
Django context processor that applies all cloudbar settings in response
......@@ -85,4 +86,3 @@ def cloudbar(request):
'CLOUDBAR_MENU_URL': CB_MENU_URL,
'CLOUDBAR_CODE': CB_CODE
}
......@@ -102,5 +102,3 @@ def dict_merge(a, b):
else:
result[k] = copy.deepcopy(v)
return result
......@@ -38,4 +38,3 @@ try:
except ImportError:
import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment