-
Notifications
You must be signed in to change notification settings - Fork 909
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
Unable to use swagger UI short code #2017
Comments
@theletterf can you take a look? |
@alexandre-touret Some questions:
|
Hi,
|
Oh no, ZScaler is terrible... Could you turn it off temporarily and try again? Or try from a different computer? I cannot reproduce this on my laptop: @chalin Not sure if we have other external dependencies like this in Docsy. This one might make things difficult for airgapped environments. I could add this as a note to the documentation. |
Hi, |
@alexandre-touret Any result? |
Hi, |
Hi It works ... Alexandre |
Thanks @alexandre-touret. Quite an important report, though. I'll add a note to the docs. |
Following findings in google#2017
Following findings in google#2017
Environment
hugo version
):hugo v0.125.6-69ede10edcd539380914bbee58d4d32953dd8b43+extended linux/amd64 BuildDate=2024-05-05T10:52:52Z VendorInfo=gohugoio
Problem
The SwaggerUI shortcode doesn't work anymore.
On my browser's console (I also tested it on several browsers), I have this error:
Then, when I check the network console, I can see the following issues:
It seems the URL used (e.g., https://unpkg.com/swagger-ui-dist@5.1.0/swagger-ui.css) to get the JS artifacts are now blocked.
I tested it on a fresh setup of the docsy example.
The JS and CSS are indeed not unpackaged in the public folder.
Here is the way to reproduce this issue:
my-new-site/content/en/docs/test-swagger
_index.md
with the following content:Thanks for your help
The text was updated successfully, but these errors were encountered: