Repository navigation
Add Bootstrap 4 support #1706
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
Merged
Merged
Add Bootstrap 4 support #1706
Changes from all commits
Commits
Show all changes
88 commits
Select commit
Hold shift + click to select a range
2059192
wip support for Bootstrap 4 with backwards-compatibility
cpsievert c8c4b78
get .tabset-dropdown working in strict BS4 mode
cpsievert 1f65638
tabset-dropdown shouldn't be opinionated about it's background
cpsievert eb7c3a2
helper function for normailizing the theme name
cpsievert 4489bb3
precisely measure navbar height for all bootswatch themes
cpsievert 7bb9d34
Improve documentation
cpsievert f5eb9af
cleanup
cpsievert d73bad7
helper to normalize bootstrap version
cpsievert 0fabaa3
Default to a base font size of 14px (instead of 16px)
cpsievert 0787f7d
Fix header alignment of pandoc tables in bs4
cpsievert 173ac60
make the navbar expand breakpoint configurable
cpsievert 3e1abaa
bootscss -> bootsass
cpsievert 417b813
don't overwrite the same var in codefolding logic
cpsievert 0fec280
Use master branch of bootsass
cpsievert d46485f
Make sure we match on major version 4 and not other versions that sta…
cpsievert 7db2966
Use new bootswatch_theme_navbar_height() function
cpsievert da93a2c
merge with master
cpsievert 0e0c065
normalize bootstrap_version in relevant exported functions
cpsievert 3a5bae6
maintain backwards compatibility of html_dependency_bootstrap()
cpsievert 11980fe
Set font-size-base default as part of a theme object and apply the us…
cpsievert 82c553e
use newly renamed navbar_height() function
cpsievert 989bc53
decouple tabset-dropdown's active class from Bootstrap's active class…
cpsievert 8112ba7
only apply nav-item class to non-dropdowns
cpsievert 87f8b0f
make h1.title a bit bigger than h1
cpsievert 69161c1
Use BS3's margin-top header setting in BS4
cpsievert c74271d
Merge branch 'master' into carson/feature/bs4
cpsievert 751149d
Package renamed to bootstraplib
cpsievert d979e87
update to latest version of bootstraplib
cpsievert c0c4f36
If theme is not a string, consider it to be arbitrary SASS input
cpsievert 96661b7
bs4 pandoc var shouldn't be necessary
cpsievert 650053a
avoid bootstraplib functions when version is 3
cpsievert 832be83
In BS4, theme can be an empty string, which means vanilla Bootstrap
cpsievert 564ee33
Merge branch 'master' into carson/feature/bs4
cpsievert 2f04918
merge with master
cpsievert 8a6cd0a
Merge branch 'master' into carson/feature/bs4
cpsievert 21d9da6
Fix bootswatch theme listing in docs
cpsievert e80f395
Temporarily set the bootswatch.theme option during rendering of html_…
cpsievert e88423b
use new offical api for setting/clearing bootstraplib themes
cpsievert e1cfbb8
Don't bump jquery unless we need to
cpsievert 9b3189d
Use latest bootstraplib functions
cpsievert ec69baf
Use latest bootstraplib API, minimize new code paths
cpsievert c1c4f3f
Don't set a new theme if theme is NULL
cpsievert b3e8c49
update docs
cpsievert 4dffce0
Calling bs_theme_new() is only necessary for BS4
cpsievert 2abf5a5
merge with master
cpsievert 06ae110
Merge branch 'master' into carson/feature/bs4
cpsievert 9a2d2c7
Use BS3 Sass if user has added to the theme
cpsievert d587b7b
bootstraplib now wants 4+3 instead of 4-3
cpsievert 7dc7aeb
Merge branch 'master' into carson/feature/bs4
cpsievert 720fbd2
Merge branch 'master' into carson/feature/bs4
cpsievert 310fbeb
bump version
cpsievert b79fb4d
Merge branch 'master' into carson/feature/bs4
cpsievert b9f0b68
Merge branch 'master' into carson/feature/bs4
cpsievert 03e2ff6
Remove bootstrap_version and allow theme to be a list of bs_theme() p…
cpsievert 8ad4c5a
Cleanup global theme management logic
cpsievert fa0afa9
Minimize differences from existing logic
cpsievert c2b2b58
fix appending logic
cpsievert c1feb1f
provide files_dir attribute
d58d57c
normalize the path and recheck if it exists (this may fix a weird pro…
yihui a4d03ec
Merge branch 'master' into carson/feature/bs4
cpsievert 3b171fb
bs_dependencies() has changed to bs_theme_dependencies()
cpsievert 8a23b75
Add dynamic theming support to shiny runtime docs & allow theme arg t…
cpsievert 6e45e4e
Merge branch 'master' into carson/feature/bs4
cpsievert 27bbe8b
bump version
cpsievert 00cab01
rename bootstraplib package to bslib
cpsievert 28a1de4
Use output_format_from_yaml_front_matter() to get the theme from the …
cpsievert ea261c0
Merge branch 'master' into carson/feature/bs4
cpsievert 3b165a1
Include header sizing/margins with html_dependency_bootstrap()
cpsievert 178d43e
Merge branch 'master' into carson/feature/bs4
cpsievert 208751e
Check shiny version when bslib is used with runtime: shiny
cpsievert 8f45ae2
Fix NEWS conflict
cpsievert 017a6e7
Remove non-glyphicon implementation of tabset-dropdown
cpsievert 8db1743
Remove changes to tabsets.js and just rely on bs3compat for bs4 nav s…
cpsievert c1ec403
Don't do anything BS4-specific with navbars
cpsievert c532ab1
Revert to BS3 navbar markup -- we could/should provide more 'native' …
cpsievert 861fbd3
keep minimizing code changes
cpsievert 26157b0
Allow css parameter to understand .scss/.sass extensions
cpsievert 923cd36
Slightly less navbar padding
cpsievert 36f6803
Yank problematic hard coded colors out of template and ship with stat…
cpsievert f73c1f2
Fix theme_version() bug
cpsievert e0e6f22
Slightly better :hover color on dropdown-submenu link
cpsievert c2cb8b2
Build man/, add sass to suggests
cpsievert cd331e9
Apply suggestions from code review
cpsievert 7982cb6
Use resolve_theme() to centralize theme value checks
cpsievert 9cb2f77
Build man/
cpsievert 1f40974
Better comment
cpsievert 90fe45d
Merge branch 'master' into carson/feature/bs4
cpsievert 65579f4
Bump dev version
cpsievert File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| Package: rmarkdown | ||
| Type: Package | ||
| Title: Dynamic Documents for R | ||
| Version: 2.6.5 | ||
| Version: 2.6.6 | ||
| Authors@R: c( | ||
| person("JJ", "Allaire", role = "aut", email = "[email protected]"), | ||
| person("Yihui", "Xie", role = c("aut", "cre"), email = "[email protected]", comment = c(ORCID = "0000-0003-0645-5666")), | ||
|
|
@@ -20,6 +20,7 @@ Authors@R: c( | |
| comment = c(ORCID = "0000-0002-8335-495X", | ||
| cph = "Number sections Lua filter")), | ||
| person("Barret", "Schloerke", role = "ctb"), | ||
| person("Carson", "Sievert", role = "ctb", comment = c(ORCID = "0000-0002-4958-2844")), | ||
| person("Christophe", "Dervieux", role = "ctb"), | ||
| person("Frederik", "Aust", role = "ctb", email = "[email protected]", comment = c(ORCID = "0000-0003-4900-788X")), | ||
| person("Jeff", "Allen", role = "ctb", email = "[email protected]"), | ||
|
|
@@ -102,11 +103,14 @@ Suggests: | |
| tibble, | ||
| fs, | ||
| rsconnect, | ||
| withr (>= 2.3.0) | ||
| withr (>= 2.3.0), | ||
| bslib, | ||
| sass | ||
| SystemRequirements: pandoc (>= 1.14) - http://pandoc.org | ||
| URL: https://github.com/rstudio/rmarkdown | ||
| BugReports: https://github.com/rstudio/rmarkdown/issues | ||
| License: GPL-3 | ||
| RoxygenNote: 7.1.1 | ||
| Encoding: UTF-8 | ||
| VignetteBuilder: knitr | ||
| Remotes: rstudio/bslib | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.