mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-10 04:22:18 +00:00
docs: update API references to include 1.6.x
This commit is contained in:
@@ -2,7 +2,17 @@ import { writable } from 'svelte/store';
|
|||||||
import type { Language } from './code';
|
import type { Language } from './code';
|
||||||
import { browser } from '$app/environment';
|
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];
|
export type Version = (typeof allVersions)[number];
|
||||||
|
|
||||||
|
|||||||
@@ -101,6 +101,11 @@ function getExamples(version: string) {
|
|||||||
query: '?raw',
|
query: '?raw',
|
||||||
import: 'default'
|
import: 'default'
|
||||||
});
|
});
|
||||||
|
case '1.6.x':
|
||||||
|
return import.meta.glob('$appwrite/docs/examples/1.6.x/**/*.md', {
|
||||||
|
query: '?raw',
|
||||||
|
import: 'default'
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user