klink 0.1.12__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- klink/__init__.py +99 -0
- klink/demo.py +39 -0
- klink/layout.html +51 -0
- klink/less/klink.less +399 -0
- klink/less/vendor/3L.less +1384 -0
- klink/less/vendor/font-awesome/fonts/FontAwesome.otf +0 -0
- klink/less/vendor/font-awesome/fonts/fontawesome-webfont.eot +0 -0
- klink/less/vendor/font-awesome/fonts/fontawesome-webfont.svg +504 -0
- klink/less/vendor/font-awesome/fonts/fontawesome-webfont.ttf +0 -0
- klink/less/vendor/font-awesome/fonts/fontawesome-webfont.woff +0 -0
- klink/less/vendor/font-awesome/less/bordered-pulled.less +16 -0
- klink/less/vendor/font-awesome/less/core.less +12 -0
- klink/less/vendor/font-awesome/less/extras.less +2 -0
- klink/less/vendor/font-awesome/less/fixed-width.less +6 -0
- klink/less/vendor/font-awesome/less/font-awesome.less +17 -0
- klink/less/vendor/font-awesome/less/icons.less +506 -0
- klink/less/vendor/font-awesome/less/larger.less +13 -0
- klink/less/vendor/font-awesome/less/list.less +19 -0
- klink/less/vendor/font-awesome/less/mixins.less +20 -0
- klink/less/vendor/font-awesome/less/path.less +14 -0
- klink/less/vendor/font-awesome/less/rotated-flipped.less +9 -0
- klink/less/vendor/font-awesome/less/spinning.less +32 -0
- klink/less/vendor/font-awesome/less/stacked.less +20 -0
- klink/less/vendor/font-awesome/less/variables.less +515 -0
- klink/static/css/klink.css +2226 -0
- klink/static/fonts/FontAwesome.otf +0 -0
- klink/static/fonts/fontawesome-webfont.eot +0 -0
- klink/static/fonts/fontawesome-webfont.svg +504 -0
- klink/static/fonts/fontawesome-webfont.ttf +0 -0
- klink/static/fonts/fontawesome-webfont.woff +0 -0
- klink/static/img/favicon.ico +0 -0
- klink/static/img/logo.png +0 -0
- klink/theme.toml +10 -0
- klink-0.1.12.dist-info/METADATA +155 -0
- klink-0.1.12.dist-info/RECORD +38 -0
- klink-0.1.12.dist-info/WHEEL +4 -0
- klink-0.1.12.dist-info/entry_points.txt +2 -0
- klink-0.1.12.dist-info/licenses/LICENSE +21 -0
klink/__init__.py
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import re
|
|
3
|
+
import shutil
|
|
4
|
+
from pathlib import Path
|
|
5
|
+
from subprocess import call
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def convert_notebooks():
|
|
9
|
+
"""
|
|
10
|
+
Converts IPython Notebooks to proper .rst files and moves static
|
|
11
|
+
content to the _static directory.
|
|
12
|
+
"""
|
|
13
|
+
convert_status = call(["jupyter", "nbconvert", "--to", "rst", "*.ipynb"])
|
|
14
|
+
if convert_status != 0:
|
|
15
|
+
raise SystemError("Conversion failed! Status was %s" % convert_status)
|
|
16
|
+
|
|
17
|
+
notebooks = [x for x in os.listdir(".") if ".ipynb" in x and os.path.isfile(x)]
|
|
18
|
+
names = [os.path.splitext(x)[0] for x in notebooks]
|
|
19
|
+
|
|
20
|
+
for i in range(len(notebooks)):
|
|
21
|
+
name = names[i]
|
|
22
|
+
notebook = notebooks[i]
|
|
23
|
+
|
|
24
|
+
print("processing %s (%s)" % (name, notebook))
|
|
25
|
+
|
|
26
|
+
# move static files
|
|
27
|
+
sdir = "%s_files" % name
|
|
28
|
+
statics = os.listdir(sdir)
|
|
29
|
+
statics = [os.path.join(sdir, x) for x in statics]
|
|
30
|
+
[shutil.copy(x, "_static/") for x in statics]
|
|
31
|
+
shutil.rmtree(sdir)
|
|
32
|
+
|
|
33
|
+
# rename static dir in rst file
|
|
34
|
+
rst_file = "%s.rst" % name
|
|
35
|
+
print("RST file is %s" % rst_file)
|
|
36
|
+
data = None
|
|
37
|
+
with open(rst_file, "r") as f:
|
|
38
|
+
data = f.read()
|
|
39
|
+
|
|
40
|
+
if data is not None:
|
|
41
|
+
with open(rst_file, "w") as f:
|
|
42
|
+
# On Windows, bad escape character sequences are included (%5C) in static references
|
|
43
|
+
# We remove these here and replace with forward slashes as appropriate
|
|
44
|
+
# While converting the static directory name.
|
|
45
|
+
data = re.sub("%s(%%5C|/)" % sdir, "_static/", data)
|
|
46
|
+
f.write(data)
|
|
47
|
+
|
|
48
|
+
# add special tags
|
|
49
|
+
lines = None
|
|
50
|
+
with open(rst_file, "r") as f:
|
|
51
|
+
lines = f.readlines()
|
|
52
|
+
|
|
53
|
+
if lines is not None:
|
|
54
|
+
n = len(lines)
|
|
55
|
+
i = 0
|
|
56
|
+
rawWatch = False
|
|
57
|
+
|
|
58
|
+
while i < n:
|
|
59
|
+
line = lines[i]
|
|
60
|
+
# add class tags to images for css formatting
|
|
61
|
+
if "image::" in line:
|
|
62
|
+
lines.insert(i + 1, " :class: pynb\n")
|
|
63
|
+
n += 1
|
|
64
|
+
elif "parsed-literal::" in line:
|
|
65
|
+
lines.insert(i + 1, " :class: pynb-result\n")
|
|
66
|
+
n += 1
|
|
67
|
+
elif "raw:: html" in line:
|
|
68
|
+
rawWatch = True
|
|
69
|
+
|
|
70
|
+
if rawWatch:
|
|
71
|
+
if "<div" in line:
|
|
72
|
+
line = line.replace("<div", '<div class="pynb-result"')
|
|
73
|
+
lines[i] = line
|
|
74
|
+
rawWatch = False
|
|
75
|
+
|
|
76
|
+
i += 1
|
|
77
|
+
|
|
78
|
+
with open(rst_file, "w") as f:
|
|
79
|
+
f.writelines(lines)
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
def get_html_theme_path():
|
|
83
|
+
"""Returns list of HTML theme paths."""
|
|
84
|
+
cur_dir = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
|
|
85
|
+
return cur_dir
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
def setup(app):
|
|
89
|
+
app.add_html_theme("klink", Path(__file__).parent)
|
|
90
|
+
|
|
91
|
+
return {
|
|
92
|
+
"parallel_read_safe": True,
|
|
93
|
+
"parallel_write_safe": True,
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
__version__ = "0.1.12"
|
|
98
|
+
VERSION = tuple(int(v) for v in __version__.split("."))
|
|
99
|
+
__version_full__ = __version__
|
klink/demo.py
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
class TestClass(object):
|
|
2
|
+
"""
|
|
3
|
+
This is a test class. Used for demo purposes.
|
|
4
|
+
|
|
5
|
+
Lorem ipsum dolor sit amet, cu vero viris mollis his. Ex est
|
|
6
|
+
iusto constituam. Id eam graeci iuvaret facilis, erant dicunt in
|
|
7
|
+
quo, te iudico periculis interpretaris sed. Audire tibique te pro,
|
|
8
|
+
equidem repudiare an vim. Nostrum placerat liberavisse ne eam.
|
|
9
|
+
Zril corpora expetenda ex mea, at wisi vitae vocibus vix.
|
|
10
|
+
|
|
11
|
+
.. note::
|
|
12
|
+
|
|
13
|
+
Does not actually do anything. Just for demo.
|
|
14
|
+
|
|
15
|
+
Args:
|
|
16
|
+
name (str): Name arg
|
|
17
|
+
age (int): Age arg
|
|
18
|
+
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
def __init__(self, name, age):
|
|
22
|
+
self.name = name
|
|
23
|
+
self.age = age
|
|
24
|
+
|
|
25
|
+
def method1(self, arg1, arg2):
|
|
26
|
+
"""
|
|
27
|
+
Does stuff with args.
|
|
28
|
+
|
|
29
|
+
Demo method1 - this method does stuff. Interesting right?
|
|
30
|
+
|
|
31
|
+
Args:
|
|
32
|
+
arg1 (type): The first arg needed to do stuff.
|
|
33
|
+
arg2 (type): The second arg needed to do stuff.
|
|
34
|
+
|
|
35
|
+
Returns:
|
|
36
|
+
str - stuff string
|
|
37
|
+
|
|
38
|
+
"""
|
|
39
|
+
pass
|
klink/layout.html
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{%- extends "basic/layout.html" %}
|
|
2
|
+
{%- block extrahead %}
|
|
3
|
+
{{ super() }}
|
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9">
|
|
5
|
+
{% if favicon %}
|
|
6
|
+
<link rel="shortcut icon" href="{{ pathto('_static/' + favicon, 1) }}">
|
|
7
|
+
{% endif %}
|
|
8
|
+
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300,400,700' rel='stylesheet' type='text/css'>
|
|
9
|
+
<link href='http://fonts.googleapis.com/css?family=Droid+Sans+Mono:400,500,700' rel='stylesheet' type='text/css'>
|
|
10
|
+
{% endblock %}
|
|
11
|
+
|
|
12
|
+
{%- block relbar1 %}{% endblock %}
|
|
13
|
+
{%- block relbar2 %}{% endblock %}
|
|
14
|
+
|
|
15
|
+
{%- block sidebar2 %}
|
|
16
|
+
<aside>
|
|
17
|
+
|
|
18
|
+
{% if theme_logo %}
|
|
19
|
+
<a href="{{ pathto('index') }}" id="logo" title={{project}}><img class="logo" src="{{ pathto('_static/' + theme_logo, 1) }}" width="150px" height="150px" title={{project}} /></a>
|
|
20
|
+
{% endif %}
|
|
21
|
+
|
|
22
|
+
{{ toctree(includehidden=True) }}
|
|
23
|
+
|
|
24
|
+
{% if theme_github %}
|
|
25
|
+
<ul>
|
|
26
|
+
<li><a href="https://github.com/{{theme_github}}">Github</a></li>
|
|
27
|
+
</ul>
|
|
28
|
+
{% endif %}
|
|
29
|
+
|
|
30
|
+
{%- include "searchbox.html" %}
|
|
31
|
+
</aside>
|
|
32
|
+
{% endblock %}
|
|
33
|
+
|
|
34
|
+
{%- block footer %}
|
|
35
|
+
<div class="footer">
|
|
36
|
+
{{ copyright }}
|
|
37
|
+
</div>
|
|
38
|
+
|
|
39
|
+
{% if theme_analytics_id %}
|
|
40
|
+
<script>
|
|
41
|
+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
|
42
|
+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
|
43
|
+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
|
44
|
+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
|
45
|
+
|
|
46
|
+
ga('create', '{{theme_analytics_id}}', 'auto');
|
|
47
|
+
ga('require', 'displayfeatures');
|
|
48
|
+
ga('send', 'pageview');
|
|
49
|
+
</script>
|
|
50
|
+
{% endif %}
|
|
51
|
+
{%- endblock %}
|
klink/less/klink.less
ADDED
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
@import "vendor/3L.less";
|
|
2
|
+
@import "vendor/font-awesome/less/font-awesome.less";
|
|
3
|
+
|
|
4
|
+
@white: #f7f8f9;
|
|
5
|
+
@green: #29b96e;
|
|
6
|
+
@green2: #39ff98;
|
|
7
|
+
@green3: #0e4026;
|
|
8
|
+
@green4: #1c7f4c;
|
|
9
|
+
@gray: #333;
|
|
10
|
+
@gray2: #777;
|
|
11
|
+
@gray3: #999;
|
|
12
|
+
@border: #e3e3e3;
|
|
13
|
+
@weight1: 400;
|
|
14
|
+
@orange: #ff9f80;
|
|
15
|
+
@purple: #ad19ff;
|
|
16
|
+
@gold: #cc8c14;
|
|
17
|
+
@pink: #ef40ff;
|
|
18
|
+
@font1: "Open Sans", "Helvetica Neue", sans-serif;
|
|
19
|
+
@font2: "Droid Sans Mono", monospace, serif;
|
|
20
|
+
|
|
21
|
+
.normalize();
|
|
22
|
+
|
|
23
|
+
body {
|
|
24
|
+
font-family: @font1;
|
|
25
|
+
font-weight: @weight1;
|
|
26
|
+
color: @gray;
|
|
27
|
+
background: @white;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
h1 {
|
|
31
|
+
padding-bottom: 40px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
a:link, a:visited {
|
|
35
|
+
color: @green;
|
|
36
|
+
text-decoration: none;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
a:hover, a:active {
|
|
40
|
+
text-decoration: underline;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.border-round {
|
|
44
|
+
border: 1px solid @border;
|
|
45
|
+
.border-radius(6px);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
* > a.headerlink {
|
|
49
|
+
display: none;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
dd {
|
|
53
|
+
color: @gray3;
|
|
54
|
+
font-weight: @weight1;
|
|
55
|
+
max-width: 85%;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
dl.function > dt, dl.class > dt, dl.method > dt {
|
|
59
|
+
color: @gray;
|
|
60
|
+
font-weight: bold;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
dl tt {
|
|
64
|
+
font-family: @font1;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
dl.function, dl.class {
|
|
68
|
+
background: #f3f4f5;
|
|
69
|
+
padding: 10px;
|
|
70
|
+
.border-round;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
em.property {
|
|
74
|
+
font-style: normal;
|
|
75
|
+
color: @gray3;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
dt > em {
|
|
79
|
+
font-style: normal;
|
|
80
|
+
font-weight: 400;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
input {
|
|
84
|
+
background: transparent;
|
|
85
|
+
border: 1px solid @gray3;
|
|
86
|
+
.border-radius(3px);
|
|
87
|
+
padding: 2px 5px;
|
|
88
|
+
color: @gray2;
|
|
89
|
+
outline: none;
|
|
90
|
+
&:focus {
|
|
91
|
+
background: white;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
aside {
|
|
96
|
+
position: fixed;
|
|
97
|
+
top: 25px;
|
|
98
|
+
width: 240px;
|
|
99
|
+
color: @gray3;
|
|
100
|
+
padding-left: 20px;
|
|
101
|
+
|
|
102
|
+
&>ul {
|
|
103
|
+
list-style: none;
|
|
104
|
+
margin: 0 4px;
|
|
105
|
+
padding: 0;
|
|
106
|
+
&>li {
|
|
107
|
+
margin-bottom: 10px;
|
|
108
|
+
font-size: 18px;
|
|
109
|
+
color: @gray2;
|
|
110
|
+
a:link, a:visited {
|
|
111
|
+
color: @gray2;
|
|
112
|
+
}
|
|
113
|
+
ul {
|
|
114
|
+
margin: 10px 0 0 0;
|
|
115
|
+
padding-left: 30px;
|
|
116
|
+
font-size: 16px;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
input[type=submit] {
|
|
122
|
+
display: none;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
input[type=text] {
|
|
126
|
+
width: 85%;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.literal {
|
|
131
|
+
color: @green;
|
|
132
|
+
font-size: 1em;
|
|
133
|
+
padding: 1px 2px;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.admonition {
|
|
137
|
+
padding: 10px 20px;
|
|
138
|
+
border: 1px solid @border;
|
|
139
|
+
.border-radius(6px);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.admonition-title {
|
|
143
|
+
font-weight: 600;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.ad-core {
|
|
147
|
+
border: 1px solid @border;
|
|
148
|
+
.border-radius(6px);
|
|
149
|
+
padding: 10px 20px 10px 70px;
|
|
150
|
+
position: relative;
|
|
151
|
+
color: white;
|
|
152
|
+
margin: 10px 0px;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.ad-core-before {
|
|
156
|
+
font-size: 2em;
|
|
157
|
+
display: block;
|
|
158
|
+
position: absolute;
|
|
159
|
+
margin: auto;
|
|
160
|
+
top: 0;
|
|
161
|
+
bottom: 0;
|
|
162
|
+
left: 20px;
|
|
163
|
+
width: 32px;
|
|
164
|
+
height: 32px;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.seealso
|
|
168
|
+
{
|
|
169
|
+
.ad-core;
|
|
170
|
+
background: #e3e3e3;
|
|
171
|
+
color: @gray;
|
|
172
|
+
.admonition-title {display: none;}
|
|
173
|
+
a { color: @green; }
|
|
174
|
+
&:before
|
|
175
|
+
{
|
|
176
|
+
content: @fa-var-external-link;
|
|
177
|
+
.fa;
|
|
178
|
+
.ad-core-before;
|
|
179
|
+
}
|
|
180
|
+
.literal, .highlight-note
|
|
181
|
+
{
|
|
182
|
+
color: white;
|
|
183
|
+
background: @green;
|
|
184
|
+
padding: 1px 3px;
|
|
185
|
+
.border-radius(2px);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.note
|
|
190
|
+
{
|
|
191
|
+
.ad-core;
|
|
192
|
+
background: @green;
|
|
193
|
+
.admonition-title {display: none;}
|
|
194
|
+
a { color: #40ff85; }
|
|
195
|
+
&:before
|
|
196
|
+
{
|
|
197
|
+
content: @fa-var-info-circle;
|
|
198
|
+
.fa;
|
|
199
|
+
.ad-core-before;
|
|
200
|
+
}
|
|
201
|
+
.literal, .highlight-note
|
|
202
|
+
{
|
|
203
|
+
color: white;
|
|
204
|
+
background: #298354;
|
|
205
|
+
padding: 1px 3px;
|
|
206
|
+
.border-radius(2px);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.warning
|
|
211
|
+
{
|
|
212
|
+
.ad-core;
|
|
213
|
+
background: #e0ab66;
|
|
214
|
+
.admonition-title {display: none;}
|
|
215
|
+
a { color: #633030; }
|
|
216
|
+
&:before
|
|
217
|
+
{
|
|
218
|
+
content: @fa-var-warning;
|
|
219
|
+
.fa;
|
|
220
|
+
.ad-core-before;
|
|
221
|
+
}
|
|
222
|
+
.literal, .highlight-note
|
|
223
|
+
{
|
|
224
|
+
color: white;
|
|
225
|
+
background: #9b6515;
|
|
226
|
+
padding: 1px 3px;
|
|
227
|
+
.border-radius(2px);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.danger
|
|
232
|
+
{
|
|
233
|
+
.ad-core;
|
|
234
|
+
background: #d36871;
|
|
235
|
+
.admonition-title {display: none;}
|
|
236
|
+
a { color: #832929; }
|
|
237
|
+
&:before
|
|
238
|
+
{
|
|
239
|
+
content: @fa-var-times-circle;
|
|
240
|
+
.fa;
|
|
241
|
+
.ad-core-before;
|
|
242
|
+
}
|
|
243
|
+
.literal, .highlight-note
|
|
244
|
+
{
|
|
245
|
+
color: white;
|
|
246
|
+
background: #832929;
|
|
247
|
+
padding: 1px 3px;
|
|
248
|
+
.border-radius(2px);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.footnote {
|
|
253
|
+
font-size: 0.9em;
|
|
254
|
+
border: none;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
table {
|
|
258
|
+
border: 1px solid @border;
|
|
259
|
+
border-color: @border;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
table td, table th {
|
|
263
|
+
padding: 5px;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
table.field-list {
|
|
267
|
+
border: none;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
li.toctree-l1.current {
|
|
271
|
+
font-weight: 700;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
li.toctree-l2 {
|
|
275
|
+
font-weight: @weight1;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
span.viewcode-link {
|
|
279
|
+
display: block;
|
|
280
|
+
position: absolute;
|
|
281
|
+
right: 0px;
|
|
282
|
+
font-size: .8em;
|
|
283
|
+
color: @green;
|
|
284
|
+
padding-right: 10px;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
div.document {
|
|
288
|
+
max-width: 1000px;
|
|
289
|
+
margin: 20px auto;
|
|
290
|
+
position: relative;
|
|
291
|
+
min-height: 550px;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
div.documentwrapper {
|
|
295
|
+
margin-left: 280px;
|
|
296
|
+
padding: 0 0 0 20px;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
div.body {
|
|
300
|
+
padding-top: 10px;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
div.footer {
|
|
304
|
+
font-size: .8em;
|
|
305
|
+
text-align: center;
|
|
306
|
+
margin: 40px 0;
|
|
307
|
+
color: @gray3;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.code-view {
|
|
311
|
+
background: white;
|
|
312
|
+
padding: 10px 20px;
|
|
313
|
+
border: 1px solid @border;
|
|
314
|
+
.border-radius(6px);
|
|
315
|
+
font-family: @font2;
|
|
316
|
+
font-size: 0.9em;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.highlight {
|
|
320
|
+
background: transparent !important;
|
|
321
|
+
|
|
322
|
+
pre {
|
|
323
|
+
.code-view;
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.code {
|
|
328
|
+
background: transparent !important;
|
|
329
|
+
|
|
330
|
+
pre {
|
|
331
|
+
.code-view;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.highlight-python > pre {
|
|
336
|
+
.code-view;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.pynb-result > pre {
|
|
340
|
+
background: inherit;
|
|
341
|
+
border: none;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
img.align-center {
|
|
345
|
+
display: block;
|
|
346
|
+
margin: 0 auto;
|
|
347
|
+
padding: 15px 0px;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
img.pynb {
|
|
351
|
+
background: #fff;
|
|
352
|
+
padding: 20px;
|
|
353
|
+
display: block;
|
|
354
|
+
margin: 20px auto;
|
|
355
|
+
max-width: 95%;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
img.logo {
|
|
359
|
+
display: block;
|
|
360
|
+
margin: 0 auto;
|
|
361
|
+
padding-bottom: 30px;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
div.pynb-result {
|
|
365
|
+
font-family: @font2;
|
|
366
|
+
font-size: 0.9em;
|
|
367
|
+
max-width: 98%;
|
|
368
|
+
margin: 0 auto;
|
|
369
|
+
|
|
370
|
+
table, p {
|
|
371
|
+
margin-left: 20px;
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
div#searchbox {
|
|
376
|
+
padding-top: 10px;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
@media (max-width: 800px) {
|
|
380
|
+
div.documentwrapper {
|
|
381
|
+
padding-top: 200px;
|
|
382
|
+
margin: 0px 10px;
|
|
383
|
+
}
|
|
384
|
+
h1, .section {
|
|
385
|
+
margin: 0px !important;
|
|
386
|
+
}
|
|
387
|
+
aside {
|
|
388
|
+
position: static;
|
|
389
|
+
width: 100%;
|
|
390
|
+
margin: 5px 20px;
|
|
391
|
+
padding: 5px;
|
|
392
|
+
}
|
|
393
|
+
#logo {
|
|
394
|
+
position: absolute;
|
|
395
|
+
top: 0px;
|
|
396
|
+
left: 50%;
|
|
397
|
+
margin-left: -75px;
|
|
398
|
+
}
|
|
399
|
+
}
|