Skip to content

Commit

Permalink
run pkgdown
Browse files Browse the repository at this point in the history
  • Loading branch information
timelyportfolio committed Jan 30, 2018
1 parent cf3205a commit bab45bb
Show file tree
Hide file tree
Showing 10 changed files with 297 additions and 175 deletions.
8 changes: 7 additions & 1 deletion docs/LICENSE.html

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

12 changes: 9 additions & 3 deletions docs/authors.html

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

12 changes: 9 additions & 3 deletions docs/index.html

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

32 changes: 31 additions & 1 deletion docs/news/index.html

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

7 changes: 6 additions & 1 deletion docs/pkgdown.css
Expand Up @@ -137,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
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);
}
69 changes: 37 additions & 32 deletions docs/reference/add_shiny.html

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

10 changes: 8 additions & 2 deletions docs/reference/index.html

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

8 changes: 7 additions & 1 deletion docs/reference/sunburst-shiny.html

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

0 comments on commit bab45bb

Please sign in to comment.