Skip to content

Commit ac9fc82

Browse files
chkoarglemaitre
authored andcommitted
[MRG] DOC: Style the links so they stand out (scikit-learn-contrib#262)
1 parent a951029 commit ac9fc82

File tree

2 files changed

+49
-41
lines changed

2 files changed

+49
-41
lines changed

doc/_static/css/imbalanced-learn.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@import url("theme.css");
2+
3+
a {
4+
text-decoration: underline;
5+
}

doc/conf.py

Lines changed: 44 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
source_suffix = '.rst'
7575

7676
# The encoding of source files.
77-
#source_encoding = 'utf-8-sig'
77+
# source_encoding = 'utf-8-sig'
7878

7979
# Generate the plots for the gallery
8080
plot_gallery = True
@@ -98,41 +98,44 @@
9898

9999
# The language for content autogenerated by Sphinx. Refer to documentation
100100
# for a list of supported languages.
101-
#language = None
101+
# language = None
102102

103103
# There are two options for replacing |today|: either, you set today to some
104104
# non-false value, then it is used:
105-
#today = ''
105+
# today = ''
106106
# Else, today_fmt is used as the format for a strftime call.
107-
#today_fmt = '%B %d, %Y'
107+
# today_fmt = '%B %d, %Y'
108108

109109
# List of patterns, relative to source directory, that match files and
110110
# directories to ignore when looking for source files.
111111
exclude_patterns = ['_build']
112112

113113
# The reST default role (used for this markup: `text`) to use for all
114114
# documents.
115-
#default_role = None
115+
# default_role = None
116116

117117
# If true, '()' will be appended to :func: etc. cross-reference text.
118118
add_function_parentheses = False
119119

120120
# If true, the current module name will be prepended to all description
121121
# unit titles (such as .. function::).
122-
#add_module_names = True
122+
# add_module_names = True
123123

124124
# If true, sectionauthor and moduleauthor directives will be shown in the
125125
# output. They are ignored by default.
126-
#show_authors = False
126+
# show_authors = False
127127

128128
# The name of the Pygments (syntax highlighting) style to use.
129129
pygments_style = 'sphinx'
130130

131+
# Custom style
132+
html_style = 'css/imbalanced-learn.css'
133+
131134
# A list of ignored prefixes for module index sorting.
132-
#modindex_common_prefix = []
135+
# modindex_common_prefix = []
133136

134137
# If true, keep warnings as "system message" paragraphs in the built documents.
135-
#keep_warnings = False
138+
# keep_warnings = False
136139

137140
# -- Options for HTML output ----------------------------------------------
138141

@@ -143,26 +146,26 @@
143146
# Theme options are theme-specific and customize the look and feel of a theme
144147
# further. For a list of options available for each theme, see the
145148
# documentation.
146-
#html_theme_options = {}
149+
# html_theme_options = {}
147150

148151
# Add any paths that contain custom themes here, relative to this directory.
149152
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
150153

151154
# The name for this set of Sphinx documents. If None, it defaults to
152155
# "<project> v<release> documentation".
153-
#html_title = None
156+
# html_title = None
154157

155158
# A shorter title for the navigation bar. Default is the same as html_title.
156-
#html_short_title = None
159+
# html_short_title = None
157160

158161
# The name of an image file (relative to this directory) to place at the top
159162
# of the sidebar.
160-
#html_logo = None
163+
# html_logo = None
161164

162165
# The name of an image file (within the static path) to use as favicon of the
163166
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
164167
# pixels large.
165-
#html_favicon = None
168+
# html_favicon = None
166169

167170
# Add any paths that contain custom static files (such as style sheets) here,
168171
# relative to this directory. They are copied after the builtin static files,
@@ -172,48 +175,48 @@
172175
# Add any extra paths that contain custom files (such as robots.txt or
173176
# .htaccess) here, relative to this directory. These files are copied
174177
# directly to the root of the documentation.
175-
#html_extra_path = []
178+
# html_extra_path = []
176179

177180
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
178181
# using the given strftime format.
179-
#html_last_updated_fmt = '%b %d, %Y'
182+
# html_last_updated_fmt = '%b %d, %Y'
180183

181184
# If true, SmartyPants will be used to convert quotes and dashes to
182185
# typographically correct entities.
183-
#html_use_smartypants = True
186+
# html_use_smartypants = True
184187

185188
# Custom sidebar templates, maps document names to template names.
186-
#html_sidebars = {}
189+
# html_sidebars = {}
187190

188191
# Additional templates that should be rendered to pages, maps page names to
189192
# template names.
190-
#html_additional_pages = {}
193+
# html_additional_pages = {}
191194

192195
# If false, no module index is generated.
193-
#html_domain_indices = True
196+
# html_domain_indices = True
194197

195198
# If false, no index is generated.
196-
#html_use_index = True
199+
# html_use_index = True
197200

198201
# If true, the index is split into individual pages for each letter.
199-
#html_split_index = False
202+
# html_split_index = False
200203

201204
# If true, links to the reST sources are added to the pages.
202-
#html_show_sourcelink = True
205+
# html_show_sourcelink = True
203206

204207
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
205-
#html_show_sphinx = True
208+
# html_show_sphinx = True
206209

207210
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
208-
#html_show_copyright = True
211+
# html_show_copyright = True
209212

210213
# If true, an OpenSearch description file will be output, and all pages will
211214
# contain a <link> tag referring to it. The value of this option must be the
212215
# base URL from which the finished HTML is served.
213-
#html_use_opensearch = ''
216+
# html_use_opensearch = ''
214217

215218
# This is the file name suffix for HTML files (e.g. ".xhtml").
216-
#html_file_suffix = None
219+
# html_file_suffix = None
217220

218221
# Output file base name for HTML help builder.
219222
htmlhelp_basename = 'imbalanced-learndoc'
@@ -222,13 +225,13 @@
222225

223226
latex_elements = {
224227
# The paper size ('letterpaper' or 'a4paper').
225-
#'papersize': 'letterpaper',
228+
# 'papersize': 'letterpaper',
226229

227230
# The font size ('10pt', '11pt' or '12pt').
228-
#'pointsize': '10pt',
231+
# 'pointsize': '10pt',
229232

230233
# Additional stuff for the LaTeX preamble.
231-
#'preamble': '',
234+
# 'preamble': '',
232235
}
233236

234237
# Grouping the document tree into LaTeX files. List of tuples
@@ -241,23 +244,23 @@
241244

242245
# The name of an image file (relative to this directory) to place at the top of
243246
# the title page.
244-
#latex_logo = None
247+
# latex_logo = None
245248

246249
# For "manual" documents, if this is true, then toplevel headings are parts,
247250
# not chapters.
248-
#latex_use_parts = False
251+
# latex_use_parts = False
249252

250253
# If true, show page references after internal links.
251-
#latex_show_pagerefs = False
254+
# latex_show_pagerefs = False
252255

253256
# If true, show URL addresses after external links.
254-
#latex_show_urls = False
257+
# latex_show_urls = False
255258

256259
# Documents to append as an appendix to all manuals.
257-
#latex_appendices = []
260+
# latex_appendices = []
258261

259262
# If false, no module index is generated.
260-
#latex_domain_indices = True
263+
# latex_domain_indices = True
261264

262265
# -- Options for manual page output ---------------------------------------
263266

@@ -267,7 +270,7 @@
267270
[u'G. Lemaitre, F. Nogueira, D. Oliveira, C. Aridas'], 1)]
268271

269272
# If true, show URL addresses after external links.
270-
#man_show_urls = False
273+
# man_show_urls = False
271274

272275
# -- Options for Texinfo output -------------------------------------------
273276

@@ -296,16 +299,16 @@ def setup(app):
296299

297300

298301
# Documents to append as an appendix to all manuals.
299-
#texinfo_appendices = []
302+
# texinfo_appendices = []
300303

301304
# If false, no module index is generated.
302-
#texinfo_domain_indices = True
305+
# texinfo_domain_indices = True
303306

304307
# How to display URL addresses: 'footnote', 'no', or 'inline'.
305-
#texinfo_show_urls = 'footnote'
308+
# texinfo_show_urls = 'footnote'
306309

307310
# If true, do not generate a @detailmenu in the "Top" node's menu.
308-
#texinfo_no_detailmenu = False
311+
# texinfo_no_detailmenu = False
309312

310313
# Example configuration for intersphinx: refer to the Python standard library.
311314
intersphinx_mapping = {'http://docs.python.org/': None}

0 commit comments

Comments
 (0)