docs: Remove error codes section from Flutter, Swift, and Python reference docs. (#28334)

* exclude dart, python, and swift from error codes menu

* Update the error code doc to be client lib agnostic

* run formatter

* Add a filter to filter out section items

* Update apps/docs/components/Navigation/NavigationMenu/NavigationMenuRefList.tsx

* docs: move error codes table in a separate component

* Add auth error codes section for kotlin
This commit is contained in:
Tyler
2024-08-06 11:41:10 +09:00
committed by GitHub
parent 55acb7214f
commit eb9f0240cb
8 changed files with 52 additions and 26 deletions

View File

@@ -28,6 +28,12 @@ const NavigationMenuRefList = ({
}
const filteredSections = commonSections.filter((section) => {
if (section.type === 'category') {
section.items = section.items.filter((item) => {
return !item.excludes?.includes(id)
})
}
return !section.excludes?.includes(id)
})