Skip to content

docs: Fix code syntax errors across guides and cookbooks#800

Open
agalyanmann wants to merge 4 commits intomainfrom
bearclaw/docs-fix/code-syntax-errors-2026-03-21
Open

docs: Fix code syntax errors across guides and cookbooks#800
agalyanmann wants to merge 4 commits intomainfrom
bearclaw/docs-fix/code-syntax-errors-2026-03-21

Conversation

@agalyanmann
Copy link
Copy Markdown
Contributor

Summary

  • Empty code blocks fixed: Filled missing Python and JS imports in speaker diarization and subtitle guides
  • Shell fencing fixed: Changed pip/npm install blocks from python/javascript to bash across 11 files
  • TypeScript in JS block fixed: Removed TS type annotations from a javascript-fenced block in the subtitle guide
  • Base URL standardized: Normalized to base_url with /v2/ in path segments across 4 guides
  • F-string prefixes fixed: Converted misleading print(f"...", var) to proper print(f"...{var}") across 28 files

Test plan

  • Verify all code blocks render with correct syntax highlighting
  • Confirm import blocks in speaker diarization and subtitle guides are no longer empty
  • Spot-check that the JS subtitle function still works without TS annotations

Bearclaw and others added 4 commits March 21, 2026 02:17
- Fill empty import code blocks in speaker diarization and subtitle guides
- Change pip/npm install blocks from python/javascript to bash fencing
- Remove TypeScript annotations from JavaScript code block in subtitle guide

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Unused f-string prefixes in print statements suggest broken interpolation
to customers. Converted comma-separated prints to proper f-string
interpolation across 27 docs files (56 instances).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Change pip install and npm commands from python/js to bash fencing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Normalize to base_url = "https://api.assemblyai.com" with /v2/ in path
segments, replacing the older pattern that baked /v2 into the base URL.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

@LeeVaughn LeeVaughn assigned LeeVaughn and agalyanmann and unassigned LeeVaughn Mar 22, 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.

2 participants