Merge pull request #8270 from hashicorp/docs-algolia-tweak

Tweaks for algolia job
This commit is contained in:
Mahmood Ali 2020-06-24 22:00:16 -04:00 committed by GitHub
commit b234b1cefd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 8 deletions

11
.circleci/config.yml generated
View File

@ -1050,15 +1050,18 @@ jobs:
- PAGER: cat
algolia_index:
docker:
- image: circleci/buildpack-deps
shell: /usr/bin/env bash -euo pipefail -c
- image: node:12
steps:
- checkout
- setup_remote_docker
- run:
command: |
if [ "$CIRCLE_REPOSITORY_URL" != "git@github.com:hashicorp/nomad.git" ]; then
echo "Not Nomad OSS Repo, not indexing Algolia"
exit 0
fi
cd website/
npm i
npm install
node scripts/index_search_content.js
name: Push content to Algolia Index
test-docker:

View File

@ -1,12 +1,15 @@
docker:
- image: circleci/buildpack-deps
shell: /usr/bin/env bash -euo pipefail -c
- image: node:12
steps:
- checkout
- setup_remote_docker
- run:
name: Push content to Algolia Index
command: |
if [ "$CIRCLE_REPOSITORY_URL" != "git@github.com:hashicorp/nomad.git" ]; then
echo "Not Nomad OSS Repo, not indexing Algolia"
exit 0
fi
cd website/
npm i
npm install
node scripts/index_search_content.js

View File

@ -5931,6 +5931,12 @@
}
}
},
"dotenv": {
"version": "8.2.0",
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-8.2.0.tgz",
"integrity": "sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw==",
"dev": true
},
"download": {
"version": "6.2.5",
"resolved": "https://registry.npmjs.org/download/-/download-6.2.5.tgz",

View File

@ -42,6 +42,7 @@
"devDependencies": {
"dart-linkcheck": "^2.0.15",
"husky": "^4.2.5",
"dotenv": "^8.2.0",
"prettier": "^2.0.5"
},
"husky": {