Skip to content

Commit

Permalink
redown
Browse files Browse the repository at this point in the history
  • Loading branch information
jefferis committed Jul 7, 2017
1 parent d4674c4 commit 5ce9113
Show file tree
Hide file tree
Showing 35 changed files with 2,422 additions and 1,364 deletions.
13 changes: 11 additions & 2 deletions docs/authors.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

178 changes: 112 additions & 66 deletions docs/index.html

Large diffs are not rendered by default.

100 changes: 75 additions & 25 deletions docs/pkgdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,14 @@ img.icon {
float: right;
}

/* Section anchors ---------------------------------*/

.hasAnchor {
margin-left: -30px;
img {
max-width: 100%;
}

/* Section anchors ---------------------------------*/

a.anchor {
margin-left: -30px;
display:inline-block;
width: 30px;
height: 30px;
Expand All @@ -56,13 +57,31 @@ a.anchor {
visibility: visible;
}

@media (max-width: 767px) {
.hasAnchor:hover a.anchor {
visibility: hidden;
}
}


/* Fixes for fixed navbar --------------------------*/

.contents h1, .contents h2, .contents h3, .contents h4 {
padding-top: 60px;
margin-top: -60px;
}

/* Static header placement on mobile devices */
@media (max-width: 767px) {
.navbar-fixed-top {
position: absolute;
}
.navbar {
padding: 0;
}
}


/* Sidebar --------------------------*/

#sidebar {
Expand All @@ -81,33 +100,64 @@ a.anchor {
margin-bottom: 0.5em;
}

/* Syntax highlighting ---------------------------------------------------- */
/* Reference index & topics ----------------------------------------------- */

code {
background-color: #f7f7f7;
color: #333;
.ref-index th {font-weight: normal;}
.ref-index h2 {font-size: 20px;}

.ref-index td {vertical-align: top;}
.ref-index .alias {width: 40%;}
.ref-index .title {width: 60%;}

.ref-index .alias {width: 40%;}
.ref-index .title {width: 60%;}

.ref-arguments th {text-align: right; padding-right: 10px;}
.ref-arguments th, .ref-arguments td {vertical-align: top;}
.ref-arguments .name {width: 20%;}
.ref-arguments .desc {width: 80%;}

/* Nice scrolling for wide elements --------------------------------------- */

table {
display: block;
overflow: auto;
}
code a {
color: #375f84;

/* Syntax highlighting ---------------------------------------------------- */

pre {
word-wrap: normal;
word-break: normal;
border: 1px solid #eee;
}

.warning { color: red; }
.message { font-weight: bolder; }
.error { color: red; font-weight: bolder; }
pre, code {
background-color: #f8f8f8;
color: #333;
}

.fl,.number {color:rgb(21,20,181);}
.fu,.functioncall {color:#264D66 ;}
.ch,.st,.string {color:#375D81 ;}
.kw,.keyword {color:black;}
.argument {color:#264D66 ;}
.co,.comment {color: #777;}
.formalargs {color: #264D66;}
.eqformalargs {color:#264D66;}
.slot {font-style:italic;}
.symbol {color:black ;}
.prompt {color:black ;}
pre .img {
margin: 5px 0;
}

pre img {
pre .img img {
background-color: #fff;
display: block;
height: auto;
}

code a, pre a {
color: #375f84;
}

.fl {color: #1514b5;}
.fu {color: #000000;} /* function */
.ch,.st {color: #036a07;} /* string */
.kw {color: #264D66;} /* keyword */
.co {color: #888888;} /* comment */

.message { color: black; font-weight: bolder;}
.error { color: orange; font-weight: bolder;}
.warning { color: #6A0366; font-weight: bolder;}

37 changes: 37 additions & 0 deletions docs/pkgdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,41 @@ $(function() {
offset: 60
});

var cur_path = paths(location.pathname);
$("#navbar ul li a").each(function(index, value) {
if (value.text == "Home")
return;
if (value.getAttribute("href") === "#")
return;

var path = paths(value.pathname);
if (is_prefix(cur_path, path)) {
// Add class to parent <li>, and enclosing <li> if in dropdown
var menu_anchor = $(value);
menu_anchor.parent().addClass("active");
menu_anchor.closest("li.dropdown").addClass("active");
}
});
});

function paths(pathname) {
var pieces = pathname.split("/");
pieces.shift(); // always starts with /

var end = pieces[pieces.length - 1];
if (end === "index.html" || end === "")
pieces.pop();
return(pieces);
}

function is_prefix(needle, haystack) {
if (needle.length > haystack.lengh)
return(false);

for (var i = 0; i < haystack.length; i++) {
if (needle[i] != haystack[i])
return(false);
}

return(true);
}
61 changes: 38 additions & 23 deletions docs/reference/as.catmaidmesh.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5ce9113

Please sign in to comment.