Skip to content

NXT-16498: [Spotlight] Create sample for spotlight module#274

Open
dan-ichim-lgp wants to merge 4 commits into
developfrom
feature/NXT-16498
Open

NXT-16498: [Spotlight] Create sample for spotlight module#274
dan-ichim-lgp wants to merge 4 commits into
developfrom
feature/NXT-16498

Conversation

@dan-ichim-lgp

@dan-ichim-lgp dan-ichim-lgp commented Jul 3, 2026

Copy link
Copy Markdown

Checklist

Issue Resolved / Feature Added

Adds interactive embedded samples to the Enact documentation site, starting with the spotlight-sandbox sample from enactjs/samples. Spotlight API pages display a relevant sandbox demo via iframe alongside existing Live Preview snippets.

Resolution

prepare-raw.mjs — clones enactjs/samples (develop) into raw/samples
make-runner.mjs — imports prepare-raw, builds samples listed in src/config/sampleEmbeds.json into public/
src/config/sampleEmbeds.json — central config for sample build paths, embed URLs, and per-module route mapping
SampleEmbed / SampleEmbedSection — iframe component and section rendered on matching API pages
[...data].astro — adds SampleEmbedSection to auto-generated module pages
.gitignore — ignores public/ (sample runner and embedded sample build output)
README.md — documents samples clone and config
Spotlight module pages map to sandbox routes (e.g. spotlight/Spottable → #/SandboxSample, spotlight/SpotlightContainerDecorator → #/ContainerSample).

New samples can be added by extending sampleEmbeds.json without changing layout or build scripts.

Additional Considerations

Links

NXT-16498

Comments

Enact-DCO-1.0-Signed-off-by: Dan Ichim (dan.ichim@lgepartner.com)

@dan-ichim-lgp dan-ichim-lgp self-assigned this Jul 3, 2026
@dan-ichim-lgp dan-ichim-lgp changed the base branch from master to develop July 3, 2026 07:03
Comment thread src/components/SampleEmbed/SampleEmbed.jsx Outdated
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