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

Cannot access bootstrap globally #1638

Closed
michael-wisely-gravwell opened this issue Jan 9, 2024 · 0 comments · Fixed by #1639
Closed

Cannot access bootstrap globally #1638

michael-wisely-gravwell opened this issue Jan 9, 2024 · 0 comments · Fixed by #1639

Comments

@michael-wisely-gravwell
Copy link
Contributor

michael-wisely-gravwell commented Jan 9, 2024

I recently upgraded a project from pydata-sphinx-theme 0.11.0 to 0.15.1. This required that I migrate things to Bootstrap 5.

According to the Boostrap 5 docs, one can enable Popovers like so:

const popoverTriggerList = document.querySelectorAll('[data-bs-toggle="popover"]')
const popoverList = [...popoverTriggerList].map(popoverTriggerEl => new bootstrap.Popover(popoverTriggerEl))

I was unable to make this work.

It eventually occurred to me that bootstrap wasn't available to me as a global object.

Would it be possible to provide bootstrap globally, so that one can work with Bootstrap as described in their examples? Or, is there another way to access bootstrap that I've overlooked? I looked through the theme's docs and was unable to find anything that addressed my concern.

I have a suggestion for making boostrap globally available. Please see the linked PR.

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 a pull request may close this issue.

1 participant