Skip to content

Add {vector-sizing-calculator} directive #3051

Description

@KOTungseth

Summary

Wire the {vector-sizing-calculator} custom directive into elastic/docs-builder so the
interactive vector sizing calculator can be embedded in docs-content pages.

Implementation: #2736

Status

Item Status
Directive block + view + view model Done in PR #2736
Parser/renderer wiring Done
Web component (React/EUI) in site bundle Done
Syntax docs + directive tests Done
PR merged to main Pending

Implementation notes

  • Directive: src/Elastic.Markdown/Myst/Directives/VectorSizing/
  • Web component: src/Elastic.Documentation.Site/Assets/web-components/VectorSizingCalculator/
  • Asset delivery: Parcel bundle via main.ts (registers <vector-sizing-calculator>), not a standalone IIFE script tag
  • Local preview: dotnet run --project src/tooling/docs-builder -- serve/syntax/vector-sizing-calculator
  • Integration guide: tools/vector_sizing_calculator/INTEGRATION.md

Out of scope (this issue)

  • Embedding in docs-content (see docs-content-internal#1030)
  • Formula accuracy / BBQ constant (see docs-content-internal#1031)
  • Design sign-off (see Design vector sizing calculator UI #3052)
  • Landing page / publish (see docs-content-internal#1032–1033)

Prerequisites

  • Single implementation chosen (PR Add Vector Sizing Calculator #2736)
  • BBQ constant validated with Search Engineering (blocks launch accuracy; tracked in docs-content-internal#1031)

Acceptance criteria

  • {vector-sizing-calculator} recognized by the build without errors
  • Directive renders <vector-sizing-calculator> in output HTML
  • Web component loads on pages using the directive (site bundle)
  • Unit tests pass (VectorSizingBlockTests)
  • PR Add Vector Sizing Calculator #2736 merged
  • Full integration checklist passed before docs-content publish (docs-content-internal#1031)

Owner

Docs Eng — @itsalexcm

Metadata

Metadata

Assignees

Labels

ai-triagedIssue received an initial assessment through AI-powered current code and architecture checks.ai:eng-questionAI triage raised an architecture/engineering question.ai:product-questionAI triage raised a question about product scope / offering.ai:ux-questionAI triage raised a UX / frontend question for a human to decide.ai:writer-questionAI triage raised a question about authoring/writing workflow.design

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions