Debian Codegraph @

debian/adhoc/examples/demo/source/conf.py

raw symbols SCIP
1 # -*- coding: utf-8 -*-
2 import sys, os
3 sys.path.insert(0, os.path.abspath('../../'))
4 from jupyter_sphinx_theme import *
5
6 extensions = extensions + ['sphinx.ext.autodoc', 'sphinx.ext.todo', 'sphinx.ext.ifconfig', 'sphinx.ext.viewcode']
7
8 templates_path = ['_templates']
9
10 master_doc = 'index'
11
12 project = u'Demo'
13 copyright = u'Ryan Roemer, Project Jupyter, and contributors'
14
15 version = theme_version
16 release = theme_version
17
18 exclude_patterns = []
19
20 pygments_style = 'sphinx'
21 todo_include_todos = True
22
23 html_theme_options = {
24 'navbar_title': "Demo",
25 }
26 html_static_path = ["_static"]
27 htmlhelp_basename = 'MyProjectDoc'
28
29 latex_elements = { }
30
31 latex_documents = [
32 ('index', 'MyProject.tex', u'My Project',
33 u'Ryan Roemer', 'manual'),
34 ]
35 man_pages = [
36 ('index', 'myproject', u'My Project',
37 [u'Ryan Roemer'], 1)
38 ]
39 texinfo_documents = [
40 ('index', 'MyProject', u'My Project',
41 u'Ryan Roemer', 'MyProject', 'One line description of project.',
42 'Miscellaneous'),
43 ]
44
45
46 def check_object_path(key, url, path):
47 if os.path.isfile(path):
48 return {key: (url, path)}
49 return {}
50
51 intersphinx_mapping = {}
52 intersphinx_mapping.update(check_object_path('python',
53 'https://docs.python.org/',
54 '/usr/share/doc/python'
55 + '.'.join([str(x) for x in sys.version_info[0:2]])
56 + '/html/objects.inv'))
57 intersphinx_mapping.update(check_object_path('sphinx',
58 'http://sphinx-doc.org/',
59 '/usr/share/doc/python-sphinx/html/objects.inv'))