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