docs(website): name the Python SDK group SDK

The group holds language SDKs, and the sidebar reads `SDK > Python` rather
than repeating the word in the page label.
This commit is contained in:
Yichen Jiang
2026-08-12 14:08:18 +08:00
parent d6af042cf7
commit 555771496b
5 changed files with 14 additions and 14 deletions
+4 -4
View File
@@ -378,10 +378,10 @@ describe('sidebar ordering', () => {
})
it('declares placements per locale rather than in one shared list', () => {
// Each locale ranks only its own labels, so a label one locale never uses
// cannot borrow a rank from the other.
expect(sectionSpec('root', '入门').index).toBe(0)
expect(sectionSpec('en', 'Guide').index).toBe(0)
// `SDK` labels a group in both locales, so one shared list would have to
// rank it against `入门` and against `Guide` at the same position.
expect(sectionSpec('root', 'SDK').index).toBeGreaterThan(sectionSpec('root', '入门').index)
expect(sectionSpec('en', 'SDK').index).toBeGreaterThan(sectionSpec('en', 'Guide').index)
expect(() => sectionSpec('en', '入门')).toThrow()
expect(() => sectionSpec('root', 'Guide')).toThrow()
})