Skip to content

Commit 5ce9113

Browse files
committed
redown
1 parent d4674c4 commit 5ce9113

35 files changed

+2422
-1364
lines changed

docs/authors.html

Lines changed: 11 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

Lines changed: 112 additions & 66 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/pkgdown.css

Lines changed: 75 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,14 @@ img.icon {
3434
float: right;
3535
}
3636

37-
/* Section anchors ---------------------------------*/
38-
39-
.hasAnchor {
40-
margin-left: -30px;
37+
img {
38+
max-width: 100%;
4139
}
4240

41+
/* Section anchors ---------------------------------*/
42+
4343
a.anchor {
44+
margin-left: -30px;
4445
display:inline-block;
4546
width: 30px;
4647
height: 30px;
@@ -56,13 +57,31 @@ a.anchor {
5657
visibility: visible;
5758
}
5859

60+
@media (max-width: 767px) {
61+
.hasAnchor:hover a.anchor {
62+
visibility: hidden;
63+
}
64+
}
65+
66+
5967
/* Fixes for fixed navbar --------------------------*/
6068

6169
.contents h1, .contents h2, .contents h3, .contents h4 {
6270
padding-top: 60px;
6371
margin-top: -60px;
6472
}
6573

74+
/* Static header placement on mobile devices */
75+
@media (max-width: 767px) {
76+
.navbar-fixed-top {
77+
position: absolute;
78+
}
79+
.navbar {
80+
padding: 0;
81+
}
82+
}
83+
84+
6685
/* Sidebar --------------------------*/
6786

6887
#sidebar {
@@ -81,33 +100,64 @@ a.anchor {
81100
margin-bottom: 0.5em;
82101
}
83102

84-
/* Syntax highlighting ---------------------------------------------------- */
103+
/* Reference index & topics ----------------------------------------------- */
85104

86-
code {
87-
background-color: #f7f7f7;
88-
color: #333;
105+
.ref-index th {font-weight: normal;}
106+
.ref-index h2 {font-size: 20px;}
107+
108+
.ref-index td {vertical-align: top;}
109+
.ref-index .alias {width: 40%;}
110+
.ref-index .title {width: 60%;}
111+
112+
.ref-index .alias {width: 40%;}
113+
.ref-index .title {width: 60%;}
114+
115+
.ref-arguments th {text-align: right; padding-right: 10px;}
116+
.ref-arguments th, .ref-arguments td {vertical-align: top;}
117+
.ref-arguments .name {width: 20%;}
118+
.ref-arguments .desc {width: 80%;}
119+
120+
/* Nice scrolling for wide elements --------------------------------------- */
121+
122+
table {
123+
display: block;
124+
overflow: auto;
89125
}
90-
code a {
91-
color: #375f84;
126+
127+
/* Syntax highlighting ---------------------------------------------------- */
128+
129+
pre {
130+
word-wrap: normal;
131+
word-break: normal;
132+
border: 1px solid #eee;
92133
}
93134

94-
.warning { color: red; }
95-
.message { font-weight: bolder; }
96-
.error { color: red; font-weight: bolder; }
135+
pre, code {
136+
background-color: #f8f8f8;
137+
color: #333;
138+
}
97139

98-
.fl,.number {color:rgb(21,20,181);}
99-
.fu,.functioncall {color:#264D66 ;}
100-
.ch,.st,.string {color:#375D81 ;}
101-
.kw,.keyword {color:black;}
102-
.argument {color:#264D66 ;}
103-
.co,.comment {color: #777;}
104-
.formalargs {color: #264D66;}
105-
.eqformalargs {color:#264D66;}
106-
.slot {font-style:italic;}
107-
.symbol {color:black ;}
108-
.prompt {color:black ;}
140+
pre .img {
141+
margin: 5px 0;
142+
}
109143

110-
pre img {
144+
pre .img img {
111145
background-color: #fff;
112146
display: block;
147+
height: auto;
148+
}
149+
150+
code a, pre a {
151+
color: #375f84;
113152
}
153+
154+
.fl {color: #1514b5;}
155+
.fu {color: #000000;} /* function */
156+
.ch,.st {color: #036a07;} /* string */
157+
.kw {color: #264D66;} /* keyword */
158+
.co {color: #888888;} /* comment */
159+
160+
.message { color: black; font-weight: bolder;}
161+
.error { color: orange; font-weight: bolder;}
162+
.warning { color: #6A0366; font-weight: bolder;}
163+

docs/pkgdown.js

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,41 @@ $(function() {
55
offset: 60
66
});
77

8+
var cur_path = paths(location.pathname);
9+
$("#navbar ul li a").each(function(index, value) {
10+
if (value.text == "Home")
11+
return;
12+
if (value.getAttribute("href") === "#")
13+
return;
14+
15+
var path = paths(value.pathname);
16+
if (is_prefix(cur_path, path)) {
17+
// Add class to parent <li>, and enclosing <li> if in dropdown
18+
var menu_anchor = $(value);
19+
menu_anchor.parent().addClass("active");
20+
menu_anchor.closest("li.dropdown").addClass("active");
21+
}
22+
});
823
});
24+
25+
function paths(pathname) {
26+
var pieces = pathname.split("/");
27+
pieces.shift(); // always starts with /
28+
29+
var end = pieces[pieces.length - 1];
30+
if (end === "index.html" || end === "")
31+
pieces.pop();
32+
return(pieces);
33+
}
34+
35+
function is_prefix(needle, haystack) {
36+
if (needle.length > haystack.lengh)
37+
return(false);
38+
39+
for (var i = 0; i < haystack.length; i++) {
40+
if (needle[i] != haystack[i])
41+
return(false);
42+
}
43+
44+
return(true);
45+
}

docs/reference/as.catmaidmesh.html

Lines changed: 38 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)