Commit 2eaa23a
fix: Correct code sample errors and add tab formatting to CI (#1105)
* fix: Correct syntax errors and typos in hand-written code samples across guides
Fixes 19 issues found during a code sample audit:
- Wrong capability flag in quickstart cURL (can_remotely_lock → can_remotely_unlock)
- Wrong cURL endpoints (access_methods/get → access_grants/create, devices/list → events/list)
- Extra '>' in cURL URL (customer-portals)
- Python syntax using Ruby-style ':' instead of '=' for kwargs (mobile-key-quick-start)
- Wrong PHP class name (SeamSeamClient → Seam\SeamClient in nuki-locks)
- Wrong C# method name (SystemsAcs.List → Acs.Systems.List)
- Malformed JSON using '=' instead of ':' (filtering-connect-webviews)
- JS object literal using '=' instead of ':' (hospitality guides)
- JS variable name mismatch (connectedAccounts vs connected_accounts)
- Missing JSON commas in output examples (multiple files)
- Stray spaces before array index [0] (nest-thermostats)
- Ruby placeholder using JS comment syntax (// → #)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* ci: Add format-code-sample-tabs to CI format workflow
Adds a codegen script that auto-fixes code sample tab order and titles
in guide and brand-guide markdown files. Runs as part of the Format CI
workflow, which auto-commits fixes on non-main branches.
The canonical tab order and title mapping are defined in a shared module
(codegen/lib/code-sample-tab-order.ts), imported by both the API
reference codegen and the tab formatter — single source of truth.
The script:
- Reorders tabs to match API reference canonical order
(JavaScript → cURL → Python → Ruby → PHP → C# → Java → Go → Seam CLI)
- Normalizes tab titles ("cURL (bash)" → "cURL", "Javascript" → "JavaScript")
- Ensures GitBook tab syncing works across all code blocks on a page
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* ci: Format code
* fix: Include api-reference source files in tab formatter scope
Adds codegen/source/docs/api-reference/ to the format-code-sample-tabs
scan paths so hand-written api-reference pages (authentication.md,
pagination.md) also get their tabs normalized. Fixes 6 remaining
"cURL (bash)" → "cURL" instances.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* ci: Generate docs
* fix: Fix = vs : in JS/Ruby/PHP named args and missing PHP comma
Fixes acs_system_ids using = instead of : in JavaScript object literals,
Ruby keyword arguments, and PHP named parameters across encoder-related
code samples. Also fixes a missing comma in PHP code in
mapping-your-resources-to-seam-resources.md.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Seam Bot <seambot@getseam.com>1 parent b43a58b commit 2eaa23a
125 files changed
Lines changed: 15319 additions & 13398 deletions
File tree
- .github/workflows
- codegen
- lib
- layout
- source/docs/api-reference
- docs
- api-reference
- brand-guides
- 2n-intercom-systems
- 33-lock-devices
- 4suites-locks
- akiles-locks
- assa-abloy-visionline-access-control-system
- configuring-visionline-mobile-credentials
- august-locks
- controlbyweb-relays
- dormakaba-oracode-locks
- ecobee-thermostats
- google-nest-thermostats
- honeywell-thermostats
- igloohome-locks
- kwikset-locks
- latch-access-control-system
- minut-sensors
- noiseaware-sensors
- nuki-locks
- salto-ks-access-control-system
- salto-locks
- salto-proaccess-space-access-system
- schlage-locks
- sensi-thermostats
- smartthings-hubs-+-devices
- tedee-locks
- ttlock-locks
- ultraloq-locks
- wyze-locks
- yale-locks
- guides
- capability-guides
- access-grants
- access-systems
- acs-quick-starts
- connect-an-acs-to-seam
- managing-credentials
- user-management
- working-with-card-encoders-and-scanners
- customer-portals
- instant-keys
- mobile-access
- mobile-device-sdks
- noise-sensors
- smart-locks
- access-codes
- creating-access-codes
- thermostats
- creating-and-managing-climate-presets
- core-concepts
- authentication
- connect-webviews
- connected-accounts
- devices
- providers
- industry-guides/hospitality-industry-guide
- ui-components/overview
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | | - | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
34 | 39 | | |
35 | 40 | | |
36 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | | - | |
20 | | - | |
| 20 | + | |
| 21 | + | |
21 | 22 | | |
22 | | - | |
| 23 | + | |
23 | 24 | | |
24 | | - | |
25 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
26 | 31 | | |
27 | 32 | | |
28 | 33 | | |
29 | 34 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
38 | 43 | | |
39 | 44 | | |
40 | 45 | | |
41 | | - | |
| 46 | + | |
| 47 | + | |
42 | 48 | | |
43 | 49 | | |
44 | 50 | | |
| |||
66 | 72 | | |
67 | 73 | | |
68 | 74 | | |
69 | | - | |
70 | | - | |
| 75 | + | |
71 | 76 | | |
72 | | - | |
73 | | - | |
| 77 | + | |
74 | 78 | | |
75 | | - | |
| 79 | + | |
| 80 | + | |
76 | 81 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
| 82 | + | |
81 | 83 | | |
82 | | - | |
| 84 | + | |
| 85 | + | |
83 | 86 | | |
84 | 87 | | |
85 | 88 | | |
86 | 89 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
95 | 98 | | |
96 | 99 | | |
97 | 100 | | |
98 | 101 | | |
| 102 | + | |
99 | 103 | | |
100 | 104 | | |
101 | 105 | | |
| |||
123 | 127 | | |
124 | 128 | | |
125 | 129 | | |
| 130 | + | |
126 | 131 | | |
127 | 132 | | |
128 | 133 | | |
| |||
150 | 155 | | |
151 | 156 | | |
152 | 157 | | |
| 158 | + | |
153 | 159 | | |
154 | 160 | | |
155 | 161 | | |
| |||
174 | 180 | | |
175 | 181 | | |
176 | 182 | | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | 183 | | |
0 commit comments