You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@parquet.apache.org by "alamb (via GitHub)" <gi...@apache.org> on 2026/02/13 11:47:07 UTC
[I] Consider vendoring jquery/css or removing their use from the site [parquet-site]
alamb opened a new issue, #163:
URL: https://github.com/apache/parquet-site/issues/163
- While debugging https://github.com/apache/parquet-site/issues/159
I would like the local rendered site to match the production site as much as possible so we can test changes before making them live. There are currently several differences
This results in:
1. The fonts don't appear quite the same
2. The local version of the page has search, but the deployed one does not
I suspect this is related to the fact that there are several resources used when rendering the site locally that are blocked on the production site: https://parquet.apache.org/
I believe the errors are due to the fact that the docsy template we use tries to fetch CSS and jquery from third-party servers that are not allowed by the apache.org server
Here are the errors:
```
(index):1 Loading the script 'https://code.jquery.com/jquery-3.7.1.min.js' violates the following Content Security Policy directive: "script-src 'self' data: blob: 'unsafe-inline' 'unsafe-eval' https://www.apachecon.com/ https://www.communityovercode.org/ https://*.apache.org/ https://apache.org/ https://*.scarf.sh/". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback. The action has been blocked.
(index):1 Loading the stylesheet 'https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,700,700i&display=swap' violates the following Content Security Policy directive: "style-src 'self' data: blob: 'unsafe-inline' 'unsafe-eval' https://www.apachecon.com/ https://www.communityovercode.org/ https://*.apache.org/ https://apache.org/ https://*.scarf.sh/". Note that 'style-src-elem' was not explicitly set, so 'style-src' is used as a fallback. The action has been blocked.
(index):1 Loading the stylesheet 'https://cdn.jsdelivr.net/npm/@docsearch/css@3.8.2' violates the following Content Security Policy directive: "style-src 'self' data: blob: 'unsafe-inline' 'unsafe-eval' https://www.apachecon.com/ https://www.communityovercode.org/ https://*.apache.org/ https://apache.org/ https://*.scarf.sh/". Note that 'style-src-elem' was not explicitly set, so 'style-src' is used as a fallback. The action has been blocked.
main.min.5ea9bb4146d…cd03b7fa7f2bb4.js:5 Uncaught ReferenceError: jQuery is not defined
at main.min.5ea9bb4146d…fa7f2bb4.js:5:83140
(index):1 Loading the script 'https://cdn.jsdelivr.net/npm/@docsearch/js@3.8.2' violates the following Content Security Policy directive: "script-src 'self' data: blob: 'unsafe-inline' 'unsafe-eval' https://www.apachecon.com/ https://www.communityovercode.org/ https://*.apache.org/ https://apache.org/ https://*.scarf.sh/". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback. The action has been blocked.
(index):5 Uncaught ReferenceError: docsearch is not defined
at (index):5:968
(index):1 Loading the stylesheet 'https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,700,700i&display=swap' violates the following Content Security Policy directive: "style-src 'self' data: blob: 'unsafe-inline' 'unsafe-eval' https://www.apachecon.com/ https://www.communityovercode.org/ https://*.apache.org/ https://apache.org/ https://*.scarf.sh/". Note that 'style-src-elem' was not explicitly set, so 'style-src' is used as a fallback. The action has been blocked.
(index):1 Loading the stylesheet 'https://cdn.jsdelivr.net/npm/@docsearch/css@3.8.2' violates the following Content Security Policy directive: "style-src 'self' data: blob: 'unsafe-inline' 'unsafe-eval' https://www.apachecon.com/ https://www.communityovercode.org/ https://*.apache.org/ https://apache.org/ https://*.scarf.sh/". Note that 'style-src-elem' was not explicitly set, so 'style-src' is used as a fallback. The action has been blocked.
```
<img width="2269" height="1405" alt="Image" src="https://github.com/user-attachments/assets/42512bd7-b9a3-4f98-a998-bda04765268b" />
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@parquet.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@parquet.apache.org
For additional commands, e-mail: issues-help@parquet.apache.org
Re: [I] Consider vendoring jquery/css or removing their use from the site [parquet-site]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on issue #163:
URL: https://github.com/apache/parquet-site/issues/163#issuecomment-3896765507
I suggest we either:
1. Update the template to avoid loading these third-party assets
2. Vendor the assets (copy them locally) so they are loaded directly from our site (see https://github.com/apache/parquet-site/pull/160 for an example)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@parquet.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@parquet.apache.org
For additional commands, e-mail: issues-help@parquet.apache.org