mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
docs: update Kotlin docs to v1.0 (#18932)
* update kotlin docs version number to v1.0 * renaming client to supabase for the installing kotlin guide
This commit is contained in:
1 parent
2538818bc6
commit
1442e42b0a
10 files changed
+13
-13
No files matched your search
@@ -208,7 +208,7 @@ export const REFERENCES: References = {
|
||||
kotlin: {
|
||||
name: 'Kotlin',
|
||||
library: 'supabase-kt',
|
||||
versions: ['v0'],
|
||||
versions: ['v1'],
|
||||
icon: '/docs/img/libraries/kotlin-icon.svg',
|
||||
},
|
||||
cli: {
|
||||
|
||||
@@ -157,7 +157,7 @@ const menus: Menu[] = [
|
||||
id: 'reference_kotlin_v0',
|
||||
path: '/reference/kotlin',
|
||||
commonSectionsFile: 'common-client-libs-sections.json',
|
||||
specFile: 'supabase_kt_v0.yml',
|
||||
specFile: 'supabase_kt_v1.yml',
|
||||
type: 'reference',
|
||||
},
|
||||
{
|
||||
|
||||
@@ -264,7 +264,7 @@ By default, [KotlinX Serialization](https://github.com/Kotlin/kotlinx.serializat
|
||||
</TabPanel>
|
||||
</Tabs>
|
||||
```kotlin
|
||||
val client = createSupabaseClient(supabaseUrl, supabaseKey) {
|
||||
val supabase = createSupabaseClient(supabaseUrl, supabaseKey) {
|
||||
//Already the default serializer
|
||||
}
|
||||
```
|
||||
@@ -312,7 +312,7 @@ By default, [KotlinX Serialization](https://github.com/Kotlin/kotlinx.serializat
|
||||
</TabPanel>
|
||||
</Tabs>
|
||||
```kotlin
|
||||
val client = createSupabaseClient(supabaseUrl, supabaseKey) {
|
||||
val supabase = createSupabaseClient(supabaseUrl, supabaseKey) {
|
||||
defaultSerializer = MoshiSerializer()
|
||||
}
|
||||
```
|
||||
@@ -361,7 +361,7 @@ By default, [KotlinX Serialization](https://github.com/Kotlin/kotlinx.serializat
|
||||
</TabPanel>
|
||||
</Tabs>
|
||||
```kotlin
|
||||
val client = createSupabaseClient(supabaseUrl, supabaseKey) {
|
||||
val supabase = createSupabaseClient(supabaseUrl, supabaseKey) {
|
||||
defaultSerializer = JacksonSerializer()
|
||||
}
|
||||
```
|
||||
@@ -392,7 +392,7 @@ By default, [KotlinX Serialization](https://github.com/Kotlin/kotlinx.serializat
|
||||
```
|
||||
|
||||
```kotlin
|
||||
val client = createSupabaseClient(supabaseUrl, supabaseKey) {
|
||||
val supabase = createSupabaseClient(supabaseUrl, supabaseKey) {
|
||||
defaultSerializer = CustomSerializer()
|
||||
}
|
||||
```
|
||||
|
||||
@@ -12,7 +12,7 @@ const clientLibFiles = [
|
||||
{ fileName: 'supabase_py_v2', label: 'python', version: 'v2', versionSlug: false },
|
||||
{ fileName: 'supabase_csharp_v0', label: 'csharp', version: 'v0', versionSlug: false },
|
||||
{ fileName: 'supabase_swift_v1', label: 'swift', version: 'v1', versionSlug: false },
|
||||
{ fileName: 'supabase_kt_v0', label: 'kotlin', version: 'v0', versionSlug: false },
|
||||
{ fileName: 'supabase_kt_v1', label: 'kotlin', version: 'v0', versionSlug: false },
|
||||
]
|
||||
|
||||
export function generateReferencePages() {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import clientLibsCommonSections from '~/../../spec/common-client-libs-sections.json'
|
||||
import spec from '~/../../spec/supabase_kt_v0.yml' assert { type: 'yml' }
|
||||
import spec from '~/../../spec/supabase_kt_v1.yml' assert { type: 'yml' }
|
||||
import RefSectionHandler from '~/components/reference/RefSectionHandler'
|
||||
import { flattenSections } from '~/lib/helpers'
|
||||
import handleRefGetStaticPaths from '~/lib/mdx/handleRefStaticPaths'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import clientLibsCommonSections from '~/../../spec/common-client-libs-sections.json'
|
||||
import typeSpec from '~/../../spec/enrichments/tsdoc_v2/combined.json'
|
||||
import spec from '~/../../spec/supabase_kt_v0.yml' assert { type: 'yml' }
|
||||
import spec from '~/../../spec/supabase_kt_v1.yml' assert { type: 'yml' }
|
||||
import RefSectionHandler from '~/components/reference/RefSectionHandler'
|
||||
import { flattenSections } from '~/lib/helpers'
|
||||
import handleRefGetStaticPaths from '~/lib/mdx/handleRefStaticPaths'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import clientLibsCommonSections from '~/../../spec/common-client-libs-sections.json'
|
||||
import spec from '~/../../spec/supabase_kt_v0.yml' assert { type: 'yml' }
|
||||
import spec from '~/../../spec/supabase_kt_v1.yml' assert { type: 'yml' }
|
||||
import RefSectionHandler from '~/components/reference/RefSectionHandler'
|
||||
import { flattenSections } from '~/lib/helpers'
|
||||
import handleRefGetStaticPaths from '~/lib/mdx/handleRefStaticPaths'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import clientLibsCommonSections from '~/../../spec/common-client-libs-sections.json'
|
||||
import typeSpec from '~/../../spec/enrichments/tsdoc_v2/combined.json'
|
||||
import spec from '~/../../spec/supabase_kt_v0.yml' assert { type: 'yml' }
|
||||
import spec from '~/../../spec/supabase_kt_v1.yml' assert { type: 'yml' }
|
||||
import RefSectionHandler from '~/components/reference/RefSectionHandler'
|
||||
import { flattenSections } from '~/lib/helpers'
|
||||
import handleRefGetStaticPaths from '~/lib/mdx/handleRefStaticPaths'
|
||||
|
||||
@@ -72,7 +72,7 @@ export async function fetchSources() {
|
||||
'kt-lib',
|
||||
'/reference/kotlin',
|
||||
{ title: 'Kotlin Reference' },
|
||||
'../../spec/supabase_kt_v0.yml',
|
||||
'../../spec/supabase_kt_v1.yml',
|
||||
'../../spec/common-client-libs-sections.json'
|
||||
)
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ info:
|
||||
|
||||
Supabase Kotlin.
|
||||
|
||||
specUrl: https://github.com/supabase/supabase/edit/master/spec/supabase_kt_v0.yml
|
||||
specUrl: https://github.com/supabase/supabase/edit/master/spec/supabase_kt_v1.yml
|
||||
slugPrefix: '/'
|
||||
libraries:
|
||||
- name: 'Kotlin'
|
||||
Reference in new issue
Block a user