Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions content/en/docs/File Format/Data Pages/compression.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
title: "Compression"
linkTitle: "Compression"
weight: 1
---
Expand Down
1 change: 1 addition & 0 deletions content/en/docs/File Format/Data Pages/encodings.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
title: "Encodings"
linkTitle: "Encodings"
weight: 1
---
Expand Down
1 change: 1 addition & 0 deletions content/en/docs/File Format/Data Pages/encryption.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
title: "Encryption"
linkTitle: "Encryption"
weight: 1
---
Expand Down
1 change: 1 addition & 0 deletions content/en/docs/File Format/Types/Geospatial.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
title: "Geospatial Type"
linkTitle: "Geospatial Type"
weight: 5
---
Expand Down
1 change: 1 addition & 0 deletions content/en/docs/File Format/Types/VariantEncoding.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
title: "Variant Type"
linkTitle: "Variant Type"
weight: 5
---
Expand Down
1 change: 1 addition & 0 deletions content/en/docs/File Format/Types/VariantShredding.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
title: "Variant Shredding"
linkTitle: "Variant Shredding"
weight: 5
---
Expand Down
1 change: 1 addition & 0 deletions content/en/docs/File Format/Types/logicaltypes.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
title: "Logical Types"
linkTitle: "Logical Types"
weight: 5
---
Expand Down
1 change: 1 addition & 0 deletions content/en/docs/File Format/binaryprotocolextensions.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
title: "Binary Protocol Extensions"
linkTitle: "Binary Protocol Extensions"
weight: 1
---
Expand Down
1 change: 1 addition & 0 deletions content/en/docs/File Format/bloomfilter.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
title: "Bloom Filter"
linkTitle: "Bloom Filter"
weight: 7
---
Expand Down
1 change: 1 addition & 0 deletions content/en/docs/File Format/pageindex.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
title: "Page Index"
linkTitle: "Page Index"
weight: 7
---
Expand Down
4 changes: 3 additions & 1 deletion hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ github_branch = "production"
# gcs_engine_id = "7e3f91e3eadecceaa"

# Enable Lunr.js offline search
offlineSearch = false
offlineSearch = true
offlineSearchMaxResults = 25
offlineSearchSummaryLength = 200

# Enable syntax highlighting and copy buttons on code blocks with Prism
prism_syntax_highlighting = false
Expand Down
66 changes: 66 additions & 0 deletions layouts/partials/scripts.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{{/*
Copy link
Copy Markdown
Collaborator

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

diff -du  ~/go/pkg/mod/github.com/google/docsy\@v0.12.0/layouts/_partials/scripts.html layouts/partials/scripts.html

Here is the actual diff:

--- /Users/andrewlamb/go/pkg/mod/github.com/google/docsy@v0.12.0/layouts/_partials/scripts.html	2026-02-11 07:27:43
+++ layouts/partials/scripts.html	2026-02-21 15:07:02
@@ -1,26 +1,18 @@
+{{/*
+  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") -}}

-{{ if .Site.Params.markmap.enable -}}
-<style>
-.markmap > svg {
-  width: 100%;
-  height: 300px;
-}
-</style>
-<script>
-window.markmap = {
-  autoLoader: {
-      manual: true,
-      onReady() {
-        const { autoLoader, builtInPlugins } = window.markmap;
-        autoLoader.transformPlugins = builtInPlugins.filter(plugin => plugin.name !== 'prism');
-      },
-  },
-};
-</script>
-<script src="https://cdn.jsdelivr.net/npm/markmap-autoloader"></script>
-{{ end -}}
+{{/* 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>
@@ -70,25 +62,5 @@
     crossorigin="anonymous"></script>
 {{ end -}}

-{{ if and .Site.Params.search (isset .Site.Params.search "algolia") -}}
-  {{ template "algolia/scripts" .Site.Params.search.algolia -}}
-{{ end -}}
 <script src='{{ "js/tabpane-persist.js" | relURL }}'></script>
 {{ partial "hooks/body-end.html" . -}}
-
-{{ define "algolia/scripts" -}}
-<script src="https://cdn.jsdelivr.net/npm/@docsearch/js@3.8.2"
-  integrity="sha512-lsD+XVzdBI6ZquXc8gqbw0/bgrfIsMJwY/8xvmvbN+U3gZSeG7BXQoCq4zv/yCmntR2GLHtgB+bD4ESPsKIbIA=="
-  crossorigin="anonymous" ></script>
-<script type="text/javascript">
-const containers = ['#docsearch-0', '#docsearch-1'];
-for (let c of containers) {
-  docsearch({
-    container: c,
-    appId: {{ .appId | default "R2IYF7ETH7" }},
-    apiKey: {{ .apiKey | default "599cec31baffa4868cae4e79f180729b" }},
-    indexName: {{ .indexName | default "docsearch" }},
-  });
-}
-</script>
-{{ end -}}

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" . -}}