-
Notifications
You must be signed in to change notification settings - Fork 48
Switch from Algolia DocSearch to Lunr offline search #168
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
Merged
alamb
merged 4 commits into
apache:production
from
vinooganesh:vinooganesh/switch-to-lunr-offline
Feb 24, 2026
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
cf2c48f
Switch from Algolia DocSearch to Lunr offline search
vinooganesh 6195bcb
Merge branch 'production' into vinooganesh/switch-to-lunr-offline
vinooganesh eb7dec6
Add missing title front matter so search results are clickable
vinooganesh 36a9f75
Merge remote-tracking branch 'origin/production' into vinooganesh/swi…
alamb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| --- | ||
| title: "Compression" | ||
| linkTitle: "Compression" | ||
| weight: 1 | ||
| --- | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| --- | ||
| title: "Encodings" | ||
| linkTitle: "Encodings" | ||
| weight: 1 | ||
| --- | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| --- | ||
| title: "Encryption" | ||
| linkTitle: "Encryption" | ||
| weight: 1 | ||
| --- | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| --- | ||
| title: "Geospatial Type" | ||
| linkTitle: "Geospatial Type" | ||
| weight: 5 | ||
| --- | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| --- | ||
| title: "Variant Type" | ||
| linkTitle: "Variant Type" | ||
| weight: 5 | ||
| --- | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| --- | ||
| title: "Variant Shredding" | ||
| linkTitle: "Variant Shredding" | ||
| weight: 5 | ||
| --- | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| --- | ||
| title: "Logical Types" | ||
| linkTitle: "Logical Types" | ||
| weight: 5 | ||
| --- | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| --- | ||
| title: "Binary Protocol Extensions" | ||
| linkTitle: "Binary Protocol Extensions" | ||
| weight: 1 | ||
| --- | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| --- | ||
| title: "Bloom Filter" | ||
| linkTitle: "Bloom Filter" | ||
| weight: 7 | ||
| --- | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| --- | ||
| title: "Page Index" | ||
| linkTitle: "Page Index" | ||
| weight: 7 | ||
| --- | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| {{/* | ||
| Project-level override of Docsy's layouts/_partials/scripts.html | ||
|
|
||
| Why this file exists: | ||
| Removes the Algolia DocSearch JS block (cdn.jsdelivr.net) which is blocked | ||
| by Apache's CSP. Also removes the markmap-autoloader CDN reference since | ||
| markmap is not enabled on this site. | ||
|
|
||
| See: https://github.com/apache/parquet-site/issues/163 | ||
| */ -}} | ||
| {{ $needKaTeX := or .Params.math .Site.Params.katex.enable .Params.chem .Site.Params.chem (.Page.Store.Get "hasKaTeX") (.Page.Store.Get "hasmhchem") -}} | ||
| {{ $needmhchem := or .Params.chem .Site.Params.katex.mhchem.enable (.Page.Store.Get "hasmhchem") -}} | ||
|
|
||
| {{/* markmap block removed — it loads from cdn.jsdelivr.net which is blocked | ||
| by Apache's CSP, and markmap is not enabled on this site anyway. */ -}} | ||
|
|
||
| {{ if .Site.Params.plantuml.enable -}} | ||
| <script src='{{ "js/deflate.js" | relURL }}'></script> | ||
| {{ end -}} | ||
|
|
||
| {{ if $needKaTeX -}} | ||
| {{ partial "scripts/katex.html" (dict "mhchem" $needmhchem) -}} | ||
| {{ end -}} | ||
|
|
||
| {{ $jsBs := resources.Get "vendor/bootstrap/dist/js/bootstrap.bundle.js" -}} | ||
| {{ $jsBase := resources.Get "js/base.js" -}} | ||
| {{ $jsSearch := resources.Get "js/search.js" | resources.ExecuteAsTemplate "js/search.js" .Site.Home -}} | ||
| {{ $jsMarkmap := resources.Get "js/markmap.js" | resources.ExecuteAsTemplate "js/markmap.js" . -}} | ||
| {{ $jsPlantuml := resources.Get "js/plantuml.js" | resources.ExecuteAsTemplate "js/plantuml.js" . -}} | ||
| {{ $jsDrawio := resources.Get "js/drawio.js" | resources.ExecuteAsTemplate "js/drawio.js" . -}} | ||
| {{ if .Site.Params.offlineSearch -}} | ||
| {{ $jsSearch = resources.Get "js/offline-search.js" -}} | ||
| {{ end -}} | ||
|
|
||
| {{ $jsArray := slice $jsBs $jsBase $jsSearch $jsPlantuml $jsMarkmap $jsDrawio -}} | ||
|
|
||
| {{ if .Page.Store.Get "hasmermaid" -}} | ||
| {{- partial "scripts/mermaid.html" . -}} | ||
| {{ end -}} | ||
|
|
||
| {{ if .Site.Params.ui.showLightDarkModeMenu -}} | ||
| {{ $jsArray = $jsArray | append (resources.Get "js/dark-mode.js") -}} | ||
| {{ end -}} | ||
|
|
||
| {{ $js := $jsArray | resources.Concat "js/main.js" -}} | ||
| {{ if hugo.IsProduction -}} | ||
| {{ $js := $js | minify | fingerprint -}} | ||
| <script src="{{ $js.RelPermalink }}" integrity="{{ $js.Data.Integrity }}" crossorigin="anonymous"></script> | ||
| {{ else -}} | ||
| <script src="{{ $js.RelPermalink }}"></script> | ||
| {{ end -}} | ||
|
|
||
| {{ if .Site.Params.prism_syntax_highlighting -}} | ||
| <script src='{{ "js/prism.js" | relURL }}'></script> | ||
| {{ else if ( not .Site.Params.disable_click2copy_chroma ) -}} | ||
| {{ $c2cJS := resources.Get "js/click-to-copy.js" -}} | ||
| {{ if hugo.IsProduction -}} | ||
| {{ $c2cJS = $c2cJS | minify | fingerprint -}} | ||
| {{ end -}} | ||
| <script defer src="{{ $c2cJS.RelPermalink }}" {{ with $c2cJS.Data.Integrity -}} | ||
| integrity="{{ . }}" {{ end -}} | ||
| crossorigin="anonymous"></script> | ||
| {{ end -}} | ||
|
|
||
| <script src='{{ "js/tabpane-persist.js" | relURL }}'></script> | ||
| {{ partial "hooks/body-end.html" . -}} | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is the diff compared to the template
Run this command to compute the diff
Here is the actual diff: