This is an automated email from the ASF dual-hosted git repository.
fokko pushed a commit to branch production
in repository https://gitbox.apache.org/repos/asf/parquet-site.git
The following commit(s) were added to refs/heads/production by this push:
new be49a89 Run CI on PRs and fail on warnings (#92)
be49a89 is described below
commit be49a89239840521a92ef4bdc65afd23fe67aa48
Author: Fokko Driesprong <[email protected]>
AuthorDate: Tue Dec 17 20:47:02 2024 +0100
Run CI on PRs and fail on warnings (#92)
* Run CI on PRs and fail on warnings
* Remove config from script itself
---
.github/workflows/deploy.yml | 4 +++-
hugo.toml | 8 +++++---
layouts/partials/hooks/body-end.html | 13 +------------
3 files changed, 9 insertions(+), 16 deletions(-)
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 62fc7f5..b704c24 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -22,6 +22,7 @@ name: Build and Deploy Parquet Site
on:
push:
branches: [ production ]
+ pull_request:
jobs:
Build_and_Deploy_Site:
@@ -55,10 +56,11 @@ jobs:
- run: npm install
- name: Build
- run: hugo --minify
+ run: hugo --minify --panicOnWarning
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
+ if: github.ref == 'refs/heads/production'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: public
diff --git a/hugo.toml b/hugo.toml
index 6679dfd..0521227 100644
--- a/hugo.toml
+++ b/hugo.toml
@@ -102,9 +102,6 @@ github_branch= "production"
# Comment out to disable search.
# gcs_engine_id = "7e3f91e3eadecceaa"
-# Enable Algolia DocSearch
-algolia_docsearch = true
-
# Enable Lunr.js offline search
offlineSearch = false
@@ -113,6 +110,11 @@ prism_syntax_highlighting = false
# User interface configuration
+[params.search.algolia]
+appId = '399WOPSE6Q'
+apiKey = '437a8e172549357b6ca768248caecff9'
+indexName = 'parquet-apache'
+
[params.ui]
# Set to true to disable breadcrumb navigation.
breadcrumb_disable = false
diff --git a/layouts/partials/hooks/body-end.html
b/layouts/partials/hooks/body-end.html
index 68e9a1e..7eaec5e 100644
--- a/layouts/partials/hooks/body-end.html
+++ b/layouts/partials/hooks/body-end.html
@@ -2,20 +2,9 @@
<script src="https://cdn.jsdelivr.net/npm/@docsearch/js@3"></script>
<script type="text/javascript">
-
docsearch({
-
- appId: '399WOPSE6Q',
-
- apiKey: '437a8e172549357b6ca768248caecff9',
-
- indexName: 'parquet-apache',
-
container: '#search_box',
-
- debug: true // Set debug to true if you want to inspect the modal
-
+ debug: false // Set debug to true if you want to inspect the modal
});
-
</script>
{{ end }}