Commit be3a85b
authored
Vendor jQuery and Lunr.js locally for CSP compliance (#169)
Apache's Content Security Policy on parquet.apache.org blocks scripts
from external CDNs. Docsy loads jQuery from code.jquery.com and Lunr
from unpkg.com, both of which get blocked, breaking all JS on the
production site.
This vendors both libraries in static/js/ and overrides Docsy's
head.html to load them from the site itself. Same versions, just
self-hosted.
jQuery is still needed — Docsy's base.js and offline-search.js both
depend on it (see google/docsy#1436 for their effort to drop it).
Part of #1631 parent 2cf30d7 commit be3a85b
File tree
3 files changed
+63
-0
lines changed- layouts/partials
- static/js
3 files changed
+63
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments