Skip to content

Migrate to Bootstrap 4 - #1111

Closed
jayhesselberth wants to merge 24 commits into
masterfrom
bs4
Closed

jayhesselberth wants to merge 24 commits into
masterfrom
bs4

Conversation

@jayhesselberth

@jayhesselberth jayhesselberth commented Aug 16, 2019 •

Copy link
Copy Markdown
Collaborator

Current preview at: https://awesome-tesla-bf9106.netlify.com/

@hadley There are a few remaining TODO items but this is ready for review.

I think we should do a release and then merge this. Templates especially will require a few tweaks to accommodate BS4.

@jayhesselberth

jayhesselberth commented Aug 16, 2019 •

Copy link
Copy Markdown
Collaborator Author

TODO

  • News items in TOC contain release dates because they are part of the h1 elements.
  • Check and fix logos in reference index (use ggplot2 for checking).
  • Update docs to reflect BS4 navbar config items (bg and type)
  • The clipboard tooltip doesn't appear (but content is copied).

Major changes

  • Tables of contents in sidebars now use bootstrap-toc.
  • New card layout for reference index. The bootstrap-toc improves multi-level display and navigation for large function references.

Breaking changes

  • Some bootswatch themes disappeared between v3 and v4. Notably the tidytemplate default (paper) is not in bootswatch v4; closest replacement theme might be "journal"

@jayhesselberth
jayhesselberth requested a review from hadley August 19, 2019 13:15
@hadley

hadley commented Aug 20, 2019

Copy link
Copy Markdown
Member

Sounds good. I’ll plan to start the release process next week (currently in England)

@hadley

hadley commented Aug 26, 2019

Copy link
Copy Markdown
Member

This looks fantastic! A few notes:

  • The font size is quite a bit bigger — overall I think this is an improvement, but it might be a bit big in the article titles (e.g. old vs new)

  • The development version in the navbar has an ugly pseudo-3d effect

  • I'm not sure whether or not I like the new reference page layout. I think I just need to get used to it, but can you please tweak the heading so that it gets the same padding/margin as for the other top-level pages? The cards also seem to contain an empty <h6 class="card-title">? And could you explain a little bit why you picked it?

  • The TOC is a massive improvement! Can we now have the individual bullets line up directly under "Contents"?

  • The active navbar no longer has a different background colour, which I think makes it a little harder to spot.

@hadley

hadley commented Aug 26, 2019

Copy link
Copy Markdown
Member

Thinking about it more, I think we'll have to make this optional — e.g. just for us, we'll need to do a bunch of work to make sure the tidyverse template works with bs4, and it'll be tough if it's thrust upon us via CRAN update.

@jayhesselberth

Copy link
Copy Markdown
Collaborator Author

@slowkow I made those changes. This is all experimental so if you have other tweaks let me know.

@jayhesselberth

Copy link
Copy Markdown
Collaborator Author

This might the way to go: rstudio/rmarkdown#1706

@jayhesselberth

Copy link
Copy Markdown
Collaborator Author

Closing for now in favor of a likely better strategy once rstudio/rmarkdown#1706 is merged.

@hadley
hadley deleted the bs4 branch August 26, 2020 18:30
maelle added a commit that referenced this pull request Feb 19, 2021
maelle added a commit that referenced this pull request Feb 19, 2021
maelle added a commit that referenced this pull request Feb 19, 2021
maelle added a commit that referenced this pull request Feb 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants