Skip to content

Commit

Permalink
cleanup algolia references (#26150)
Browse files Browse the repository at this point in the history
Signed-off-by: Brian Deutsch <[email protected]>
  • Loading branch information
bgdeutsch authored Nov 6, 2024
1 parent 3fe1a6b commit d159353
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 405 deletions.
53 changes: 1 addition & 52 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -257,39 +257,6 @@ missing_tms_preview:
- check_missing_tms
interruptible: true

# algolia_sync_preview:manual:
# <<: *base_template
# stage: post-deploy
# environment: "preview"
# allow_failure: true
# interruptible: true
# timeout: 2h
# cache:
# - *hugo_cache
# - *yarn_cache
# - *pip_cache
# dependencies:
# - build_preview
# script:
# # build the site to get algolia.json ondemand
# - touch Makefile.config preview_error.log
# - make dependencies
# - make config
# - yarn run prebuild
# - build_site
# # end build
# - yarn add atomic-algolia@https://s3.amazonaws.com/origin-static-assets/corp-node-packages/master/atomic-algolia-v1.0.2.tgz
# - >
# ALGOLIA_APP_ID=$(get_secret 'algolia_preview_application_id')
# ALGOLIA_ADMIN_KEY=$(get_secret 'algolia_preview_api_key')
# CI_PIPELINE_SOURCE=$CI_PIPELINE_SOURCE
# yarn run algolia:sync
# rules:
# - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
# when: never
# - if: '$CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH && $CI_COMMIT_TAG =~ "/^$/"'
# when: manual

typesense_sync_preview:manual:
<<: *base_template
stage: post-deploy
Expand All @@ -304,7 +271,7 @@ typesense_sync_preview:manual:
dependencies:
- build_preview
script:
# build the site to get algolia.json ondemand
# build the site to get search.json ondemand
- touch Makefile.config preview_error.log
- make dependencies
- make config
Expand All @@ -321,24 +288,6 @@ typesense_sync_preview:manual:
- if: '$CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH && $CI_COMMIT_TAG =~ "/^$/"'
when: manual

# algolia_sync_live:
# <<: *base_template
# <<: *live_rules
# stage: post-deploy
# environment: "live"
# allow_failure: true
# interruptible: true
# timeout: 2h
# dependencies:
# - build_live
# script:
# - yarn add atomic-algolia@https://s3.amazonaws.com/origin-static-assets/corp-node-packages/master/atomic-algolia-v1.0.2.tgz
# - >
# ALGOLIA_APP_ID=$(get_secret 'algolia_docsearch_application_id')
# ALGOLIA_ADMIN_KEY=$(get_secret 'algolia_docsearch_api_key')
# CI_PIPELINE_SOURCE=$CI_PIPELINE_SOURCE
# yarn run algolia:sync

typesense_sync_live:
<<: *base_template
<<: *live_rules
Expand Down
195 changes: 0 additions & 195 deletions local/bin/js/algolia-index-sync.js

This file was deleted.

1 change: 0 additions & 1 deletion local/etc/requirements3.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
setuptools==60.10.0
PyGithub==1.47
markdown
algoliasearch>=2.2.0
beautifulsoup4==4.5.1
cffi==1.15.0
cssutils>=1.0.0
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"description": "Datadog Docs built on HUGO",
"private": true,
"scripts": {
"algolia:sync": "node ./local/bin/js/algolia-index-sync.js",
"typesense:sync:preview": "NODE_ENV=preview node ./local/bin/js/typesense_sync.cjs",
"typesense:sync:production": "NODE_ENV=production node ./local/bin/js/typesense_sync.cjs",
"preinstall": "bash local/bin/sh/preinstall.sh",
Expand Down Expand Up @@ -46,7 +45,6 @@
"@datadog/browser-logs": "^5.27.0",
"@datadog/browser-rum": "^5.27.0",
"@popperjs/core": "^2.11.8",
"algoliasearch": "4.22.1",
"alpinejs": "^3.13.7",
"bootstrap": "^5.2",
"del": "4.1.1",
Expand Down
Loading

0 comments on commit d159353

Please sign in to comment.