Skip to content

upgrade Bootstrap v5.3.8#105

Merged
alamb merged 2 commits intoapache:mainfrom
kevinjqliu:kevinjqliu/fix-bootstrap
Mar 16, 2026
Merged

upgrade Bootstrap v5.3.8#105
alamb merged 2 commits intoapache:mainfrom
kevinjqliu:kevinjqliu/fix-bootstrap

Conversation

@kevinjqliu
Copy link
Contributor

@kevinjqliu kevinjqliu commented Sep 8, 2025

Running locally, i noticed this console error:
Screenshot 2025-09-07 at 6 51 55 PM

Upgrading bootstrap fixed the error.

Taken from bootstrap repo, tag v5.3.8:

Heres what I ran:

curl -L https://raw.githubusercontent.com/twbs/bootstrap/refs/tags/v5.3.8/dist/js/bootstrap.bundle.min.js -o content/js/bootstrap.bundle.min.js
curl -L https://raw.githubusercontent.com/twbs/bootstrap/refs/tags/v5.3.8/dist/js/bootstrap.bundle.min.js.map -o content/js/bootstrap.bundle.min.js.map
curl -L https://raw.githubusercontent.com/twbs/bootstrap/refs/tags/v5.3.8/dist/css/bootstrap.min.css -o content/css/bootstrap.min.css

@alamb
Copy link
Contributor

alamb commented Sep 11, 2025

Thanks @kevinjqliu

I don't know too much about this process, but it seems like the release artifact bootstrap-5.3.8-dist.zip from https://github.com/twbs/bootstrap/releases/tag/v5.3.8

Has several more files than this. Should include all of them?

Also, do we need to update the corresponding css as well?

andrewlamb@Andrews-MacBook-Pro-3:~/Downloads$ unzip bootstrap-5.3.8-dist.zip
Archive:  bootstrap-5.3.8-dist.zip
   creating: /Users/andrewlamb/Downloads/bootstrap-5.3.8-dist
   creating: /Users/andrewlamb/Downloads/bootstrap-5.3.8-dist/css
  inflating: bootstrap-5.3.8-dist/css/bootstrap.min.css
  inflating: bootstrap-5.3.8-dist/css/bootstrap-grid.rtl.min.css
  inflating: bootstrap-5.3.8-dist/css/bootstrap-utilities.rtl.css
  inflating: bootstrap-5.3.8-dist/css/bootstrap-grid.rtl.min.css.map
  inflating: bootstrap-5.3.8-dist/css/bootstrap.rtl.min.css.map
  inflating: bootstrap-5.3.8-dist/css/bootstrap.rtl.css.map
  inflating: bootstrap-5.3.8-dist/css/bootstrap-reboot.rtl.css
  inflating: bootstrap-5.3.8-dist/css/bootstrap-reboot.min.css.map
  inflating: bootstrap-5.3.8-dist/css/bootstrap-utilities.css
  inflating: bootstrap-5.3.8-dist/css/bootstrap-reboot.rtl.min.css.map
  inflating: bootstrap-5.3.8-dist/css/bootstrap.css
  inflating: bootstrap-5.3.8-dist/css/bootstrap-utilities.min.css.map
  inflating: bootstrap-5.3.8-dist/css/bootstrap-grid.css.map
  inflating: bootstrap-5.3.8-dist/css/bootstrap-grid.min.css
  inflating: bootstrap-5.3.8-dist/css/bootstrap.rtl.min.css
  inflating: bootstrap-5.3.8-dist/css/bootstrap.css.map
  inflating: bootstrap-5.3.8-dist/css/bootstrap-grid.rtl.css.map
  inflating: bootstrap-5.3.8-dist/css/bootstrap.min.css.map
  inflating: bootstrap-5.3.8-dist/css/bootstrap-reboot.min.css
  inflating: bootstrap-5.3.8-dist/css/bootstrap-utilities.rtl.min.css.map
  inflating: bootstrap-5.3.8-dist/css/bootstrap.rtl.css
  inflating: bootstrap-5.3.8-dist/css/bootstrap-utilities.rtl.css.map
  inflating: bootstrap-5.3.8-dist/css/bootstrap-reboot.rtl.css.map
  inflating: bootstrap-5.3.8-dist/css/bootstrap-reboot.css
  inflating: bootstrap-5.3.8-dist/css/bootstrap-utilities.min.css
  inflating: bootstrap-5.3.8-dist/css/bootstrap-grid.css
  inflating: bootstrap-5.3.8-dist/css/bootstrap-utilities.css.map
  inflating: bootstrap-5.3.8-dist/css/bootstrap-utilities.rtl.min.css
  inflating: bootstrap-5.3.8-dist/css/bootstrap-reboot.rtl.min.css
  inflating: bootstrap-5.3.8-dist/css/bootstrap-grid.min.css.map
  inflating: bootstrap-5.3.8-dist/css/bootstrap-grid.rtl.css
  inflating: bootstrap-5.3.8-dist/css/bootstrap-reboot.css.map
   creating: /Users/andrewlamb/Downloads/bootstrap-5.3.8-dist/js
  inflating: bootstrap-5.3.8-dist/js/bootstrap.esm.min.js
  inflating: bootstrap-5.3.8-dist/js/bootstrap.esm.js
  inflating: bootstrap-5.3.8-dist/js/bootstrap.bundle.js
  inflating: bootstrap-5.3.8-dist/js/bootstrap.bundle.min.js.map
  inflating: bootstrap-5.3.8-dist/js/bootstrap.bundle.js.map
  inflating: bootstrap-5.3.8-dist/js/bootstrap.esm.js.map
  inflating: bootstrap-5.3.8-dist/js/bootstrap.js
  inflating: bootstrap-5.3.8-dist/js/bootstrap.bundle.min.js
  inflating: bootstrap-5.3.8-dist/js/bootstrap.min.js
  inflating: bootstrap-5.3.8-dist/js/bootstrap.esm.min.js.map
  inflating: bootstrap-5.3.8-dist/js/bootstrap.js.map
  inflating: bootstrap-5.3.8-dist/js/bootstrap.min.js.map

Do you think we should install

@kevinjqliu kevinjqliu force-pushed the kevinjqliu/fix-bootstrap branch from e469030 to acc571e Compare March 16, 2026 18:51
@kevinjqliu
Copy link
Contributor Author

Updated bootstrap.min.css, thanks!

These are the only 3 bootstrap files in the repo:
Screenshot 2026-03-16 at 11 59 47 AM

I found the instructions on upgrading bootstrap

## Updating Dependencies
The JavaScript and CSS files included in this repository are based on the
example from the [ASF Infra](https://github.com/apache/infrastructure-website)
and modified slightly for our purposes. If you need to update these, the core
libraries to use are
- [bootstrap](https://getbootstrap.com/) you can simply download the latest
bundled minified version and css file. You will want to also include the
associated `.map` file. This is an common library used to provide a host
of useful JavaScript functions for websites.

I tested this locally (had to hard-refresh browser to clear cache). The previous error disappears.
Feel free to run the curl commands locally to check that the files are not modified

@kevinjqliu kevinjqliu mentioned this pull request Mar 16, 2026
@kevinjqliu
Copy link
Contributor Author

This also fixes #117! The bootstrap error caused the hamburger menu to not function correctly

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me -- thank you @kevinjqliu

I double checked that the sha's match

andrewlamb@Andrews-MacBook-Pro-3:~/Software/datafusion-site$ curl -sSfL      https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css  | md5
1b1cb0e2be9a21f091a87691f20c6300
andrewlamb@Andrews-MacBook-Pro-3:~/Software/datafusion-site$ curl -sSfL      https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js | md5
5cc1b73e70520fa84b1846afe0ec8fb6
andrewlamb@Andrews-MacBook-Pro-3:~/Software/datafusion-site$ curl -sSfL      https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js.map | md5
c38a44bc4f4f4b94a2ea27c61bb8d34f
andrewlamb@Andrews-MacBook-Pro-3:~/Software/datafusion-site$ md5 content/css/bootstrap.min.css  content/js/bootstrap.bundle.min.js content/js/bootstrap.bundle.min.js.map
MD5 (content/css/bootstrap.min.css) = 1b1cb0e2be9a21f091a87691f20c6300
MD5 (content/js/bootstrap.bundle.min.js) = 5cc1b73e70520fa84b1846afe0ec8fb6
MD5 (content/js/bootstrap.bundle.min.js.map) = c38a44bc4f4f4b94a2ea27c61bb8d34f

@alamb
Copy link
Contributor

alamb commented Mar 16, 2026

I also verified the error is gone

@alamb alamb merged commit 0b5694a into apache:main Mar 16, 2026
4 checks passed
@kevinjqliu kevinjqliu deleted the kevinjqliu/fix-bootstrap branch March 16, 2026 19:57
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.

2 participants