Skip to content

Commit

Permalink
Merge pull request #8270 from hashicorp/docs-algolia-tweak
Browse files Browse the repository at this point in the history
Tweaks for algolia job
  • Loading branch information
Mahmood Ali authored Jun 25, 2020
2 parents 6fee4f7 + de8308b commit 5b6d0eb
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 8 deletions.
11 changes: 7 additions & 4 deletions .circleci/config.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 7 additions & 4 deletions .circleci/config/jobs/algolia_index.yml
Original file line number Diff line number Diff line change
@@ -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" != "[email protected]: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
6 changes: 6 additions & 0 deletions website/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"devDependencies": {
"dart-linkcheck": "^2.0.15",
"husky": "^4.2.5",
"dotenv": "^8.2.0",
"prettier": "^2.0.5"
},
"husky": {
Expand Down

0 comments on commit 5b6d0eb

Please sign in to comment.