Skip to content
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

Remove jQuery and Update Bootstrap #228

Closed
rockerBOO opened this issue May 22, 2021 · 3 comments
Closed

Remove jQuery and Update Bootstrap #228

rockerBOO opened this issue May 22, 2021 · 3 comments

Comments

@rockerBOO
Copy link
Contributor

rockerBOO commented May 22, 2021

With Bootstrap 5.0, jQuery is no longer required. The feature we used that required it was the dropdowns in the header nav bar. Currently running Bootstrap 5.0 beta so no breaking issues should come up.

We can now remove jQuery and include the Bootstrap 5 javascript bundle (including popper.js) and slim down things a little.

See _layouts/default.html

https://getbootstrap.com/docs/5.0/migration/
https://getbootstrap.com/docs/5.0/getting-started/javascript/#still-want-to-use-jquery-its-possible
https://getbootstrap.com/docs/5.0/getting-started/introduction/#bundle

@rockerBOO rockerBOO changed the title Remove jQuery and Update to Bootstrap Remove jQuery and Update Bootstrap May 22, 2021
@XVilka
Copy link
Sponsor Contributor

XVilka commented Sep 18, 2021

I wonder if it makes sense to use some lighter alternatives to Boostrap like one of these:

@justinmk
Copy link
Member

lighter alternatives to Boostrap

could be nice, but adds risk if they aren't as well-maintained ("alive") as bootstrap.

justinmk added a commit that referenced this issue May 23, 2024
Related issue: #228

Things done in this pull request:
- Update Bootstrap from 5.0 beta to 5.3.3.
- Remove old normalize.css. Bootstrap already includes its own [reboot](https://getbootstrap.com/docs/5.3/content/reboot/).
- Remove jquery. It isn't a dependency of Bootstrap in v5. The bootstrap.bundle.js includes popper.js as a replacement.
- Update nix-shell, because the ruby version was too old to build.
- Update navbar to match previous styling. There's also some new CSS classes to target things better.
- Update fonts. Serif fonts weren't being used at all, and Inter wasn't being loaded in some places. Also Lato isn't being used at all anymore, so I removed the old files.
- Clean up some CSS.

TODO:
There's some scripts that need to get their references updated to the correct filenames:
- core: https://github.com/neovim/neovim/blob/40ce8577977fcdce8ad76863c70eb522e4cefd4d/scripts/gen_help_html.lua#L829
- docs: https://github.com/neovim/doc/blob/6f805e0d6085bd29ef881dcfe907638c943aac75/templates/report-header.sh.html#L11
@justinmk
Copy link
Member

Fixed by #350

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

No branches or pull requests

3 participants