Skip to content

Commit

Permalink
Re-build doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
pbastide committed Sep 8, 2017
1 parent a659858 commit baafe6f
Show file tree
Hide file tree
Showing 157 changed files with 1,144 additions and 435 deletions.
442 changes: 442 additions & 0 deletions docs/LICENSE.html

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions docs/articles/index.html

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

21 changes: 11 additions & 10 deletions docs/articles/tutorial.html

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

Binary file modified docs/articles/tutorial_files/figure-html/unnamed-chunk-9-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 28 additions & 4 deletions docs/authors.html

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

15 changes: 10 additions & 5 deletions docs/index.html

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

45 changes: 40 additions & 5 deletions docs/news/index.html

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

11 changes: 10 additions & 1 deletion docs/pkgdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ img.icon {
float: right;
}

img {
max-width: 100%;
}

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

a.anchor {
Expand Down Expand Up @@ -133,9 +137,14 @@ pre, code {
color: #333;
}

pre img {
pre .img {
margin: 5px 0;
}

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

code a, pre a {
Expand Down
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);
}
Loading

0 comments on commit baafe6f

Please sign in to comment.