-
Notifications
You must be signed in to change notification settings - Fork 337
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
Can't use Bootstrap 5 behind proxy #2753
Comments
Yes, the BS5 configuration will require an outside line to download external dependencies. Some of the JS / CSS is included in the package (lightswitch.js) and is just copied from disk. BS3 doesn't use the new dependency resolution approach, so you also won't need a connection. I guess this might be an argument to keep the BS3 approach around. |
We might also throw a more informative error early a package is using BS5 but there is no internet connection. |
Why though? The Bootstrap 3 version can (at least for |
👋 @AlbertRapp here's the change that was made: now external assets are downloaded at build time #2249 |
Hi @maelle 👋 Thanks for the tip. This part explains the reasoning perfectly for me:
Now, I'm kind of at a conundrum though. I can set a proxy to download external assets but then the git commands that are part of the building processes don't work anymore. I'm guessing that happens due to pushes to an internal repo. Any chance it's possible to provide the external assets via the |
Hi, i do not know if that is relevant to your issue, but since #2249 I have a similar error message when trying to build a site without an internet connection, even though Would there be an option to cache the external dependencies beforehand if |
Hi there 👋
Unfortunately, setting
in my
_pkgdown.yml
file doesn't work for me and I get the following error:I'm assuming this happens because I am behind a proxy and
pkgdown
seems to not be able to fetch the files forheadroom.js
. The interesting thing is that copying the files before that like<pkgdown>/BS5/assets/lightswitch.js
works and for Bootstrap 3 I also don't get any issue (even though in the resulting docsheadroom.js
is still included via a<script>
tag). Also it's worth noting that I've already tried settingoptions(pkgdown.internet = FALSE)
but this didn't have any effect.The text was updated successfully, but these errors were encountered: