New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add BS4 templates and assets (with help from @jayhesselberth). #1536
Conversation
) | ||
|
||
# Function needed for indicating where that deps folder is compared to here | ||
transform_path <- function(x) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this and the navbar link creation might need to share logic? not sure. in any case both involve depth
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use an fs function for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've now read fs docs again, and I don't see any good fit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fs::path_rel()
doesn't help?
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
data$headdeps <- data_deps(pkg = pkg, depth = depth) | ||
|
||
# Potential opt-out of syntax highlighting CSS | ||
data$needs_highlight_css <- !isFALSE(pkg$meta[["template"]]$params$highlightcss) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we could pass the code background color via a bootstrap variable but it'd make it harder to opt-out of all the syntax highlighting styling at once.
Note to self: NOTE about not portable file paths in tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've noted a few minor code style improvements; I think you should merge soon (no need to ping me for another review) and then we can start tracking smaller problems in individual issues.
) | ||
|
||
# Function needed for indicating where that deps folder is compared to here | ||
transform_path <- function(x) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fs::path_rel()
doesn't help?
Co-authored-by: Hadley Wickham <h.wickham@gmail.com>
Co-authored-by: Hadley Wickham <h.wickham@gmail.com>
Fix #1409
Not tackled here: