Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
oorrja
GitHub Repository: oorrja/learntosolveit
Path: blob/master/source/conf.py
1241 views
1
# -*- coding: utf-8 -*-
2
#
3
# uthcode documentation build configuration file, created by
4
# sphinx-quickstart on Sat Oct 24 18:08:47 2009.
5
#
6
# This file is execfile()d with the current directory set to its containing dir.
7
#
8
# Note that not all possible configuration values are present in this
9
# autogenerated file.
10
#
11
# All configuration values have a default; values that are commented out
12
# serve to show the default.
13
14
import sys, os
15
# At the top.
16
import sphinx_bootstrap_theme
17
18
# ...
19
20
# Activate the theme.
21
html_theme = 'bootstrap'
22
html_theme_path = sphinx_bootstrap_theme.get_html_theme_path()
23
24
html_theme_options = {
25
'navbar_sidebarrel' : True,
26
'navbar_pagenav': False,
27
'bootswatch_theme': "united",
28
'navbar_site_name': "Navigator",
29
'navbar_links': [
30
("Online Tutor", "https://goo.gl/forms/I3NahMbRcAct2TRy2", True),
31
],
32
}
33
34
# If extensions (or modules to document with autodoc) are in another directory,
35
# add these directories to sys.path here. If the directory is relative to the
36
# documentation root, use os.path.abspath to make it absolute, like shown here.
37
#sys.path.append(os.path.abspath('.'))
38
39
# -- General configuration -----------------------------------------------------
40
41
# Add any Sphinx extension module names here, as strings. They can be extensions
42
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
43
#extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest',
44
# 'sphinx.ext.todo', 'sphinx.ext.coverage',
45
# 'sphinx.ext.extlinks', 'sphinx.ext.pngmath',
46
# 'sphinxcontrib.runcode']
47
48
extensions = ['sphinx.ext.extlinks']
49
50
# Add any paths that contain templates here, relative to this directory.
51
templates_path = ['_templates']
52
53
# The suffix of source filenames.
54
source_suffix = '.rst'
55
56
# The encoding of source files.
57
#source_encoding = 'utf-8-sig'
58
59
# The master toctree document.
60
master_doc = 'index'
61
62
# General information about the project.
63
project = u'Learn To Solve It'
64
copyright = u'2020, Senthil Kumaran'
65
66
# The version info for the project you're documenting, acts as replacement for
67
# |version| and |release|, also used in various other places throughout the
68
# built documents.
69
#
70
# The short X.Y version.
71
version = '2020-01-06'
72
# The full version, including alpha/beta/rc tags.
73
release = ''
74
75
# The language for content autogenerated by Sphinx. Refer to documentation
76
# for a list of supported languages.
77
#language = None
78
79
# There are two options for replacing |today|: either, you set today to some
80
# non-false value, then it is used:
81
#today = ''
82
# Else, today_fmt is used as the format for a strftime call.
83
today_fmt = '%d %b of %y'
84
85
# List of documents that shouldn't be included in the build.
86
#unused_docs = []
87
88
# List of directories, relative to source directory, that shouldn't be searched
89
# for source files.
90
exclude_trees = []
91
92
# The reST default role (used for this markup: `text`) to use for all documents.
93
#default_role = None
94
95
# If true, '()' will be appended to :func: etc. cross-reference text.
96
#add_function_parentheses = True
97
98
# If true, the current module name will be prepended to all description
99
# unit titles (such as .. function::).
100
#add_module_names = True
101
102
# If true, sectionauthor and moduleauthor directives will be shown in the
103
# output. They are ignored by default.
104
#show_authors = False
105
106
# The name of the Pygments (syntax highlighting) style to use.
107
pygments_style = 'friendly'
108
109
# A list of ignored prefixes for module index sorting.
110
#modindex_common_prefix = []
111
112
# Links for edit
113
114
# :c-suggest-improve:`name.c`
115
# :c-better-explain:`name.rst`
116
# :python-suggest-improve:`name.py`
117
# :python-better-explain:`name.rst`
118
119
extlinks = {'c-suggest-improve':
120
('https://github.com/uthcode/learntosolveit/edit/master/languages/cprogs/%s',
121
"Suggest a Code Improvement: "),
122
'c-better-explain':
123
('https://github.com/uthcode/learntosolveit/edit/master/source/cprogramming/%s',
124
"Suggest a better explanation for "),
125
'python-suggest-improve':
126
("https://github.com/uthcode/learntosolveit/edit/master/languages/python/%s",
127
"Suggest a Code Improvement:"),
128
'python-better-explain':
129
("https://github.com/uthcode/learntosolveit/edit/master/source/python/%s",
130
"Suggest a better explanation for "),
131
'ruby-suggest-improve':
132
("https://github.com/uthcode/learntosolveit/edit/master/languages/ruby/%s",
133
"Suggest a Code Improvement:"),
134
'ruby-better-explain':
135
("https://github.com/uthcode/learntosolveit/edit/master/source/ruby/%s",
136
"Suggest a better explanation for "),
137
'java-suggest-improve':
138
("https://github.com/uthcode/learntosolveit/edit/master/languages/java/%s",
139
"Suggest a Code Improvement:"),
140
'java-better-explain':
141
("https://github.com/uthcode/learntosolveit/edit/master/source/java/%s",
142
"Suggest a better explanation for "),
143
'scala-suggest-improve':
144
("https://github.com/uthcode/learntosolveit/edit/master/languages/scala/%s",
145
"Suggest a Code Improvement:"),
146
'scala-better-explain':
147
("https://github.com/uthcode/learntsolveit/edit/master/source/scala/%s",
148
"Suggest a better explanation for "),
149
'go-suggest-improve':
150
("https://github.com/uthcode/learntosolveit/edit/master/languages/go/%s",
151
"Suggest a Code Improvement:"),
152
'go-better-explain':
153
("https://github.com/uthcode/learntosolveit/edit/master/source/go/%s",
154
"Suggest a better explanation for "),
155
'use-local-compiler':
156
('http://www.seas.upenn.edu/cets/answers/%s.html',
157
'Please use a local c compiler to run this program.'),
158
}
159
160
161
162
163
# -- Options for HTML output ---------------------------------------------------
164
165
# The theme to use for HTML and HTML Help pages. See the documentation for
166
# a list of builtin themes.
167
#sys.path.append(os.path.abspath('_themes'))
168
#html_theme_path = ['_themes']
169
#html_theme = 'flask'
170
171
# Theme options are theme-specific and customize the look and feel of a theme
172
# further. For a list of options available for each theme, see the
173
# documentation.
174
# html_theme_options = {'headerbg':'white','footerbg':'white'}
175
176
# Add any paths that contain custom themes here, relative to this directory.
177
#html_theme_path = []
178
179
# The name for this set of Sphinx documents. If None, it defaults to
180
# "<project> v<release> documentation".
181
html_title = 'Learn To Solve It'
182
183
# A shorter title for the navigation bar. Default is the same as html_title.
184
html_short_title = 'Learn To Solve It'
185
186
# The name of an image file (relative to this directory) to place at the top
187
# of the sidebar.
188
# html_logo = '_static/learntosolveit2.png'
189
190
# The name of an image file (within the static path) to use as favicon of the
191
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
192
# pixels large.
193
#html_favicon = None
194
195
# Add any paths that contain custom static files (such as style sheets) here,
196
# relative to this directory. They are copied after the builtin static files,
197
# so a file named "default.css" will overwrite the builtin "default.css".
198
html_static_path = ['_static']
199
200
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
201
# using the given strftime format.
202
html_last_updated_fmt = '%d %b, %y'
203
204
# If true, SmartyPants will be used to convert quotes and dashes to
205
# typographically correct entities.
206
#html_use_smartypants = True
207
208
# Custom sidebar templates, maps document names to template names.
209
#html_sidebars = {'index': ['indexsidebar.html', 'searchbox.html']}
210
#html_additional_pages = {'index': 'index.html', 'foo' : 'foo.html', 'bar': 'bar.html'}
211
212
html_sidebars = {'**': ['logo.html','localtoc.html']}
213
214
215
# Additional templates that should be rendered to pages, maps page names to
216
# template names.
217
#html_additional_pages = {}
218
219
# If false, no module index is generated.
220
html_use_modindex = False
221
222
# If false, no index is generated.
223
html_use_index = False
224
225
# If true, the index is split into individual pages for each letter.
226
#html_split_index = False
227
228
# If true, links to the reST sources are added to the pages.
229
html_show_sourcelink = False
230
231
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
232
html_show_sphinx = True
233
234
# Output file base name for HTML help builder.
235
htmlhelp_basename = 'uthcodedoc'
236
237