File tree 4 files changed +8
-1
lines changed
4 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
dist
2
2
build
3
+ * .eggs /*
3
4
* .egg-info
4
5
* .py [cod ]
5
6
Original file line number Diff line number Diff line change 5
5
extract_module_toc_into_sidebar = True
6
6
list_class_variables_in_index = True
7
7
sort_identifiers = True
8
+ # Set the style keyword such as 'atom-one-light' or 'github-gist'
9
+ # Options: https://github.com/highlightjs/highlight.js/tree/master/src/styles
10
+ # Demo: https://highlightjs.org/static/demo/
11
+ hljs_style = ' github'
8
12
%>
Original file line number Diff line number Diff line change 213
213
margin: 0;
214
214
}
215
215
.source pre code {
216
+ font-size: 12px;
216
217
overflow: visible;
217
218
}
218
219
.hlist {
Original file line number Diff line number Diff line change 25
25
extract_module_toc_into_sidebar = getattr (config.attr, ' extract_module_toc_into_sidebar' , True )
26
26
list_class_variables_in_index = getattr (config.attr, ' list_class_variables_in_index' , False )
27
27
sort_identifiers = getattr (config.attr, ' sort_identifiers' , True )
28
+ hljs_style = getattr (config.attr, ' hljs_style' , ' github' )
28
29
29
30
link = getattr (config.attr, ' link' , link)
30
31
to_html = getattr (config.attr, ' to_html' , to_html)
350
351
<link href =' https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.0/normalize.min.css' rel =' stylesheet' >
351
352
<link href =' https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/8.0.0/sanitize.min.css' rel =' stylesheet' >
352
353
% if show_source_code:
353
- <link href =" https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/github .min.css" rel =" stylesheet" >
354
+ <link href =" https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/${hljs_style} .min.css" rel =" stylesheet" >
354
355
%endif
355
356
356
357
<%namespace name =" css" file =" css.mako" />
You can’t perform that action at this time.
0 commit comments