mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-06 12:57:48 +00:00
sync
This commit is contained in:
@@ -223,11 +223,10 @@ export async function getService(
|
|||||||
const isAndroid = isAndroidJava || isAndroidKotlin;
|
const isAndroid = isAndroidJava || isAndroidKotlin;
|
||||||
const isAndroidServer = platform === Platform.ServerJava || platform === Platform.ServerKotlin;
|
const isAndroidServer = platform === Platform.ServerJava || platform === Platform.ServerKotlin;
|
||||||
const api = await getApi(version, platform);
|
const api = await getApi(version, platform);
|
||||||
const tag = api.tags?.find((n) => n.name === service);
|
|
||||||
|
|
||||||
const data: Awaited<ReturnType<typeof getService>> = {
|
const data: Awaited<ReturnType<typeof getService>> = {
|
||||||
service: {
|
service: {
|
||||||
name: tag?.name as Service,
|
name: service as Service,
|
||||||
description: await getDescription(service)
|
description: await getDescription(service)
|
||||||
},
|
},
|
||||||
methods: []
|
methods: []
|
||||||
|
|||||||
@@ -51,7 +51,17 @@ const config = {
|
|||||||
$markdoc: './src/markdoc'
|
$markdoc: './src/markdoc'
|
||||||
},
|
},
|
||||||
prerender: {
|
prerender: {
|
||||||
concurrency: 32
|
concurrency: 32,
|
||||||
|
/**
|
||||||
|
* @type {import('@sveltejs/kit').PrerenderMissingIdHandler}
|
||||||
|
*/
|
||||||
|
handleMissingId: ({ path, message }) => {
|
||||||
|
if (path.startsWith('/docs/references/')) {
|
||||||
|
console.warn(message);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
throw new Error(message);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user