Skip to content

docs: add Tenstorrent theme, search/AI modal, and OpenSearch indexing#5419

Closed
ctr-fmamedov-crypto wants to merge 7 commits into
tenstorrent:mainfrom
ctr-fmamedov-crypto:release/docs-theme
Closed

docs: add Tenstorrent theme, search/AI modal, and OpenSearch indexing#5419
ctr-fmamedov-crypto wants to merge 7 commits into
tenstorrent:mainfrom
ctr-fmamedov-crypto:release/docs-theme

Conversation

@ctr-fmamedov-crypto

Copy link
Copy Markdown
Collaborator

Summary

  • docs/source/_templates/layout.html: Replace minimal RTD template with full Tenstorrent layout — top navbar with cross-docs navigation (Get Started / Software / Hardware / Tools / Resources), Search / Ask AI modal (Kapa.ai), sidebar-scroll.js and tt-search.js loaded from CDN (docs.tenstorrent.com/_static/)
  • docs/source/conf.py: Add sphinx_sitemap extension (sitemap.xml for SEO), html_theme_options (collapse_navigation=False, titles_only=True, navigation_depth=2), search_site_base_url in html_context for the Search / Ask AI modal — consistent with other Tenstorrent docs sites
  • scripts/index_remote_search.py + .github/workflows/call-build-and-deploy-docs.yml: Generic HTML crawler that batches pages and POSTs to the OpenSearch ingest API; triggered after each docs deploy via DOCS_SEARCH_INGEST_API_KEY_DOCS_TENSTORRENT secret (fails silently with continue-on-error: true so missing key never blocks deploys)
  • docs/requirements-docs.txt: Add sphinx-sitemap==2.6.0 (was missing despite the extension being used in conf.py)

Test plan

  • Run pip install -r docs/requirements-docs.txt && sphinx-build docs/source docs/build/html — should complete without errors
  • Verify sitemap.xml is generated in docs/build/html/
  • Check top navbar renders correctly in the built HTML
  • Confirm Search / Ask AI modal opens with ⌘K
  • Set DOCS_SEARCH_INGEST_API_KEY_DOCS_TENSTORRENT secret in repo settings to enable OpenSearch indexing on deploy

🤖 Generated with Claude Code

ctr-fmamedov-crypto and others added 4 commits June 30, 2026 01:42
  html_theme_options: collapse_navigation=False, titles_only=True,
    navigation_depth=2

  extensions: add sphinx_sitemap with sitemap_locales=[None] and
    sitemap_url_scheme="{link}" — consistent with other Tenstorrent docs

  html_context: add search_site_base_url for Search / Ask AI modal

  html_css_files with docs.tenstorrent.com CDN URL is preserved as-is
    (already correct in production)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
  layout.html: replace minimal sidebar-only template with full Tenstorrent
    Figma layout — top navbar (cross-docs navigation), Search / Ask AI modal
    (Kapa.ai, id c37e0bab-...), simplified sidebartitle, versions block
    suppressed, footer loads sidebar-scroll.js + tt-search.js from CDN
    (docs.tenstorrent.com/_static/ — shared scripts not in this repo's _static/)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
  call-build-and-deploy-docs.yml: add environment: github-pages to build
    job, add OpenSearch env vars (DOC_SITE_BASE_URL = docs.tenstorrent.com/
    tt-xla, DOCS_SEARCH_INGEST_API_KEY secret), add warn + index steps with
    continue-on-error: true so failures never block page deploys

  scripts/index_remote_search.py: generic HTML crawler that batches pages
    and POSTs to the OpenSearch ingest API; all config from env vars

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
sphinx_sitemap was added to conf.py extensions but the package was
missing from requirements, causing sphinx-build to fail immediately.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
ctr-fmamedov-crypto and others added 2 commits June 30, 2026 04:01
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- call-build-and-deploy-docs.yml: wrap run: value in block scalar (|)
  to avoid YAML parser treating "indexing: ..." as a mapping key
- index_remote_search.py: apply isort/black line-length formatting
  (re.sub/re.search calls, _build_documents signature, blank line)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@nsumrakTT

Copy link
Copy Markdown
Contributor

Superseded by #5484

@nsumrakTT nsumrakTT closed this Jul 1, 2026
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.

3 participants