Skip to content
Open
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
118 changes: 0 additions & 118 deletions .github/scripts/algolia.py

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/website-root.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,6 @@ jobs:
output_location: "/"
skip_app_build: true
skip_deploy_on_missing_secrets: true
- name: Upload Hugo artifacts for Algolia
uses: actions/upload-artifact@v4
with:
name: hugo_build
path: ./daprdocs/public/
if-no-files-found: error

close_staging_site:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
Expand All @@ -80,29 +74,3 @@ jobs:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_PROUD_BAY_0E9E0E81E }}
action: "close"
skip_deploy_on_missing_secrets: true

algolia_index:
name: Index site for Algolia
if: github.event_name == 'push'
needs: ['build_and_deploy_job']
runs-on: ubuntu-latest
env:
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
ALGOLIA_API_WRITE_KEY: ${{ secrets.ALGOLIA_API_WRITE_KEY }}
ALGOLIA_INDEX_NAME: daprdocs
steps:
- name: Checkout docs repo
uses: actions/checkout@v4
with:
submodules: false
- name: Download Hugo artifacts for Algolia
uses: actions/download-artifact@v4
with:
name: hugo_build
path: site/
- name: Install Python packages
run: |
pip install --upgrade bs4
pip install --upgrade 'algoliasearch>=2.0,<3.0'
- name: Index site
run: python ./.github/scripts/algolia.py ./site
6 changes: 3 additions & 3 deletions daprdocs/layouts/_partials/hooks/body-end.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<script type="text/javascript">
docsearch({
container: '#docsearch',
appId: 'O0QLQGNF38',
apiKey: '54ae43aa28ce8f00c54c8d5f544d29b9',
indexName: 'crawler_dapr',
appId: '{{ .appId }}',
apiKey: '{{ .apiKey }}',
indexName: '{{ .indexName }}',
});
</script>

Expand Down
6 changes: 3 additions & 3 deletions hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,9 @@ params:

search:
algolia:
appId: 'O0QLQGNF38'
apiKey: '54ae43aa28ce8f00c54c8d5f544d29b9'
indexName: daprdocs
appId: O0QLQGNF38
apiKey: 54ae43aa28ce8f00c54c8d5f544d29b9
indexName: crawler_dapr
offlineSearch: false

# User interface configuration
Expand Down
Loading