-
Notifications
You must be signed in to change notification settings - Fork 923
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
Update bootstrap to v4.0.0-beta #494
Conversation
Fixes twbs/bootstrap#21771 which affected printing the tutorials to PDF.
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.
Looks good but I did not rebuild the website yet.
The CSS class changes are documented in the CHANGELOG and in a commit part of the beta
tag: twbs/bootstrap@36e482e, so I guess it's fine.
Ahm, I am seeing a JavaScript error:
|
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.
it seems the JS stuff have changed and we have to update the loaded scripts.
I see two important points in twbs/bootstrap#21568:
Might not affect us though.
This is likely causing the issue I pasted above. |
New JS files are needed it seems: https://getbootstrap.com/docs/4.0/getting-started/introduction/#quick-start. @nsoranzo could you please remove |
@willdurand Done, good catch! |
Ah that's better now! I am a little worried of caching issues, so could you please trigger cache busting? It is as easy as updating the diff --git a/_layouts/base.html b/_layouts/base.html
index 46dae87..60f10bc 100644
--- a/_layouts/base.html
+++ b/_layouts/base.html
@@ -7,8 +7,8 @@
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>{{ site.title }}</title>
- <link rel="stylesheet" href="{{ site.url }}/assets/css/bootstrap.min.css?v=2">
- <link rel="stylesheet" href="{{ site.url }}/assets/css/main.css?v=2">
+ <link rel="stylesheet" href="{{ site.url }}/assets/css/bootstrap.min.css?v=3">
+ <link rel="stylesheet" href="{{ site.url }}/assets/css/main.css?v=3">
<link rel="stylesheet" href="{{ site.url }}/assets/css/font-awesome.css">
<link rel="stylesheet" href="{{ site.url }}/assets/css/syntax_highlighting.css">
</head>
@@ -17,7 +17,7 @@
</body>
<script type="text/javascript" src="{{ site.url }}/assets/js/jquery.slim.min.js"></script>
<script type="text/javascript" src="{{ site.url }}/assets/js/popper.min.js"></script>
- <script type="text/javascript" src="{{ site.url }}/assets/js/bootstrap.min.js"></script>
+ <script type="text/javascript" src="{{ site.url }}/assets/js/bootstrap.min.js?v3"></script>
<script type="text/javascript" src="{{ site.url }}/assets/js/details-element-polyfill.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
</html> Note that I also added one for the JS file because well... we never know 😉 |
@willdurand I'm a newbie at CSS and JS, so I'll ask some stupid questions:
Anyway, feel free to push to my branch if you prefer! |
Not needed indeed, but numbers are the same then 😀
Doesn't matter. |
Thanks for the review @willdurand! |
thanks @nsoranzo! |
Fixes twbs/bootstrap#21771 which affected printing the tutorials to PDF.