diff --git a/src/lib/utils/references.ts b/src/lib/utils/references.ts index bcd78085f..274145694 100644 --- a/src/lib/utils/references.ts +++ b/src/lib/utils/references.ts @@ -2,7 +2,17 @@ import { writable } from 'svelte/store'; import type { Language } from './code'; import { browser } from '$app/environment'; -const allVersions = ['1.5.x', '1.4.x', '1.3.x', '1.2.x', '1.1.x', '1.0.x', '0.15.x', 'cloud'] as const; +const allVersions = [ + '1.6.x', + '1.5.x', + '1.4.x', + '1.3.x', + '1.2.x', + '1.1.x', + '1.0.x', + '0.15.x', + 'cloud' +] as const; export type Version = (typeof allVersions)[number]; diff --git a/src/lib/utils/specs.ts b/src/lib/utils/specs.ts index 3f49ee0a9..361e21079 100644 --- a/src/lib/utils/specs.ts +++ b/src/lib/utils/specs.ts @@ -101,6 +101,11 @@ function getExamples(version: string) { query: '?raw', import: 'default' }); + case '1.6.x': + return import.meta.glob('$appwrite/docs/examples/1.6.x/**/*.md', { + query: '?raw', + import: 'default' + }); } }