Skip to content

feat: add back site scripts#613

Merged
zastrowm merged 2 commits intostrands-agents:mainfrom
zastrowm:add_site_scripts
Mar 8, 2026
Merged

feat: add back site scripts#613
zastrowm merged 2 commits intostrands-agents:mainfrom
zastrowm:add_site_scripts

Conversation

@zastrowm
Copy link
Member

@zastrowm zastrowm commented Mar 7, 2026

Description

Strandsagents.com has Shortbread (cookie consent) and the WebSDK wired up; neither made it into this repo during the initial migration.

Shortbread is extracted into SiteScripts.astro and included in both the Starlight Head override (docs pages) and LandingLayout (landing page), since the landing page has its own <head> and bypasses Starlight's component pipeline entirely.

The AWS legal footer (Privacy / Site Terms / Cookie Preferences) was also missing. Rather than constraining it inside Starlight's ContentPanel, it's injected via a PageFrame override so it spans the full content width below the sidebar. Copyright.astro is shared between the docs footer and the landing page.

Related Issues

#441

Type of Change

  • Content update/revision

Checklist

  • I have read the CONTRIBUTING document
  • My changes follow the project's documentation style
  • I have tested the documentation locally using mkdocs serve
  • Links in the documentation are valid and working

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Add back the shortbread and websdk integration
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assessment: Comment (Minor feedback)

Well-structured PR that cleanly integrates AWS Shortbread cookie consent and the WebSDK across both the docs pages and landing page. The code follows good practices with graceful degradation when Shortbread is unavailable.

Review Highlights
  • Code Quality: Good error handling with try-catch blocks and appropriate console warnings for fallback scenarios
  • Architecture: Clean separation with SiteScripts.astro component shared across Head.astro and LandingLayout.astro
  • Documentation: SITE-ARCHITECTURE.md properly updated to reflect the new components and their purposes
  • Minor Fix: One docstring incorrectly references a non-existent Footer.astro file (see inline comment)

Clean implementation overall! 🎉

@github-actions
Copy link
Contributor

github-actions bot commented Mar 7, 2026

Documentation Preview Ready

Your documentation preview has been successfully deployed!

Preview URL: https://d3ehv1nix5p99z.cloudfront.net/pr-cms-613/docs/user-guide/quickstart/overview/

Updated at: 2026-03-07T22:19:44.120Z

@zastrowm zastrowm merged commit 98ceda0 into strands-agents:main Mar 8, 2026
5 checks passed
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