feat: add 0.15.x

This commit is contained in:
Torsten Dittmann
2023-09-15 15:39:02 +02:00
parent 2f2e0d97b7
commit 6b90b95e95
2 changed files with 5 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
import type { Language } from './code';
export const versions = ['1.4.x', '1.3.x', '1.2.x', '1.1.x', '1.0.x'];
export const versions = ['1.4.x', '1.3.x', '1.2.x', '1.1.x', '1.0.x', '0.15.x'];
export enum Service {
Account = 'account',

View File

@@ -46,6 +46,10 @@ type AppwriteSchemaObject = OpenAPIV3.SchemaObject & {
function getExamples(version: string) {
switch (version) {
case '0.15.x':
return import.meta.glob('$appwrite/docs/examples/0.15.x/**/*.md', {
as: 'raw'
});
case '1.0.x':
return import.meta.glob('$appwrite/docs/examples/1.0.x/**/*.md', {
as: 'raw'