Skip to content

Commit 72f3db6

Browse files
authored
Merge pull request #4901 from marcduiker/remove-algolia-workflow
Remove Algolia script, update html to use hugo yaml
2 parents 76ed1a9 + 416d322 commit 72f3db6

File tree

4 files changed

+6
-156
lines changed

4 files changed

+6
-156
lines changed

.github/scripts/algolia.py

Lines changed: 0 additions & 118 deletions
This file was deleted.

.github/workflows/website-root.yml

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,6 @@ jobs:
6161
output_location: "/"
6262
skip_app_build: true
6363
skip_deploy_on_missing_secrets: true
64-
- name: Upload Hugo artifacts for Algolia
65-
uses: actions/upload-artifact@v4
66-
with:
67-
name: hugo_build
68-
path: ./daprdocs/public/
69-
if-no-files-found: error
7064

7165
close_staging_site:
7266
if: github.event_name == 'pull_request' && github.event.action == 'closed'
@@ -80,29 +74,3 @@ jobs:
8074
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_PROUD_BAY_0E9E0E81E }}
8175
action: "close"
8276
skip_deploy_on_missing_secrets: true
83-
84-
algolia_index:
85-
name: Index site for Algolia
86-
if: github.event_name == 'push'
87-
needs: ['build_and_deploy_job']
88-
runs-on: ubuntu-latest
89-
env:
90-
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
91-
ALGOLIA_API_WRITE_KEY: ${{ secrets.ALGOLIA_API_WRITE_KEY }}
92-
ALGOLIA_INDEX_NAME: daprdocs
93-
steps:
94-
- name: Checkout docs repo
95-
uses: actions/checkout@v4
96-
with:
97-
submodules: false
98-
- name: Download Hugo artifacts for Algolia
99-
uses: actions/download-artifact@v4
100-
with:
101-
name: hugo_build
102-
path: site/
103-
- name: Install Python packages
104-
run: |
105-
pip install --upgrade bs4
106-
pip install --upgrade 'algoliasearch>=2.0,<3.0'
107-
- name: Index site
108-
run: python ./.github/scripts/algolia.py ./site

daprdocs/layouts/_partials/hooks/body-end.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
<script type="text/javascript">
66
docsearch({
77
container: '#docsearch',
8-
appId: 'O0QLQGNF38',
9-
apiKey: '54ae43aa28ce8f00c54c8d5f544d29b9',
10-
indexName: 'crawler_dapr',
8+
appId: '{{ .appId }}',
9+
apiKey: '{{ .apiKey }}',
10+
indexName: '{{ .indexName }}',
1111
});
1212
</script>
1313

hugo.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,9 @@ params:
188188

189189
search:
190190
algolia:
191-
appId: 'O0QLQGNF38'
192-
apiKey: '54ae43aa28ce8f00c54c8d5f544d29b9'
193-
indexName: daprdocs
191+
appId: O0QLQGNF38
192+
apiKey: 54ae43aa28ce8f00c54c8d5f544d29b9
193+
indexName: crawler_dapr
194194
offlineSearch: false
195195

196196
# User interface configuration

0 commit comments

Comments
 (0)