Skip to content

Commit 66637b9

Browse files
committed
docs: fix docsearch crawl
1 parent f2ec889 commit 66637b9

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.github/workflows/crawl.yml

+12-2
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,24 @@ jobs:
1212
env:
1313
API_KEY: ${{secrets.ALGOLIA_API_KEY}}
1414
APPLICATION_ID: GERZE019PN
15+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
1516
runs-on: ubuntu-latest
16-
container: algolia/docsearch-scraper
17+
container:
18+
image: algolia/docsearch-scraper
19+
volumes:
20+
- /node20217:/node20217:rw,rshared
21+
- /node20217:/__e/node20:ro,rshared
1722
steps:
1823
- name: Wait for Netlify deployment
1924
uses: whatnick/wait-action@master
2025
with:
2126
time: '50s'
22-
- uses: actions/checkout@v2
27+
- name: install nodejs20glibc2.17
28+
run: |
29+
curl -LO https://unofficial-builds.nodejs.org/download/release/v20.9.0/node-v20.9.0-linux-x64-glibc-217.tar.xz
30+
tar -xf node-v20.9.0-linux-x64-glibc-217.tar.xz --strip-components 1 -C /node20217
31+
ldd /__e/node20/bin/node
32+
- uses: actions/checkout@v4
2333
- run: 'sudo apt-get install -y jq'
2434
- run: 'echo "CONFIG=$(cat docs/.algolia/config.json | jq -r tostring)" >> $GITHUB_ENV'
2535
- run: "cd /root && pipenv install"

docs/.vitepress/config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ export default defineConfigWithTheme({
112112
],
113113
},
114114
},
115+
115116
vite: {
116117
optimizeDeps: {
117118
exclude: ['@mussi/vitepress-theme'],

0 commit comments

Comments
 (0)