You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added a new section in CONTRIBUTING.md with an LLM prompt to validate Kotlin/Android code snippets in the web documentation against the SDK source code.
- **Naming conventions**: Verify casing matches the language conventions (e.g., PascalCase for C# properties, camelCase for JavaScript)
190
+
- **API accuracy**: Verify method names, property names, and enum values exist in the SDK
191
+
- **Type correctness**: Verify correct types are used (e.g., `ConnectionEvent` vs `ConnectionState`)
192
+
- **Namespace/import requirements**: Note any required imports that are missing from examples
193
+
- **Wrong language**: Detect if code from another language was accidentally used
194
+
195
+
4. **Generate a verification report** with:
196
+
- Total snippets found
197
+
- List of issues found with:
198
+
- File path and line number
199
+
- Current (incorrect) code
200
+
- Expected (correct) code
201
+
- Source reference in SDK
202
+
- List of verified APIs that are correct
203
+
- Success rate percentage
204
+
- Recommendations for fixes
205
+
206
+
### Output Format:
207
+
Create/update a markdown report file `chat_swift_api_verification_report.md` with all findings.
208
+
~~~
209
+
161
210
## Release process
162
211
163
212
For each release, the following needs to be done:
@@ -171,7 +220,10 @@ For each release, the following needs to be done:
171
220
- From the newly generated changes remove everything that don't make much sense to the library user
172
221
- Copy the final list of changes to the top of the `CHANGELOG.md` file. Modify as necessary to fit the existing format of this file
173
222
- Commit these changes and push to the origin `git add CHANGELOG.md && git commit -m "Update change log." && git push -u origin release/x.x.x`
223
+
- Run the [Validate website docs snippet changes](#validate-website-docs-snippet-changes) locally to verify that all `swift` code snippets in the [web documentation](https://github.com/ably/docs) are accurate and up-to-date with the SDK source code. Review the generated report and fix any issues found.
224
+
- Create a PR on the [website docs](https://github.com/ably/docs) that updates the SDK version in the setup/installation guide. Additionally, include fixes for any documentation issues identified in the previous step. Even if there are no public API changes, a PR must still be created to update the SDK version.
174
225
- Make a pull request against `main` and await approval of reviewer(s)
175
226
- Once approved and/or any additional commits have been added, merge the PR
176
227
- After merging the PR, wait for all CI jobs for `main` to pass.
177
228
- Publish your drafted release (refer to previous releases for release notes format)
229
+
- Merge any [website docs](https://github.com/ably/docs) PRs related to the changes.
0 commit comments