Skip to content

Commit

Permalink
Update pkgdown for 0.3.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
gergness committed May 5, 2018
1 parent 978ea0c commit dc38a83
Show file tree
Hide file tree
Showing 46 changed files with 1,692 additions and 464 deletions.
10 changes: 0 additions & 10 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ reference:
- survey_quantile
- survey_ratio
- unweighted

- title: "Other supported dplyr functions"
desc: "Other functions from dplyr that work on srvyr's survey objects"
contents:
Expand All @@ -35,15 +34,6 @@ reference:
- current_svy
- get_var_est
- set_survey_vars
- exclude:
- as_survey_
- as_survey_design_
- as_survey_rep_
- as_survey_twophase_
- cascade_
- svychisq
- tbl_svy
- srvyr

navbar:
type: default
Expand Down
4 changes: 2 additions & 2 deletions dev-misc/pkgdown_script.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ purrr::walk(all_html_files, function(x) {
text <- readr::read_lines(file.path("docs", x))
depth <- stringr::str_count(x, "/")
img_loc <- paste0(paste(rep("../", depth), collapse = ""), "tools/logo.png")
navbar_brand_line <- which(stringr::str_detect(text, stringr::coll("<a class=\"navbar-brand\"")))
navbar_brand_line <- which(stringr::str_detect(text, stringr::coll("<span class=\"navbar-brand\"")))
if (length(navbar_brand_line) == 0) return(TRUE)
text[navbar_brand_line] <- paste(
text[navbar_brand_line],
paste0("<img src=\"", img_loc, "\" height=\"50\" width=\"50\" align=\"left\" display=\"block\" style=\"margin: 5px 20px 5px 0px\">"),
paste0("<img src=\"", img_loc, "\" height=\"50\" width=\"50\" align=\"left\" display=\"block\" style=\"margin: -15px 10px 0px 0px\">"),
sep = "\n"
)
readr::write_lines(text, file.path("docs", x))
Expand Down
153 changes: 153 additions & 0 deletions docs/CODE_OF_CONDUCT.html

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

31 changes: 21 additions & 10 deletions docs/articles/extending-srvyr.html

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

34 changes: 24 additions & 10 deletions docs/articles/index.html

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

Loading

0 comments on commit dc38a83

Please sign in to comment.