Skip to content

chore(deps): remove dead Elasticsearch search-index builder and unused deps#1548

Merged
DeepDiver1975 merged 1 commit into
masterfrom
chore/drop-unused-elasticsearch-deps
Jun 22, 2026
Merged

chore(deps): remove dead Elasticsearch search-index builder and unused deps#1548
DeepDiver1975 merged 1 commit into
masterfrom
chore/drop-unused-elasticsearch-deps

Conversation

@DeepDiver1975

Copy link
Copy Markdown
Member

What

Removes the dead Elasticsearch search-index builder (ext-antora/generate-index.js) and the npm dependencies that only it consumed.

Why

The indexer only executed when UPDATE_SEARCH_INDEX=true and the ELASTICSEARCH_* env vars were set. The docs site aggregator no longer sets these and no longer ships this extension — search moved to pagefind — so the code path is dead. Carrying it kept a large transitive dependency tree (the elastic client, cheerio → parse5/entities, html-entities, lodash) that is a needless Dependabot attack surface.

Changes

  • Drop @elastic/elasticsearch, cheerio, html-entities, lodash from dependencies (sole consumer was the indexer)
  • Drop the unused asciidoctor direct dependency (never required; asciidoctor-kroki is separate and stays)
  • Delete ext-antora/generate-index.js and its reference in site.yml
  • Delete the never-referenced duplicate ext-asciidoc/ext-antora/generate-index.js
  • Delete the orphan es-docker-compose.yml (Elasticsearch dev-stack file, referenced nowhere)
  • Regenerate package-lock.json

js-yaml and asciidoctor-kroki are kept — still in use.

Verification

  • npm install succeeds; lockfile no longer references the removed packages (the remaining lodash.merge/lodash.clonedeep are unrelated transitive deps)
  • npm run antora still produces full public/ HTML output (the removed extension was a no-op outside the indexing env). The remaining xref not found warnings are pre-existing — site.yml sets failure_level: none because the standalone build lacks the sibling docs-* content sources.

🤖 Generated with Claude Code

…d deps

The `ext-antora/generate-index.js` extension built an Elasticsearch search
index, but it only ran when UPDATE_SEARCH_INDEX=true and the ELASTICSEARCH_*
env vars were set. The docs site aggregator no longer sets these and no longer
ships this extension (search moved to pagefind), so the code path is dead.

Removing it lets us drop its sole-consumer dependencies, shrinking the
transitive tree and the Dependabot attack surface:

- drop @elastic/elasticsearch, cheerio, html-entities, lodash (only used by
  the indexer) and the unused asciidoctor direct dep (asciidoctor-kroki stays)
- remove the generate-index.js extension and its site.yml reference
- remove the never-referenced ext-asciidoc/ext-antora/generate-index.js duplicate
- delete the orphan es-docker-compose.yml Elasticsearch dev-stack file

js-yaml and asciidoctor-kroki are kept (still used). Verified the antora build
still produces public/ output.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Thomas Müller <1005065+DeepDiver1975@users.noreply.github.com>
@DeepDiver1975 DeepDiver1975 force-pushed the chore/drop-unused-elasticsearch-deps branch from 0f8cf11 to cadecd8 Compare June 22, 2026 22:50
@DeepDiver1975 DeepDiver1975 merged commit 3f85f59 into master Jun 22, 2026
2 checks passed
@DeepDiver1975 DeepDiver1975 deleted the chore/drop-unused-elasticsearch-deps branch June 22, 2026 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants