Skip to content

Commit

Permalink
pkgdown
Browse files Browse the repository at this point in the history
  • Loading branch information
larmarange committed Jan 18, 2019
1 parent fda8493 commit 5fa2204
Show file tree
Hide file tree
Showing 26 changed files with 86 additions and 72 deletions.
4 changes: 2 additions & 2 deletions docs/articles/index.html

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

14 changes: 7 additions & 7 deletions docs/articles/intro_labelled.html

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

4 changes: 2 additions & 2 deletions docs/authors.html

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

7 changes: 3 additions & 4 deletions docs/index.html

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

18 changes: 14 additions & 4 deletions docs/news/index.html

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

2 changes: 1 addition & 1 deletion docs/pkgdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ summary {

/* Typographic tweaking ---------------------------------*/

.contents h1.page-header {
.contents .page-header {
margin-top: calc(-60px + 1em);
}

Expand Down
9 changes: 7 additions & 2 deletions docs/pkgdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
for (var i = 0; i < links.length; i++) {
if (links[i].getAttribute("href") === "#")
continue;
// Ignore external links
if (links[i].host !== location.host)
continue;

var nav_path = paths(links[i].pathname);

var length = prefix_length(nav_path, cur_path);
Expand Down Expand Up @@ -52,13 +56,14 @@
return(pieces);
}

// Returns -1 if not found
function prefix_length(needle, haystack) {
if (needle.length > haystack.length)
return(0);
return(-1);

// Special case for length-0 haystack, since for loop won't run
if (haystack.length === 0) {
return(needle.length === 0 ? 1 : 0);
return(needle.length === 0 ? 0 : -1);
}

for (var i = 0; i < haystack.length; i++) {
Expand Down
2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pandoc: 1.19.2.1
pkgdown: 1.2.0
pkgdown: 1.3.0
pkgdown_sha: ~
articles:
intro_labelled: intro_labelled.html
Expand Down
4 changes: 2 additions & 2 deletions docs/reference/copy_labels.html

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

4 changes: 2 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: 4 additions & 4 deletions docs/reference/labelled.html

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

6 changes: 3 additions & 3 deletions docs/reference/labelled_spss.html

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

4 changes: 2 additions & 2 deletions docs/reference/mean.haven_labelled.html

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

Loading

0 comments on commit 5fa2204

Please sign in to comment.